From 6db04286794703a3e5b9cbd570b898c8d8346fd8 Mon Sep 17 00:00:00 2001 From: prakharsapre Date: Sat, 10 Feb 2024 12:18:29 -0600 Subject: [PATCH 001/148] Enable email notifier to send emails for healthcheck failures --- .../ha/clustermonitor/HealthChecker.java | 40 +++++++++- .../ha/config/NotifierConfiguration.java | 33 ++++++++ .../ha/module/ClusterStateListenerModule.java | 15 +++- .../gateway/ha/notifier/EmailNotifier.java | 6 +- .../ha/clustermonitor/TestHealthChecker.java | 76 +++++++++++++++++++ .../ha/notifier/TestEmailNotifier.java | 70 +++++++++++++++++ .../TestClusterStateListenerModule.java | 58 ++++++++++++++ 7 files changed, 290 insertions(+), 8 deletions(-) create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestHealthChecker.java create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java create mode 100644 gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthChecker.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthChecker.java index 58bb7608d..b730a82bd 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthChecker.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthChecker.java @@ -50,16 +50,50 @@ public void observe(List clustersStats) private void notifyUnhealthyCluster(ClusterStats clusterStats) { - notifier.sendNotification(format("%s - Cluster unhealthy", clusterStats.clusterId()), clusterStats.toString()); + String clusterId = clusterStats.clusterId(); + String subject = format("Cluster name '%s' is unhealthy", clusterId); + String content = buildContent(clusterStats); + notifier.sendNotification(subject, content); } private void notifyForTooManyQueuedQueries(ClusterStats clusterStats) { - notifier.sendNotification(format("%s - Too many queued queries", clusterStats.clusterId()), clusterStats.toString()); + String clusterId = clusterStats.clusterId(); + String subject = format("Cluster name '%s' has too many queued queries", clusterId); + String content = buildContent(clusterStats); + notifier.sendNotification(subject, content); } private void notifyForNoWorkers(ClusterStats clusterStats) { - notifier.sendNotification(format("%s - Number of workers", clusterStats.clusterId()), clusterStats.toString()); + String clusterId = clusterStats.clusterId(); + String subject = format("Cluster name '%s' has no workers running", clusterId); + String content = buildContent(clusterStats); + notifier.sendNotification(subject, content); + } + + private String buildContent(ClusterStats clusterStats) + { + return format(""" + Please check below information for the cluster: + Cluster Id : %s + Cluster Health : %s + Routing Group : %s + Number of Worker Nodes : %s + Running Queries : %s + Queued Queries : %s + User Queued Count : %s + Proxy To : %s + External URL : %s + """, + clusterStats.clusterId(), + clusterStats.healthy(), + clusterStats.routingGroup(), + clusterStats.numWorkerNodes(), + clusterStats.runningQueryCount(), + clusterStats.queuedQueryCount(), + clusterStats.userQueuedCount(), + clusterStats.proxyTo(), + clusterStats.externalUrl()); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/NotifierConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/NotifierConfiguration.java index 50e1793b5..138eed796 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/NotifierConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/NotifierConfiguration.java @@ -25,6 +25,9 @@ public class NotifierConfiguration private String smtpPassword; private String sender; private List recipients; + private String gatewayInstance = "Trino"; + private String customContent; + private boolean enabled; public NotifierConfiguration() {} @@ -107,4 +110,34 @@ public void setRecipients(List recipients) { this.recipients = recipients; } + + public String getGatewayInstance() + { + return gatewayInstance; + } + + public void setGatewayInstance(String gatewayInstance) + { + this.gatewayInstance = gatewayInstance; + } + + public String getCustomContent() + { + return customContent; + } + + public void setCustomContent(String customContent) + { + this.customContent = customContent; + } + + public boolean isEnabled() + { + return enabled; + } + + public void setEnabled(boolean enabled) + { + this.enabled = enabled; + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java index 7145b378a..8cde4a846 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java @@ -21,9 +21,12 @@ import io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor; import io.trino.gateway.ha.clustermonitor.ClusterStatsObserver; import io.trino.gateway.ha.clustermonitor.HealthCheckObserver; +import io.trino.gateway.ha.clustermonitor.HealthChecker; import io.trino.gateway.ha.clustermonitor.TrinoClusterStatsObserver; import io.trino.gateway.ha.config.HaGatewayConfiguration; import io.trino.gateway.ha.config.MonitorConfiguration; +import io.trino.gateway.ha.config.NotifierConfiguration; +import io.trino.gateway.ha.notifier.EmailNotifier; import io.trino.gateway.ha.router.BackendStateManager; import io.trino.gateway.ha.router.RoutingManager; @@ -50,10 +53,14 @@ public List getClusterStatsObservers( RoutingManager mgr, BackendStateManager backendStateManager) { - return ImmutableList.builder() - .add(new HealthCheckObserver(mgr)) - .add(new ClusterStatsObserver(backendStateManager)) - .build(); + NotifierConfiguration notifierConfiguration = getConfiguration().getNotifier(); + ImmutableList.Builder observerBuilder = ImmutableList.builder(); + observerBuilder.add(new HealthCheckObserver(mgr)); + observerBuilder.add(new ClusterStatsObserver(backendStateManager)); + if (notifierConfiguration.isEnabled()) { + observerBuilder.add(new HealthChecker(new EmailNotifier(notifierConfiguration))); + } + return observerBuilder.build(); } @Provides diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java b/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java index 7178b589e..ace9f9a68 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java @@ -25,6 +25,9 @@ import java.util.List; import java.util.Properties; +import static java.lang.String.format; +import static java.util.Objects.requireNonNullElse; + public class EmailNotifier implements Notifier { @@ -54,10 +57,11 @@ public EmailNotifier(NotifierConfiguration notifierConfiguration) @Override public void sendNotification(String subject, String content) { + content = requireNonNullElse(notifierConfiguration.getCustomContent(), content); sendNotification( notifierConfiguration.getSender(), notifierConfiguration.getRecipients(), - "Trino Error: " + subject, + format("%s error: %s", notifierConfiguration.getGatewayInstance(), subject), content); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestHealthChecker.java b/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestHealthChecker.java new file mode 100644 index 000000000..9233a3ca3 --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestHealthChecker.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.clustermonitor; + +import io.trino.gateway.ha.notifier.Notifier; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInstance; +import org.mockito.Mockito; + +import java.util.Collections; + +import static org.mockito.Mockito.anyString; +import static org.mockito.Mockito.eq; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +@TestInstance(TestInstance.Lifecycle.PER_CLASS) +public class TestHealthChecker +{ + @Test + public void testNotifyUnhealthyCluster() + { + Notifier notifier = Mockito.mock(Notifier.class); + HealthChecker healthChecker = new HealthChecker(notifier); + ClusterStats clusterStats = mock(ClusterStats.class); + when(clusterStats.healthy()).thenReturn(false); + when(clusterStats.clusterId()).thenReturn("testCluster"); + + healthChecker.observe(Collections.singletonList(clusterStats)); + + verify(notifier, times(1)).sendNotification(eq("Cluster name 'testCluster' is unhealthy"), anyString()); + } + + @Test + public void testNotifyForTooManyQueuedQueries() + { + Notifier notifier = Mockito.mock(Notifier.class); + HealthChecker healthChecker = new HealthChecker(notifier); + ClusterStats clusterStats = mock(ClusterStats.class); + when(clusterStats.healthy()).thenReturn(true); + when(clusterStats.clusterId()).thenReturn("testCluster"); + when(clusterStats.queuedQueryCount()).thenReturn(101); + + healthChecker.observe(Collections.singletonList(clusterStats)); + + verify(notifier, times(1)).sendNotification(eq("Cluster name 'testCluster' has too many queued queries"), anyString()); + } + + @Test + public void testNotifyForNoWorkers() + { + Notifier notifier = Mockito.mock(Notifier.class); + HealthChecker healthChecker = new HealthChecker(notifier); + ClusterStats clusterStats = mock(ClusterStats.class); + when(clusterStats.healthy()).thenReturn(true); + when(clusterStats.clusterId()).thenReturn("testCluster"); + when(clusterStats.numWorkerNodes()).thenReturn(0); + + healthChecker.observe(Collections.singletonList(clusterStats)); + + verify(notifier, times(1)).sendNotification(eq("Cluster name 'testCluster' has no workers running"), anyString()); + } +} diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java b/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java new file mode 100644 index 000000000..53daf44d6 --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.notifier; + +import io.trino.gateway.ha.config.NotifierConfiguration; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInstance; +import org.mockito.Mockito; + +import java.util.Arrays; +import java.util.List; + +import static org.mockito.Mockito.anyList; +import static org.mockito.Mockito.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +@TestInstance(TestInstance.Lifecycle.PER_CLASS) +public class TestEmailNotifier +{ + @Test + public void testSendNotificationCustomContent() + { + NotifierConfiguration notifierConfiguration = mock(NotifierConfiguration.class); + when(notifierConfiguration.getCustomContent()).thenReturn("Custom content"); + + EmailNotifier emailNotifier = new EmailNotifier(notifierConfiguration); + + emailNotifier.sendNotification("Test Subject", "Test Content"); + } + + @Test + public void testSendNotificationNoCustomContent() + { + NotifierConfiguration notifierConfiguration = mock(NotifierConfiguration.class); + when(notifierConfiguration.getCustomContent()).thenReturn(null); + + EmailNotifier emailNotifier = new EmailNotifier(notifierConfiguration); + + emailNotifier.sendNotification("Test Subject", "Test Content"); + } + + @Test + public void testSendEmailNotification() + { + NotifierConfiguration notifierConfiguration = Mockito.mock(NotifierConfiguration.class); + List recipients = Arrays.asList("recipient1@example.com", "recipient2@example.com"); + when(notifierConfiguration.getRecipients()).thenReturn(recipients); + + EmailNotifier emailNotifier = Mockito.mock(EmailNotifier.class); + + emailNotifier.sendNotification(anyString(), anyList(), anyString(), anyString()); + + verify(emailNotifier, times(1)).sendNotification( + anyString(), anyList(), anyString(), anyString()); + } +} diff --git a/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java b/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java new file mode 100644 index 000000000..bf0c1cc0b --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.module; + +import io.dropwizard.core.setup.Environment; +import io.trino.gateway.ha.clustermonitor.HealthChecker; +import io.trino.gateway.ha.clustermonitor.TrinoClusterStatsObserver; +import io.trino.gateway.ha.config.HaGatewayConfiguration; +import io.trino.gateway.ha.config.MonitorConfiguration; +import io.trino.gateway.ha.config.NotifierConfiguration; +import io.trino.gateway.ha.module.ClusterStateListenerModule; +import io.trino.gateway.ha.router.BackendStateManager; +import io.trino.gateway.ha.router.RoutingManager; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInstance; + +import java.util.List; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + +@TestInstance(TestInstance.Lifecycle.PER_CLASS) +public class TestClusterStateListenerModule +{ + @Test + public void testGetClusterStatsObservers() + { + HaGatewayConfiguration config = mock(HaGatewayConfiguration.class); + MonitorConfiguration monitorConfig = mock(MonitorConfiguration.class); + NotifierConfiguration notifierConfiguration = mock(NotifierConfiguration.class); + when(config.getMonitor()).thenReturn(monitorConfig); + when(config.getNotifier()).thenReturn(notifierConfiguration); + when(notifierConfiguration.isEnabled()).thenReturn(true); + + RoutingManager routingManager = mock(RoutingManager.class); + BackendStateManager backendStateManager = mock(BackendStateManager.class); + + ClusterStateListenerModule module = new ClusterStateListenerModule(config, mock(Environment.class)); + + List observers = module.getClusterStatsObservers(routingManager, backendStateManager); + + assertThat(observers).hasSize(3); + assertThat(observers.get(2)).isInstanceOf(HealthChecker.class); + assertThat(module.getMonitorConfiguration()).isEqualTo(monitorConfig); + } +} From 482100fd7605397f81ead6694609e4921fef8944 Mon Sep 17 00:00:00 2001 From: prakharsapre Date: Tue, 9 Apr 2024 13:52:01 -0500 Subject: [PATCH 002/148] fix test classes --- .../gateway/ha/notifier/TestEmailNotifier.java | 16 ++++++++++------ .../module/TestClusterStateListenerModule.java | 2 +- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java b/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java index 53daf44d6..2f0c1149f 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java @@ -34,8 +34,10 @@ public class TestEmailNotifier @Test public void testSendNotificationCustomContent() { - NotifierConfiguration notifierConfiguration = mock(NotifierConfiguration.class); - when(notifierConfiguration.getCustomContent()).thenReturn("Custom content"); + NotifierConfiguration notifierConfiguration = new NotifierConfiguration(); + List recipients = Arrays.asList("recipient1@example.com", "recipient2@example.com"); + notifierConfiguration.setRecipients(recipients); + notifierConfiguration.setCustomContent("Custom content"); EmailNotifier emailNotifier = new EmailNotifier(notifierConfiguration); @@ -45,8 +47,10 @@ public void testSendNotificationCustomContent() @Test public void testSendNotificationNoCustomContent() { - NotifierConfiguration notifierConfiguration = mock(NotifierConfiguration.class); - when(notifierConfiguration.getCustomContent()).thenReturn(null); + NotifierConfiguration notifierConfiguration = new NotifierConfiguration(); + List recipients = Arrays.asList("recipient1@example.com", "recipient2@example.com"); + notifierConfiguration.setRecipients(recipients); + notifierConfiguration.setCustomContent(null); EmailNotifier emailNotifier = new EmailNotifier(notifierConfiguration); @@ -56,9 +60,9 @@ public void testSendNotificationNoCustomContent() @Test public void testSendEmailNotification() { - NotifierConfiguration notifierConfiguration = Mockito.mock(NotifierConfiguration.class); + NotifierConfiguration notifierConfiguration = new NotifierConfiguration(); List recipients = Arrays.asList("recipient1@example.com", "recipient2@example.com"); - when(notifierConfiguration.getRecipients()).thenReturn(recipients); + notifierConfiguration.setRecipients(recipients); EmailNotifier emailNotifier = Mockito.mock(EmailNotifier.class); diff --git a/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java b/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java index bf0c1cc0b..a8feeaf4a 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java +++ b/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java @@ -35,7 +35,7 @@ public class TestClusterStateListenerModule { @Test - public void testGetClusterStatsObservers() + public void testClusterStateListenerModule() { HaGatewayConfiguration config = mock(HaGatewayConfiguration.class); MonitorConfiguration monitorConfig = mock(MonitorConfiguration.class); From 100d9f7e4b22e775c05d40170a2c220b54e24d32 Mon Sep 17 00:00:00 2001 From: prakharsapre Date: Tue, 9 Apr 2024 15:36:21 -0500 Subject: [PATCH 003/148] remove unused imports --- .../java/io/trino/gateway/ha/notifier/TestEmailNotifier.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java b/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java index 2f0c1149f..8ef089af5 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/notifier/TestEmailNotifier.java @@ -23,10 +23,8 @@ import static org.mockito.Mockito.anyList; import static org.mockito.Mockito.anyString; -import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; -import static org.mockito.Mockito.when; @TestInstance(TestInstance.Lifecycle.PER_CLASS) public class TestEmailNotifier From 6d6bbd63052957bb4bd73a038152e5638b9ec620 Mon Sep 17 00:00:00 2001 From: andythsu Date: Tue, 27 Feb 2024 16:48:41 -0500 Subject: [PATCH 004/148] Allow customization of test containers image name --- .../CustomTrinoImageNameSubstitutor.java | 45 +++++++++++++++++++ .../test/resources/testcontainers.properties | 1 + 2 files changed, 46 insertions(+) create mode 100644 gateway-ha/src/test/java/io/trino/gateway/CustomTrinoImageNameSubstitutor.java create mode 100644 gateway-ha/src/test/resources/testcontainers.properties diff --git a/gateway-ha/src/test/java/io/trino/gateway/CustomTrinoImageNameSubstitutor.java b/gateway-ha/src/test/java/io/trino/gateway/CustomTrinoImageNameSubstitutor.java new file mode 100644 index 000000000..c31a9e5a4 --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/CustomTrinoImageNameSubstitutor.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway; + +import org.testcontainers.utility.DockerImageName; +import org.testcontainers.utility.ImageNameSubstitutor; + +/** + * We can use this class to override the images used by test containers, if the image has + * a different name from dockerhub. This class is used in testcontainers.properties file. + * TESTCONTAINERS_TRINO_IMAGE_SUBSTITUTE can be set as an environment variable. + */ +public class CustomTrinoImageNameSubstitutor + extends ImageNameSubstitutor +{ + private static final String TESTCONTAINERS_TRINO_IMAGE_SUBSTITUTE = "TESTCONTAINERS_TRINO_IMAGE_SUBSTITUTE"; + private static final String TRINO_IMAGE = "trinodb/trino"; + + @Override + public DockerImageName apply(DockerImageName dockerImageName) + { + String trinoImageSubstitute = System.getenv(TESTCONTAINERS_TRINO_IMAGE_SUBSTITUTE); + if (dockerImageName.getUnversionedPart().equals(TRINO_IMAGE) && trinoImageSubstitute != null) { + return DockerImageName.parse(trinoImageSubstitute).asCompatibleSubstituteFor(TRINO_IMAGE); + } + return dockerImageName; + } + + @Override + protected String getDescription() + { + return "custom Trino image name substitutor"; + } +} diff --git a/gateway-ha/src/test/resources/testcontainers.properties b/gateway-ha/src/test/resources/testcontainers.properties new file mode 100644 index 000000000..f6b206a96 --- /dev/null +++ b/gateway-ha/src/test/resources/testcontainers.properties @@ -0,0 +1 @@ +image.substitutor=io.trino.gateway.CustomTrinoImageNameSubstitutor From 26749aa5ad14e22f14b1088644c2d27fae889721 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Thu, 29 Feb 2024 09:31:10 +0900 Subject: [PATCH 005/148] Disallow JUnit assertions --- pom.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pom.xml b/pom.xml index 1da61fff4..d75bde69c 100644 --- a/pom.xml +++ b/pom.xml @@ -126,6 +126,21 @@ + + + org.apache.maven.plugins + maven-enforcer-plugin + + + + Use AssertJ assertions instead of JUnit + + org.junit.jupiter.api.Assertions.* + + + + + From 665e79ef66a8bb1af0650ae76dd0796c1d7c9e49 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Wed, 6 Mar 2024 02:13:25 +0900 Subject: [PATCH 006/148] Enforce errorprone UnnecessaryParentheses (#274) --- gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java | 2 +- .../main/java/io/trino/gateway/proxyserver/ProxyHandler.java | 2 +- pom.xml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 1da40581d..5008e5a22 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -258,7 +258,7 @@ private void registerAuthFilters(Environment environment, Injector injector) { environment .jersey() - .register(new AuthDynamicFeature((injector.getInstance(AuthFilter.class)))); + .register(new AuthDynamicFeature(injector.getInstance(AuthFilter.class))); logger.info("op=register type=auth filter item={}", AuthFilter.class); environment.jersey().register(RolesAllowedDynamicFeature.class); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java index c0635b586..00ef2ad66 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java @@ -112,7 +112,7 @@ protected String plainTextFromGz(byte[] compressed) protected boolean isCompressed(final byte[] compressed) { - return (compressed[0] == (byte) (GZIPInputStream.GZIP_MAGIC)) + return (compressed[0] == (byte) GZIPInputStream.GZIP_MAGIC) && (compressed[1] == (byte) (GZIPInputStream.GZIP_MAGIC >> 8)); } } diff --git a/pom.xml b/pom.xml index d75bde69c..eef16ef26 100644 --- a/pom.xml +++ b/pom.xml @@ -97,6 +97,7 @@ -XDcompilePolicy=simple -Xplugin:ErrorProne \ + -Xep:UnnecessaryParentheses:ERROR \ -Xep:UnusedVariable:ERROR From 8cdff258e288938cc60aebbb6787bc30cc3cd433 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Tue, 5 Mar 2024 22:35:39 +0900 Subject: [PATCH 007/148] Update testcontainers to 1.19.6 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index eef16ef26..2b32ec610 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ org.testcontainers testcontainers-bom - 1.19.4 + 1.19.6 pom import From 238a1abc717987011edfa9a52e1e1fb5c3068a7c Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Thu, 7 Mar 2024 02:52:51 +0900 Subject: [PATCH 008/148] Fix typo in issue link at release note (#275) --- docs/release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 54ec3fe53..23830b3fb 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -49,7 +49,7 @@ * Add support for OAuth 2 audience use. (https://github.com/trinodb/trino-gateway/pull/164) * Add quickstart scripts and documentation. (https://github.com/trinodb/trino-gateway/pull/110) * Add project logo. (https://github.com/trinodb/trino-gateway/pull/111) -* Prevent ignoring HTTP header configuration. (https://github.com/trinodb/trino-gateway/issue/100) +* Prevent ignoring HTTP header configuration. (https://github.com/trinodb/trino-gateway/issues/100) [Details about all merged pull requests](https://github.com/trinodb/trino-gateway/pull/168) From 137b404afa48b488aed20ec21cb3694c58687bdb Mon Sep 17 00:00:00 2001 From: ytwp <54202482+ytwp@users.noreply.github.com> Date: Thu, 7 Mar 2024 03:10:43 +0800 Subject: [PATCH 009/148] Replace user interface with a new modern UI - Includes new stack with Semi UI, Vite, React, TypeScript, and E-charts framework as major components - Removes Dropwizard UI usage, further enabling removal of Dropwizard altogether --- docs/security.md | 12 +- gateway-ha/pom.xml | 69 +- .../trino/gateway/ha/HaGatewayLauncher.java | 5 +- .../ha/config/HaGatewayConfiguration.java | 13 +- .../gateway/ha/config/OAuthConfiguration.java | 11 + .../io/trino/gateway/ha/domain/Result.java | 116 + .../io/trino/gateway/ha/domain/TableData.java | 72 + .../domain/request/GlobalPropertyRequest.java | 53 + .../request/QueryDistributionRequest.java | 40 + .../request/QueryGlobalPropertyRequest.java | 56 + .../domain/request/QueryHistoryRequest.java | 105 + .../request/QueryResourceGroupsRequest.java | 56 + .../domain/request/QuerySelectorsRequest.java | 56 + .../domain/request/ResourceGroupsRequest.java | 53 + .../ha/domain/request/RestLoginRequest.java | 49 + .../ha/domain/request/SelectorsRequest.java | 73 + .../ha/domain/response/BackendResponse.java | 46 + .../domain/response/DistributionResponse.java | 241 + .../ha/module/HaGatewayProviderModule.java | 25 +- .../ha/persistence/dao/QueryHistoryDao.java | 31 + .../ha/resource/EntityEditorResource.java | 62 - .../ha/resource/GatewayViewResource.java | 165 +- .../ha/resource/GatewayWebAppResource.java | 415 + .../gateway/ha/resource/LoginResource.java | 98 +- .../ha/router/HaQueryHistoryManager.java | 49 + .../ha/router/QueryHistoryManager.java | 8 + .../security/AuthorizedExceptionMapper.java | 35 + .../ha/security/LbFormAuthManager.java | 47 +- .../gateway/ha/security/LbOAuthManager.java | 31 +- .../ha/security/NoopAuthenticator.java | 3 +- .../io/trino/gateway/ha/util/PageUtil.java | 32 + .../src/main/resources/assets/css/common.css | 28 - .../assets/css/jquery.dataTables.min.css | 1 - .../src/main/resources/assets/img/favicon.ico | Bin 32038 -> 0 bytes .../main/resources/assets/js/entity-editor.js | 139 - .../main/resources/assets/js/hbar-chart.js | 107 - .../main/resources/assets/js/jquery-3.3.1.js | 10364 ----- .../assets/js/jquery.dataTables.min.js | 166 - .../js/jsonedit/img/jsoneditor-icons.svg | 893 - .../assets/js/jsonedit/jsoneditor.css | 929 - .../assets/js/jsonedit/jsoneditor.js | 36354 ---------------- .../assets/js/jsonedit/jsoneditor.map | 1 - .../assets/js/jsonedit/jsoneditor.min.css | 1 - .../assets/js/jsonedit/jsoneditor.min.js | 49 - .../main/resources/template/entity-view.ftl | 32 - .../src/main/resources/template/footer.ftl | 3 - .../main/resources/template/gateway-view.ftl | 93 - .../src/main/resources/template/header.ftl | 22 - .../main/resources/template/login-form.ftl | 51 - .../resources/template/query-history-view.ftl | 99 - .../ha/security/TestLbAuthenticator.java | 26 +- pom.xml | 6 - webapp/.env | 4 + webapp/.env.development | 4 + webapp/.env.production | 3 + webapp/.eslintrc.cjs | 20 + webapp/.gitignore | 26 + webapp/README.md | 26 + webapp/index.html | 13 + webapp/package.json | 41 + webapp/pnpm-lock.yaml | 3265 ++ webapp/public/logo.svg | 121 + webapp/src/App.tsx | 117 + webapp/src/api/base.ts | 138 + webapp/src/api/webapp/cluster.ts | 18 + webapp/src/api/webapp/dashboard.ts | 6 + webapp/src/api/webapp/global-property.ts | 21 + webapp/src/api/webapp/history.ts | 6 + webapp/src/api/webapp/login.ts | 21 + webapp/src/api/webapp/resource-group.ts | 22 + webapp/src/api/webapp/selector.ts | 22 + webapp/src/assets/logo.svg | 121 + webapp/src/components/cluster.module.scss | 8 + webapp/src/components/cluster.tsx | 211 + webapp/src/components/dashboard.module.scss | 26 + webapp/src/components/dashboard.tsx | 248 + webapp/src/components/error.tsx | 40 + webapp/src/components/history.module.scss | 8 + webapp/src/components/history.tsx | 122 + webapp/src/components/layout.module.scss | 181 + webapp/src/components/layout.tsx | 193 + webapp/src/components/login.module.scss | 104 + webapp/src/components/login.tsx | 130 + .../src/components/resource-group.module.scss | 8 + webapp/src/components/resource-group.tsx | 283 + webapp/src/components/selector.module.scss | 8 + webapp/src/components/selector.tsx | 208 + webapp/src/constant.ts | 4 + webapp/src/locales/en_US.ts | 81 + webapp/src/locales/index.ts | 93 + webapp/src/main.tsx | 9 + webapp/src/router.tsx | 121 + webapp/src/store/access.ts | 96 + webapp/src/store/config.ts | 55 + webapp/src/store/index.ts | 2 + webapp/src/styles/animation.scss | 23 + webapp/src/styles/globals.scss | 42 + webapp/src/types/cluster.d.ts | 9 + webapp/src/types/dashboard.d.ts | 24 + webapp/src/types/history.d.ts | 13 + webapp/src/types/resource-group.d.ts | 15 + webapp/src/types/selector.d.ts | 9 + webapp/src/utils/merge.ts | 9 + webapp/src/utils/time.ts | 41 + webapp/src/utils/token.ts | 22 + webapp/src/utils/utils.ts | 171 + webapp/src/vite-env.d.ts | 2 + webapp/tsconfig.json | 25 + webapp/tsconfig.node.json | 10 + webapp/vite.config.ts | 24 + 110 files changed, 8535 insertions(+), 49649 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/AuthorizedExceptionMapper.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/util/PageUtil.java delete mode 100644 gateway-ha/src/main/resources/assets/css/common.css delete mode 100644 gateway-ha/src/main/resources/assets/css/jquery.dataTables.min.css delete mode 100644 gateway-ha/src/main/resources/assets/img/favicon.ico delete mode 100644 gateway-ha/src/main/resources/assets/js/entity-editor.js delete mode 100644 gateway-ha/src/main/resources/assets/js/hbar-chart.js delete mode 100644 gateway-ha/src/main/resources/assets/js/jquery-3.3.1.js delete mode 100644 gateway-ha/src/main/resources/assets/js/jquery.dataTables.min.js delete mode 100644 gateway-ha/src/main/resources/assets/js/jsonedit/img/jsoneditor-icons.svg delete mode 100644 gateway-ha/src/main/resources/assets/js/jsonedit/jsoneditor.css delete mode 100644 gateway-ha/src/main/resources/assets/js/jsonedit/jsoneditor.js delete mode 100644 gateway-ha/src/main/resources/assets/js/jsonedit/jsoneditor.map delete mode 100644 gateway-ha/src/main/resources/assets/js/jsonedit/jsoneditor.min.css delete mode 100644 gateway-ha/src/main/resources/assets/js/jsonedit/jsoneditor.min.js delete mode 100644 gateway-ha/src/main/resources/template/entity-view.ftl delete mode 100644 gateway-ha/src/main/resources/template/footer.ftl delete mode 100644 gateway-ha/src/main/resources/template/gateway-view.ftl delete mode 100644 gateway-ha/src/main/resources/template/header.ftl delete mode 100644 gateway-ha/src/main/resources/template/login-form.ftl delete mode 100644 gateway-ha/src/main/resources/template/query-history-view.ftl create mode 100644 webapp/.env create mode 100644 webapp/.env.development create mode 100644 webapp/.env.production create mode 100644 webapp/.eslintrc.cjs create mode 100644 webapp/.gitignore create mode 100644 webapp/README.md create mode 100644 webapp/index.html create mode 100644 webapp/package.json create mode 100644 webapp/pnpm-lock.yaml create mode 100644 webapp/public/logo.svg create mode 100644 webapp/src/App.tsx create mode 100644 webapp/src/api/base.ts create mode 100644 webapp/src/api/webapp/cluster.ts create mode 100644 webapp/src/api/webapp/dashboard.ts create mode 100644 webapp/src/api/webapp/global-property.ts create mode 100644 webapp/src/api/webapp/history.ts create mode 100644 webapp/src/api/webapp/login.ts create mode 100644 webapp/src/api/webapp/resource-group.ts create mode 100644 webapp/src/api/webapp/selector.ts create mode 100644 webapp/src/assets/logo.svg create mode 100644 webapp/src/components/cluster.module.scss create mode 100644 webapp/src/components/cluster.tsx create mode 100644 webapp/src/components/dashboard.module.scss create mode 100644 webapp/src/components/dashboard.tsx create mode 100644 webapp/src/components/error.tsx create mode 100644 webapp/src/components/history.module.scss create mode 100644 webapp/src/components/history.tsx create mode 100644 webapp/src/components/layout.module.scss create mode 100644 webapp/src/components/layout.tsx create mode 100644 webapp/src/components/login.module.scss create mode 100644 webapp/src/components/login.tsx create mode 100644 webapp/src/components/resource-group.module.scss create mode 100644 webapp/src/components/resource-group.tsx create mode 100644 webapp/src/components/selector.module.scss create mode 100644 webapp/src/components/selector.tsx create mode 100644 webapp/src/constant.ts create mode 100644 webapp/src/locales/en_US.ts create mode 100644 webapp/src/locales/index.ts create mode 100644 webapp/src/main.tsx create mode 100644 webapp/src/router.tsx create mode 100644 webapp/src/store/access.ts create mode 100644 webapp/src/store/config.ts create mode 100644 webapp/src/store/index.ts create mode 100644 webapp/src/styles/animation.scss create mode 100644 webapp/src/styles/globals.scss create mode 100644 webapp/src/types/cluster.d.ts create mode 100644 webapp/src/types/dashboard.d.ts create mode 100644 webapp/src/types/history.d.ts create mode 100644 webapp/src/types/resource-group.d.ts create mode 100644 webapp/src/types/selector.d.ts create mode 100644 webapp/src/utils/merge.ts create mode 100644 webapp/src/utils/time.ts create mode 100644 webapp/src/utils/token.ts create mode 100644 webapp/src/utils/utils.ts create mode 100644 webapp/src/vite-env.d.ts create mode 100644 webapp/tsconfig.json create mode 100644 webapp/tsconfig.node.json create mode 100644 webapp/vite.config.ts diff --git a/docs/security.md b/docs/security.md index 3860441cf..d6a63417d 100644 --- a/docs/security.md +++ b/docs/security.md @@ -60,6 +60,7 @@ authentication: authorizationEndpoint: jwkEndpoint: redirectUrl: + redirectWebUrl: userIdField: scopes: - s1 @@ -89,15 +90,16 @@ authentication: The authentication happens with the pre-defined users from the configuration file. To define the preset user use the following section. +Please note that 'privileges' can only be a combination of 'ADMIN', 'USER', and 'API', with '_' used for segmentation. ``` presetUsers: user1: password: - privileges: "lb_admin, lb_user" + privileges: ADMIN_USER user2: password: - privileges: "lb_api" + privileges: API ``` Also provide a random key pair in RSA format. @@ -146,9 +148,9 @@ LDAP Authorization is also supported by adding user attribute configs in file. ``` # Roles should be in regex format authorization: - admin: 'lb_admin' - user: 'lb_user' - api: 'lb_api' + admin: (.*)ADMIN(.*) + user: (.*)USER(.*) + api: (.*)API(.*) ldapConfigPath: '' ``` diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 18f11084e..2f1855aa2 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -17,6 +17,7 @@ development io.trino.gateway.ha.HaGatewayLauncher + webapp 2.3 @@ -208,11 +209,6 @@ - - io.dropwizard - dropwizard-views - - io.dropwizard.metrics metrics-core @@ -552,6 +548,69 @@ + + org.apache.maven.plugins + maven-resources-plugin + + + copy static + + copy-resources + + generate-resources + + src/main/resources/static + true + + + ${project.basedir}/../${frontend.project.name}/dist + + + + + + + + + com.github.eirslett + frontend-maven-plugin + 1.12.1 + + ${project.basedir}/../${frontend.project.name} + + + + install node and pnpm + + install-node-and-pnpm + + + v18.9.1 + 8.6.12 + + + + install + + pnpm + + generate-resources + + install --ignore-scripts + + + + build + + pnpm + + + run build + + + + + org.javalite db-migrator-maven-plugin diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index 90ec80044..9df16593b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -15,7 +15,6 @@ import io.dropwizard.assets.AssetsBundle; import io.dropwizard.core.setup.Bootstrap; -import io.dropwizard.views.common.ViewBundle; import io.trino.gateway.baseapp.BaseApp; import io.trino.gateway.ha.config.HaGatewayConfiguration; @@ -31,8 +30,8 @@ public HaGatewayLauncher(String... basePackages) public void initialize(Bootstrap bootstrap) { super.initialize(bootstrap); - bootstrap.addBundle(new ViewBundle<>()); - bootstrap.addBundle(new AssetsBundle("/assets", "/assets", null, "assets")); + bootstrap.addBundle(new AssetsBundle("/static/assets", "/assets", null, "assets")); + bootstrap.addBundle(new AssetsBundle("/static", "/logo.svg", "logo.svg", "logo.svg")); } public static void main(String[] args) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 44f958dbc..2a4fabc32 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -30,7 +30,8 @@ public class HaGatewayConfiguration private RoutingRulesConfiguration routingRules = new RoutingRulesConfiguration(); private AuthenticationConfiguration authentication; private AuthorizationConfiguration authorization; - private Map presetUsers = new HashMap(); + private Map presetUsers = new HashMap<>(); + private Map pagePermissions = new HashMap<>(); private BackendStateConfiguration backendState; private ClusterStatsConfiguration clusterStatsConfiguration; private List extraWhitelistPaths = new ArrayList<>(); @@ -117,6 +118,16 @@ public void setPresetUsers(Map presetUsers) this.presetUsers = presetUsers; } + public Map getPagePermissions() + { + return this.pagePermissions; + } + + public void setPagePermissions(Map pagePermissions) + { + this.pagePermissions = pagePermissions; + } + public BackendStateConfiguration getBackendState() { return this.backendState; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java index 942bcaeca..a65f1d83b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java @@ -27,6 +27,7 @@ public class OAuthConfiguration private String redirectUrl; private String userIdField; private List audiences; + private String redirectWebUrl; public OAuthConfiguration(String issuer, String clientId, String clientSecret, String tokenEndpoint, String authorizationEndpoint, String jwkEndpoint, List scopes, String redirectUrl, String userIdField, List audiences) { @@ -143,4 +144,14 @@ public void setAudiences(List audiences) { this.audiences = audiences; } + + public String getRedirectWebUrl() + { + return this.redirectWebUrl; + } + + public void setRedirectWebUrl(String redirectWebUrl) + { + this.redirectWebUrl = redirectWebUrl; + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java new file mode 100644 index 000000000..ca21a7197 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java @@ -0,0 +1,116 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain; + +import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.ws.rs.core.Response; + +import java.io.Serial; +import java.io.Serializable; + +public class Result + implements Serializable +{ + @Serial + private static final long serialVersionUID = 1L; + + public static final int SUCCESS = 200; + + public static final int FAIL = 500; + + @JsonProperty + private int code; + + @JsonProperty + private String msg; + + @JsonProperty + private T data; + + public static Result ok() + { + return restResult(null, SUCCESS, "Successful."); + } + + public static Result ok(T data) + { + return restResult(data, SUCCESS, "Successful."); + } + + public static Result ok(String msg) + { + return restResult(null, SUCCESS, msg); + } + + public static Result ok(String msg, T data) + { + return restResult(data, SUCCESS, msg); + } + + public static Result fail(String msg) + { + return restResult(null, FAIL, msg); + } + + public static Result fail(Response.Status status) + { + return restResult(null, status.getStatusCode(), status.getReasonPhrase()); + } + + private static Result restResult(T data, int code, String msg) + { + Result r = new Result<>(); + r.setCode(code); + r.setData(data); + r.setMsg(msg); + return r; + } + + public static Boolean isSuccess(Result ret) + { + return Result.SUCCESS == ret.getCode(); + } + + public Result() {} + + public int getCode() + { + return code; + } + + public void setCode(int code) + { + this.code = code; + } + + public String getMsg() + { + return msg; + } + + public void setMsg(String msg) + { + this.msg = msg; + } + + public T getData() + { + return data; + } + + public void setData(T data) + { + this.data = data; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java new file mode 100644 index 000000000..cc32e7644 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java @@ -0,0 +1,72 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.io.Serial; +import java.io.Serializable; +import java.util.List; + +public class TableData + implements Serializable +{ + @Serial + private static final long serialVersionUID = 1L; + + /** + * Total number of table data + */ + @JsonProperty + private long total; + + /** + * page data + */ + @JsonProperty + private List rows; + + public TableData(List list, long total) + { + this.rows = list; + this.total = total; + } + + public static TableData build(List list, long total) + { + return new TableData<>(list, total); + } + + public TableData() {} + + public long getTotal() + { + return total; + } + + public void setTotal(long total) + { + this.total = total; + } + + public List getRows() + { + return rows; + } + + public void setRows(List rows) + { + this.rows = rows; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java new file mode 100644 index 000000000..756452549 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import io.trino.gateway.ha.router.ResourceGroupsManager; + +/** + * Parameters for adding, modifying, and deleting GlobalProperty. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class GlobalPropertyRequest +{ + /** + * Optional, defaults to the Schema of the configuration file. + */ + @JsonProperty + private String useSchema; + @JsonProperty + private ResourceGroupsManager.GlobalPropertiesDetail data; + + public String getUseSchema() + { + return useSchema; + } + + public void setUseSchema(String useSchema) + { + this.useSchema = useSchema; + } + + public ResourceGroupsManager.GlobalPropertiesDetail getData() + { + return data; + } + + public void setData(ResourceGroupsManager.GlobalPropertiesDetail data) + { + this.data = data; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java new file mode 100644 index 000000000..7d41e8973 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java @@ -0,0 +1,40 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for Distribution + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class QueryDistributionRequest +{ + /** + * Latest statistics for multiple hours. + */ + @JsonProperty + private Integer latestHour = 1; + + public Integer getLatestHour() + { + return latestHour; + } + + public void setLatestHour(Integer latestHour) + { + this.latestHour = latestHour; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java new file mode 100644 index 000000000..79f65eb0d --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for GlobalProperty + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class QueryGlobalPropertyRequest +{ + /** + * Optional, defaults to the Schema of the configuration file. + */ + @JsonProperty + private String useSchema; + + /** + * Optional, you can query the configuration for a specific name. + */ + @JsonProperty + private String name; + + public String getUseSchema() + { + return useSchema; + } + + public void setUseSchema(String useSchema) + { + this.useSchema = useSchema; + } + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java new file mode 100644 index 000000000..929311f3e --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java @@ -0,0 +1,105 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for History + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class QueryHistoryRequest +{ + /** + * page index + */ + @JsonProperty + private Integer page = 1; + + /** + * page size + */ + @JsonProperty + private Integer size = 10; + + /** + * Query histories of specified user. + * ADMIN role is optional, other roles are mandatory. + */ + @JsonProperty + private String user; + + /** + * Optional, you can query the history based on the backendUrl. + */ + @JsonProperty + private String backendUrl; + + /** + * Optional, you can query the query history based on the queryId of Trino. + */ + @JsonProperty + private String queryId; + + public Integer getPage() + { + return page; + } + + public void setPage(Integer page) + { + this.page = page; + } + + public Integer getSize() + { + return size; + } + + public void setSize(Integer size) + { + this.size = size; + } + + public String getUser() + { + return user; + } + + public void setUser(String user) + { + this.user = user; + } + + public String getBackendUrl() + { + return backendUrl; + } + + public void setBackendUrl(String backendUrl) + { + this.backendUrl = backendUrl; + } + + public String getQueryId() + { + return queryId; + } + + public void setQueryId(String queryId) + { + this.queryId = queryId; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java new file mode 100644 index 000000000..50ce3eba7 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for ResourceGroups + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class QueryResourceGroupsRequest +{ + /** + * Optional, defaults to the Schema of the configuration file. + */ + @JsonProperty + private String useSchema; + + /** + * Query a single item by id. + */ + @JsonProperty + private Long resourceGroupId; + + public String getUseSchema() + { + return useSchema; + } + + public void setUseSchema(String useSchema) + { + this.useSchema = useSchema; + } + + public Long getResourceGroupId() + { + return resourceGroupId; + } + + public void setResourceGroupId(Long resourceGroupId) + { + this.resourceGroupId = resourceGroupId; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java new file mode 100644 index 000000000..1ffeaf09a --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java @@ -0,0 +1,56 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Query parameters for Selectors + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class QuerySelectorsRequest +{ + /** + * Optional, defaults to the Schema of the configuration file. + */ + @JsonProperty + private String useSchema; + + /** + * Query the selectors under the resource Group. + */ + @JsonProperty + private Long resourceGroupId; + + public String getUseSchema() + { + return useSchema; + } + + public void setUseSchema(String useSchema) + { + this.useSchema = useSchema; + } + + public Long getResourceGroupId() + { + return resourceGroupId; + } + + public void setResourceGroupId(Long resourceGroupId) + { + this.resourceGroupId = resourceGroupId; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java new file mode 100644 index 000000000..862f78ad9 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import io.trino.gateway.ha.router.ResourceGroupsManager; + +/** + * Parameters for adding, modifying, and deleting ResourceGroups. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class ResourceGroupsRequest +{ + /** + * Optional, defaults to the Schema of the configuration file. + */ + @JsonProperty + private String useSchema; + @JsonProperty + private ResourceGroupsManager.ResourceGroupsDetail data; + + public String getUseSchema() + { + return useSchema; + } + + public void setUseSchema(String useSchema) + { + this.useSchema = useSchema; + } + + public ResourceGroupsManager.ResourceGroupsDetail getData() + { + return data; + } + + public void setData(ResourceGroupsManager.ResourceGroupsDetail data) + { + this.data = data; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java new file mode 100644 index 000000000..47fa1db3c --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java @@ -0,0 +1,49 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Receiving form login parameters. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class RestLoginRequest +{ + @JsonProperty + private String username; + @JsonProperty + private String password; + + public String getUsername() + { + return username; + } + + public void setUsername(String username) + { + this.username = username; + } + + public String getPassword() + { + return password; + } + + public void setPassword(String password) + { + this.password = password; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java new file mode 100644 index 000000000..714420c7b --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.request; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import io.trino.gateway.ha.router.ResourceGroupsManager; + +/** + * Parameters for adding, modifying, and deleting Selectors. + */ +@JsonIgnoreProperties(ignoreUnknown = true) +public class SelectorsRequest +{ + /** + * Optional, defaults to the Schema of the configuration file. + */ + @JsonProperty + private String useSchema; + + /** + * This field is used for adding, modifying, and deleting. + */ + @JsonProperty + private ResourceGroupsManager.SelectorsDetail data; + + /** + * This field is only used for modification + */ + @JsonProperty + private ResourceGroupsManager.SelectorsDetail oldData; + + public String getUseSchema() + { + return useSchema; + } + + public void setUseSchema(String useSchema) + { + this.useSchema = useSchema; + } + + public ResourceGroupsManager.SelectorsDetail getData() + { + return data; + } + + public void setData(ResourceGroupsManager.SelectorsDetail data) + { + this.data = data; + } + + public ResourceGroupsManager.SelectorsDetail getOldData() + { + return oldData; + } + + public void setOldData(ResourceGroupsManager.SelectorsDetail oldData) + { + this.oldData = oldData; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java new file mode 100644 index 000000000..dea11f417 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.response; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.trino.gateway.ha.config.ProxyBackendConfiguration; + +public class BackendResponse + extends ProxyBackendConfiguration +{ + @JsonProperty + private Integer queued; + @JsonProperty + private Integer running; + + public Integer getQueued() + { + return queued; + } + + public void setQueued(Integer queued) + { + this.queued = queued; + } + + public Integer getRunning() + { + return running; + } + + public void setRunning(Integer running) + { + this.running = running; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java new file mode 100644 index 000000000..253b48cf0 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java @@ -0,0 +1,241 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.domain.response; + +import com.fasterxml.jackson.annotation.JsonProperty; + +import java.util.List; +import java.util.Map; + +public class DistributionResponse +{ + @JsonProperty + private Integer totalBackendCount; + @JsonProperty + private Integer offlineBackendCount; + @JsonProperty + private Integer onlineBackendCount; + + /** + * Total number of queries. + * The QueryDistributionRequest's latestHour parameter will affect the statistical range. + */ + @JsonProperty + private Long totalQueryCount; + + /** + * Average number of queries per minute. + * The QueryDistributionRequest's latestHour parameter will affect the statistical range. + */ + @JsonProperty + private Double averageQueryCountMinute; + + /** + * Average number of queries per second. + * The QueryDistributionRequest's latestHour parameter will affect the statistical range. + */ + @JsonProperty + private Double averageQueryCountSecond; + + /** + * Pie chart of the number of backend queries. + * The QueryDistributionRequest's latestHour parameter will affect the statistical range. + */ + @JsonProperty + private List distributionChart; + + /** + * Line graph of the number of queries per minute for each backend. + * The QueryDistributionRequest's latestHour parameter will affect the statistical range. + */ + @JsonProperty + private Map> lineChart; + @JsonProperty + private String startTime; + + public String getStartTime() + { + return startTime; + } + + public void setStartTime(String startTime) + { + this.startTime = startTime; + } + + public Integer getTotalBackendCount() + { + return totalBackendCount; + } + + public void setTotalBackendCount(Integer totalBackendCount) + { + this.totalBackendCount = totalBackendCount; + } + + public Integer getOfflineBackendCount() + { + return offlineBackendCount; + } + + public void setOfflineBackendCount(Integer offlineBackendCount) + { + this.offlineBackendCount = offlineBackendCount; + } + + public Integer getOnlineBackendCount() + { + return onlineBackendCount; + } + + public void setOnlineBackendCount(Integer onlineBackendCount) + { + this.onlineBackendCount = onlineBackendCount; + } + + public Long getTotalQueryCount() + { + return totalQueryCount; + } + + public void setTotalQueryCount(Long totalQueryCount) + { + this.totalQueryCount = totalQueryCount; + } + + public Double getAverageQueryCountMinute() + { + return averageQueryCountMinute; + } + + public void setAverageQueryCountMinute(Double averageQueryCountMinute) + { + this.averageQueryCountMinute = averageQueryCountMinute; + } + + public Double getAverageQueryCountSecond() + { + return averageQueryCountSecond; + } + + public void setAverageQueryCountSecond(Double averageQueryCountSecond) + { + this.averageQueryCountSecond = averageQueryCountSecond; + } + + public List getDistributionChart() + { + return distributionChart; + } + + public void setDistributionChart(List distributionChart) + { + this.distributionChart = distributionChart; + } + + public Map> getLineChart() + { + return lineChart; + } + + public void setLineChart(Map> lineChart) + { + this.lineChart = lineChart; + } + + public static class DistributionChart + { + private String backendUrl; + private Long queryCount; + private String name; + + public String getBackendUrl() + { + return backendUrl; + } + + public void setBackendUrl(String backendUrl) + { + this.backendUrl = backendUrl; + } + + public Long getQueryCount() + { + return queryCount; + } + + public void setQueryCount(Long queryCount) + { + this.queryCount = queryCount; + } + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + } + + public static class LineChart + { + private String minute; + private String backendUrl; + private Long queryCount; + private String name; + + public String getMinute() + { + return minute; + } + + public void setMinute(String minute) + { + this.minute = minute; + } + + public String getBackendUrl() + { + return backendUrl; + } + + public void setBackendUrl(String backendUrl) + { + this.backendUrl = backendUrl; + } + + public Long getQueryCount() + { + return queryCount; + } + + public void setQueryCount(Long queryCount) + { + this.queryCount = queryCount; + } + + public String getName() + { + return name; + } + + public void setName(String name) + { + this.name = name; + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 8f7edba34..97f5c7ace 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -85,16 +85,14 @@ public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment resourceGroupsManager = new HaResourceGroupsManager(connectionManager); gatewayBackendManager = new HaGatewayManager(jdbi); queryHistoryManager = new HaQueryHistoryManager(jdbi); - routingManager = - new HaRoutingManager(gatewayBackendManager, queryHistoryManager); + routingManager = new HaRoutingManager(gatewayBackendManager, queryHistoryManager); Map presetUsers = configuration.getPresetUsers(); oauthManager = getOAuthManager(configuration); formAuthManager = getFormAuthManager(configuration); - authorizationManager = new AuthorizationManager(configuration.getAuthorization(), - presetUsers); + authorizationManager = new AuthorizationManager(configuration.getAuthorization(), presetUsers); authenticationFilter = getAuthFilter(configuration); backendStateConnectionManager = new BackendStateManager(); extraWhitelistPaths = configuration.getExtraWhitelistPaths(); @@ -103,9 +101,8 @@ public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment private LbOAuthManager getOAuthManager(HaGatewayConfiguration configuration) { AuthenticationConfiguration authenticationConfiguration = configuration.getAuthentication(); - if (authenticationConfiguration != null - && authenticationConfiguration.getOauth() != null) { - return new LbOAuthManager(authenticationConfiguration.getOauth()); + if (authenticationConfiguration != null && authenticationConfiguration.getOauth() != null) { + return new LbOAuthManager(authenticationConfiguration.getOauth(), configuration.getPagePermissions()); } return null; } @@ -113,10 +110,9 @@ private LbOAuthManager getOAuthManager(HaGatewayConfiguration configuration) private LbFormAuthManager getFormAuthManager(HaGatewayConfiguration configuration) { AuthenticationConfiguration authenticationConfiguration = configuration.getAuthentication(); - if (authenticationConfiguration != null - && authenticationConfiguration.getForm() != null) { + if (authenticationConfiguration != null && authenticationConfiguration.getForm() != null) { return new LbFormAuthManager(authenticationConfiguration.getForm(), - configuration.getPresetUsers()); + configuration.getPresetUsers(), configuration.getPagePermissions()); } return null; } @@ -128,8 +124,7 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c String defaultType = config.getDefaultType(); if (oauthManager != null) { authFilters.add(new LbFilter.Builder() - .setAuthenticator(new LbAuthenticator(oauthManager, - authorizationManager)) + .setAuthenticator(new LbAuthenticator(oauthManager, authorizationManager)) .setAuthorizer(authorizer) .setUnauthorizedHandler(new LbUnauthorizedHandler(defaultType)) .setPrefix("Bearer") @@ -138,16 +133,14 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c if (formAuthManager != null) { authFilters.add(new LbFilter.Builder() - .setAuthenticator(new FormAuthenticator(formAuthManager, - authorizationManager)) + .setAuthenticator(new FormAuthenticator(formAuthManager, authorizationManager)) .setAuthorizer(authorizer) .setUnauthorizedHandler(new LbUnauthorizedHandler(defaultType)) .setPrefix("Bearer") .buildAuthFilter()); authFilters.add(new BasicCredentialAuthFilter.Builder() - .setAuthenticator(new ApiAuthenticator(formAuthManager, - authorizationManager)) + .setAuthenticator(new ApiAuthenticator(formAuthManager, authorizationManager)) .setAuthorizer(authorizer) .setUnauthorizedHandler(new LbUnauthorizedHandler(defaultType)) .setPrefix("Basic") diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistoryDao.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistoryDao.java index b2bdbe7d6..c95592539 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistoryDao.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistoryDao.java @@ -13,10 +13,15 @@ */ package io.trino.gateway.ha.persistence.dao; +import org.jdbi.v3.core.mapper.MapMapper; +import org.jdbi.v3.sqlobject.customizer.Bind; +import org.jdbi.v3.sqlobject.customizer.Define; import org.jdbi.v3.sqlobject.statement.SqlQuery; import org.jdbi.v3.sqlobject.statement.SqlUpdate; +import org.jdbi.v3.sqlobject.statement.UseRowMapper; import java.util.List; +import java.util.Map; public interface QueryHistoryDao { @@ -41,6 +46,32 @@ public interface QueryHistoryDao """) String findBackendUrlByQueryId(String queryId); + @SqlQuery(""" + SELECT * FROM query_history + WHERE 1 = 1 + ORDER BY created DESC + LIMIT :limit + OFFSET :offset + """) + List pageQueryHistory(@Define("condition") String condition, @Bind("limit") int limit, @Bind("offset") int offset); + + @SqlQuery(""" + SELECT count(1) FROM query_history + WHERE 1 = 1 + """) + Long count(@Define("condition") String condition); + + @SqlQuery(""" + SELECT CONCAT(FLOOR(created / 1000 / 60)) AS minute, + backend_url AS backend_url, + COUNT(1) AS query_count + FROM query_history + WHERE created > :created + GROUP BY minute, backend_url + """) + @UseRowMapper(MapMapper.class) + List> findDistribution(long created); + @SqlUpdate(""" INSERT INTO query_history (query_id, query_text, backend_url, user_name, source, created) VALUES (:queryId, :queryText, :backendUrl, :userName, :source, :created) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java index 50970e78c..6065ca190 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java @@ -17,7 +17,6 @@ import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; import com.google.inject.Inject; -import io.dropwizard.views.common.View; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.ha.router.GatewayBackendManager; import io.trino.gateway.ha.router.ResourceGroupsManager; @@ -31,20 +30,15 @@ import jakarta.ws.rs.Produces; import jakarta.ws.rs.QueryParam; import jakarta.ws.rs.WebApplicationException; -import jakarta.ws.rs.core.Context; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; -import jakarta.ws.rs.core.SecurityContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; -import java.nio.charset.Charset; import java.util.Arrays; import java.util.List; -import java.util.Objects; -import static com.google.common.base.MoreObjects.toStringHelper; import static io.trino.gateway.ha.router.ResourceGroupsManager.ResourceGroupsDetail; import static io.trino.gateway.ha.router.ResourceGroupsManager.SelectorsDetail; import static java.util.Objects.requireNonNull; @@ -68,13 +62,6 @@ public EntityEditorResource(GatewayBackendManager gatewayBackendManager, Resourc this.routingManager = requireNonNull(routingManager, "routingManager is null"); } - @GET - @Produces(MediaType.TEXT_HTML) - public EntityView entityUi(@Context SecurityContext securityContext) - { - return new EntityView("/template/entity-view.ftl", securityContext); - } - @GET @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) @@ -151,53 +138,4 @@ public Response getAllEntitiesForType( } return Response.ok(ImmutableList.of()).build(); } - - public static class EntityView - extends View - { - private String displayName; - - protected EntityView(String templateName, SecurityContext securityContext) - { - super(templateName, Charset.defaultCharset()); - setDisplayName(securityContext.getUserPrincipal().getName()); - } - - public String getDisplayName() - { - return this.displayName; - } - - public void setDisplayName(String displayName) - { - this.displayName = displayName; - } - - @Override - public boolean equals(Object o) - { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - EntityView that = (EntityView) o; - return Objects.equals(displayName, that.displayName); - } - - @Override - public int hashCode() - { - return Objects.hash(displayName); - } - - @Override - public String toString() - { - return toStringHelper(this) - .add("displayName", displayName) - .toString(); - } - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java index 90294520e..1cac430e4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java @@ -14,9 +14,7 @@ package io.trino.gateway.ha.resource; import com.google.inject.Inject; -import io.dropwizard.views.common.View; import io.trino.gateway.ha.config.ProxyBackendConfiguration; -import io.trino.gateway.ha.router.BackendStateManager; import io.trino.gateway.ha.router.GatewayBackendManager; import io.trino.gateway.ha.router.QueryHistoryManager; import io.trino.gateway.ha.security.LbPrincipal; @@ -26,35 +24,27 @@ import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.Context; import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.SecurityContext; -import java.nio.charset.Charset; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.Optional; -import java.util.stream.Collectors; -import static com.google.common.base.MoreObjects.toStringHelper; import static java.util.Objects.requireNonNull; -@RolesAllowed("USER") @Path("/") public class GatewayViewResource { - private static final long START_TIME = System.currentTimeMillis(); - private final GatewayBackendManager gatewayBackendManager; private final QueryHistoryManager queryHistoryManager; - private final BackendStateManager backendStateManager; @Inject - public GatewayViewResource(GatewayBackendManager gatewayBackendManager, QueryHistoryManager queryHistoryManager, BackendStateManager backendStateManager) + public GatewayViewResource(GatewayBackendManager gatewayBackendManager, QueryHistoryManager queryHistoryManager) { this.gatewayBackendManager = requireNonNull(gatewayBackendManager, "gatewayBackendManager is null"); this.queryHistoryManager = requireNonNull(queryHistoryManager, "queryHistoryManager is null"); - this.backendStateManager = requireNonNull(backendStateManager, "backendStateManager is null"); } private Optional getUserNameForQueryHistory(SecurityContext securityContext) @@ -70,47 +60,13 @@ private Optional getUserNameForQueryHistory(SecurityContext securityCont @GET @Produces(MediaType.TEXT_HTML) - public GatewayView getQueryDetailsView(@Context SecurityContext securityContext) - { - GatewayView queryHistoryView = new GatewayView("/template/query-history-view.ftl", - securityContext); - - // Get all active backends - queryHistoryView.setBackendConfigurations( - gatewayBackendManager.getAllBackends()); - - Optional userName = getUserNameForQueryHistory(securityContext); - queryHistoryView.setQueryHistory(queryHistoryManager.fetchQueryHistory(userName)); - queryHistoryView.setQueryDistribution(getQueryHistoryDistribution(securityContext)); - return queryHistoryView; - } - - @GET - @Produces(MediaType.TEXT_HTML) - @Path("viewgateway") - public GatewayView getGatewayView(@Context SecurityContext securityContext) + public Response getIndex() { - GatewayView gatewayView = new GatewayView("/template/gateway-view.ftl", - securityContext); - // Get all Backends - gatewayView.setBackendConfigurations( - gatewayBackendManager.getAllBackends()); - - Map backendStates = gatewayBackendManager - .getAllBackends() - .stream() - .map(backendStateManager::getBackendState) - .collect(Collectors.toMap(s -> s.name(), s -> s)); - - gatewayView.setBackendStates(backendStates); - - Optional userName = getUserNameForQueryHistory(securityContext); - gatewayView.setQueryHistory(queryHistoryManager.fetchQueryHistory(userName)); - gatewayView.setQueryDistribution(getQueryHistoryDistribution(securityContext)); - return gatewayView; + return Response.ok(getClass().getResourceAsStream("/static/index.html")).build(); } @GET + @RolesAllowed("USER") @Path("api/queryHistory") @Produces(MediaType.APPLICATION_JSON) public List getQueryHistory(@Context SecurityContext @@ -121,6 +77,7 @@ public List getQueryHistory(@Context SecurityCo } @GET + @RolesAllowed("USER") @Path("api/activeBackends") @Produces(MediaType.APPLICATION_JSON) public List getActiveBackends() @@ -129,6 +86,7 @@ public List getActiveBackends() } @GET + @RolesAllowed("USER") @Path("api/queryHistoryDistribution") @Produces(MediaType.APPLICATION_JSON) public Map getQueryHistoryDistribution(@Context SecurityContext @@ -159,113 +117,4 @@ public Map getQueryHistoryDistribution(@Context SecurityContext }); return clusterToQueryCount; } - - public static class GatewayView - extends View - { - private final long gatewayStartTime = START_TIME; - private String displayName; - private List backendConfigurations; - private List queryHistory; - private Map backendStates; - private Map queryDistribution; - - protected GatewayView(String templateName, SecurityContext securityContext) - { - super(templateName, Charset.defaultCharset()); - setDisplayName(securityContext.getUserPrincipal().getName()); - } - - public long getGatewayStartTime() - { - return this.gatewayStartTime; - } - - public String getDisplayName() - { - return this.displayName; - } - - public void setDisplayName(String displayName) - { - this.displayName = displayName; - } - - public List getBackendConfigurations() - { - return this.backendConfigurations; - } - - public void setBackendConfigurations(List backendConfigurations) - { - this.backendConfigurations = backendConfigurations; - } - - public List getQueryHistory() - { - return this.queryHistory; - } - - public void setQueryHistory(List queryHistory) - { - this.queryHistory = queryHistory; - } - - public Map getBackendStates() - { - return this.backendStates; - } - - public void setBackendStates(Map backendStates) - { - this.backendStates = backendStates; - } - - public Map getQueryDistribution() - { - return this.queryDistribution; - } - - public void setQueryDistribution(Map queryDistribution) - { - this.queryDistribution = queryDistribution; - } - - @Override - public boolean equals(Object o) - { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GatewayView that = (GatewayView) o; - return gatewayStartTime == that.gatewayStartTime && - Objects.equals(displayName, that.displayName) && - Objects.equals(backendConfigurations, that.backendConfigurations) && - Objects.equals(queryHistory, that.queryHistory) && - Objects.equals(backendStates, that.backendStates) && - Objects.equals(queryDistribution, that.queryDistribution); - } - - @Override - public int hashCode() - { - return Objects.hash(gatewayStartTime, displayName, backendConfigurations, queryHistory, backendStates, queryDistribution); - } - - @Override - public String toString() - { - return toStringHelper(this) - .add("gatewayStartTime", gatewayStartTime) - .add("displayName", displayName) - .add("backendConfigurations", backendConfigurations) - .add("queryHistory", queryHistory) - .add("backendStates", backendStates) - .add("queryDistribution", queryDistribution) - .toString(); - } - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java new file mode 100644 index 000000000..a89f68765 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java @@ -0,0 +1,415 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.resource; + +import com.google.common.base.Strings; +import com.google.inject.Inject; +import io.trino.gateway.ha.config.ProxyBackendConfiguration; +import io.trino.gateway.ha.domain.Result; +import io.trino.gateway.ha.domain.TableData; +import io.trino.gateway.ha.domain.request.GlobalPropertyRequest; +import io.trino.gateway.ha.domain.request.QueryDistributionRequest; +import io.trino.gateway.ha.domain.request.QueryGlobalPropertyRequest; +import io.trino.gateway.ha.domain.request.QueryHistoryRequest; +import io.trino.gateway.ha.domain.request.QueryResourceGroupsRequest; +import io.trino.gateway.ha.domain.request.QuerySelectorsRequest; +import io.trino.gateway.ha.domain.request.ResourceGroupsRequest; +import io.trino.gateway.ha.domain.request.SelectorsRequest; +import io.trino.gateway.ha.domain.response.BackendResponse; +import io.trino.gateway.ha.domain.response.DistributionResponse; +import io.trino.gateway.ha.router.BackendStateManager; +import io.trino.gateway.ha.router.GatewayBackendManager; +import io.trino.gateway.ha.router.HaGatewayManager; +import io.trino.gateway.ha.router.QueryHistoryManager; +import io.trino.gateway.ha.router.ResourceGroupsManager; +import io.trino.gateway.ha.security.LbPrincipal; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; + +import java.time.LocalDateTime; +import java.time.format.DateTimeFormatter; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; + +import static java.util.Objects.requireNonNull; +import static java.util.Objects.requireNonNullElse; + +@Path("/webapp") +public class GatewayWebAppResource +{ + private static final LocalDateTime START_TIME = LocalDateTime.now(); + private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); + private final GatewayBackendManager gatewayBackendManager; + private final QueryHistoryManager queryHistoryManager; + private final BackendStateManager backendStateManager; + private final ResourceGroupsManager resourceGroupsManager; + + @Inject + public GatewayWebAppResource(GatewayBackendManager gatewayBackendManager, QueryHistoryManager queryHistoryManager, + BackendStateManager backendStateManager, ResourceGroupsManager resourceGroupsManager) + { + this.gatewayBackendManager = requireNonNull(gatewayBackendManager, "gatewayBackendManager is null"); + this.queryHistoryManager = requireNonNull(queryHistoryManager, "queryHistoryManager is null"); + this.backendStateManager = requireNonNull(backendStateManager, "backendStateManager is null"); + this.resourceGroupsManager = requireNonNull(resourceGroupsManager, "resourceGroupsManager is null"); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/getAllBackends") + public Response getAllBackends() + { + List allBackends = gatewayBackendManager.getAllBackends(); + List data = allBackends.stream().map(b -> { + BackendStateManager.BackendState backendState = backendStateManager.getBackendState(b); + Map state = backendState.state(); + BackendResponse backendResponse = new BackendResponse(); + backendResponse.setQueued(state.get("QUEUED")); + backendResponse.setRunning(state.get("RUNNING")); + backendResponse.setName(b.getName()); + backendResponse.setProxyTo(b.getProxyTo()); + backendResponse.setActive(b.isActive()); + backendResponse.setRoutingGroup(b.getRoutingGroup()); + backendResponse.setExternalUrl(b.getExternalUrl()); + return backendResponse; + }).toList(); + return Response.ok(Result.ok(data)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/findQueryHistory") + public Response findQueryHistory(QueryHistoryRequest query, + @Context SecurityContext securityContext) + { + LbPrincipal principal = (LbPrincipal) securityContext.getUserPrincipal(); + String[] roles = principal.getMemberOf().orElse("").split("_"); + if (!Arrays.asList(roles).contains("ADMIN")) { + query.setUser(principal.getName()); + } + TableData queryHistory = queryHistoryManager.findQueryHistory(query); + return Response.ok(Result.ok(queryHistory)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/getDistribution") + public Response getDistribution(QueryDistributionRequest query) + { + List allBackends = gatewayBackendManager + .getAllBackends(); + Map urlToNameMap = allBackends + .stream().collect(Collectors.toMap(ProxyBackendConfiguration::getProxyTo, ProxyBackendConfiguration::getName, (o, n) -> n)); + Map> activeMap = allBackends.stream().collect(Collectors.groupingBy(ProxyBackendConfiguration::isActive)); + Integer latestHour = query.getLatestHour(); + Long ts = System.currentTimeMillis() - (latestHour * 60 * 60 * 1000); + List lineChart = queryHistoryManager.findDistribution(ts); + lineChart.forEach(qh -> qh.setName(urlToNameMap.get(qh.getBackendUrl()))); + Map> lineChartMap = lineChart.stream().collect(Collectors.groupingBy(DistributionResponse.LineChart::getName)); + List distributionChart = lineChartMap.values().stream().map(d -> { + DistributionResponse.DistributionChart dc = new DistributionResponse.DistributionChart(); + DistributionResponse.LineChart lc = d.get(0); + long sum = d.stream().collect(Collectors.summarizingLong(DistributionResponse.LineChart::getQueryCount)).getSum(); + dc.setQueryCount(sum); + dc.setBackendUrl(lc.getBackendUrl()); + dc.setName(lc.getName()); + return dc; + }).collect(Collectors.toList()); + long totalQueryCount = distributionChart.stream().collect(Collectors.summarizingLong(DistributionResponse.DistributionChart::getQueryCount)).getSum(); + DistributionResponse distributionResponse = new DistributionResponse(); + distributionResponse.setTotalBackendCount(allBackends.size()); + distributionResponse.setOfflineBackendCount(requireNonNullElse(activeMap.get(false), Collections.emptyList()).size()); + distributionResponse.setOnlineBackendCount(requireNonNullElse(activeMap.get(true), Collections.emptyList()).size()); + distributionResponse.setLineChart(lineChartMap); + distributionResponse.setDistributionChart(distributionChart); + distributionResponse.setTotalQueryCount(totalQueryCount); + distributionResponse.setAverageQueryCountSecond(totalQueryCount / (latestHour * 60d * 60d)); + distributionResponse.setAverageQueryCountMinute(totalQueryCount / (latestHour * 60d)); + distributionResponse.setStartTime(START_TIME.format(formatter)); + return Response.ok(Result.ok(distributionResponse)).build(); + } + + @POST + @RolesAllowed("ADMIN") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/saveBackend") + public Response saveBackend(ProxyBackendConfiguration backend) + { + ProxyBackendConfiguration proxyBackendConfiguration = gatewayBackendManager.addBackend(backend); + return Response.ok(Result.ok(proxyBackendConfiguration)).build(); + } + + @POST + @RolesAllowed("ADMIN") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/updateBackend") + public Response updateBackend(ProxyBackendConfiguration backend) + { + ProxyBackendConfiguration proxyBackendConfiguration = gatewayBackendManager.updateBackend(backend); + return Response.ok(Result.ok(proxyBackendConfiguration)).build(); + } + + @POST + @RolesAllowed("ADMIN") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/deleteBackend") + public Response deleteBackend(ProxyBackendConfiguration backend) + { + ((HaGatewayManager) gatewayBackendManager).deleteBackend(backend.getName()); + return Response.ok(Result.ok(true)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/saveResourceGroup") + public Response saveResourceGroup(ResourceGroupsRequest request) + { + ResourceGroupsManager.ResourceGroupsDetail newResourceGroup = + resourceGroupsManager.createResourceGroup(request.getData(), request.getUseSchema()); + return Response.ok(Result.ok(newResourceGroup)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/updateResourceGroup") + public Response updateResourceGroup(ResourceGroupsRequest request) + { + ResourceGroupsManager.ResourceGroupsDetail newResourceGroup = + resourceGroupsManager.updateResourceGroup(request.getData(), request.getUseSchema()); + return Response.ok(Result.ok(newResourceGroup)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/deleteResourceGroup") + public Response deleteResourceGroup(ResourceGroupsRequest request) + { + ResourceGroupsManager.ResourceGroupsDetail resourceGroupsDetail = request.getData(); + resourceGroupsManager.deleteResourceGroup(resourceGroupsDetail.getResourceGroupId(), request.getUseSchema()); + return Response.ok(Result.ok(true)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/findResourceGroup") + public Response findResourceGroup(QueryResourceGroupsRequest request) + { + List resourceGroupsDetailList = resourceGroupsManager.readAllResourceGroups(request.getUseSchema()); + return Response.ok(Result.ok(resourceGroupsDetailList)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/getResourceGroup") + public Response readResourceGroup(QueryResourceGroupsRequest request) + { + if (Objects.isNull(request.getResourceGroupId())) { + return Response.ok(Result.fail("ResourceGroupId cannot be null!")).build(); + } + List resourceGroup = resourceGroupsManager.readResourceGroup( + request.getResourceGroupId(), + request.getUseSchema()); + return Response.ok(Result.ok(resourceGroup.stream().findFirst())).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/saveSelector") + public Response saveSelector(SelectorsRequest selectorsRequest) + { + ResourceGroupsManager.SelectorsDetail updatedSelector = this.resourceGroupsManager.createSelector( + selectorsRequest.getData(), + selectorsRequest.getUseSchema()); + return Response.ok(Result.ok(updatedSelector)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/updateSelector") + public Response updateSelector(SelectorsRequest selectorsRequest) + { + ResourceGroupsManager.SelectorsDetail updatedSelector = resourceGroupsManager.updateSelector( + selectorsRequest.getOldData(), + selectorsRequest.getData(), + selectorsRequest.getUseSchema()); + return Response.ok(Result.ok(updatedSelector)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/deleteSelector") + public Response deleteSelector(SelectorsRequest request) + { + resourceGroupsManager.deleteSelector(request.getData(), request.getUseSchema()); + return Response.ok(Result.ok(true)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/findSelector") + public Response findSelector(QuerySelectorsRequest request) + { + List selectorsDetailList = resourceGroupsManager.readAllSelectors( + request.getUseSchema()); + return Response.ok(Result.ok(selectorsDetailList)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/getSelector") + public Response getSelector(QuerySelectorsRequest request) + { + if (Objects.isNull(request.getResourceGroupId())) { + return Response.ok(Result.fail("ResourceGroupId cannot be null!")).build(); + } + List selectors = resourceGroupsManager.readSelector( + request.getResourceGroupId(), + request.getUseSchema()); + return Response.ok(Result.ok(selectors.stream().findFirst())).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/saveGlobalProperty") + public Response saveGlobalProperty(GlobalPropertyRequest request) + { + ResourceGroupsManager.GlobalPropertiesDetail globalProperty = resourceGroupsManager.createGlobalProperty( + request.getData(), + request.getUseSchema()); + return Response.ok(Result.ok(globalProperty)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/updateGlobalProperty") + public Response updateGlobalProperty(GlobalPropertyRequest request) + { + ResourceGroupsManager.GlobalPropertiesDetail globalProperty = resourceGroupsManager.updateGlobalProperty( + request.getData(), + request.getUseSchema()); + return Response.ok(Result.ok(globalProperty)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/deleteGlobalProperty") + public Response deleteGlobalProperty(GlobalPropertyRequest request) + { + ResourceGroupsManager.GlobalPropertiesDetail globalPropertiesDetail = request.getData(); + resourceGroupsManager.deleteGlobalProperty( + globalPropertiesDetail.getName(), + request.getUseSchema()); + return Response.ok(Result.ok(true)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/findGlobalProperty") + public Response readAllGlobalProperties(QueryGlobalPropertyRequest request) + { + List globalPropertiesDetailList; + if (Strings.isNullOrEmpty(request.getName())) { + globalPropertiesDetailList = resourceGroupsManager.readAllGlobalProperties(request.getUseSchema()); + } + else { + globalPropertiesDetailList = resourceGroupsManager.readGlobalProperty(request.getName(), request.getUseSchema()); + } + return Response.ok(Result.ok(globalPropertiesDetailList)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/getGlobalProperty") + public Response readGlobalProperty(QueryGlobalPropertyRequest request) + { + if (Strings.isNullOrEmpty(request.getName())) { + return Response.ok(Result.fail("Name cannot be null!")).build(); + } + List globalProperty = resourceGroupsManager.readGlobalProperty(request.getName(), request.getUseSchema()); + return Response.ok(Result.ok(globalProperty.stream().findFirst())).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/saveExactMatchSourceSelector") + public Response saveExactMatchSourceSelector( + ResourceGroupsManager.ExactSelectorsDetail exactMatchSourceSelector) + { + ResourceGroupsManager.ExactSelectorsDetail newExactMatchSourceSelector = resourceGroupsManager.createExactMatchSourceSelector(exactMatchSourceSelector); + return Response.ok(Result.ok(newExactMatchSourceSelector)).build(); + } + + @POST + @RolesAllowed("USER") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + @Path("/findExactMatchSourceSelector") + public Response readExactMatchSourceSelector() + { + List selectorsDetailList = resourceGroupsManager.readExactMatchSourceSelector(); + return Response.ok(Result.ok(selectorsDetailList)).build(); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java index 12259b2cb..5f53a01f4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java @@ -14,22 +14,28 @@ package io.trino.gateway.ha.resource; import com.google.inject.Inject; -import io.dropwizard.views.common.View; +import io.trino.gateway.ha.domain.Result; +import io.trino.gateway.ha.domain.request.RestLoginRequest; import io.trino.gateway.ha.security.LbFormAuthManager; import io.trino.gateway.ha.security.LbOAuthManager; -import io.trino.gateway.ha.security.SessionCookie; +import io.trino.gateway.ha.security.LbPrincipal; import jakarta.annotation.Nullable; -import jakarta.ws.rs.FormParam; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.Consumes; import jakarta.ws.rs.GET; import jakarta.ws.rs.POST; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.QueryParam; import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.core.Context; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.core.SecurityContext; -import java.nio.charset.Charset; +import java.util.Collections; +import java.util.List; +import java.util.Map; @Path("/") @Produces(MediaType.APPLICATION_JSON) @@ -45,14 +51,17 @@ public LoginResource(@Nullable LbOAuthManager oauthManager, @Nullable LbFormAuth this.formAuthManager = formAuthManager; } + @POST @Path("sso") - @GET + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) public Response login() { if (oauthManager == null) { throw new WebApplicationException("OAuth configuration is not setup"); } - return oauthManager.getAuthorizationCode(); + String authorizationUrl = oauthManager.getAuthorizationCode(); + return Response.ok(Result.ok("Ok", authorizationUrl)).build(); } @Path("oidc/callback") @@ -66,42 +75,73 @@ public Response callback(@QueryParam("code") String code) } @POST - @Path("login_form") - public Response processLoginForm( - @FormParam("username") String userName, - @FormParam("password") String password) + @Path("login") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public Response processRESTLogin(RestLoginRequest loginForm) { if (formAuthManager == null) { + if (oauthManager == null) { + return Response.ok(Result.ok(Map.of("token", loginForm.getUsername()))).build(); + } throw new WebApplicationException("Form authentication is not setup"); } - return formAuthManager.processLoginForm(userName, password); + Result r = formAuthManager.processRESTLogin(loginForm); + return Response.ok(r).build(); } - @GET - @Path("login") - @Produces(MediaType.TEXT_HTML) - public LoginResource.LoginForm loginFormUi() + @POST + @Path("logout") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public Response processRESTLogin() { - if (formAuthManager == null) { - throw new WebApplicationException("Form authentication is not setup"); - } - - return new LoginResource.LoginForm("/template/login-form.ftl"); + return Response.ok(Result.ok()).build(); } - @Path("logout") - @GET - public Response logOut() + @POST + @RolesAllowed("USER") + @Path("userinfo") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public Response restUserinfo(@Context SecurityContext securityContext) { - return SessionCookie.logOut(); + LbPrincipal principal = (LbPrincipal) securityContext.getUserPrincipal(); + List roles = List.of(principal.getMemberOf().orElse("").split("_")); + List pagePermissions; + if (formAuthManager != null) { + pagePermissions = formAuthManager.processPagePermissions(roles); + } + else if (oauthManager != null) { + pagePermissions = oauthManager.processPagePermissions(roles); + } + else { + pagePermissions = Collections.emptyList(); + } + Map resMap = Map.of( + "roles", roles, + "permissions", pagePermissions, + "userId", principal.getName(), + "userName", principal.getName()); + return Response.ok(Result.ok(resMap)).build(); } - public static class LoginForm - extends View + @POST + @Path("loginType") + @Consumes(MediaType.APPLICATION_JSON) + @Produces(MediaType.APPLICATION_JSON) + public Response loginType() { - protected LoginForm(String templateName) - { - super(templateName, Charset.defaultCharset()); + String loginType; + if (formAuthManager != null) { + loginType = "form"; + } + else if (oauthManager != null) { + loginType = "oauth"; + } + else { + loginType = "none"; } + return Response.ok(Result.ok("Ok", loginType)).build(); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java index 82f5760da..9e1ee118b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java @@ -13,12 +13,22 @@ */ package io.trino.gateway.ha.router; +import com.google.common.base.Strings; +import io.trino.gateway.ha.domain.TableData; +import io.trino.gateway.ha.domain.request.QueryHistoryRequest; +import io.trino.gateway.ha.domain.response.DistributionResponse; import io.trino.gateway.ha.persistence.dao.QueryHistory; import io.trino.gateway.ha.persistence.dao.QueryHistoryDao; +import io.trino.gateway.ha.util.PageUtil; import org.jdbi.v3.core.Jdbi; +import java.time.Instant; +import java.time.LocalDateTime; +import java.time.ZoneId; +import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.List; +import java.util.Map; import java.util.Optional; import static java.util.Objects.requireNonNull; @@ -84,4 +94,43 @@ public String getBackendForQueryId(String queryId) { return dao.findBackendUrlByQueryId(queryId); } + + @Override + public TableData findQueryHistory(QueryHistoryRequest query) + { + int start = PageUtil.getStart(query.getPage(), query.getSize()); + String condition = ""; + if (!Strings.isNullOrEmpty(query.getUser())) { + condition += " and user_name = '" + query.getUser() + "'"; + } + if (!Strings.isNullOrEmpty(query.getBackendUrl())) { + condition += " and backend_url = '" + query.getBackendUrl() + "'"; + } + if (!Strings.isNullOrEmpty(query.getQueryId())) { + condition += " and query_id = '" + query.getQueryId() + "'"; + } + List histories = dao.pageQueryHistory(condition, query.getSize(), start); + List rows = upcast(histories); + Long total = dao.count(condition); + return TableData.build(rows, total); + } + + @Override + public List findDistribution(Long ts) + { + List> results = dao.findDistribution(ts); + List resList = new ArrayList<>(); + for (Map model : results) { + DistributionResponse.LineChart lineChart = new DistributionResponse.LineChart(); + long minute = Long.parseLong(model.get("minute").toString()); + Instant instant = Instant.ofEpochSecond(minute * 60L); + LocalDateTime dateTime = LocalDateTime.ofInstant(instant, ZoneId.systemDefault()); + DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm"); + lineChart.setMinute(dateTime.format(formatter)); + lineChart.setQueryCount(Long.parseLong(model.get("query_count").toString())); + lineChart.setBackendUrl(model.get("backend_url").toString()); + resList.add(lineChart); + } + return resList; + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java index 67317128e..d3a83a838 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java @@ -13,6 +13,10 @@ */ package io.trino.gateway.ha.router; +import io.trino.gateway.ha.domain.TableData; +import io.trino.gateway.ha.domain.request.QueryHistoryRequest; +import io.trino.gateway.ha.domain.response.DistributionResponse; + import java.util.List; import java.util.Objects; import java.util.Optional; @@ -27,6 +31,10 @@ public interface QueryHistoryManager String getBackendForQueryId(String queryId); + TableData findQueryHistory(QueryHistoryRequest query); + + List findDistribution(Long ts); + class QueryDetail implements Comparable { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/AuthorizedExceptionMapper.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/AuthorizedExceptionMapper.java new file mode 100644 index 000000000..d77744783 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/AuthorizedExceptionMapper.java @@ -0,0 +1,35 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security; + +import io.trino.gateway.ha.domain.Result; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.core.Response; +import jakarta.ws.rs.ext.ExceptionMapper; +import jakarta.ws.rs.ext.Provider; +import org.glassfish.jersey.server.internal.LocalizationMessages; + +@Provider +public class AuthorizedExceptionMapper + implements ExceptionMapper +{ + @Override + public Response toResponse(ForbiddenException exception) + { + if (exception.getMessage().equals(LocalizationMessages.USER_NOT_AUTHORIZED())) { + return Response.ok(Result.fail(Response.Status.UNAUTHORIZED)).build(); + } + return exception.getResponse(); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java index 0c97ccb0e..2a7008d1b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java @@ -22,13 +22,16 @@ import io.trino.gateway.ha.config.FormAuthConfiguration; import io.trino.gateway.ha.config.LdapConfiguration; import io.trino.gateway.ha.config.UserConfiguration; -import jakarta.ws.rs.core.Response; +import io.trino.gateway.ha.domain.Result; +import io.trino.gateway.ha.domain.request.RestLoginRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import java.net.URI; +import java.util.Collections; +import java.util.List; import java.util.Map; import java.util.Optional; +import java.util.stream.Stream; public class LbFormAuthManager { @@ -37,13 +40,16 @@ public class LbFormAuthManager * Cookie key to pass the token. */ private final LbKeyProvider lbKeyProvider; - Map presetUsers; + private final Map presetUsers; + private final Map pagePermissions; private final LbLdapClient lbLdapClient; public LbFormAuthManager(FormAuthConfiguration configuration, - Map presetUsers) + Map presetUsers, + Map pagePermissions) { this.presetUsers = presetUsers; + this.pagePermissions = pagePermissions; if (configuration != null) { this.lbKeyProvider = new LbKeyProvider(configuration @@ -66,17 +72,19 @@ public String getUserIdField() return "sub"; } - public Response processLoginForm(String username, String password) + /** + * Login REST API + * + * @param loginForm {@link RestLoginRequest} + * @return token + */ + public Result processRESTLogin(RestLoginRequest loginForm) { - if (authenticate(new BasicCredentials(username, password))) { - String token = getSelfSignedToken(username); - return Response.status(302).location(URI.create("/")) - .cookie(SessionCookie.getTokenCookie(token)) - .build(); + if (authenticate(new BasicCredentials(loginForm.getUsername(), loginForm.getPassword()))) { + String token = getSelfSignedToken(loginForm.getUsername()); + return Result.ok(Map.of("token", token)); } - - return Response.status(302).location(URI.create("/")) - .build(); + return Result.fail("Authentication failed."); } /** @@ -143,4 +151,17 @@ public boolean authenticate(BasicCredentials credentials) return false; } + + public List processPagePermissions(List roles) + { + for (String role : roles) { + String value = pagePermissions.get(role); + if (value == null) { + return Collections.emptyList(); + } + } + return roles.stream() + .flatMap(role -> Stream.of(pagePermissions.get(role).split("_"))) + .distinct().toList(); + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index ca7375e31..c3694183c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -34,9 +34,12 @@ import java.net.URI; import java.net.URL; import java.security.interfaces.RSAPublicKey; +import java.util.Collections; +import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; +import java.util.stream.Stream; import static java.lang.String.format; @@ -47,10 +50,12 @@ public class LbOAuthManager * Cookie key to pass the token. */ private final OAuthConfiguration oauthConfig; + private final Map pagePermissions; - public LbOAuthManager(OAuthConfiguration configuration) + public LbOAuthManager(OAuthConfiguration configuration, Map pagePermissions) { this.oauthConfig = configuration; + this.pagePermissions = pagePermissions; } public String getUserIdField() @@ -72,6 +77,7 @@ public Response exchangeCodeForToken(String code, String redirectLocation) String clientId = oauthConfig.getClientId(); String clientSecret = oauthConfig.getClientSecret(); String redirectUri = oauthConfig.getRedirectUrl(); + String redirectWebUrl = oauthConfig.getRedirectWebUrl(); Client oauthClient = ClientBuilder.newBuilder().build(); Form form = new Form().param("grant_type", "authorization_code") @@ -94,7 +100,7 @@ public Response exchangeCodeForToken(String code, String redirectLocation) OidcTokens tokens = tokenResponse.readEntity(OidcTokens.class); return Response.status(302) - .location(URI.create(redirectLocation)) + .location(URI.create(redirectWebUrl == null ? redirectLocation : redirectWebUrl)) .cookie(SessionCookie.getTokenCookie(tokens.getIdToken())) .build(); } @@ -104,19 +110,15 @@ public Response exchangeCodeForToken(String code, String redirectLocation) * * @return redirect response to the authorization provider */ - public Response getAuthorizationCode() + public String getAuthorizationCode() { String authorizationEndpoint = oauthConfig.getAuthorizationEndpoint(); String clientId = oauthConfig.getClientId(); String redirectUrl = oauthConfig.getRedirectUrl(); String scopes = String.join("+", oauthConfig.getScopes()); - String url = format( + return format( "%s?client_id=%s&response_type=code&redirect_uri=%s&scope=%s", authorizationEndpoint, clientId, redirectUrl, scopes); - - return Response.status(302) - .location(URI.create(url)) - .build(); } /** @@ -148,6 +150,19 @@ public Optional> getClaimsFromIdToken(String idToken) return Optional.empty(); } + public List processPagePermissions(List roles) + { + for (String role : roles) { + String value = pagePermissions.get(role); + if (value == null) { + return Collections.emptyList(); + } + } + return roles.stream() + .flatMap(role -> Stream.of(pagePermissions.get(role).split("_"))) + .distinct().toList(); + } + @JsonIgnoreProperties(ignoreUnknown = true) static final class OidcTokens { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java index 359b5337d..74dc5b840 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java @@ -26,6 +26,7 @@ public class NoopAuthenticator public Optional authenticate(String credentials) throws AuthenticationException { - return Optional.of(new LbPrincipal("user", Optional.empty())); + // If authentication is not configured, the default is 'ADMIN_USER_API'. + return Optional.of(new LbPrincipal("user", Optional.of("ADMIN_USER_API"))); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/util/PageUtil.java b/gateway-ha/src/main/java/io/trino/gateway/ha/util/PageUtil.java new file mode 100644 index 000000000..c57b7f2da --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/util/PageUtil.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.util; + +public final class PageUtil +{ + private static final int FIRST_PAGE_NO = 1; + + private PageUtil() {} + + public static int getStart(int pageNo, int pageSize) + { + if (pageNo < FIRST_PAGE_NO) { + pageNo = FIRST_PAGE_NO; + } + if (pageSize < 1) { + pageSize = 0; + } + return (pageNo - FIRST_PAGE_NO) * pageSize; + } +} diff --git a/gateway-ha/src/main/resources/assets/css/common.css b/gateway-ha/src/main/resources/assets/css/common.css deleted file mode 100644 index 6382d00d2..000000000 --- a/gateway-ha/src/main/resources/assets/css/common.css +++ /dev/null @@ -1,28 +0,0 @@ -.tablink:hover { - background-color: #777; -} - -.tablink { - background-color: #555; - color: white; - float: left; - border: none; - outline: none; - cursor: pointer; - padding: 14px 16px; - font-size: 17px; - width: 25%; -} - - -.tabcontent { - padding: 70px 20px; - height: 100%; -} - - -body, html { - height: 100%; - margin: 0; - font-family: Arial; -} \ No newline at end of file diff --git a/gateway-ha/src/main/resources/assets/css/jquery.dataTables.min.css b/gateway-ha/src/main/resources/assets/css/jquery.dataTables.min.css deleted file mode 100644 index 6565b406d..000000000 --- a/gateway-ha/src/main/resources/assets/css/jquery.dataTables.min.css +++ /dev/null @@ -1 +0,0 @@ -table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px 4px 4px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{margin-left:0.5em}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,.dataTables_wrapper.no-footer div.dataTables_scrollBody>table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}} diff --git a/gateway-ha/src/main/resources/assets/img/favicon.ico b/gateway-ha/src/main/resources/assets/img/favicon.ico deleted file mode 100644 index 6fbfd23f6db6d10b93807e5f16f29b3a07caa30c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32038 zcmeHQ3v`^tbzWPx<))3kTfApNQ)B^nx>^CZOQ3LlOCreg*H7YIpL%v z0V0DjmUdT`kqO`j#(;}m40a$O@Kd%dzp-RXwroqbWb6Ifm8|z;_xAf{{#osNS6(Z| zh&ktK_Md;|-tW%qpMUP$UpCt)+Zfxzg*L?VZ8v|zX1mK~v)y{DzTWsLo9$;vn?K*W zPP5r&Jz%q?A!hyu#@KAT9=6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`ipwY8^dZ-o0m&NAy(HM0Ae(#4+}m1_GH8o4^54cDK109N zz23a{lCq`vr|tb!r<^kKQTN2P<-2Xz*K^5>f9l5hA;rRHKjQaFoY=codqdn?i6sBk z9@&OHLI!hYhIlr7)wGG`oBv3soP62RpW_2Vc=hL6QM z3}&p>9Ox6;YN$Wn6*NWAzXJ9l?)e#;25lU)WwEVH8f_l54Q{>1>L;AO28WxH&1D*dyd>@&vc1eT?~xZVagUXOy0XpL4^(VTsi!vd06**; zDC5%|LSI{N}}S^l$3J{J}hU%{|IZcecrE zf7K?Nztbi!e>wi|q9_d5e_qCK4BpYIY|Y14b*nzI0eonupgk{=Y=ejS3~?XWq{kDJ zH`|Bhm3_;K*@u`OMK<>klq|NTkJ#2$`cPt)SAB&s_kE-Dq3mN8e;~OkS5$PevAHbDuBIlFf93?Q;0WDns5zHf5T9x_S7W4`TV@mQNX!rQSagtM_lj z<3aa>4uU#Cv2+>geexu4%24m$h(}@HATuV#C*Jq!tWvU|KfRd z8p=*R;^A3)(vndJ{z*>3SA<3GFGwHbRNYnY$8GHT@G?q=pS>f?~ zhdLoy(~9LlMzge5^s9Avw`)M2yRlT3j^bHzzGETpgd%lq{?|>$n3J;lGv%=7_eYpD*wHH4)d%CzpcjSE_raR$nX}-e9on8p~}9Cd1>X0W?7Fk^}ROhd8eLj;KOyqQ{Y28^X6~2$%<(KwqDL@ z?OZ3|dFWMZzcBL)dGUEk`)h{gZ}!RCQ9g$Select entity to edit" - + "" + "
" - + "" - + "
" - + "
"; - - $("#entity-editor-place-holder").html(html); - - var database = $("#databaseOverride").val(); - var readEntityUrl = "/entity"; - var getParameters = ""; - if (database) { - getParameters = {"useSchema": database} - } - submitData(readEntityUrl, getParameters, "get").done(function (data) { - var select = ""; - for (var i in data) { - select += ""; - } - $("#entityTypeSelector").html(select); - }); -} - -function renderEntitySelector() { - var entityType = $("#entityTypeSelector").find(':selected').val(); - - clear(); - $("#entitySelector").empty(); - entityData = ""; - - var database = $("#databaseOverride").val(); - var getParameters = ""; - if (database) { - getParameters = {"useSchema": database} - } - if (entityType !== 'select') { - submitData("/entity/" + entityType, getParameters, "get").done(function (data) { - entityData = data; - var select = ""; - for (var i in data) { - select += ""; - } - $("#entitySelector").html(select); - }); - } - renderEntityEditor() -} - -function buildNameForEntity(entity, entityType) { - switch (entityType) { - case "GATEWAY_BACKEND": - case "RESOURCE_GROUP": - return entity.name; - case "SELECTOR": - return entity.resourceGroupId; - default: - console.log("entity type not found : " + entityType); - return entity[0]; - } -} - -function renderEntityEditor() { - clear(); - var entityType = $("#entityTypeSelector").find(':selected').val(); - var element = document.getElementById("entityDetails"); - editor = new JSONEditor(element, {schema: {type: "object"}}); - var entity = ""; - var entityId = $("#entitySelector").find(':selected').val(); - for (var i in entityData) { - if (buildNameForEntity(entityData[i], entityType) == entityId) { - entity = entityData[i]; - } - } - - editor.set(entity); - - var submitHtml = "

"; - $("#entityEditorBottom").html(submitHtml); - - var entityDetailsTextArea = $("#entityDetailsTextArea"); - entityDetailsTextArea.html(""); - entityDetailsTextArea.append("

"); -} - -function updateObject() { - var entityType = $("#entityTypeSelector").find(':selected').val(); - var jsonVal = JSON.stringify(editor.get()); - - var database = $("#databaseOverride").val(); - var updateParams = {"entityType":entityType }; - if (database) { - updateParams["useSchema"] = database; - } - submitData("/entity?" + $.param(updateParams), jsonVal, "post").done(function (data) { - console.log(data); - renderEntitySelector(); - }) -} - -function loadToEditor() { - editor.set(JSON.parse($("#jsonTextArea").val())); -} - -function clear() { - $("#entityDetails").empty(); - $("#entityDetailsTextArea").empty(); - $("#entityEditorBottom").empty(); -} diff --git a/gateway-ha/src/main/resources/assets/js/hbar-chart.js b/gateway-ha/src/main/resources/assets/js/hbar-chart.js deleted file mode 100644 index 3aad376b5..000000000 --- a/gateway-ha/src/main/resources/assets/js/hbar-chart.js +++ /dev/null @@ -1,107 +0,0 @@ -(function($) { - "use strict"; - $.fn.hBarChart = function(customConfig) { - var config = $.extend({ - bgColor: 'green', - textColor: '#fff', - show: 'label', - sorting: true, - maxStyle: { - bg: 'orange', - text: 'white' - } - }, customConfig); - var chartObj = $(this); - var data = []; - var max = null; - var bgColor = config.bgColor; - var lightenDarkenColor = function(col, amt) { - var usePound = false; - if (col[0] == "#") { - col = col.slice(1); - usePound = true; - } - var num = parseInt(col, 16); - var r = (num >> 16) + amt; - if (r > 255) r = 255; - else if (r < 0) r = 0; - var b = ((num >> 8) & 0x00FF) + amt; - if (b > 255) b = 255; - else if (b < 0) b = 0; - var g = (num & 0x0000FF) + amt; - if (g > 255) g = 255; - else if (g < 0) g = 0; - return (usePound ? "#" : "") + (g | (b << 8) | (r << 16)).toString(16); - } - //end sorting operation - if (config.sorting) { - var sort_li = function(a, b) { - return ($(b).data('data')) > ($(a).data('data')) ? 1 : -1; - } - chartObj.find("li").sort(sort_li) // sort elements - .appendTo(chartObj); // append again to the list - } - //end sorting operation - //global style - chartObj.find("li").css({ - listStyleType: 'none', - padding: '5px', - boxSizing: 'border-box', - marginTop: '3px', - width: '100%', - background: config.bgColor, - color: config.textColor, - whiteSpace: 'nowrap', - borderRadius: '4px', - fontSize: '13px', - fontFamily: 'Tahoma, Geneva, sans-serif' - }) - //global style - //find max - chartObj.find("li").each(function() { - var val = $(this).data('data'); - data.push(val); - }); - max = Math.max.apply(Math, data); - // find max - chartObj.find("li").each(function() { - var lbl = $(this).text(); - var val = $(this).data('data'); - var percentage = (100 / max) * val; - bgColor = lightenDarkenColor(bgColor, 10); - // bar animation - $(this).css({ - width: 0, - background: bgColor - }); - $(this).animate({ - width: percentage + '%' - }, 1000) - // bar animation - //show label - switch (config.show) { - case 'label': - $(this).text(lbl); - break; - case 'data': - $(this).text(val); - break; - case 'both': - $(this).text(lbl).append(' (' + val + ')'); - break; - default: - break; - } - // end show label - // max style - if (val == max) { - $(this).css({ - background: config.maxStyle.bg, - color: config.maxStyle.text - }) - } - // max style - }); - } - //end plugin function -}(jQuery)); \ No newline at end of file diff --git a/gateway-ha/src/main/resources/assets/js/jquery-3.3.1.js b/gateway-ha/src/main/resources/assets/js/jquery-3.3.1.js deleted file mode 100644 index 9b5206bcc..000000000 --- a/gateway-ha/src/main/resources/assets/js/jquery-3.3.1.js +++ /dev/null @@ -1,10364 +0,0 @@ -/*! - * jQuery JavaScript Library v3.3.1 - * https://jquery.com/ - * - * Includes Sizzle.js - * https://sizzlejs.com/ - * - * Copyright JS Foundation and other contributors - * Released under the MIT license - * https://jquery.org/license - * - * Date: 2018-01-20T17:24Z - */ -( function( global, factory ) { - - "use strict"; - - if ( typeof module === "object" && typeof module.exports === "object" ) { - - // For CommonJS and CommonJS-like environments where a proper `window` - // is present, execute the factory and get jQuery. - // For environments that do not have a `window` with a `document` - // (such as Node.js), expose a factory as module.exports. - // This accentuates the need for the creation of a real `window`. - // e.g. var jQuery = require("jquery")(window); - // See ticket #14549 for more info. - module.exports = global.document ? - factory( global, true ) : - function( w ) { - if ( !w.document ) { - throw new Error( "jQuery requires a window with a document" ); - } - return factory( w ); - }; - } else { - factory( global ); - } - -// Pass this if window is not defined yet -} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { - -// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 -// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode -// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common -// enough that all such attempts are guarded in a try block. -"use strict"; - -var arr = []; - -var document = window.document; - -var getProto = Object.getPrototypeOf; - -var slice = arr.slice; - -var concat = arr.concat; - -var push = arr.push; - -var indexOf = arr.indexOf; - -var class2type = {}; - -var toString = class2type.toString; - -var hasOwn = class2type.hasOwnProperty; - -var fnToString = hasOwn.toString; - -var ObjectFunctionString = fnToString.call( Object ); - -var support = {}; - -var isFunction = function isFunction( obj ) { - - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - return typeof obj === "function" && typeof obj.nodeType !== "number"; - }; - - -var isWindow = function isWindow( obj ) { - return obj != null && obj === obj.window; - }; - - - - - var preservedScriptAttributes = { - type: true, - src: true, - noModule: true - }; - - function DOMEval( code, doc, node ) { - doc = doc || document; - - var i, - script = doc.createElement( "script" ); - - script.text = code; - if ( node ) { - for ( i in preservedScriptAttributes ) { - if ( node[ i ] ) { - script[ i ] = node[ i ]; - } - } - } - doc.head.appendChild( script ).parentNode.removeChild( script ); - } - - -function toType( obj ) { - if ( obj == null ) { - return obj + ""; - } - - // Support: Android <=2.3 only (functionish RegExp) - return typeof obj === "object" || typeof obj === "function" ? - class2type[ toString.call( obj ) ] || "object" : - typeof obj; -} -/* global Symbol */ -// Defining this global in .eslintrc.json would create a danger of using the global -// unguarded in another place, it seems safer to define global only for this module - - - -var - version = "3.3.1", - - // Define a local copy of jQuery - jQuery = function( selector, context ) { - - // The jQuery object is actually just the init constructor 'enhanced' - // Need init if jQuery is called (just allow error to be thrown if not included) - return new jQuery.fn.init( selector, context ); - }, - - // Support: Android <=4.0 only - // Make sure we trim BOM and NBSP - rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; - -jQuery.fn = jQuery.prototype = { - - // The current version of jQuery being used - jquery: version, - - constructor: jQuery, - - // The default length of a jQuery object is 0 - length: 0, - - toArray: function() { - return slice.call( this ); - }, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - - // Return all the elements in a clean array - if ( num == null ) { - return slice.call( this ); - } - - // Return just the one element from the set - return num < 0 ? this[ num + this.length ] : this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - - // Build a new jQuery matched element set - var ret = jQuery.merge( this.constructor(), elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Execute a callback for every element in the matched set. - each: function( callback ) { - return jQuery.each( this, callback ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map( this, function( elem, i ) { - return callback.call( elem, i, elem ); - } ) ); - }, - - slice: function() { - return this.pushStack( slice.apply( this, arguments ) ); - }, - - first: function() { - return this.eq( 0 ); - }, - - last: function() { - return this.eq( -1 ); - }, - - eq: function( i ) { - var len = this.length, - j = +i + ( i < 0 ? len : 0 ); - return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); - }, - - end: function() { - return this.prevObject || this.constructor(); - }, - - // For internal use only. - // Behaves like an Array's method, not like a jQuery method. - push: push, - sort: arr.sort, - splice: arr.splice -}; - -jQuery.extend = jQuery.fn.extend = function() { - var options, name, src, copy, copyIsArray, clone, - target = arguments[ 0 ] || {}, - i = 1, - length = arguments.length, - deep = false; - - // Handle a deep copy situation - if ( typeof target === "boolean" ) { - deep = target; - - // Skip the boolean and the target - target = arguments[ i ] || {}; - i++; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target !== "object" && !isFunction( target ) ) { - target = {}; - } - - // Extend jQuery itself if only one argument is passed - if ( i === length ) { - target = this; - i--; - } - - for ( ; i < length; i++ ) { - - // Only deal with non-null/undefined values - if ( ( options = arguments[ i ] ) != null ) { - - // Extend the base object - for ( name in options ) { - src = target[ name ]; - copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) { - continue; - } - - // Recurse if we're merging plain objects or arrays - if ( deep && copy && ( jQuery.isPlainObject( copy ) || - ( copyIsArray = Array.isArray( copy ) ) ) ) { - - if ( copyIsArray ) { - copyIsArray = false; - clone = src && Array.isArray( src ) ? src : []; - - } else { - clone = src && jQuery.isPlainObject( src ) ? src : {}; - } - - // Never move original objects, clone them - target[ name ] = jQuery.extend( deep, clone, copy ); - - // Don't bring in undefined values - } else if ( copy !== undefined ) { - target[ name ] = copy; - } - } - } - } - - // Return the modified object - return target; -}; - -jQuery.extend( { - - // Unique for each copy of jQuery on the page - expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), - - // Assume jQuery is ready without the ready module - isReady: true, - - error: function( msg ) { - throw new Error( msg ); - }, - - noop: function() {}, - - isPlainObject: function( obj ) { - var proto, Ctor; - - // Detect obvious negatives - // Use toString instead of jQuery.type to catch host objects - if ( !obj || toString.call( obj ) !== "[object Object]" ) { - return false; - } - - proto = getProto( obj ); - - // Objects with no prototype (e.g., `Object.create( null )`) are plain - if ( !proto ) { - return true; - } - - // Objects with prototype are plain iff they were constructed by a global Object function - Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; - return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; - }, - - isEmptyObject: function( obj ) { - - /* eslint-disable no-unused-vars */ - // See https://github.com/eslint/eslint/issues/6125 - var name; - - for ( name in obj ) { - return false; - } - return true; - }, - - // Evaluates a script in a global context - globalEval: function( code ) { - DOMEval( code ); - }, - - each: function( obj, callback ) { - var length, i = 0; - - if ( isArrayLike( obj ) ) { - length = obj.length; - for ( ; i < length; i++ ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } else { - for ( i in obj ) { - if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { - break; - } - } - } - - return obj; - }, - - // Support: Android <=4.0 only - trim: function( text ) { - return text == null ? - "" : - ( text + "" ).replace( rtrim, "" ); - }, - - // results is for internal usage only - makeArray: function( arr, results ) { - var ret = results || []; - - if ( arr != null ) { - if ( isArrayLike( Object( arr ) ) ) { - jQuery.merge( ret, - typeof arr === "string" ? - [ arr ] : arr - ); - } else { - push.call( ret, arr ); - } - } - - return ret; - }, - - inArray: function( elem, arr, i ) { - return arr == null ? -1 : indexOf.call( arr, elem, i ); - }, - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - merge: function( first, second ) { - var len = +second.length, - j = 0, - i = first.length; - - for ( ; j < len; j++ ) { - first[ i++ ] = second[ j ]; - } - - first.length = i; - - return first; - }, - - grep: function( elems, callback, invert ) { - var callbackInverse, - matches = [], - i = 0, - length = elems.length, - callbackExpect = !invert; - - // Go through the array, only saving the items - // that pass the validator function - for ( ; i < length; i++ ) { - callbackInverse = !callback( elems[ i ], i ); - if ( callbackInverse !== callbackExpect ) { - matches.push( elems[ i ] ); - } - } - - return matches; - }, - - // arg is for internal usage only - map: function( elems, callback, arg ) { - var length, value, - i = 0, - ret = []; - - // Go through the array, translating each of the items to their new values - if ( isArrayLike( elems ) ) { - length = elems.length; - for ( ; i < length; i++ ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - - // Go through every key on the object, - } else { - for ( i in elems ) { - value = callback( elems[ i ], i, arg ); - - if ( value != null ) { - ret.push( value ); - } - } - } - - // Flatten any nested arrays - return concat.apply( [], ret ); - }, - - // A global GUID counter for objects - guid: 1, - - // jQuery.support is not used in Core but other projects attach their - // properties to it so it needs to exist. - support: support -} ); - -if ( typeof Symbol === "function" ) { - jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; -} - -// Populate the class2type map -jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), -function( i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); -} ); - -function isArrayLike( obj ) { - - // Support: real iOS 8.2 only (not reproducible in simulator) - // `in` check used to prevent JIT error (gh-2145) - // hasOwn isn't used here due to false negatives - // regarding Nodelist length in IE - var length = !!obj && "length" in obj && obj.length, - type = toType( obj ); - - if ( isFunction( obj ) || isWindow( obj ) ) { - return false; - } - - return type === "array" || length === 0 || - typeof length === "number" && length > 0 && ( length - 1 ) in obj; -} -var Sizzle = -/*! - * Sizzle CSS Selector Engine v2.3.3 - * https://sizzlejs.com/ - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license - * http://jquery.org/license - * - * Date: 2016-08-08 - */ -(function( window ) { - -var i, - support, - Expr, - getText, - isXML, - tokenize, - compile, - select, - outermostContext, - sortInput, - hasDuplicate, - - // Local document vars - setDocument, - document, - docElem, - documentIsHTML, - rbuggyQSA, - rbuggyMatches, - matches, - contains, - - // Instance-specific data - expando = "sizzle" + 1 * new Date(), - preferredDoc = window.document, - dirruns = 0, - done = 0, - classCache = createCache(), - tokenCache = createCache(), - compilerCache = createCache(), - sortOrder = function( a, b ) { - if ( a === b ) { - hasDuplicate = true; - } - return 0; - }, - - // Instance methods - hasOwn = ({}).hasOwnProperty, - arr = [], - pop = arr.pop, - push_native = arr.push, - push = arr.push, - slice = arr.slice, - // Use a stripped-down indexOf as it's faster than native - // https://jsperf.com/thor-indexof-vs-for/5 - indexOf = function( list, elem ) { - var i = 0, - len = list.length; - for ( ; i < len; i++ ) { - if ( list[i] === elem ) { - return i; - } - } - return -1; - }, - - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", - - // Regular expressions - - // http://www.w3.org/TR/css3-selectors/#whitespace - whitespace = "[\\x20\\t\\r\\n\\f]", - - // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier - identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", - - // Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors - attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + - // Operator (capture 2) - "*([*^$|!~]?=)" + whitespace + - // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + - "*\\]", - - pseudos = ":(" + identifier + ")(?:\\((" + - // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: - // 1. quoted (capture 3; capture 4 or capture 5) - "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + - // 2. simple (capture 6) - "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + - // 3. anything else (capture 2) - ".*" + - ")\\)|)", - - // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter - rwhitespace = new RegExp( whitespace + "+", "g" ), - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), - - rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), - rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), - - rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), - - rpseudo = new RegExp( pseudos ), - ridentifier = new RegExp( "^" + identifier + "$" ), - - matchExpr = { - "ID": new RegExp( "^#(" + identifier + ")" ), - "CLASS": new RegExp( "^\\.(" + identifier + ")" ), - "TAG": new RegExp( "^(" + identifier + "|[*])" ), - "ATTR": new RegExp( "^" + attributes ), - "PSEUDO": new RegExp( "^" + pseudos ), - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + - "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + - "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), - "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), - // For use in libraries implementing .is() - // We use this for POS matching in `select` - "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + - whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) - }, - - rinputs = /^(?:input|select|textarea|button)$/i, - rheader = /^h\d$/i, - - rnative = /^[^{]+\{\s*\[native \w/, - - // Easily-parseable/retrievable ID or TAG or CLASS selectors - rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, - - rsibling = /[+~]/, - - // CSS escapes - // http://www.w3.org/TR/CSS21/syndata.html#escaped-characters - runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), - funescape = function( _, escaped, escapedWhitespace ) { - var high = "0x" + escaped - 0x10000; - // NaN means non-codepoint - // Support: Firefox<24 - // Workaround erroneous numeric interpretation of +"0x" - return high !== high || escapedWhitespace ? - escaped : - high < 0 ? - // BMP codepoint - String.fromCharCode( high + 0x10000 ) : - // Supplemental Plane codepoint (surrogate pair) - String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); - }, - - // CSS string/identifier serialization - // https://drafts.csswg.org/cssom/#common-serializing-idioms - rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, - fcssescape = function( ch, asCodePoint ) { - if ( asCodePoint ) { - - // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - if ( ch === "\0" ) { - return "\uFFFD"; - } - - // Control characters and (dependent upon position) numbers get escaped as code points - return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; - } - - // Other potentially-special ASCII characters get backslash-escaped - return "\\" + ch; - }, - - // Used for iframes - // See setDocument() - // Removing the function wrapper causes a "Permission Denied" - // error in IE - unloadHandler = function() { - setDocument(); - }, - - disabledAncestor = addCombinator( - function( elem ) { - return elem.disabled === true && ("form" in elem || "label" in elem); - }, - { dir: "parentNode", next: "legend" } - ); - -// Optimize for push.apply( _, NodeList ) -try { - push.apply( - (arr = slice.call( preferredDoc.childNodes )), - preferredDoc.childNodes - ); - // Support: Android<4.0 - // Detect silently failing push.apply - arr[ preferredDoc.childNodes.length ].nodeType; -} catch ( e ) { - push = { apply: arr.length ? - - // Leverage slice if possible - function( target, els ) { - push_native.apply( target, slice.call(els) ); - } : - - // Support: IE<9 - // Otherwise append directly - function( target, els ) { - var j = target.length, - i = 0; - // Can't trust NodeList.length - while ( (target[j++] = els[i++]) ) {} - target.length = j - 1; - } - }; -} - -function Sizzle( selector, context, results, seed ) { - var m, i, elem, nid, match, groups, newSelector, - newContext = context && context.ownerDocument, - - // nodeType defaults to 9, since context defaults to document - nodeType = context ? context.nodeType : 9; - - results = results || []; - - // Return early from calls with invalid selector or context - if ( typeof selector !== "string" || !selector || - nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { - - return results; - } - - // Try to shortcut find operations (as opposed to filters) in HTML documents - if ( !seed ) { - - if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { - setDocument( context ); - } - context = context || document; - - if ( documentIsHTML ) { - - // If the selector is sufficiently simple, try using a "get*By*" DOM method - // (excepting DocumentFragment context, where the methods don't exist) - if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { - - // ID selector - if ( (m = match[1]) ) { - - // Document context - if ( nodeType === 9 ) { - if ( (elem = context.getElementById( m )) ) { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( elem.id === m ) { - results.push( elem ); - return results; - } - } else { - return results; - } - - // Element context - } else { - - // Support: IE, Opera, Webkit - // TODO: identify versions - // getElementById can match elements by name instead of ID - if ( newContext && (elem = newContext.getElementById( m )) && - contains( context, elem ) && - elem.id === m ) { - - results.push( elem ); - return results; - } - } - - // Type selector - } else if ( match[2] ) { - push.apply( results, context.getElementsByTagName( selector ) ); - return results; - - // Class selector - } else if ( (m = match[3]) && support.getElementsByClassName && - context.getElementsByClassName ) { - - push.apply( results, context.getElementsByClassName( m ) ); - return results; - } - } - - // Take advantage of querySelectorAll - if ( support.qsa && - !compilerCache[ selector + " " ] && - (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { - - if ( nodeType !== 1 ) { - newContext = context; - newSelector = selector; - - // qSA looks outside Element context, which is not what we want - // Thanks to Andrew Dupont for this workaround technique - // Support: IE <=8 - // Exclude object elements - } else if ( context.nodeName.toLowerCase() !== "object" ) { - - // Capture the context ID, setting it first if necessary - if ( (nid = context.getAttribute( "id" )) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", (nid = expando) ); - } - - // Prefix every selector in the list - groups = tokenize( selector ); - i = groups.length; - while ( i-- ) { - groups[i] = "#" + nid + " " + toSelector( groups[i] ); - } - newSelector = groups.join( "," ); - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - } - - if ( newSelector ) { - try { - push.apply( results, - newContext.querySelectorAll( newSelector ) - ); - return results; - } catch ( qsaError ) { - } finally { - if ( nid === expando ) { - context.removeAttribute( "id" ); - } - } - } - } - } - } - - // All others - return select( selector.replace( rtrim, "$1" ), context, results, seed ); -} - -/** - * Create key-value caches of limited size - * @returns {function(string, object)} Returns the Object data after storing it on itself with - * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) - * deleting the oldest entry - */ -function createCache() { - var keys = []; - - function cache( key, value ) { - // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) - if ( keys.push( key + " " ) > Expr.cacheLength ) { - // Only keep the most recent entries - delete cache[ keys.shift() ]; - } - return (cache[ key + " " ] = value); - } - return cache; -} - -/** - * Mark a function for special use by Sizzle - * @param {Function} fn The function to mark - */ -function markFunction( fn ) { - fn[ expando ] = true; - return fn; -} - -/** - * Support testing using an element - * @param {Function} fn Passed the created element and returns a boolean result - */ -function assert( fn ) { - var el = document.createElement("fieldset"); - - try { - return !!fn( el ); - } catch (e) { - return false; - } finally { - // Remove from its parent by default - if ( el.parentNode ) { - el.parentNode.removeChild( el ); - } - // release memory in IE - el = null; - } -} - -/** - * Adds the same handler for all of the specified attrs - * @param {String} attrs Pipe-separated list of attributes - * @param {Function} handler The method that will be applied - */ -function addHandle( attrs, handler ) { - var arr = attrs.split("|"), - i = arr.length; - - while ( i-- ) { - Expr.attrHandle[ arr[i] ] = handler; - } -} - -/** - * Checks document order of two siblings - * @param {Element} a - * @param {Element} b - * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b - */ -function siblingCheck( a, b ) { - var cur = b && a, - diff = cur && a.nodeType === 1 && b.nodeType === 1 && - a.sourceIndex - b.sourceIndex; - - // Use IE sourceIndex if available on both nodes - if ( diff ) { - return diff; - } - - // Check if b follows a - if ( cur ) { - while ( (cur = cur.nextSibling) ) { - if ( cur === b ) { - return -1; - } - } - } - - return a ? 1 : -1; -} - -/** - * Returns a function to use in pseudos for input types - * @param {String} type - */ -function createInputPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for buttons - * @param {String} type - */ -function createButtonPseudo( type ) { - return function( elem ) { - var name = elem.nodeName.toLowerCase(); - return (name === "input" || name === "button") && elem.type === type; - }; -} - -/** - * Returns a function to use in pseudos for :enabled/:disabled - * @param {Boolean} disabled true for :disabled; false for :enabled - */ -function createDisabledPseudo( disabled ) { - - // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable - return function( elem ) { - - // Only certain elements can match :enabled or :disabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled - // https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled - if ( "form" in elem ) { - - // Check for inherited disabledness on relevant non-disabled elements: - // * listed form-associated elements in a disabled fieldset - // https://html.spec.whatwg.org/multipage/forms.html#category-listed - // https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled - // * option elements in a disabled optgroup - // https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled - // All such elements have a "form" property. - if ( elem.parentNode && elem.disabled === false ) { - - // Option elements defer to a parent optgroup if present - if ( "label" in elem ) { - if ( "label" in elem.parentNode ) { - return elem.parentNode.disabled === disabled; - } else { - return elem.disabled === disabled; - } - } - - // Support: IE 6 - 11 - // Use the isDisabled shortcut property to check for disabled fieldset ancestors - return elem.isDisabled === disabled || - - // Where there is no isDisabled, check manually - /* jshint -W018 */ - elem.isDisabled !== !disabled && - disabledAncestor( elem ) === disabled; - } - - return elem.disabled === disabled; - - // Try to winnow out elements that can't be disabled before trusting the disabled property. - // Some victims get caught in our net (label, legend, menu, track), but it shouldn't - // even exist on them, let alone have a boolean value. - } else if ( "label" in elem ) { - return elem.disabled === disabled; - } - - // Remaining elements are neither :enabled nor :disabled - return false; - }; -} - -/** - * Returns a function to use in pseudos for positionals - * @param {Function} fn - */ -function createPositionalPseudo( fn ) { - return markFunction(function( argument ) { - argument = +argument; - return markFunction(function( seed, matches ) { - var j, - matchIndexes = fn( [], seed.length, argument ), - i = matchIndexes.length; - - // Match elements found at the specified indexes - while ( i-- ) { - if ( seed[ (j = matchIndexes[i]) ] ) { - seed[j] = !(matches[j] = seed[j]); - } - } - }); - }); -} - -/** - * Checks a node for validity as a Sizzle context - * @param {Element|Object=} context - * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value - */ -function testContext( context ) { - return context && typeof context.getElementsByTagName !== "undefined" && context; -} - -// Expose support vars for convenience -support = Sizzle.support = {}; - -/** - * Detects XML nodes - * @param {Element|Object} elem An element or a document - * @returns {Boolean} True iff elem is a non-HTML XML node - */ -isXML = Sizzle.isXML = function( elem ) { - // documentElement is verified for cases where it doesn't yet exist - // (such as loading iframes in IE - #4833) - var documentElement = elem && (elem.ownerDocument || elem).documentElement; - return documentElement ? documentElement.nodeName !== "HTML" : false; -}; - -/** - * Sets document-related variables once based on the current document - * @param {Element|Object} [doc] An element or document object to use to set the document - * @returns {Object} Returns the current document - */ -setDocument = Sizzle.setDocument = function( node ) { - var hasCompare, subWindow, - doc = node ? node.ownerDocument || node : preferredDoc; - - // Return early if doc is invalid or already selected - if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { - return document; - } - - // Update global variables - document = doc; - docElem = document.documentElement; - documentIsHTML = !isXML( document ); - - // Support: IE 9-11, Edge - // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) - if ( preferredDoc !== document && - (subWindow = document.defaultView) && subWindow.top !== subWindow ) { - - // Support: IE 11, Edge - if ( subWindow.addEventListener ) { - subWindow.addEventListener( "unload", unloadHandler, false ); - - // Support: IE 9 - 10 only - } else if ( subWindow.attachEvent ) { - subWindow.attachEvent( "onunload", unloadHandler ); - } - } - - /* Attributes - ---------------------------------------------------------------------- */ - - // Support: IE<8 - // Verify that getAttribute really returns attributes and not properties - // (excepting IE8 booleans) - support.attributes = assert(function( el ) { - el.className = "i"; - return !el.getAttribute("className"); - }); - - /* getElement(s)By* - ---------------------------------------------------------------------- */ - - // Check if getElementsByTagName("*") returns only elements - support.getElementsByTagName = assert(function( el ) { - el.appendChild( document.createComment("") ); - return !el.getElementsByTagName("*").length; - }); - - // Support: IE<9 - support.getElementsByClassName = rnative.test( document.getElementsByClassName ); - - // Support: IE<10 - // Check if getElementById returns elements by name - // The broken getElementById methods don't pick up programmatically-set names, - // so use a roundabout getElementsByName test - support.getById = assert(function( el ) { - docElem.appendChild( el ).id = expando; - return !document.getElementsByName || !document.getElementsByName( expando ).length; - }); - - // ID filter and find - if ( support.getById ) { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - return elem.getAttribute("id") === attrId; - }; - }; - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var elem = context.getElementById( id ); - return elem ? [ elem ] : []; - } - }; - } else { - Expr.filter["ID"] = function( id ) { - var attrId = id.replace( runescape, funescape ); - return function( elem ) { - var node = typeof elem.getAttributeNode !== "undefined" && - elem.getAttributeNode("id"); - return node && node.value === attrId; - }; - }; - - // Support: IE 6 - 7 only - // getElementById is not reliable as a find shortcut - Expr.find["ID"] = function( id, context ) { - if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { - var node, i, elems, - elem = context.getElementById( id ); - - if ( elem ) { - - // Verify the id attribute - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - - // Fall back on getElementsByName - elems = context.getElementsByName( id ); - i = 0; - while ( (elem = elems[i++]) ) { - node = elem.getAttributeNode("id"); - if ( node && node.value === id ) { - return [ elem ]; - } - } - } - - return []; - } - }; - } - - // Tag - Expr.find["TAG"] = support.getElementsByTagName ? - function( tag, context ) { - if ( typeof context.getElementsByTagName !== "undefined" ) { - return context.getElementsByTagName( tag ); - - // DocumentFragment nodes don't have gEBTN - } else if ( support.qsa ) { - return context.querySelectorAll( tag ); - } - } : - - function( tag, context ) { - var elem, - tmp = [], - i = 0, - // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too - results = context.getElementsByTagName( tag ); - - // Filter out possible comments - if ( tag === "*" ) { - while ( (elem = results[i++]) ) { - if ( elem.nodeType === 1 ) { - tmp.push( elem ); - } - } - - return tmp; - } - return results; - }; - - // Class - Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { - if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { - return context.getElementsByClassName( className ); - } - }; - - /* QSA/matchesSelector - ---------------------------------------------------------------------- */ - - // QSA and matchesSelector support - - // matchesSelector(:active) reports false when true (IE9/Opera 11.5) - rbuggyMatches = []; - - // qSa(:focus) reports false when true (Chrome 21) - // We allow this because of a bug in IE8/9 that throws an error - // whenever `document.activeElement` is accessed on an iframe - // So, we allow :focus to pass through QSA all the time to avoid the IE error - // See https://bugs.jquery.com/ticket/13378 - rbuggyQSA = []; - - if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { - // Build QSA regex - // Regex strategy adopted from Diego Perini - assert(function( el ) { - // Select is set to empty string on purpose - // This is to test IE's treatment of not explicitly - // setting a boolean content attribute, - // since its presence should be enough - // https://bugs.jquery.com/ticket/12359 - docElem.appendChild( el ).innerHTML = "" + - ""; - - // Support: IE8, Opera 11-12.16 - // Nothing should be selected when empty strings follow ^= or $= or *= - // The test attribute must be unknown in Opera but "safe" for WinRT - // https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section - if ( el.querySelectorAll("[msallowcapture^='']").length ) { - rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); - } - - // Support: IE8 - // Boolean attributes and "value" are not treated correctly - if ( !el.querySelectorAll("[selected]").length ) { - rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); - } - - // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ - if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { - rbuggyQSA.push("~="); - } - - // Webkit/Opera - :checked should return selected option elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - // IE8 throws error here and will not see later tests - if ( !el.querySelectorAll(":checked").length ) { - rbuggyQSA.push(":checked"); - } - - // Support: Safari 8+, iOS 8+ - // https://bugs.webkit.org/show_bug.cgi?id=136851 - // In-page `selector#id sibling-combinator selector` fails - if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { - rbuggyQSA.push(".#.+[+~]"); - } - }); - - assert(function( el ) { - el.innerHTML = "" + - ""; - - // Support: Windows 8 Native Apps - // The type and name attributes are restricted during .innerHTML assignment - var input = document.createElement("input"); - input.setAttribute( "type", "hidden" ); - el.appendChild( input ).setAttribute( "name", "D" ); - - // Support: IE8 - // Enforce case-sensitivity of name attribute - if ( el.querySelectorAll("[name=d]").length ) { - rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); - } - - // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) - // IE8 throws error here and will not see later tests - if ( el.querySelectorAll(":enabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Support: IE9-11+ - // IE's :disabled selector does not pick up the children of disabled fieldsets - docElem.appendChild( el ).disabled = true; - if ( el.querySelectorAll(":disabled").length !== 2 ) { - rbuggyQSA.push( ":enabled", ":disabled" ); - } - - // Opera 10-11 does not throw on post-comma invalid pseudos - el.querySelectorAll("*,:x"); - rbuggyQSA.push(",.*:"); - }); - } - - if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || - docElem.webkitMatchesSelector || - docElem.mozMatchesSelector || - docElem.oMatchesSelector || - docElem.msMatchesSelector) )) ) { - - assert(function( el ) { - // Check to see if it's possible to do matchesSelector - // on a disconnected node (IE 9) - support.disconnectedMatch = matches.call( el, "*" ); - - // This should fail with an exception - // Gecko does not error, returns false instead - matches.call( el, "[s!='']:x" ); - rbuggyMatches.push( "!=", pseudos ); - }); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); - - /* Contains - ---------------------------------------------------------------------- */ - hasCompare = rnative.test( docElem.compareDocumentPosition ); - - // Element contains another - // Purposefully self-exclusive - // As in, an element does not contain itself - contains = hasCompare || rnative.test( docElem.contains ) ? - function( a, b ) { - var adown = a.nodeType === 9 ? a.documentElement : a, - bup = b && b.parentNode; - return a === bup || !!( bup && bup.nodeType === 1 && ( - adown.contains ? - adown.contains( bup ) : - a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 - )); - } : - function( a, b ) { - if ( b ) { - while ( (b = b.parentNode) ) { - if ( b === a ) { - return true; - } - } - } - return false; - }; - - /* Sorting - ---------------------------------------------------------------------- */ - - // Document order sorting - sortOrder = hasCompare ? - function( a, b ) { - - // Flag for duplicate removal - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - // Sort on method existence if only one input has compareDocumentPosition - var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; - if ( compare ) { - return compare; - } - - // Calculate position if both inputs belong to the same document - compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? - a.compareDocumentPosition( b ) : - - // Otherwise we know they are disconnected - 1; - - // Disconnected nodes - if ( compare & 1 || - (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { - - // Choose the first element that is related to our preferred document - if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { - return -1; - } - if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { - return 1; - } - - // Maintain original order - return sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - } - - return compare & 4 ? -1 : 1; - } : - function( a, b ) { - // Exit early if the nodes are identical - if ( a === b ) { - hasDuplicate = true; - return 0; - } - - var cur, - i = 0, - aup = a.parentNode, - bup = b.parentNode, - ap = [ a ], - bp = [ b ]; - - // Parentless nodes are either documents or disconnected - if ( !aup || !bup ) { - return a === document ? -1 : - b === document ? 1 : - aup ? -1 : - bup ? 1 : - sortInput ? - ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : - 0; - - // If the nodes are siblings, we can do a quick check - } else if ( aup === bup ) { - return siblingCheck( a, b ); - } - - // Otherwise we need full lists of their ancestors for comparison - cur = a; - while ( (cur = cur.parentNode) ) { - ap.unshift( cur ); - } - cur = b; - while ( (cur = cur.parentNode) ) { - bp.unshift( cur ); - } - - // Walk down the tree looking for a discrepancy - while ( ap[i] === bp[i] ) { - i++; - } - - return i ? - // Do a sibling check if the nodes have a common ancestor - siblingCheck( ap[i], bp[i] ) : - - // Otherwise nodes in our document sort first - ap[i] === preferredDoc ? -1 : - bp[i] === preferredDoc ? 1 : - 0; - }; - - return document; -}; - -Sizzle.matches = function( expr, elements ) { - return Sizzle( expr, null, null, elements ); -}; - -Sizzle.matchesSelector = function( elem, expr ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - // Make sure that attribute selectors are quoted - expr = expr.replace( rattributeQuotes, "='$1']" ); - - if ( support.matchesSelector && documentIsHTML && - !compilerCache[ expr + " " ] && - ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && - ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { - - try { - var ret = matches.call( elem, expr ); - - // IE 9's matchesSelector returns false on disconnected nodes - if ( ret || support.disconnectedMatch || - // As well, disconnected nodes are said to be in a document - // fragment in IE 9 - elem.document && elem.document.nodeType !== 11 ) { - return ret; - } - } catch (e) {} - } - - return Sizzle( expr, document, null, [ elem ] ).length > 0; -}; - -Sizzle.contains = function( context, elem ) { - // Set document vars if needed - if ( ( context.ownerDocument || context ) !== document ) { - setDocument( context ); - } - return contains( context, elem ); -}; - -Sizzle.attr = function( elem, name ) { - // Set document vars if needed - if ( ( elem.ownerDocument || elem ) !== document ) { - setDocument( elem ); - } - - var fn = Expr.attrHandle[ name.toLowerCase() ], - // Don't get fooled by Object.prototype properties (jQuery #13807) - val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? - fn( elem, name, !documentIsHTML ) : - undefined; - - return val !== undefined ? - val : - support.attributes || !documentIsHTML ? - elem.getAttribute( name ) : - (val = elem.getAttributeNode(name)) && val.specified ? - val.value : - null; -}; - -Sizzle.escape = function( sel ) { - return (sel + "").replace( rcssescape, fcssescape ); -}; - -Sizzle.error = function( msg ) { - throw new Error( "Syntax error, unrecognized expression: " + msg ); -}; - -/** - * Document sorting and removing duplicates - * @param {ArrayLike} results - */ -Sizzle.uniqueSort = function( results ) { - var elem, - duplicates = [], - j = 0, - i = 0; - - // Unless we *know* we can detect duplicates, assume their presence - hasDuplicate = !support.detectDuplicates; - sortInput = !support.sortStable && results.slice( 0 ); - results.sort( sortOrder ); - - if ( hasDuplicate ) { - while ( (elem = results[i++]) ) { - if ( elem === results[ i ] ) { - j = duplicates.push( i ); - } - } - while ( j-- ) { - results.splice( duplicates[ j ], 1 ); - } - } - - // Clear input after sorting to release objects - // See https://github.com/jquery/sizzle/pull/225 - sortInput = null; - - return results; -}; - -/** - * Utility function for retrieving the text value of an array of DOM nodes - * @param {Array|Element} elem - */ -getText = Sizzle.getText = function( elem ) { - var node, - ret = "", - i = 0, - nodeType = elem.nodeType; - - if ( !nodeType ) { - // If no nodeType, this is expected to be an array - while ( (node = elem[i++]) ) { - // Do not traverse comment nodes - ret += getText( node ); - } - } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { - // Use textContent for elements - // innerText usage removed for consistency of new lines (jQuery #11153) - if ( typeof elem.textContent === "string" ) { - return elem.textContent; - } else { - // Traverse its children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - ret += getText( elem ); - } - } - } else if ( nodeType === 3 || nodeType === 4 ) { - return elem.nodeValue; - } - // Do not include comment or processing instruction nodes - - return ret; -}; - -Expr = Sizzle.selectors = { - - // Can be adjusted by the user - cacheLength: 50, - - createPseudo: markFunction, - - match: matchExpr, - - attrHandle: {}, - - find: {}, - - relative: { - ">": { dir: "parentNode", first: true }, - " ": { dir: "parentNode" }, - "+": { dir: "previousSibling", first: true }, - "~": { dir: "previousSibling" } - }, - - preFilter: { - "ATTR": function( match ) { - match[1] = match[1].replace( runescape, funescape ); - - // Move the given value to match[3] whether quoted or unquoted - match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); - - if ( match[2] === "~=" ) { - match[3] = " " + match[3] + " "; - } - - return match.slice( 0, 4 ); - }, - - "CHILD": function( match ) { - /* matches from matchExpr["CHILD"] - 1 type (only|nth|...) - 2 what (child|of-type) - 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) - 4 xn-component of xn+y argument ([+-]?\d*n|) - 5 sign of xn-component - 6 x of xn-component - 7 sign of y-component - 8 y of y-component - */ - match[1] = match[1].toLowerCase(); - - if ( match[1].slice( 0, 3 ) === "nth" ) { - // nth-* requires argument - if ( !match[3] ) { - Sizzle.error( match[0] ); - } - - // numeric x and y parameters for Expr.filter.CHILD - // remember that false/true cast respectively to 0/1 - match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); - match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); - - // other types prohibit arguments - } else if ( match[3] ) { - Sizzle.error( match[0] ); - } - - return match; - }, - - "PSEUDO": function( match ) { - var excess, - unquoted = !match[6] && match[2]; - - if ( matchExpr["CHILD"].test( match[0] ) ) { - return null; - } - - // Accept quoted arguments as-is - if ( match[3] ) { - match[2] = match[4] || match[5] || ""; - - // Strip excess characters from unquoted arguments - } else if ( unquoted && rpseudo.test( unquoted ) && - // Get excess from tokenize (recursively) - (excess = tokenize( unquoted, true )) && - // advance to the next closing parenthesis - (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { - - // excess is a negative index - match[0] = match[0].slice( 0, excess ); - match[2] = unquoted.slice( 0, excess ); - } - - // Return only captures needed by the pseudo filter method (type and argument) - return match.slice( 0, 3 ); - } - }, - - filter: { - - "TAG": function( nodeNameSelector ) { - var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); - return nodeNameSelector === "*" ? - function() { return true; } : - function( elem ) { - return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; - }; - }, - - "CLASS": function( className ) { - var pattern = classCache[ className + " " ]; - - return pattern || - (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && - classCache( className, function( elem ) { - return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); - }); - }, - - "ATTR": function( name, operator, check ) { - return function( elem ) { - var result = Sizzle.attr( elem, name ); - - if ( result == null ) { - return operator === "!="; - } - if ( !operator ) { - return true; - } - - result += ""; - - return operator === "=" ? result === check : - operator === "!=" ? result !== check : - operator === "^=" ? check && result.indexOf( check ) === 0 : - operator === "*=" ? check && result.indexOf( check ) > -1 : - operator === "$=" ? check && result.slice( -check.length ) === check : - operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : - operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : - false; - }; - }, - - "CHILD": function( type, what, argument, first, last ) { - var simple = type.slice( 0, 3 ) !== "nth", - forward = type.slice( -4 ) !== "last", - ofType = what === "of-type"; - - return first === 1 && last === 0 ? - - // Shortcut for :nth-*(n) - function( elem ) { - return !!elem.parentNode; - } : - - function( elem, context, xml ) { - var cache, uniqueCache, outerCache, node, nodeIndex, start, - dir = simple !== forward ? "nextSibling" : "previousSibling", - parent = elem.parentNode, - name = ofType && elem.nodeName.toLowerCase(), - useCache = !xml && !ofType, - diff = false; - - if ( parent ) { - - // :(first|last|only)-(child|of-type) - if ( simple ) { - while ( dir ) { - node = elem; - while ( (node = node[ dir ]) ) { - if ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) { - - return false; - } - } - // Reverse direction for :only-* (if we haven't yet done so) - start = dir = type === "only" && !start && "nextSibling"; - } - return true; - } - - start = [ forward ? parent.firstChild : parent.lastChild ]; - - // non-xml :nth-child(...) stores cache data on `parent` - if ( forward && useCache ) { - - // Seek `elem` from a previously-cached index - - // ...in a gzip-friendly way - node = parent; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex && cache[ 2 ]; - node = nodeIndex && parent.childNodes[ nodeIndex ]; - - while ( (node = ++nodeIndex && node && node[ dir ] || - - // Fallback to seeking `elem` from the start - (diff = nodeIndex = 0) || start.pop()) ) { - - // When found, cache indexes on `parent` and break - if ( node.nodeType === 1 && ++diff && node === elem ) { - uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; - break; - } - } - - } else { - // Use previously-cached element index if available - if ( useCache ) { - // ...in a gzip-friendly way - node = elem; - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - cache = uniqueCache[ type ] || []; - nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; - diff = nodeIndex; - } - - // xml :nth-child(...) - // or :nth-last-child(...) or :nth(-last)?-of-type(...) - if ( diff === false ) { - // Use the same loop as above to seek `elem` from the start - while ( (node = ++nodeIndex && node && node[ dir ] || - (diff = nodeIndex = 0) || start.pop()) ) { - - if ( ( ofType ? - node.nodeName.toLowerCase() === name : - node.nodeType === 1 ) && - ++diff ) { - - // Cache the index of each encountered element - if ( useCache ) { - outerCache = node[ expando ] || (node[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ node.uniqueID ] || - (outerCache[ node.uniqueID ] = {}); - - uniqueCache[ type ] = [ dirruns, diff ]; - } - - if ( node === elem ) { - break; - } - } - } - } - } - - // Incorporate the offset, then check against cycle size - diff -= last; - return diff === first || ( diff % first === 0 && diff / first >= 0 ); - } - }; - }, - - "PSEUDO": function( pseudo, argument ) { - // pseudo-class names are case-insensitive - // http://www.w3.org/TR/selectors/#pseudo-classes - // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters - // Remember that setFilters inherits from pseudos - var args, - fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || - Sizzle.error( "unsupported pseudo: " + pseudo ); - - // The user may use createPseudo to indicate that - // arguments are needed to create the filter function - // just as Sizzle does - if ( fn[ expando ] ) { - return fn( argument ); - } - - // But maintain support for old signatures - if ( fn.length > 1 ) { - args = [ pseudo, pseudo, "", argument ]; - return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? - markFunction(function( seed, matches ) { - var idx, - matched = fn( seed, argument ), - i = matched.length; - while ( i-- ) { - idx = indexOf( seed, matched[i] ); - seed[ idx ] = !( matches[ idx ] = matched[i] ); - } - }) : - function( elem ) { - return fn( elem, 0, args ); - }; - } - - return fn; - } - }, - - pseudos: { - // Potentially complex pseudos - "not": markFunction(function( selector ) { - // Trim the selector passed to compile - // to avoid treating leading and trailing - // spaces as combinators - var input = [], - results = [], - matcher = compile( selector.replace( rtrim, "$1" ) ); - - return matcher[ expando ] ? - markFunction(function( seed, matches, context, xml ) { - var elem, - unmatched = matcher( seed, null, xml, [] ), - i = seed.length; - - // Match elements unmatched by `matcher` - while ( i-- ) { - if ( (elem = unmatched[i]) ) { - seed[i] = !(matches[i] = elem); - } - } - }) : - function( elem, context, xml ) { - input[0] = elem; - matcher( input, null, xml, results ); - // Don't keep the element (issue #299) - input[0] = null; - return !results.pop(); - }; - }), - - "has": markFunction(function( selector ) { - return function( elem ) { - return Sizzle( selector, elem ).length > 0; - }; - }), - - "contains": markFunction(function( text ) { - text = text.replace( runescape, funescape ); - return function( elem ) { - return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; - }; - }), - - // "Whether an element is represented by a :lang() selector - // is based solely on the element's language value - // being equal to the identifier C, - // or beginning with the identifier C immediately followed by "-". - // The matching of C against the element's language value is performed case-insensitively. - // The identifier C does not have to be a valid language name." - // http://www.w3.org/TR/selectors/#lang-pseudo - "lang": markFunction( function( lang ) { - // lang value must be a valid identifier - if ( !ridentifier.test(lang || "") ) { - Sizzle.error( "unsupported lang: " + lang ); - } - lang = lang.replace( runescape, funescape ).toLowerCase(); - return function( elem ) { - var elemLang; - do { - if ( (elemLang = documentIsHTML ? - elem.lang : - elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { - - elemLang = elemLang.toLowerCase(); - return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; - } - } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); - return false; - }; - }), - - // Miscellaneous - "target": function( elem ) { - var hash = window.location && window.location.hash; - return hash && hash.slice( 1 ) === elem.id; - }, - - "root": function( elem ) { - return elem === docElem; - }, - - "focus": function( elem ) { - return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); - }, - - // Boolean properties - "enabled": createDisabledPseudo( false ), - "disabled": createDisabledPseudo( true ), - - "checked": function( elem ) { - // In CSS3, :checked should return both checked and selected elements - // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked - var nodeName = elem.nodeName.toLowerCase(); - return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); - }, - - "selected": function( elem ) { - // Accessing this property makes selected-by-default - // options in Safari work properly - if ( elem.parentNode ) { - elem.parentNode.selectedIndex; - } - - return elem.selected === true; - }, - - // Contents - "empty": function( elem ) { - // http://www.w3.org/TR/selectors/#empty-pseudo - // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), - // but not by others (comment: 8; processing instruction: 7; etc.) - // nodeType < 6 works because attributes (2) do not appear as children - for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { - if ( elem.nodeType < 6 ) { - return false; - } - } - return true; - }, - - "parent": function( elem ) { - return !Expr.pseudos["empty"]( elem ); - }, - - // Element/input types - "header": function( elem ) { - return rheader.test( elem.nodeName ); - }, - - "input": function( elem ) { - return rinputs.test( elem.nodeName ); - }, - - "button": function( elem ) { - var name = elem.nodeName.toLowerCase(); - return name === "input" && elem.type === "button" || name === "button"; - }, - - "text": function( elem ) { - var attr; - return elem.nodeName.toLowerCase() === "input" && - elem.type === "text" && - - // Support: IE<8 - // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" - ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); - }, - - // Position-in-collection - "first": createPositionalPseudo(function() { - return [ 0 ]; - }), - - "last": createPositionalPseudo(function( matchIndexes, length ) { - return [ length - 1 ]; - }), - - "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { - return [ argument < 0 ? argument + length : argument ]; - }), - - "even": createPositionalPseudo(function( matchIndexes, length ) { - var i = 0; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "odd": createPositionalPseudo(function( matchIndexes, length ) { - var i = 1; - for ( ; i < length; i += 2 ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; --i >= 0; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }), - - "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { - var i = argument < 0 ? argument + length : argument; - for ( ; ++i < length; ) { - matchIndexes.push( i ); - } - return matchIndexes; - }) - } -}; - -Expr.pseudos["nth"] = Expr.pseudos["eq"]; - -// Add button/input type pseudos -for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { - Expr.pseudos[ i ] = createInputPseudo( i ); -} -for ( i in { submit: true, reset: true } ) { - Expr.pseudos[ i ] = createButtonPseudo( i ); -} - -// Easy API for creating new setFilters -function setFilters() {} -setFilters.prototype = Expr.filters = Expr.pseudos; -Expr.setFilters = new setFilters(); - -tokenize = Sizzle.tokenize = function( selector, parseOnly ) { - var matched, match, tokens, type, - soFar, groups, preFilters, - cached = tokenCache[ selector + " " ]; - - if ( cached ) { - return parseOnly ? 0 : cached.slice( 0 ); - } - - soFar = selector; - groups = []; - preFilters = Expr.preFilter; - - while ( soFar ) { - - // Comma and first run - if ( !matched || (match = rcomma.exec( soFar )) ) { - if ( match ) { - // Don't consume trailing commas as valid - soFar = soFar.slice( match[0].length ) || soFar; - } - groups.push( (tokens = []) ); - } - - matched = false; - - // Combinators - if ( (match = rcombinators.exec( soFar )) ) { - matched = match.shift(); - tokens.push({ - value: matched, - // Cast descendant combinators to space - type: match[0].replace( rtrim, " " ) - }); - soFar = soFar.slice( matched.length ); - } - - // Filters - for ( type in Expr.filter ) { - if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || - (match = preFilters[ type ]( match ))) ) { - matched = match.shift(); - tokens.push({ - value: matched, - type: type, - matches: match - }); - soFar = soFar.slice( matched.length ); - } - } - - if ( !matched ) { - break; - } - } - - // Return the length of the invalid excess - // if we're just parsing - // Otherwise, throw an error or return tokens - return parseOnly ? - soFar.length : - soFar ? - Sizzle.error( selector ) : - // Cache the tokens - tokenCache( selector, groups ).slice( 0 ); -}; - -function toSelector( tokens ) { - var i = 0, - len = tokens.length, - selector = ""; - for ( ; i < len; i++ ) { - selector += tokens[i].value; - } - return selector; -} - -function addCombinator( matcher, combinator, base ) { - var dir = combinator.dir, - skip = combinator.next, - key = skip || dir, - checkNonElements = base && key === "parentNode", - doneName = done++; - - return combinator.first ? - // Check against closest ancestor/preceding element - function( elem, context, xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - return matcher( elem, context, xml ); - } - } - return false; - } : - - // Check against all ancestor/preceding elements - function( elem, context, xml ) { - var oldCache, uniqueCache, outerCache, - newCache = [ dirruns, doneName ]; - - // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching - if ( xml ) { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - if ( matcher( elem, context, xml ) ) { - return true; - } - } - } - } else { - while ( (elem = elem[ dir ]) ) { - if ( elem.nodeType === 1 || checkNonElements ) { - outerCache = elem[ expando ] || (elem[ expando ] = {}); - - // Support: IE <9 only - // Defend against cloned attroperties (jQuery gh-1709) - uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); - - if ( skip && skip === elem.nodeName.toLowerCase() ) { - elem = elem[ dir ] || elem; - } else if ( (oldCache = uniqueCache[ key ]) && - oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { - - // Assign to newCache so results back-propagate to previous elements - return (newCache[ 2 ] = oldCache[ 2 ]); - } else { - // Reuse newcache so results back-propagate to previous elements - uniqueCache[ key ] = newCache; - - // A match means we're done; a fail means we have to keep checking - if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { - return true; - } - } - } - } - } - return false; - }; -} - -function elementMatcher( matchers ) { - return matchers.length > 1 ? - function( elem, context, xml ) { - var i = matchers.length; - while ( i-- ) { - if ( !matchers[i]( elem, context, xml ) ) { - return false; - } - } - return true; - } : - matchers[0]; -} - -function multipleContexts( selector, contexts, results ) { - var i = 0, - len = contexts.length; - for ( ; i < len; i++ ) { - Sizzle( selector, contexts[i], results ); - } - return results; -} - -function condense( unmatched, map, filter, context, xml ) { - var elem, - newUnmatched = [], - i = 0, - len = unmatched.length, - mapped = map != null; - - for ( ; i < len; i++ ) { - if ( (elem = unmatched[i]) ) { - if ( !filter || filter( elem, context, xml ) ) { - newUnmatched.push( elem ); - if ( mapped ) { - map.push( i ); - } - } - } - } - - return newUnmatched; -} - -function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { - if ( postFilter && !postFilter[ expando ] ) { - postFilter = setMatcher( postFilter ); - } - if ( postFinder && !postFinder[ expando ] ) { - postFinder = setMatcher( postFinder, postSelector ); - } - return markFunction(function( seed, results, context, xml ) { - var temp, i, elem, - preMap = [], - postMap = [], - preexisting = results.length, - - // Get initial elements from seed or context - elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), - - // Prefilter to get matcher input, preserving a map for seed-results synchronization - matcherIn = preFilter && ( seed || !selector ) ? - condense( elems, preMap, preFilter, context, xml ) : - elems, - - matcherOut = matcher ? - // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, - postFinder || ( seed ? preFilter : preexisting || postFilter ) ? - - // ...intermediate processing is necessary - [] : - - // ...otherwise use results directly - results : - matcherIn; - - // Find primary matches - if ( matcher ) { - matcher( matcherIn, matcherOut, context, xml ); - } - - // Apply postFilter - if ( postFilter ) { - temp = condense( matcherOut, postMap ); - postFilter( temp, [], context, xml ); - - // Un-match failing elements by moving them back to matcherIn - i = temp.length; - while ( i-- ) { - if ( (elem = temp[i]) ) { - matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); - } - } - } - - if ( seed ) { - if ( postFinder || preFilter ) { - if ( postFinder ) { - // Get the final matcherOut by condensing this intermediate into postFinder contexts - temp = []; - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) ) { - // Restore matcherIn since elem is not yet a final match - temp.push( (matcherIn[i] = elem) ); - } - } - postFinder( null, (matcherOut = []), temp, xml ); - } - - // Move matched elements from seed to results to keep them synchronized - i = matcherOut.length; - while ( i-- ) { - if ( (elem = matcherOut[i]) && - (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { - - seed[temp] = !(results[temp] = elem); - } - } - } - - // Add elements to results, through postFinder if defined - } else { - matcherOut = condense( - matcherOut === results ? - matcherOut.splice( preexisting, matcherOut.length ) : - matcherOut - ); - if ( postFinder ) { - postFinder( null, results, matcherOut, xml ); - } else { - push.apply( results, matcherOut ); - } - } - }); -} - -function matcherFromTokens( tokens ) { - var checkContext, matcher, j, - len = tokens.length, - leadingRelative = Expr.relative[ tokens[0].type ], - implicitRelative = leadingRelative || Expr.relative[" "], - i = leadingRelative ? 1 : 0, - - // The foundational matcher ensures that elements are reachable from top-level context(s) - matchContext = addCombinator( function( elem ) { - return elem === checkContext; - }, implicitRelative, true ), - matchAnyContext = addCombinator( function( elem ) { - return indexOf( checkContext, elem ) > -1; - }, implicitRelative, true ), - matchers = [ function( elem, context, xml ) { - var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( - (checkContext = context).nodeType ? - matchContext( elem, context, xml ) : - matchAnyContext( elem, context, xml ) ); - // Avoid hanging onto element (issue #299) - checkContext = null; - return ret; - } ]; - - for ( ; i < len; i++ ) { - if ( (matcher = Expr.relative[ tokens[i].type ]) ) { - matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; - } else { - matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); - - // Return special upon seeing a positional matcher - if ( matcher[ expando ] ) { - // Find the next relative operator (if any) for proper handling - j = ++i; - for ( ; j < len; j++ ) { - if ( Expr.relative[ tokens[j].type ] ) { - break; - } - } - return setMatcher( - i > 1 && elementMatcher( matchers ), - i > 1 && toSelector( - // If the preceding token was a descendant combinator, insert an implicit any-element `*` - tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) - ).replace( rtrim, "$1" ), - matcher, - i < j && matcherFromTokens( tokens.slice( i, j ) ), - j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), - j < len && toSelector( tokens ) - ); - } - matchers.push( matcher ); - } - } - - return elementMatcher( matchers ); -} - -function matcherFromGroupMatchers( elementMatchers, setMatchers ) { - var bySet = setMatchers.length > 0, - byElement = elementMatchers.length > 0, - superMatcher = function( seed, context, xml, results, outermost ) { - var elem, j, matcher, - matchedCount = 0, - i = "0", - unmatched = seed && [], - setMatched = [], - contextBackup = outermostContext, - // We must always have either seed elements or outermost context - elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), - // Use integer dirruns iff this is the outermost matcher - dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), - len = elems.length; - - if ( outermost ) { - outermostContext = context === document || context || outermost; - } - - // Add elements passing elementMatchers directly to results - // Support: IE<9, Safari - // Tolerate NodeList properties (IE: "length"; Safari: ) matching elements by id - for ( ; i !== len && (elem = elems[i]) != null; i++ ) { - if ( byElement && elem ) { - j = 0; - if ( !context && elem.ownerDocument !== document ) { - setDocument( elem ); - xml = !documentIsHTML; - } - while ( (matcher = elementMatchers[j++]) ) { - if ( matcher( elem, context || document, xml) ) { - results.push( elem ); - break; - } - } - if ( outermost ) { - dirruns = dirrunsUnique; - } - } - - // Track unmatched elements for set filters - if ( bySet ) { - // They will have gone through all possible matchers - if ( (elem = !matcher && elem) ) { - matchedCount--; - } - - // Lengthen the array for every element, matched or not - if ( seed ) { - unmatched.push( elem ); - } - } - } - - // `i` is now the count of elements visited above, and adding it to `matchedCount` - // makes the latter nonnegative. - matchedCount += i; - - // Apply set filters to unmatched elements - // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` - // equals `i`), unless we didn't visit _any_ elements in the above loop because we have - // no element matchers and no seed. - // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that - // case, which will result in a "00" `matchedCount` that differs from `i` but is also - // numerically zero. - if ( bySet && i !== matchedCount ) { - j = 0; - while ( (matcher = setMatchers[j++]) ) { - matcher( unmatched, setMatched, context, xml ); - } - - if ( seed ) { - // Reintegrate element matches to eliminate the need for sorting - if ( matchedCount > 0 ) { - while ( i-- ) { - if ( !(unmatched[i] || setMatched[i]) ) { - setMatched[i] = pop.call( results ); - } - } - } - - // Discard index placeholder values to get only actual matches - setMatched = condense( setMatched ); - } - - // Add matches to results - push.apply( results, setMatched ); - - // Seedless set matches succeeding multiple successful matchers stipulate sorting - if ( outermost && !seed && setMatched.length > 0 && - ( matchedCount + setMatchers.length ) > 1 ) { - - Sizzle.uniqueSort( results ); - } - } - - // Override manipulation of globals by nested matchers - if ( outermost ) { - dirruns = dirrunsUnique; - outermostContext = contextBackup; - } - - return unmatched; - }; - - return bySet ? - markFunction( superMatcher ) : - superMatcher; -} - -compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { - var i, - setMatchers = [], - elementMatchers = [], - cached = compilerCache[ selector + " " ]; - - if ( !cached ) { - // Generate a function of recursive functions that can be used to check each element - if ( !match ) { - match = tokenize( selector ); - } - i = match.length; - while ( i-- ) { - cached = matcherFromTokens( match[i] ); - if ( cached[ expando ] ) { - setMatchers.push( cached ); - } else { - elementMatchers.push( cached ); - } - } - - // Cache the compiled function - cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); - - // Save selector and tokenization - cached.selector = selector; - } - return cached; -}; - -/** - * A low-level selection function that works with Sizzle's compiled - * selector functions - * @param {String|Function} selector A selector or a pre-compiled - * selector function built with Sizzle.compile - * @param {Element} context - * @param {Array} [results] - * @param {Array} [seed] A set of elements to match against - */ -select = Sizzle.select = function( selector, context, results, seed ) { - var i, tokens, token, type, find, - compiled = typeof selector === "function" && selector, - match = !seed && tokenize( (selector = compiled.selector || selector) ); - - results = results || []; - - // Try to minimize operations if there is only one selector in the list and no seed - // (the latter of which guarantees us context) - if ( match.length === 1 ) { - - // Reduce context if the leading compound selector is an ID - tokens = match[0] = match[0].slice( 0 ); - if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && - context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { - - context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; - if ( !context ) { - return results; - - // Precompiled matchers will still verify ancestry, so step up a level - } else if ( compiled ) { - context = context.parentNode; - } - - selector = selector.slice( tokens.shift().value.length ); - } - - // Fetch a seed set for right-to-left matching - i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; - while ( i-- ) { - token = tokens[i]; - - // Abort if we hit a combinator - if ( Expr.relative[ (type = token.type) ] ) { - break; - } - if ( (find = Expr.find[ type ]) ) { - // Search, expanding context for leading sibling combinators - if ( (seed = find( - token.matches[0].replace( runescape, funescape ), - rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context - )) ) { - - // If seed is empty or no tokens remain, we can return early - tokens.splice( i, 1 ); - selector = seed.length && toSelector( tokens ); - if ( !selector ) { - push.apply( results, seed ); - return results; - } - - break; - } - } - } - } - - // Compile and execute a filtering function if one is not provided - // Provide `match` to avoid retokenization if we modified the selector above - ( compiled || compile( selector, match ) )( - seed, - context, - !documentIsHTML, - results, - !context || rsibling.test( selector ) && testContext( context.parentNode ) || context - ); - return results; -}; - -// One-time assignments - -// Sort stability -support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; - -// Support: Chrome 14-35+ -// Always assume duplicates if they aren't passed to the comparison function -support.detectDuplicates = !!hasDuplicate; - -// Initialize against the default document -setDocument(); - -// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) -// Detached nodes confoundingly follow *each other* -support.sortDetached = assert(function( el ) { - // Should return 1, but returns 4 (following) - return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; -}); - -// Support: IE<8 -// Prevent attribute/property "interpolation" -// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx -if ( !assert(function( el ) { - el.innerHTML = ""; - return el.firstChild.getAttribute("href") === "#" ; -}) ) { - addHandle( "type|href|height|width", function( elem, name, isXML ) { - if ( !isXML ) { - return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); - } - }); -} - -// Support: IE<9 -// Use defaultValue in place of getAttribute("value") -if ( !support.attributes || !assert(function( el ) { - el.innerHTML = ""; - el.firstChild.setAttribute( "value", "" ); - return el.firstChild.getAttribute( "value" ) === ""; -}) ) { - addHandle( "value", function( elem, name, isXML ) { - if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { - return elem.defaultValue; - } - }); -} - -// Support: IE<9 -// Use getAttributeNode to fetch booleans when getAttribute lies -if ( !assert(function( el ) { - return el.getAttribute("disabled") == null; -}) ) { - addHandle( booleans, function( elem, name, isXML ) { - var val; - if ( !isXML ) { - return elem[ name ] === true ? name.toLowerCase() : - (val = elem.getAttributeNode( name )) && val.specified ? - val.value : - null; - } - }); -} - -return Sizzle; - -})( window ); - - - -jQuery.find = Sizzle; -jQuery.expr = Sizzle.selectors; - -// Deprecated -jQuery.expr[ ":" ] = jQuery.expr.pseudos; -jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; -jQuery.text = Sizzle.getText; -jQuery.isXMLDoc = Sizzle.isXML; -jQuery.contains = Sizzle.contains; -jQuery.escapeSelector = Sizzle.escape; - - - - -var dir = function( elem, dir, until ) { - var matched = [], - truncate = until !== undefined; - - while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { - if ( elem.nodeType === 1 ) { - if ( truncate && jQuery( elem ).is( until ) ) { - break; - } - matched.push( elem ); - } - } - return matched; -}; - - -var siblings = function( n, elem ) { - var matched = []; - - for ( ; n; n = n.nextSibling ) { - if ( n.nodeType === 1 && n !== elem ) { - matched.push( n ); - } - } - - return matched; -}; - - -var rneedsContext = jQuery.expr.match.needsContext; - - - -function nodeName( elem, name ) { - - return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); - -}; -var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); - - - -// Implement the identical functionality for filter and not -function winnow( elements, qualifier, not ) { - if ( isFunction( qualifier ) ) { - return jQuery.grep( elements, function( elem, i ) { - return !!qualifier.call( elem, i, elem ) !== not; - } ); - } - - // Single element - if ( qualifier.nodeType ) { - return jQuery.grep( elements, function( elem ) { - return ( elem === qualifier ) !== not; - } ); - } - - // Arraylike of elements (jQuery, arguments, Array) - if ( typeof qualifier !== "string" ) { - return jQuery.grep( elements, function( elem ) { - return ( indexOf.call( qualifier, elem ) > -1 ) !== not; - } ); - } - - // Filtered directly for both simple and complex selectors - return jQuery.filter( qualifier, elements, not ); -} - -jQuery.filter = function( expr, elems, not ) { - var elem = elems[ 0 ]; - - if ( not ) { - expr = ":not(" + expr + ")"; - } - - if ( elems.length === 1 && elem.nodeType === 1 ) { - return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; - } - - return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { - return elem.nodeType === 1; - } ) ); -}; - -jQuery.fn.extend( { - find: function( selector ) { - var i, ret, - len = this.length, - self = this; - - if ( typeof selector !== "string" ) { - return this.pushStack( jQuery( selector ).filter( function() { - for ( i = 0; i < len; i++ ) { - if ( jQuery.contains( self[ i ], this ) ) { - return true; - } - } - } ) ); - } - - ret = this.pushStack( [] ); - - for ( i = 0; i < len; i++ ) { - jQuery.find( selector, self[ i ], ret ); - } - - return len > 1 ? jQuery.uniqueSort( ret ) : ret; - }, - filter: function( selector ) { - return this.pushStack( winnow( this, selector || [], false ) ); - }, - not: function( selector ) { - return this.pushStack( winnow( this, selector || [], true ) ); - }, - is: function( selector ) { - return !!winnow( - this, - - // If this is a positional/relative selector, check membership in the returned set - // so $("p:first").is("p:last") won't return true for a doc with two "p". - typeof selector === "string" && rneedsContext.test( selector ) ? - jQuery( selector ) : - selector || [], - false - ).length; - } -} ); - - -// Initialize a jQuery object - - -// A central reference to the root jQuery(document) -var rootjQuery, - - // A simple way to check for HTML strings - // Prioritize #id over to avoid XSS via location.hash (#9521) - // Strict HTML recognition (#11290: must start with <) - // Shortcut simple #id case for speed - rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, - - init = jQuery.fn.init = function( selector, context, root ) { - var match, elem; - - // HANDLE: $(""), $(null), $(undefined), $(false) - if ( !selector ) { - return this; - } - - // Method init() accepts an alternate rootjQuery - // so migrate can support jQuery.sub (gh-2101) - root = root || rootjQuery; - - // Handle HTML strings - if ( typeof selector === "string" ) { - if ( selector[ 0 ] === "<" && - selector[ selector.length - 1 ] === ">" && - selector.length >= 3 ) { - - // Assume that strings that start and end with <> are HTML and skip the regex check - match = [ null, selector, null ]; - - } else { - match = rquickExpr.exec( selector ); - } - - // Match html or make sure no context is specified for #id - if ( match && ( match[ 1 ] || !context ) ) { - - // HANDLE: $(html) -> $(array) - if ( match[ 1 ] ) { - context = context instanceof jQuery ? context[ 0 ] : context; - - // Option to run scripts is true for back-compat - // Intentionally let the error be thrown if parseHTML is not present - jQuery.merge( this, jQuery.parseHTML( - match[ 1 ], - context && context.nodeType ? context.ownerDocument || context : document, - true - ) ); - - // HANDLE: $(html, props) - if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { - for ( match in context ) { - - // Properties of context are called as methods if possible - if ( isFunction( this[ match ] ) ) { - this[ match ]( context[ match ] ); - - // ...and otherwise set as attributes - } else { - this.attr( match, context[ match ] ); - } - } - } - - return this; - - // HANDLE: $(#id) - } else { - elem = document.getElementById( match[ 2 ] ); - - if ( elem ) { - - // Inject the element directly into the jQuery object - this[ 0 ] = elem; - this.length = 1; - } - return this; - } - - // HANDLE: $(expr, $(...)) - } else if ( !context || context.jquery ) { - return ( context || root ).find( selector ); - - // HANDLE: $(expr, context) - // (which is just equivalent to: $(context).find(expr) - } else { - return this.constructor( context ).find( selector ); - } - - // HANDLE: $(DOMElement) - } else if ( selector.nodeType ) { - this[ 0 ] = selector; - this.length = 1; - return this; - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( isFunction( selector ) ) { - return root.ready !== undefined ? - root.ready( selector ) : - - // Execute immediately if ready is not present - selector( jQuery ); - } - - return jQuery.makeArray( selector, this ); - }; - -// Give the init function the jQuery prototype for later instantiation -init.prototype = jQuery.fn; - -// Initialize central reference -rootjQuery = jQuery( document ); - - -var rparentsprev = /^(?:parents|prev(?:Until|All))/, - - // Methods guaranteed to produce a unique set when starting from a unique set - guaranteedUnique = { - children: true, - contents: true, - next: true, - prev: true - }; - -jQuery.fn.extend( { - has: function( target ) { - var targets = jQuery( target, this ), - l = targets.length; - - return this.filter( function() { - var i = 0; - for ( ; i < l; i++ ) { - if ( jQuery.contains( this, targets[ i ] ) ) { - return true; - } - } - } ); - }, - - closest: function( selectors, context ) { - var cur, - i = 0, - l = this.length, - matched = [], - targets = typeof selectors !== "string" && jQuery( selectors ); - - // Positional selectors never match, since there's no _selection_ context - if ( !rneedsContext.test( selectors ) ) { - for ( ; i < l; i++ ) { - for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { - - // Always skip document fragments - if ( cur.nodeType < 11 && ( targets ? - targets.index( cur ) > -1 : - - // Don't pass non-elements to Sizzle - cur.nodeType === 1 && - jQuery.find.matchesSelector( cur, selectors ) ) ) { - - matched.push( cur ); - break; - } - } - } - } - - return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); - }, - - // Determine the position of an element within the set - index: function( elem ) { - - // No argument, return index in parent - if ( !elem ) { - return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; - } - - // Index in selector - if ( typeof elem === "string" ) { - return indexOf.call( jQuery( elem ), this[ 0 ] ); - } - - // Locate the position of the desired element - return indexOf.call( this, - - // If it receives a jQuery object, the first element is used - elem.jquery ? elem[ 0 ] : elem - ); - }, - - add: function( selector, context ) { - return this.pushStack( - jQuery.uniqueSort( - jQuery.merge( this.get(), jQuery( selector, context ) ) - ) - ); - }, - - addBack: function( selector ) { - return this.add( selector == null ? - this.prevObject : this.prevObject.filter( selector ) - ); - } -} ); - -function sibling( cur, dir ) { - while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} - return cur; -} - -jQuery.each( { - parent: function( elem ) { - var parent = elem.parentNode; - return parent && parent.nodeType !== 11 ? parent : null; - }, - parents: function( elem ) { - return dir( elem, "parentNode" ); - }, - parentsUntil: function( elem, i, until ) { - return dir( elem, "parentNode", until ); - }, - next: function( elem ) { - return sibling( elem, "nextSibling" ); - }, - prev: function( elem ) { - return sibling( elem, "previousSibling" ); - }, - nextAll: function( elem ) { - return dir( elem, "nextSibling" ); - }, - prevAll: function( elem ) { - return dir( elem, "previousSibling" ); - }, - nextUntil: function( elem, i, until ) { - return dir( elem, "nextSibling", until ); - }, - prevUntil: function( elem, i, until ) { - return dir( elem, "previousSibling", until ); - }, - siblings: function( elem ) { - return siblings( ( elem.parentNode || {} ).firstChild, elem ); - }, - children: function( elem ) { - return siblings( elem.firstChild ); - }, - contents: function( elem ) { - if ( nodeName( elem, "iframe" ) ) { - return elem.contentDocument; - } - - // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only - // Treat the template element as a regular one in browsers that - // don't support it. - if ( nodeName( elem, "template" ) ) { - elem = elem.content || elem; - } - - return jQuery.merge( [], elem.childNodes ); - } -}, function( name, fn ) { - jQuery.fn[ name ] = function( until, selector ) { - var matched = jQuery.map( this, fn, until ); - - if ( name.slice( -5 ) !== "Until" ) { - selector = until; - } - - if ( selector && typeof selector === "string" ) { - matched = jQuery.filter( selector, matched ); - } - - if ( this.length > 1 ) { - - // Remove duplicates - if ( !guaranteedUnique[ name ] ) { - jQuery.uniqueSort( matched ); - } - - // Reverse order for parents* and prev-derivatives - if ( rparentsprev.test( name ) ) { - matched.reverse(); - } - } - - return this.pushStack( matched ); - }; -} ); -var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); - - - -// Convert String-formatted options into Object-formatted ones -function createOptions( options ) { - var object = {}; - jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { - object[ flag ] = true; - } ); - return object; -} - -/* - * Create a callback list using the following parameters: - * - * options: an optional list of space-separated options that will change how - * the callback list behaves or a more traditional option object - * - * By default a callback list will act like an event callback list and can be - * "fired" multiple times. - * - * Possible options: - * - * once: will ensure the callback list can only be fired once (like a Deferred) - * - * memory: will keep track of previous values and will call any callback added - * after the list has been fired right away with the latest "memorized" - * values (like a Deferred) - * - * unique: will ensure a callback can only be added once (no duplicate in the list) - * - * stopOnFalse: interrupt callings when a callback returns false - * - */ -jQuery.Callbacks = function( options ) { - - // Convert options from String-formatted to Object-formatted if needed - // (we check in cache first) - options = typeof options === "string" ? - createOptions( options ) : - jQuery.extend( {}, options ); - - var // Flag to know if list is currently firing - firing, - - // Last fire value for non-forgettable lists - memory, - - // Flag to know if list was already fired - fired, - - // Flag to prevent firing - locked, - - // Actual callback list - list = [], - - // Queue of execution data for repeatable lists - queue = [], - - // Index of currently firing callback (modified by add/remove as needed) - firingIndex = -1, - - // Fire callbacks - fire = function() { - - // Enforce single-firing - locked = locked || options.once; - - // Execute callbacks for all pending executions, - // respecting firingIndex overrides and runtime changes - fired = firing = true; - for ( ; queue.length; firingIndex = -1 ) { - memory = queue.shift(); - while ( ++firingIndex < list.length ) { - - // Run callback and check for early termination - if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && - options.stopOnFalse ) { - - // Jump to end and forget the data so .add doesn't re-fire - firingIndex = list.length; - memory = false; - } - } - } - - // Forget the data if we're done with it - if ( !options.memory ) { - memory = false; - } - - firing = false; - - // Clean up if we're done firing for good - if ( locked ) { - - // Keep an empty list if we have data for future add calls - if ( memory ) { - list = []; - - // Otherwise, this object is spent - } else { - list = ""; - } - } - }, - - // Actual Callbacks object - self = { - - // Add a callback or a collection of callbacks to the list - add: function() { - if ( list ) { - - // If we have memory from a past run, we should fire after adding - if ( memory && !firing ) { - firingIndex = list.length - 1; - queue.push( memory ); - } - - ( function add( args ) { - jQuery.each( args, function( _, arg ) { - if ( isFunction( arg ) ) { - if ( !options.unique || !self.has( arg ) ) { - list.push( arg ); - } - } else if ( arg && arg.length && toType( arg ) !== "string" ) { - - // Inspect recursively - add( arg ); - } - } ); - } )( arguments ); - - if ( memory && !firing ) { - fire(); - } - } - return this; - }, - - // Remove a callback from the list - remove: function() { - jQuery.each( arguments, function( _, arg ) { - var index; - while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { - list.splice( index, 1 ); - - // Handle firing indexes - if ( index <= firingIndex ) { - firingIndex--; - } - } - } ); - return this; - }, - - // Check if a given callback is in the list. - // If no argument is given, return whether or not list has callbacks attached. - has: function( fn ) { - return fn ? - jQuery.inArray( fn, list ) > -1 : - list.length > 0; - }, - - // Remove all callbacks from the list - empty: function() { - if ( list ) { - list = []; - } - return this; - }, - - // Disable .fire and .add - // Abort any current/pending executions - // Clear all callbacks and values - disable: function() { - locked = queue = []; - list = memory = ""; - return this; - }, - disabled: function() { - return !list; - }, - - // Disable .fire - // Also disable .add unless we have memory (since it would have no effect) - // Abort any pending executions - lock: function() { - locked = queue = []; - if ( !memory && !firing ) { - list = memory = ""; - } - return this; - }, - locked: function() { - return !!locked; - }, - - // Call all callbacks with the given context and arguments - fireWith: function( context, args ) { - if ( !locked ) { - args = args || []; - args = [ context, args.slice ? args.slice() : args ]; - queue.push( args ); - if ( !firing ) { - fire(); - } - } - return this; - }, - - // Call all the callbacks with the given arguments - fire: function() { - self.fireWith( this, arguments ); - return this; - }, - - // To know if the callbacks have already been called at least once - fired: function() { - return !!fired; - } - }; - - return self; -}; - - -function Identity( v ) { - return v; -} -function Thrower( ex ) { - throw ex; -} - -function adoptValue( value, resolve, reject, noValue ) { - var method; - - try { - - // Check for promise aspect first to privilege synchronous behavior - if ( value && isFunction( ( method = value.promise ) ) ) { - method.call( value ).done( resolve ).fail( reject ); - - // Other thenables - } else if ( value && isFunction( ( method = value.then ) ) ) { - method.call( value, resolve, reject ); - - // Other non-thenables - } else { - - // Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer: - // * false: [ value ].slice( 0 ) => resolve( value ) - // * true: [ value ].slice( 1 ) => resolve() - resolve.apply( undefined, [ value ].slice( noValue ) ); - } - - // For Promises/A+, convert exceptions into rejections - // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in - // Deferred#then to conditionally suppress rejection. - } catch ( value ) { - - // Support: Android 4.0 only - // Strict mode functions invoked without .call/.apply get global-object context - reject.apply( undefined, [ value ] ); - } -} - -jQuery.extend( { - - Deferred: function( func ) { - var tuples = [ - - // action, add listener, callbacks, - // ... .then handlers, argument index, [final state] - [ "notify", "progress", jQuery.Callbacks( "memory" ), - jQuery.Callbacks( "memory" ), 2 ], - [ "resolve", "done", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 0, "resolved" ], - [ "reject", "fail", jQuery.Callbacks( "once memory" ), - jQuery.Callbacks( "once memory" ), 1, "rejected" ] - ], - state = "pending", - promise = { - state: function() { - return state; - }, - always: function() { - deferred.done( arguments ).fail( arguments ); - return this; - }, - "catch": function( fn ) { - return promise.then( null, fn ); - }, - - // Keep pipe for back-compat - pipe: function( /* fnDone, fnFail, fnProgress */ ) { - var fns = arguments; - - return jQuery.Deferred( function( newDefer ) { - jQuery.each( tuples, function( i, tuple ) { - - // Map tuples (progress, done, fail) to arguments (done, fail, progress) - var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; - - // deferred.progress(function() { bind to newDefer or newDefer.notify }) - // deferred.done(function() { bind to newDefer or newDefer.resolve }) - // deferred.fail(function() { bind to newDefer or newDefer.reject }) - deferred[ tuple[ 1 ] ]( function() { - var returned = fn && fn.apply( this, arguments ); - if ( returned && isFunction( returned.promise ) ) { - returned.promise() - .progress( newDefer.notify ) - .done( newDefer.resolve ) - .fail( newDefer.reject ); - } else { - newDefer[ tuple[ 0 ] + "With" ]( - this, - fn ? [ returned ] : arguments - ); - } - } ); - } ); - fns = null; - } ).promise(); - }, - then: function( onFulfilled, onRejected, onProgress ) { - var maxDepth = 0; - function resolve( depth, deferred, handler, special ) { - return function() { - var that = this, - args = arguments, - mightThrow = function() { - var returned, then; - - // Support: Promises/A+ section 2.3.3.3.3 - // https://promisesaplus.com/#point-59 - // Ignore double-resolution attempts - if ( depth < maxDepth ) { - return; - } - - returned = handler.apply( that, args ); - - // Support: Promises/A+ section 2.3.1 - // https://promisesaplus.com/#point-48 - if ( returned === deferred.promise() ) { - throw new TypeError( "Thenable self-resolution" ); - } - - // Support: Promises/A+ sections 2.3.3.1, 3.5 - // https://promisesaplus.com/#point-54 - // https://promisesaplus.com/#point-75 - // Retrieve `then` only once - then = returned && - - // Support: Promises/A+ section 2.3.4 - // https://promisesaplus.com/#point-64 - // Only check objects and functions for thenability - ( typeof returned === "object" || - typeof returned === "function" ) && - returned.then; - - // Handle a returned thenable - if ( isFunction( then ) ) { - - // Special processors (notify) just wait for resolution - if ( special ) { - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ) - ); - - // Normal processors (resolve) also hook into progress - } else { - - // ...and disregard older resolution values - maxDepth++; - - then.call( - returned, - resolve( maxDepth, deferred, Identity, special ), - resolve( maxDepth, deferred, Thrower, special ), - resolve( maxDepth, deferred, Identity, - deferred.notifyWith ) - ); - } - - // Handle all other returned values - } else { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Identity ) { - that = undefined; - args = [ returned ]; - } - - // Process the value(s) - // Default process is resolve - ( special || deferred.resolveWith )( that, args ); - } - }, - - // Only normal processors (resolve) catch and reject exceptions - process = special ? - mightThrow : - function() { - try { - mightThrow(); - } catch ( e ) { - - if ( jQuery.Deferred.exceptionHook ) { - jQuery.Deferred.exceptionHook( e, - process.stackTrace ); - } - - // Support: Promises/A+ section 2.3.3.3.4.1 - // https://promisesaplus.com/#point-61 - // Ignore post-resolution exceptions - if ( depth + 1 >= maxDepth ) { - - // Only substitute handlers pass on context - // and multiple values (non-spec behavior) - if ( handler !== Thrower ) { - that = undefined; - args = [ e ]; - } - - deferred.rejectWith( that, args ); - } - } - }; - - // Support: Promises/A+ section 2.3.3.3.1 - // https://promisesaplus.com/#point-57 - // Re-resolve promises immediately to dodge false rejection from - // subsequent errors - if ( depth ) { - process(); - } else { - - // Call an optional hook to record the stack, in case of exception - // since it's otherwise lost when execution goes async - if ( jQuery.Deferred.getStackHook ) { - process.stackTrace = jQuery.Deferred.getStackHook(); - } - window.setTimeout( process ); - } - }; - } - - return jQuery.Deferred( function( newDefer ) { - - // progress_handlers.add( ... ) - tuples[ 0 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onProgress ) ? - onProgress : - Identity, - newDefer.notifyWith - ) - ); - - // fulfilled_handlers.add( ... ) - tuples[ 1 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onFulfilled ) ? - onFulfilled : - Identity - ) - ); - - // rejected_handlers.add( ... ) - tuples[ 2 ][ 3 ].add( - resolve( - 0, - newDefer, - isFunction( onRejected ) ? - onRejected : - Thrower - ) - ); - } ).promise(); - }, - - // Get a promise for this deferred - // If obj is provided, the promise aspect is added to the object - promise: function( obj ) { - return obj != null ? jQuery.extend( obj, promise ) : promise; - } - }, - deferred = {}; - - // Add list-specific methods - jQuery.each( tuples, function( i, tuple ) { - var list = tuple[ 2 ], - stateString = tuple[ 5 ]; - - // promise.progress = list.add - // promise.done = list.add - // promise.fail = list.add - promise[ tuple[ 1 ] ] = list.add; - - // Handle state - if ( stateString ) { - list.add( - function() { - - // state = "resolved" (i.e., fulfilled) - // state = "rejected" - state = stateString; - }, - - // rejected_callbacks.disable - // fulfilled_callbacks.disable - tuples[ 3 - i ][ 2 ].disable, - - // rejected_handlers.disable - // fulfilled_handlers.disable - tuples[ 3 - i ][ 3 ].disable, - - // progress_callbacks.lock - tuples[ 0 ][ 2 ].lock, - - // progress_handlers.lock - tuples[ 0 ][ 3 ].lock - ); - } - - // progress_handlers.fire - // fulfilled_handlers.fire - // rejected_handlers.fire - list.add( tuple[ 3 ].fire ); - - // deferred.notify = function() { deferred.notifyWith(...) } - // deferred.resolve = function() { deferred.resolveWith(...) } - // deferred.reject = function() { deferred.rejectWith(...) } - deferred[ tuple[ 0 ] ] = function() { - deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); - return this; - }; - - // deferred.notifyWith = list.fireWith - // deferred.resolveWith = list.fireWith - // deferred.rejectWith = list.fireWith - deferred[ tuple[ 0 ] + "With" ] = list.fireWith; - } ); - - // Make the deferred a promise - promise.promise( deferred ); - - // Call given func if any - if ( func ) { - func.call( deferred, deferred ); - } - - // All done! - return deferred; - }, - - // Deferred helper - when: function( singleValue ) { - var - - // count of uncompleted subordinates - remaining = arguments.length, - - // count of unprocessed arguments - i = remaining, - - // subordinate fulfillment data - resolveContexts = Array( i ), - resolveValues = slice.call( arguments ), - - // the master Deferred - master = jQuery.Deferred(), - - // subordinate callback factory - updateFunc = function( i ) { - return function( value ) { - resolveContexts[ i ] = this; - resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; - if ( !( --remaining ) ) { - master.resolveWith( resolveContexts, resolveValues ); - } - }; - }; - - // Single- and empty arguments are adopted like Promise.resolve - if ( remaining <= 1 ) { - adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject, - !remaining ); - - // Use .then() to unwrap secondary thenables (cf. gh-3000) - if ( master.state() === "pending" || - isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { - - return master.then(); - } - } - - // Multiple arguments are aggregated like Promise.all array elements - while ( i-- ) { - adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); - } - - return master.promise(); - } -} ); - - -// These usually indicate a programmer mistake during development, -// warn about them ASAP rather than swallowing them by default. -var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - -jQuery.Deferred.exceptionHook = function( error, stack ) { - - // Support: IE 8 - 9 only - // Console exists when dev tools are open, which can happen at any time - if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { - window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); - } -}; - - - - -jQuery.readyException = function( error ) { - window.setTimeout( function() { - throw error; - } ); -}; - - - - -// The deferred used on DOM ready -var readyList = jQuery.Deferred(); - -jQuery.fn.ready = function( fn ) { - - readyList - .then( fn ) - - // Wrap jQuery.readyException in a function so that the lookup - // happens at the time of error handling instead of callback - // registration. - .catch( function( error ) { - jQuery.readyException( error ); - } ); - - return this; -}; - -jQuery.extend( { - - // Is the DOM ready to be used? Set to true once it occurs. - isReady: false, - - // A counter to track how many items to wait for before - // the ready event fires. See #6781 - readyWait: 1, - - // Handle when the DOM is ready - ready: function( wait ) { - - // Abort if there are pending holds or we're already ready - if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { - return; - } - - // Remember that the DOM is ready - jQuery.isReady = true; - - // If a normal DOM Ready event fired, decrement, and wait if need be - if ( wait !== true && --jQuery.readyWait > 0 ) { - return; - } - - // If there are functions bound, to execute - readyList.resolveWith( document, [ jQuery ] ); - } -} ); - -jQuery.ready.then = readyList.then; - -// The ready event handler and self cleanup method -function completed() { - document.removeEventListener( "DOMContentLoaded", completed ); - window.removeEventListener( "load", completed ); - jQuery.ready(); -} - -// Catch cases where $(document).ready() is called -// after the browser event has already occurred. -// Support: IE <=9 - 10 only -// Older IE sometimes signals "interactive" too soon -if ( document.readyState === "complete" || - ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { - - // Handle it asynchronously to allow scripts the opportunity to delay ready - window.setTimeout( jQuery.ready ); - -} else { - - // Use the handy event callback - document.addEventListener( "DOMContentLoaded", completed ); - - // A fallback to window.onload, that will always work - window.addEventListener( "load", completed ); -} - - - - -// Multifunctional method to get and set values of a collection -// The value/s can optionally be executed if it's a function -var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { - var i = 0, - len = elems.length, - bulk = key == null; - - // Sets many values - if ( toType( key ) === "object" ) { - chainable = true; - for ( i in key ) { - access( elems, fn, i, key[ i ], true, emptyGet, raw ); - } - - // Sets one value - } else if ( value !== undefined ) { - chainable = true; - - if ( !isFunction( value ) ) { - raw = true; - } - - if ( bulk ) { - - // Bulk operations run against the entire set - if ( raw ) { - fn.call( elems, value ); - fn = null; - - // ...except when executing function values - } else { - bulk = fn; - fn = function( elem, key, value ) { - return bulk.call( jQuery( elem ), value ); - }; - } - } - - if ( fn ) { - for ( ; i < len; i++ ) { - fn( - elems[ i ], key, raw ? - value : - value.call( elems[ i ], i, fn( elems[ i ], key ) ) - ); - } - } - } - - if ( chainable ) { - return elems; - } - - // Gets - if ( bulk ) { - return fn.call( elems ); - } - - return len ? fn( elems[ 0 ], key ) : emptyGet; -}; - - -// Matches dashed string for camelizing -var rmsPrefix = /^-ms-/, - rdashAlpha = /-([a-z])/g; - -// Used by camelCase as callback to replace() -function fcamelCase( all, letter ) { - return letter.toUpperCase(); -} - -// Convert dashed to camelCase; used by the css and data modules -// Support: IE <=9 - 11, Edge 12 - 15 -// Microsoft forgot to hump their vendor prefix (#9572) -function camelCase( string ) { - return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); -} -var acceptData = function( owner ) { - - // Accepts only: - // - Node - // - Node.ELEMENT_NODE - // - Node.DOCUMENT_NODE - // - Object - // - Any - return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); -}; - - - - -function Data() { - this.expando = jQuery.expando + Data.uid++; -} - -Data.uid = 1; - -Data.prototype = { - - cache: function( owner ) { - - // Check if the owner object already has a cache - var value = owner[ this.expando ]; - - // If not, create one - if ( !value ) { - value = {}; - - // We can accept data for non-element nodes in modern browsers, - // but we should not, see #8335. - // Always return an empty object. - if ( acceptData( owner ) ) { - - // If it is a node unlikely to be stringify-ed or looped over - // use plain assignment - if ( owner.nodeType ) { - owner[ this.expando ] = value; - - // Otherwise secure it in a non-enumerable property - // configurable must be true to allow the property to be - // deleted when data is removed - } else { - Object.defineProperty( owner, this.expando, { - value: value, - configurable: true - } ); - } - } - } - - return value; - }, - set: function( owner, data, value ) { - var prop, - cache = this.cache( owner ); - - // Handle: [ owner, key, value ] args - // Always use camelCase key (gh-2257) - if ( typeof data === "string" ) { - cache[ camelCase( data ) ] = value; - - // Handle: [ owner, { properties } ] args - } else { - - // Copy the properties one-by-one to the cache object - for ( prop in data ) { - cache[ camelCase( prop ) ] = data[ prop ]; - } - } - return cache; - }, - get: function( owner, key ) { - return key === undefined ? - this.cache( owner ) : - - // Always use camelCase key (gh-2257) - owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ]; - }, - access: function( owner, key, value ) { - - // In cases where either: - // - // 1. No key was specified - // 2. A string key was specified, but no value provided - // - // Take the "read" path and allow the get method to determine - // which value to return, respectively either: - // - // 1. The entire cache object - // 2. The data stored at the key - // - if ( key === undefined || - ( ( key && typeof key === "string" ) && value === undefined ) ) { - - return this.get( owner, key ); - } - - // When the key is not a string, or both a key and value - // are specified, set or extend (existing objects) with either: - // - // 1. An object of properties - // 2. A key and value - // - this.set( owner, key, value ); - - // Since the "set" path can have two possible entry points - // return the expected data based on which path was taken[*] - return value !== undefined ? value : key; - }, - remove: function( owner, key ) { - var i, - cache = owner[ this.expando ]; - - if ( cache === undefined ) { - return; - } - - if ( key !== undefined ) { - - // Support array or space separated string of keys - if ( Array.isArray( key ) ) { - - // If key is an array of keys... - // We always set camelCase keys, so remove that. - key = key.map( camelCase ); - } else { - key = camelCase( key ); - - // If a key with the spaces exists, use it. - // Otherwise, create an array by matching non-whitespace - key = key in cache ? - [ key ] : - ( key.match( rnothtmlwhite ) || [] ); - } - - i = key.length; - - while ( i-- ) { - delete cache[ key[ i ] ]; - } - } - - // Remove the expando if there's no more data - if ( key === undefined || jQuery.isEmptyObject( cache ) ) { - - // Support: Chrome <=35 - 45 - // Webkit & Blink performance suffers when deleting properties - // from DOM nodes, so set to undefined instead - // https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted) - if ( owner.nodeType ) { - owner[ this.expando ] = undefined; - } else { - delete owner[ this.expando ]; - } - } - }, - hasData: function( owner ) { - var cache = owner[ this.expando ]; - return cache !== undefined && !jQuery.isEmptyObject( cache ); - } -}; -var dataPriv = new Data(); - -var dataUser = new Data(); - - - -// Implementation Summary -// -// 1. Enforce API surface and semantic compatibility with 1.9.x branch -// 2. Improve the module's maintainability by reducing the storage -// paths to a single mechanism. -// 3. Use the same single mechanism to support "private" and "user" data. -// 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) -// 5. Avoid exposing implementation details on user objects (eg. expando properties) -// 6. Provide a clear path for implementation upgrade to WeakMap in 2014 - -var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, - rmultiDash = /[A-Z]/g; - -function getData( data ) { - if ( data === "true" ) { - return true; - } - - if ( data === "false" ) { - return false; - } - - if ( data === "null" ) { - return null; - } - - // Only convert to a number if it doesn't change the string - if ( data === +data + "" ) { - return +data; - } - - if ( rbrace.test( data ) ) { - return JSON.parse( data ); - } - - return data; -} - -function dataAttr( elem, key, data ) { - var name; - - // If nothing was found internally, try to fetch any - // data from the HTML5 data-* attribute - if ( data === undefined && elem.nodeType === 1 ) { - name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); - data = elem.getAttribute( name ); - - if ( typeof data === "string" ) { - try { - data = getData( data ); - } catch ( e ) {} - - // Make sure we set the data so it isn't changed later - dataUser.set( elem, key, data ); - } else { - data = undefined; - } - } - return data; -} - -jQuery.extend( { - hasData: function( elem ) { - return dataUser.hasData( elem ) || dataPriv.hasData( elem ); - }, - - data: function( elem, name, data ) { - return dataUser.access( elem, name, data ); - }, - - removeData: function( elem, name ) { - dataUser.remove( elem, name ); - }, - - // TODO: Now that all calls to _data and _removeData have been replaced - // with direct calls to dataPriv methods, these can be deprecated. - _data: function( elem, name, data ) { - return dataPriv.access( elem, name, data ); - }, - - _removeData: function( elem, name ) { - dataPriv.remove( elem, name ); - } -} ); - -jQuery.fn.extend( { - data: function( key, value ) { - var i, name, data, - elem = this[ 0 ], - attrs = elem && elem.attributes; - - // Gets all values - if ( key === undefined ) { - if ( this.length ) { - data = dataUser.get( elem ); - - if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { - i = attrs.length; - while ( i-- ) { - - // Support: IE 11 only - // The attrs elements can be null (#14894) - if ( attrs[ i ] ) { - name = attrs[ i ].name; - if ( name.indexOf( "data-" ) === 0 ) { - name = camelCase( name.slice( 5 ) ); - dataAttr( elem, name, data[ name ] ); - } - } - } - dataPriv.set( elem, "hasDataAttrs", true ); - } - } - - return data; - } - - // Sets multiple values - if ( typeof key === "object" ) { - return this.each( function() { - dataUser.set( this, key ); - } ); - } - - return access( this, function( value ) { - var data; - - // The calling jQuery object (element matches) is not empty - // (and therefore has an element appears at this[ 0 ]) and the - // `value` parameter was not undefined. An empty jQuery object - // will result in `undefined` for elem = this[ 0 ] which will - // throw an exception if an attempt to read a data cache is made. - if ( elem && value === undefined ) { - - // Attempt to get data from the cache - // The key will always be camelCased in Data - data = dataUser.get( elem, key ); - if ( data !== undefined ) { - return data; - } - - // Attempt to "discover" the data in - // HTML5 custom data-* attrs - data = dataAttr( elem, key ); - if ( data !== undefined ) { - return data; - } - - // We tried really hard, but the data doesn't exist. - return; - } - - // Set the data... - this.each( function() { - - // We always store the camelCased key - dataUser.set( this, key, value ); - } ); - }, null, value, arguments.length > 1, null, true ); - }, - - removeData: function( key ) { - return this.each( function() { - dataUser.remove( this, key ); - } ); - } -} ); - - -jQuery.extend( { - queue: function( elem, type, data ) { - var queue; - - if ( elem ) { - type = ( type || "fx" ) + "queue"; - queue = dataPriv.get( elem, type ); - - // Speed up dequeue by getting out quickly if this is just a lookup - if ( data ) { - if ( !queue || Array.isArray( data ) ) { - queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); - } else { - queue.push( data ); - } - } - return queue || []; - } - }, - - dequeue: function( elem, type ) { - type = type || "fx"; - - var queue = jQuery.queue( elem, type ), - startLength = queue.length, - fn = queue.shift(), - hooks = jQuery._queueHooks( elem, type ), - next = function() { - jQuery.dequeue( elem, type ); - }; - - // If the fx queue is dequeued, always remove the progress sentinel - if ( fn === "inprogress" ) { - fn = queue.shift(); - startLength--; - } - - if ( fn ) { - - // Add a progress sentinel to prevent the fx queue from being - // automatically dequeued - if ( type === "fx" ) { - queue.unshift( "inprogress" ); - } - - // Clear up the last queue stop function - delete hooks.stop; - fn.call( elem, next, hooks ); - } - - if ( !startLength && hooks ) { - hooks.empty.fire(); - } - }, - - // Not public - generate a queueHooks object, or return the current one - _queueHooks: function( elem, type ) { - var key = type + "queueHooks"; - return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { - empty: jQuery.Callbacks( "once memory" ).add( function() { - dataPriv.remove( elem, [ type + "queue", key ] ); - } ) - } ); - } -} ); - -jQuery.fn.extend( { - queue: function( type, data ) { - var setter = 2; - - if ( typeof type !== "string" ) { - data = type; - type = "fx"; - setter--; - } - - if ( arguments.length < setter ) { - return jQuery.queue( this[ 0 ], type ); - } - - return data === undefined ? - this : - this.each( function() { - var queue = jQuery.queue( this, type, data ); - - // Ensure a hooks for this queue - jQuery._queueHooks( this, type ); - - if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { - jQuery.dequeue( this, type ); - } - } ); - }, - dequeue: function( type ) { - return this.each( function() { - jQuery.dequeue( this, type ); - } ); - }, - clearQueue: function( type ) { - return this.queue( type || "fx", [] ); - }, - - // Get a promise resolved when queues of a certain type - // are emptied (fx is the type by default) - promise: function( type, obj ) { - var tmp, - count = 1, - defer = jQuery.Deferred(), - elements = this, - i = this.length, - resolve = function() { - if ( !( --count ) ) { - defer.resolveWith( elements, [ elements ] ); - } - }; - - if ( typeof type !== "string" ) { - obj = type; - type = undefined; - } - type = type || "fx"; - - while ( i-- ) { - tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); - if ( tmp && tmp.empty ) { - count++; - tmp.empty.add( resolve ); - } - } - resolve(); - return defer.promise( obj ); - } -} ); -var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; - -var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); - - -var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; - -var isHiddenWithinTree = function( elem, el ) { - - // isHiddenWithinTree might be called from jQuery#filter function; - // in that case, element will be second argument - elem = el || elem; - - // Inline style trumps all - return elem.style.display === "none" || - elem.style.display === "" && - - // Otherwise, check computed style - // Support: Firefox <=43 - 45 - // Disconnected elements can have computed display: none, so first confirm that elem is - // in the document. - jQuery.contains( elem.ownerDocument, elem ) && - - jQuery.css( elem, "display" ) === "none"; - }; - -var swap = function( elem, options, callback, args ) { - var ret, name, - old = {}; - - // Remember the old values, and insert the new ones - for ( name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - ret = callback.apply( elem, args || [] ); - - // Revert the old values - for ( name in options ) { - elem.style[ name ] = old[ name ]; - } - - return ret; -}; - - - - -function adjustCSS( elem, prop, valueParts, tween ) { - var adjusted, scale, - maxIterations = 20, - currentValue = tween ? - function() { - return tween.cur(); - } : - function() { - return jQuery.css( elem, prop, "" ); - }, - initial = currentValue(), - unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), - - // Starting value computation is required for potential unit mismatches - initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && - rcssNum.exec( jQuery.css( elem, prop ) ); - - if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { - - // Support: Firefox <=54 - // Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144) - initial = initial / 2; - - // Trust units reported by jQuery.css - unit = unit || initialInUnit[ 3 ]; - - // Iteratively approximate from a nonzero starting point - initialInUnit = +initial || 1; - - while ( maxIterations-- ) { - - // Evaluate and update our best guess (doubling guesses that zero out). - // Finish if the scale equals or crosses 1 (making the old*new product non-positive). - jQuery.style( elem, prop, initialInUnit + unit ); - if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) { - maxIterations = 0; - } - initialInUnit = initialInUnit / scale; - - } - - initialInUnit = initialInUnit * 2; - jQuery.style( elem, prop, initialInUnit + unit ); - - // Make sure we update the tween properties later on - valueParts = valueParts || []; - } - - if ( valueParts ) { - initialInUnit = +initialInUnit || +initial || 0; - - // Apply relative offset (+=/-=) if specified - adjusted = valueParts[ 1 ] ? - initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : - +valueParts[ 2 ]; - if ( tween ) { - tween.unit = unit; - tween.start = initialInUnit; - tween.end = adjusted; - } - } - return adjusted; -} - - -var defaultDisplayMap = {}; - -function getDefaultDisplay( elem ) { - var temp, - doc = elem.ownerDocument, - nodeName = elem.nodeName, - display = defaultDisplayMap[ nodeName ]; - - if ( display ) { - return display; - } - - temp = doc.body.appendChild( doc.createElement( nodeName ) ); - display = jQuery.css( temp, "display" ); - - temp.parentNode.removeChild( temp ); - - if ( display === "none" ) { - display = "block"; - } - defaultDisplayMap[ nodeName ] = display; - - return display; -} - -function showHide( elements, show ) { - var display, elem, - values = [], - index = 0, - length = elements.length; - - // Determine new display value for elements that need to change - for ( ; index < length; index++ ) { - elem = elements[ index ]; - if ( !elem.style ) { - continue; - } - - display = elem.style.display; - if ( show ) { - - // Since we force visibility upon cascade-hidden elements, an immediate (and slow) - // check is required in this first loop unless we have a nonempty display value (either - // inline or about-to-be-restored) - if ( display === "none" ) { - values[ index ] = dataPriv.get( elem, "display" ) || null; - if ( !values[ index ] ) { - elem.style.display = ""; - } - } - if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { - values[ index ] = getDefaultDisplay( elem ); - } - } else { - if ( display !== "none" ) { - values[ index ] = "none"; - - // Remember what we're overwriting - dataPriv.set( elem, "display", display ); - } - } - } - - // Set the display of the elements in a second loop to avoid constant reflow - for ( index = 0; index < length; index++ ) { - if ( values[ index ] != null ) { - elements[ index ].style.display = values[ index ]; - } - } - - return elements; -} - -jQuery.fn.extend( { - show: function() { - return showHide( this, true ); - }, - hide: function() { - return showHide( this ); - }, - toggle: function( state ) { - if ( typeof state === "boolean" ) { - return state ? this.show() : this.hide(); - } - - return this.each( function() { - if ( isHiddenWithinTree( this ) ) { - jQuery( this ).show(); - } else { - jQuery( this ).hide(); - } - } ); - } -} ); -var rcheckableType = ( /^(?:checkbox|radio)$/i ); - -var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); - -var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i ); - - - -// We have to close these tags to support XHTML (#13200) -var wrapMap = { - - // Support: IE <=9 only - option: [ 1, "" ], - - // XHTML parsers do not magically insert elements in the - // same way that tag soup parsers do. So we cannot shorten - // this by omitting or other required elements. - thead: [ 1, "", "
" ], - col: [ 2, "", "
" ], - tr: [ 2, "", "
" ], - td: [ 3, "", "
" ], - - _default: [ 0, "", "" ] -}; - -// Support: IE <=9 only -wrapMap.optgroup = wrapMap.option; - -wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -wrapMap.th = wrapMap.td; - - -function getAll( context, tag ) { - - // Support: IE <=9 - 11 only - // Use typeof to avoid zero-argument method invocation on host objects (#15151) - var ret; - - if ( typeof context.getElementsByTagName !== "undefined" ) { - ret = context.getElementsByTagName( tag || "*" ); - - } else if ( typeof context.querySelectorAll !== "undefined" ) { - ret = context.querySelectorAll( tag || "*" ); - - } else { - ret = []; - } - - if ( tag === undefined || tag && nodeName( context, tag ) ) { - return jQuery.merge( [ context ], ret ); - } - - return ret; -} - - -// Mark scripts as having already been evaluated -function setGlobalEval( elems, refElements ) { - var i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - dataPriv.set( - elems[ i ], - "globalEval", - !refElements || dataPriv.get( refElements[ i ], "globalEval" ) - ); - } -} - - -var rhtml = /<|&#?\w+;/; - -function buildFragment( elems, context, scripts, selection, ignored ) { - var elem, tmp, tag, wrap, contains, j, - fragment = context.createDocumentFragment(), - nodes = [], - i = 0, - l = elems.length; - - for ( ; i < l; i++ ) { - elem = elems[ i ]; - - if ( elem || elem === 0 ) { - - // Add nodes directly - if ( toType( elem ) === "object" ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); - - // Convert non-html into a text node - } else if ( !rhtml.test( elem ) ) { - nodes.push( context.createTextNode( elem ) ); - - // Convert html into DOM nodes - } else { - tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); - - // Deserialize a standard representation - tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); - wrap = wrapMap[ tag ] || wrapMap._default; - tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; - - // Descend through wrappers to the right content - j = wrap[ 0 ]; - while ( j-- ) { - tmp = tmp.lastChild; - } - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( nodes, tmp.childNodes ); - - // Remember the top-level container - tmp = fragment.firstChild; - - // Ensure the created nodes are orphaned (#12392) - tmp.textContent = ""; - } - } - } - - // Remove wrapper from fragment - fragment.textContent = ""; - - i = 0; - while ( ( elem = nodes[ i++ ] ) ) { - - // Skip elements already in the context collection (trac-4087) - if ( selection && jQuery.inArray( elem, selection ) > -1 ) { - if ( ignored ) { - ignored.push( elem ); - } - continue; - } - - contains = jQuery.contains( elem.ownerDocument, elem ); - - // Append to fragment - tmp = getAll( fragment.appendChild( elem ), "script" ); - - // Preserve script evaluation history - if ( contains ) { - setGlobalEval( tmp ); - } - - // Capture executables - if ( scripts ) { - j = 0; - while ( ( elem = tmp[ j++ ] ) ) { - if ( rscriptType.test( elem.type || "" ) ) { - scripts.push( elem ); - } - } - } - } - - return fragment; -} - - -( function() { - var fragment = document.createDocumentFragment(), - div = fragment.appendChild( document.createElement( "div" ) ), - input = document.createElement( "input" ); - - // Support: Android 4.0 - 4.3 only - // Check state lost if the name is set (#11217) - // Support: Windows Web Apps (WWA) - // `name` and `type` must use .setAttribute for WWA (#14901) - input.setAttribute( "type", "radio" ); - input.setAttribute( "checked", "checked" ); - input.setAttribute( "name", "t" ); - - div.appendChild( input ); - - // Support: Android <=4.1 only - // Older WebKit doesn't clone checked state correctly in fragments - support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - - // Support: IE <=11 only - // Make sure textarea (and checkbox) defaultValue is properly cloned - div.innerHTML = ""; - support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; -} )(); -var documentElement = document.documentElement; - - - -var - rkeyEvent = /^key/, - rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, - rtypenamespace = /^([^.]*)(?:\.(.+)|)/; - -function returnTrue() { - return true; -} - -function returnFalse() { - return false; -} - -// Support: IE <=9 only -// See #13393 for more info -function safeActiveElement() { - try { - return document.activeElement; - } catch ( err ) { } -} - -function on( elem, types, selector, data, fn, one ) { - var origFn, type; - - // Types can be a map of types/handlers - if ( typeof types === "object" ) { - - // ( types-Object, selector, data ) - if ( typeof selector !== "string" ) { - - // ( types-Object, data ) - data = data || selector; - selector = undefined; - } - for ( type in types ) { - on( elem, type, selector, data, types[ type ], one ); - } - return elem; - } - - if ( data == null && fn == null ) { - - // ( types, fn ) - fn = selector; - data = selector = undefined; - } else if ( fn == null ) { - if ( typeof selector === "string" ) { - - // ( types, selector, fn ) - fn = data; - data = undefined; - } else { - - // ( types, data, fn ) - fn = data; - data = selector; - selector = undefined; - } - } - if ( fn === false ) { - fn = returnFalse; - } else if ( !fn ) { - return elem; - } - - if ( one === 1 ) { - origFn = fn; - fn = function( event ) { - - // Can use an empty set, since event contains the info - jQuery().off( event ); - return origFn.apply( this, arguments ); - }; - - // Use same guid so caller can remove using origFn - fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); - } - return elem.each( function() { - jQuery.event.add( this, types, fn, data, selector ); - } ); -} - -/* - * Helper functions for managing events -- not part of the public interface. - * Props to Dean Edwards' addEvent library for many of the ideas. - */ -jQuery.event = { - - global: {}, - - add: function( elem, types, handler, data, selector ) { - - var handleObjIn, eventHandle, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.get( elem ); - - // Don't attach events to noData or text/comment nodes (but allow plain objects) - if ( !elemData ) { - return; - } - - // Caller can pass in an object of custom data in lieu of the handler - if ( handler.handler ) { - handleObjIn = handler; - handler = handleObjIn.handler; - selector = handleObjIn.selector; - } - - // Ensure that invalid selectors throw exceptions at attach time - // Evaluate against documentElement in case elem is a non-element node (e.g., document) - if ( selector ) { - jQuery.find.matchesSelector( documentElement, selector ); - } - - // Make sure that the handler has a unique ID, used to find/remove it later - if ( !handler.guid ) { - handler.guid = jQuery.guid++; - } - - // Init the element's event structure and main handler, if this is the first - if ( !( events = elemData.events ) ) { - events = elemData.events = {}; - } - if ( !( eventHandle = elemData.handle ) ) { - eventHandle = elemData.handle = function( e ) { - - // Discard the second event of a jQuery.event.trigger() and - // when an event is called after a page has unloaded - return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? - jQuery.event.dispatch.apply( elem, arguments ) : undefined; - }; - } - - // Handle multiple events separated by a space - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // There *must* be a type, no attaching namespace-only handlers - if ( !type ) { - continue; - } - - // If event changes its type, use the special event handlers for the changed type - special = jQuery.event.special[ type ] || {}; - - // If selector defined, determine special event api type, otherwise given type - type = ( selector ? special.delegateType : special.bindType ) || type; - - // Update special based on newly reset type - special = jQuery.event.special[ type ] || {}; - - // handleObj is passed to all event handlers - handleObj = jQuery.extend( { - type: type, - origType: origType, - data: data, - handler: handler, - guid: handler.guid, - selector: selector, - needsContext: selector && jQuery.expr.match.needsContext.test( selector ), - namespace: namespaces.join( "." ) - }, handleObjIn ); - - // Init the event handler queue if we're the first - if ( !( handlers = events[ type ] ) ) { - handlers = events[ type ] = []; - handlers.delegateCount = 0; - - // Only use addEventListener if the special events handler returns false - if ( !special.setup || - special.setup.call( elem, data, namespaces, eventHandle ) === false ) { - - if ( elem.addEventListener ) { - elem.addEventListener( type, eventHandle ); - } - } - } - - if ( special.add ) { - special.add.call( elem, handleObj ); - - if ( !handleObj.handler.guid ) { - handleObj.handler.guid = handler.guid; - } - } - - // Add to the element's handler list, delegates in front - if ( selector ) { - handlers.splice( handlers.delegateCount++, 0, handleObj ); - } else { - handlers.push( handleObj ); - } - - // Keep track of which events have ever been used, for event optimization - jQuery.event.global[ type ] = true; - } - - }, - - // Detach an event or set of events from an element - remove: function( elem, types, handler, selector, mappedTypes ) { - - var j, origCount, tmp, - events, t, handleObj, - special, handlers, type, namespaces, origType, - elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); - - if ( !elemData || !( events = elemData.events ) ) { - return; - } - - // Once for each type.namespace in types; type may be omitted - types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; - t = types.length; - while ( t-- ) { - tmp = rtypenamespace.exec( types[ t ] ) || []; - type = origType = tmp[ 1 ]; - namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); - - // Unbind all events (on this namespace, if provided) for the element - if ( !type ) { - for ( type in events ) { - jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); - } - continue; - } - - special = jQuery.event.special[ type ] || {}; - type = ( selector ? special.delegateType : special.bindType ) || type; - handlers = events[ type ] || []; - tmp = tmp[ 2 ] && - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); - - // Remove matching events - origCount = j = handlers.length; - while ( j-- ) { - handleObj = handlers[ j ]; - - if ( ( mappedTypes || origType === handleObj.origType ) && - ( !handler || handler.guid === handleObj.guid ) && - ( !tmp || tmp.test( handleObj.namespace ) ) && - ( !selector || selector === handleObj.selector || - selector === "**" && handleObj.selector ) ) { - handlers.splice( j, 1 ); - - if ( handleObj.selector ) { - handlers.delegateCount--; - } - if ( special.remove ) { - special.remove.call( elem, handleObj ); - } - } - } - - // Remove generic event handler if we removed something and no more handlers exist - // (avoids potential for endless recursion during removal of special event handlers) - if ( origCount && !handlers.length ) { - if ( !special.teardown || - special.teardown.call( elem, namespaces, elemData.handle ) === false ) { - - jQuery.removeEvent( elem, type, elemData.handle ); - } - - delete events[ type ]; - } - } - - // Remove data and the expando if it's no longer used - if ( jQuery.isEmptyObject( events ) ) { - dataPriv.remove( elem, "handle events" ); - } - }, - - dispatch: function( nativeEvent ) { - - // Make a writable jQuery.Event from the native event object - var event = jQuery.event.fix( nativeEvent ); - - var i, j, ret, matched, handleObj, handlerQueue, - args = new Array( arguments.length ), - handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], - special = jQuery.event.special[ event.type ] || {}; - - // Use the fix-ed jQuery.Event rather than the (read-only) native event - args[ 0 ] = event; - - for ( i = 1; i < arguments.length; i++ ) { - args[ i ] = arguments[ i ]; - } - - event.delegateTarget = this; - - // Call the preDispatch hook for the mapped type, and let it bail if desired - if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { - return; - } - - // Determine handlers - handlerQueue = jQuery.event.handlers.call( this, event, handlers ); - - // Run delegates first; they may want to stop propagation beneath us - i = 0; - while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { - event.currentTarget = matched.elem; - - j = 0; - while ( ( handleObj = matched.handlers[ j++ ] ) && - !event.isImmediatePropagationStopped() ) { - - // Triggered event must either 1) have no namespace, or 2) have namespace(s) - // a subset or equal to those in the bound event (both can have no namespace). - if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { - - event.handleObj = handleObj; - event.data = handleObj.data; - - ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || - handleObj.handler ).apply( matched.elem, args ); - - if ( ret !== undefined ) { - if ( ( event.result = ret ) === false ) { - event.preventDefault(); - event.stopPropagation(); - } - } - } - } - } - - // Call the postDispatch hook for the mapped type - if ( special.postDispatch ) { - special.postDispatch.call( this, event ); - } - - return event.result; - }, - - handlers: function( event, handlers ) { - var i, handleObj, sel, matchedHandlers, matchedSelectors, - handlerQueue = [], - delegateCount = handlers.delegateCount, - cur = event.target; - - // Find delegate handlers - if ( delegateCount && - - // Support: IE <=9 - // Black-hole SVG instance trees (trac-13180) - cur.nodeType && - - // Support: Firefox <=42 - // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) - // https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click - // Support: IE 11 only - // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) - !( event.type === "click" && event.button >= 1 ) ) { - - for ( ; cur !== this; cur = cur.parentNode || this ) { - - // Don't check non-elements (#13208) - // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) - if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { - matchedHandlers = []; - matchedSelectors = {}; - for ( i = 0; i < delegateCount; i++ ) { - handleObj = handlers[ i ]; - - // Don't conflict with Object.prototype properties (#13203) - sel = handleObj.selector + " "; - - if ( matchedSelectors[ sel ] === undefined ) { - matchedSelectors[ sel ] = handleObj.needsContext ? - jQuery( sel, this ).index( cur ) > -1 : - jQuery.find( sel, this, null, [ cur ] ).length; - } - if ( matchedSelectors[ sel ] ) { - matchedHandlers.push( handleObj ); - } - } - if ( matchedHandlers.length ) { - handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); - } - } - } - } - - // Add the remaining (directly-bound) handlers - cur = this; - if ( delegateCount < handlers.length ) { - handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); - } - - return handlerQueue; - }, - - addProp: function( name, hook ) { - Object.defineProperty( jQuery.Event.prototype, name, { - enumerable: true, - configurable: true, - - get: isFunction( hook ) ? - function() { - if ( this.originalEvent ) { - return hook( this.originalEvent ); - } - } : - function() { - if ( this.originalEvent ) { - return this.originalEvent[ name ]; - } - }, - - set: function( value ) { - Object.defineProperty( this, name, { - enumerable: true, - configurable: true, - writable: true, - value: value - } ); - } - } ); - }, - - fix: function( originalEvent ) { - return originalEvent[ jQuery.expando ] ? - originalEvent : - new jQuery.Event( originalEvent ); - }, - - special: { - load: { - - // Prevent triggered image.load events from bubbling to window.load - noBubble: true - }, - focus: { - - // Fire native event if possible so blur/focus sequence is correct - trigger: function() { - if ( this !== safeActiveElement() && this.focus ) { - this.focus(); - return false; - } - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if ( this === safeActiveElement() && this.blur ) { - this.blur(); - return false; - } - }, - delegateType: "focusout" - }, - click: { - - // For checkbox, fire native event so checked state will be right - trigger: function() { - if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) { - this.click(); - return false; - } - }, - - // For cross-browser consistency, don't fire native .click() on links - _default: function( event ) { - return nodeName( event.target, "a" ); - } - }, - - beforeunload: { - postDispatch: function( event ) { - - // Support: Firefox 20+ - // Firefox doesn't alert if the returnValue field is not set. - if ( event.result !== undefined && event.originalEvent ) { - event.originalEvent.returnValue = event.result; - } - } - } - } -}; - -jQuery.removeEvent = function( elem, type, handle ) { - - // This "if" is needed for plain objects - if ( elem.removeEventListener ) { - elem.removeEventListener( type, handle ); - } -}; - -jQuery.Event = function( src, props ) { - - // Allow instantiation without the 'new' keyword - if ( !( this instanceof jQuery.Event ) ) { - return new jQuery.Event( src, props ); - } - - // Event object - if ( src && src.type ) { - this.originalEvent = src; - this.type = src.type; - - // Events bubbling up the document may have been marked as prevented - // by a handler lower down the tree; reflect the correct value. - this.isDefaultPrevented = src.defaultPrevented || - src.defaultPrevented === undefined && - - // Support: Android <=2.3 only - src.returnValue === false ? - returnTrue : - returnFalse; - - // Create target properties - // Support: Safari <=6 - 7 only - // Target should not be a text node (#504, #13143) - this.target = ( src.target && src.target.nodeType === 3 ) ? - src.target.parentNode : - src.target; - - this.currentTarget = src.currentTarget; - this.relatedTarget = src.relatedTarget; - - // Event type - } else { - this.type = src; - } - - // Put explicitly provided properties onto the event object - if ( props ) { - jQuery.extend( this, props ); - } - - // Create a timestamp if incoming event doesn't have one - this.timeStamp = src && src.timeStamp || Date.now(); - - // Mark it as fixed - this[ jQuery.expando ] = true; -}; - -// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding -// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html -jQuery.Event.prototype = { - constructor: jQuery.Event, - isDefaultPrevented: returnFalse, - isPropagationStopped: returnFalse, - isImmediatePropagationStopped: returnFalse, - isSimulated: false, - - preventDefault: function() { - var e = this.originalEvent; - - this.isDefaultPrevented = returnTrue; - - if ( e && !this.isSimulated ) { - e.preventDefault(); - } - }, - stopPropagation: function() { - var e = this.originalEvent; - - this.isPropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopPropagation(); - } - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - - this.isImmediatePropagationStopped = returnTrue; - - if ( e && !this.isSimulated ) { - e.stopImmediatePropagation(); - } - - this.stopPropagation(); - } -}; - -// Includes all common event props including KeyEvent and MouseEvent specific props -jQuery.each( { - altKey: true, - bubbles: true, - cancelable: true, - changedTouches: true, - ctrlKey: true, - detail: true, - eventPhase: true, - metaKey: true, - pageX: true, - pageY: true, - shiftKey: true, - view: true, - "char": true, - charCode: true, - key: true, - keyCode: true, - button: true, - buttons: true, - clientX: true, - clientY: true, - offsetX: true, - offsetY: true, - pointerId: true, - pointerType: true, - screenX: true, - screenY: true, - targetTouches: true, - toElement: true, - touches: true, - - which: function( event ) { - var button = event.button; - - // Add which for key events - if ( event.which == null && rkeyEvent.test( event.type ) ) { - return event.charCode != null ? event.charCode : event.keyCode; - } - - // Add which for click: 1 === left; 2 === middle; 3 === right - if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { - if ( button & 1 ) { - return 1; - } - - if ( button & 2 ) { - return 3; - } - - if ( button & 4 ) { - return 2; - } - - return 0; - } - - return event.which; - } -}, jQuery.event.addProp ); - -// Create mouseenter/leave events using mouseover/out and event-time checks -// so that event delegation works in jQuery. -// Do the same for pointerenter/pointerleave and pointerover/pointerout -// -// Support: Safari 7 only -// Safari sends mouseenter too often; see: -// https://bugs.chromium.org/p/chromium/issues/detail?id=470258 -// for the description of the bug (it existed in older Chrome versions as well). -jQuery.each( { - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" -}, function( orig, fix ) { - jQuery.event.special[ orig ] = { - delegateType: fix, - bindType: fix, - - handle: function( event ) { - var ret, - target = this, - related = event.relatedTarget, - handleObj = event.handleObj; - - // For mouseenter/leave call the handler if related is outside the target. - // NB: No relatedTarget if the mouse left/entered the browser window - if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { - event.type = handleObj.origType; - ret = handleObj.handler.apply( this, arguments ); - event.type = fix; - } - return ret; - } - }; -} ); - -jQuery.fn.extend( { - - on: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn ); - }, - one: function( types, selector, data, fn ) { - return on( this, types, selector, data, fn, 1 ); - }, - off: function( types, selector, fn ) { - var handleObj, type; - if ( types && types.preventDefault && types.handleObj ) { - - // ( event ) dispatched jQuery.Event - handleObj = types.handleObj; - jQuery( types.delegateTarget ).off( - handleObj.namespace ? - handleObj.origType + "." + handleObj.namespace : - handleObj.origType, - handleObj.selector, - handleObj.handler - ); - return this; - } - if ( typeof types === "object" ) { - - // ( types-object [, selector] ) - for ( type in types ) { - this.off( type, selector, types[ type ] ); - } - return this; - } - if ( selector === false || typeof selector === "function" ) { - - // ( types [, fn] ) - fn = selector; - selector = undefined; - } - if ( fn === false ) { - fn = returnFalse; - } - return this.each( function() { - jQuery.event.remove( this, types, fn, selector ); - } ); - } -} ); - - -var - - /* eslint-disable max-len */ - - // See https://github.com/eslint/eslint/issues/3229 - rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, - - /* eslint-enable */ - - // Support: IE <=10 - 11, Edge 12 - 13 only - // In IE/Edge using regex groups here causes severe slowdowns. - // See https://connect.microsoft.com/IE/feedback/details/1736512/ - rnoInnerhtml = /\s*$/g; - -// Prefer a tbody over its parent table for containing new rows -function manipulationTarget( elem, content ) { - if ( nodeName( elem, "table" ) && - nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { - - return jQuery( elem ).children( "tbody" )[ 0 ] || elem; - } - - return elem; -} - -// Replace/restore the type attribute of script elements for safe DOM manipulation -function disableScript( elem ) { - elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; - return elem; -} -function restoreScript( elem ) { - if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) { - elem.type = elem.type.slice( 5 ); - } else { - elem.removeAttribute( "type" ); - } - - return elem; -} - -function cloneCopyEvent( src, dest ) { - var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; - - if ( dest.nodeType !== 1 ) { - return; - } - - // 1. Copy private data: events, handlers, etc. - if ( dataPriv.hasData( src ) ) { - pdataOld = dataPriv.access( src ); - pdataCur = dataPriv.set( dest, pdataOld ); - events = pdataOld.events; - - if ( events ) { - delete pdataCur.handle; - pdataCur.events = {}; - - for ( type in events ) { - for ( i = 0, l = events[ type ].length; i < l; i++ ) { - jQuery.event.add( dest, type, events[ type ][ i ] ); - } - } - } - } - - // 2. Copy user data - if ( dataUser.hasData( src ) ) { - udataOld = dataUser.access( src ); - udataCur = jQuery.extend( {}, udataOld ); - - dataUser.set( dest, udataCur ); - } -} - -// Fix IE bugs, see support tests -function fixInput( src, dest ) { - var nodeName = dest.nodeName.toLowerCase(); - - // Fails to persist the checked state of a cloned checkbox or radio button. - if ( nodeName === "input" && rcheckableType.test( src.type ) ) { - dest.checked = src.checked; - - // Fails to return the selected option to the default selected state when cloning options - } else if ( nodeName === "input" || nodeName === "textarea" ) { - dest.defaultValue = src.defaultValue; - } -} - -function domManip( collection, args, callback, ignored ) { - - // Flatten any nested arrays - args = concat.apply( [], args ); - - var fragment, first, scripts, hasScripts, node, doc, - i = 0, - l = collection.length, - iNoClone = l - 1, - value = args[ 0 ], - valueIsFunction = isFunction( value ); - - // We can't cloneNode fragments that contain checked, in WebKit - if ( valueIsFunction || - ( l > 1 && typeof value === "string" && - !support.checkClone && rchecked.test( value ) ) ) { - return collection.each( function( index ) { - var self = collection.eq( index ); - if ( valueIsFunction ) { - args[ 0 ] = value.call( this, index, self.html() ); - } - domManip( self, args, callback, ignored ); - } ); - } - - if ( l ) { - fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); - first = fragment.firstChild; - - if ( fragment.childNodes.length === 1 ) { - fragment = first; - } - - // Require either new content or an interest in ignored elements to invoke the callback - if ( first || ignored ) { - scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); - hasScripts = scripts.length; - - // Use the original fragment for the last item - // instead of the first because it can end up - // being emptied incorrectly in certain situations (#8070). - for ( ; i < l; i++ ) { - node = fragment; - - if ( i !== iNoClone ) { - node = jQuery.clone( node, true, true ); - - // Keep references to cloned scripts for later restoration - if ( hasScripts ) { - - // Support: Android <=4.0 only, PhantomJS 1 only - // push.apply(_, arraylike) throws on ancient WebKit - jQuery.merge( scripts, getAll( node, "script" ) ); - } - } - - callback.call( collection[ i ], node, i ); - } - - if ( hasScripts ) { - doc = scripts[ scripts.length - 1 ].ownerDocument; - - // Reenable scripts - jQuery.map( scripts, restoreScript ); - - // Evaluate executable scripts on first document insertion - for ( i = 0; i < hasScripts; i++ ) { - node = scripts[ i ]; - if ( rscriptType.test( node.type || "" ) && - !dataPriv.access( node, "globalEval" ) && - jQuery.contains( doc, node ) ) { - - if ( node.src && ( node.type || "" ).toLowerCase() !== "module" ) { - - // Optional AJAX dependency, but won't run scripts if not present - if ( jQuery._evalUrl ) { - jQuery._evalUrl( node.src ); - } - } else { - DOMEval( node.textContent.replace( rcleanScript, "" ), doc, node ); - } - } - } - } - } - } - - return collection; -} - -function remove( elem, selector, keepData ) { - var node, - nodes = selector ? jQuery.filter( selector, elem ) : elem, - i = 0; - - for ( ; ( node = nodes[ i ] ) != null; i++ ) { - if ( !keepData && node.nodeType === 1 ) { - jQuery.cleanData( getAll( node ) ); - } - - if ( node.parentNode ) { - if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { - setGlobalEval( getAll( node, "script" ) ); - } - node.parentNode.removeChild( node ); - } - } - - return elem; -} - -jQuery.extend( { - htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1>" ); - }, - - clone: function( elem, dataAndEvents, deepDataAndEvents ) { - var i, l, srcElements, destElements, - clone = elem.cloneNode( true ), - inPage = jQuery.contains( elem.ownerDocument, elem ); - - // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && - !jQuery.isXMLDoc( elem ) ) { - - // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 - destElements = getAll( clone ); - srcElements = getAll( elem ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - fixInput( srcElements[ i ], destElements[ i ] ); - } - } - - // Copy the events from the original to the clone - if ( dataAndEvents ) { - if ( deepDataAndEvents ) { - srcElements = srcElements || getAll( elem ); - destElements = destElements || getAll( clone ); - - for ( i = 0, l = srcElements.length; i < l; i++ ) { - cloneCopyEvent( srcElements[ i ], destElements[ i ] ); - } - } else { - cloneCopyEvent( elem, clone ); - } - } - - // Preserve script evaluation history - destElements = getAll( clone, "script" ); - if ( destElements.length > 0 ) { - setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); - } - - // Return the cloned set - return clone; - }, - - cleanData: function( elems ) { - var data, elem, type, - special = jQuery.event.special, - i = 0; - - for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { - if ( acceptData( elem ) ) { - if ( ( data = elem[ dataPriv.expando ] ) ) { - if ( data.events ) { - for ( type in data.events ) { - if ( special[ type ] ) { - jQuery.event.remove( elem, type ); - - // This is a shortcut to avoid jQuery.event.remove's overhead - } else { - jQuery.removeEvent( elem, type, data.handle ); - } - } - } - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataPriv.expando ] = undefined; - } - if ( elem[ dataUser.expando ] ) { - - // Support: Chrome <=35 - 45+ - // Assign undefined instead of using delete, see Data#remove - elem[ dataUser.expando ] = undefined; - } - } - } - } -} ); - -jQuery.fn.extend( { - detach: function( selector ) { - return remove( this, selector, true ); - }, - - remove: function( selector ) { - return remove( this, selector ); - }, - - text: function( value ) { - return access( this, function( value ) { - return value === undefined ? - jQuery.text( this ) : - this.empty().each( function() { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - this.textContent = value; - } - } ); - }, null, value, arguments.length ); - }, - - append: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.appendChild( elem ); - } - } ); - }, - - prepend: function() { - return domManip( this, arguments, function( elem ) { - if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { - var target = manipulationTarget( this, elem ); - target.insertBefore( elem, target.firstChild ); - } - } ); - }, - - before: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this ); - } - } ); - }, - - after: function() { - return domManip( this, arguments, function( elem ) { - if ( this.parentNode ) { - this.parentNode.insertBefore( elem, this.nextSibling ); - } - } ); - }, - - empty: function() { - var elem, - i = 0; - - for ( ; ( elem = this[ i ] ) != null; i++ ) { - if ( elem.nodeType === 1 ) { - - // Prevent memory leaks - jQuery.cleanData( getAll( elem, false ) ); - - // Remove any remaining nodes - elem.textContent = ""; - } - } - - return this; - }, - - clone: function( dataAndEvents, deepDataAndEvents ) { - dataAndEvents = dataAndEvents == null ? false : dataAndEvents; - deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; - - return this.map( function() { - return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); - } ); - }, - - html: function( value ) { - return access( this, function( value ) { - var elem = this[ 0 ] || {}, - i = 0, - l = this.length; - - if ( value === undefined && elem.nodeType === 1 ) { - return elem.innerHTML; - } - - // See if we can take a shortcut and just use innerHTML - if ( typeof value === "string" && !rnoInnerhtml.test( value ) && - !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { - - value = jQuery.htmlPrefilter( value ); - - try { - for ( ; i < l; i++ ) { - elem = this[ i ] || {}; - - // Remove element nodes and prevent memory leaks - if ( elem.nodeType === 1 ) { - jQuery.cleanData( getAll( elem, false ) ); - elem.innerHTML = value; - } - } - - elem = 0; - - // If using innerHTML throws an exception, use the fallback method - } catch ( e ) {} - } - - if ( elem ) { - this.empty().append( value ); - } - }, null, value, arguments.length ); - }, - - replaceWith: function() { - var ignored = []; - - // Make the changes, replacing each non-ignored context element with the new content - return domManip( this, arguments, function( elem ) { - var parent = this.parentNode; - - if ( jQuery.inArray( this, ignored ) < 0 ) { - jQuery.cleanData( getAll( this ) ); - if ( parent ) { - parent.replaceChild( elem, this ); - } - } - - // Force callback invocation - }, ignored ); - } -} ); - -jQuery.each( { - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" -}, function( name, original ) { - jQuery.fn[ name ] = function( selector ) { - var elems, - ret = [], - insert = jQuery( selector ), - last = insert.length - 1, - i = 0; - - for ( ; i <= last; i++ ) { - elems = i === last ? this : this.clone( true ); - jQuery( insert[ i ] )[ original ]( elems ); - - // Support: Android <=4.0 only, PhantomJS 1 only - // .get() because push.apply(_, arraylike) throws on ancient WebKit - push.apply( ret, elems.get() ); - } - - return this.pushStack( ret ); - }; -} ); -var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); - -var getStyles = function( elem ) { - - // Support: IE <=11 only, Firefox <=30 (#15098, #14150) - // IE throws on elements created in popups - // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" - var view = elem.ownerDocument.defaultView; - - if ( !view || !view.opener ) { - view = window; - } - - return view.getComputedStyle( elem ); - }; - -var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" ); - - - -( function() { - - // Executing both pixelPosition & boxSizingReliable tests require only one layout - // so they're executed at the same time to save the second computation. - function computeStyleTests() { - - // This is a singleton, we need to execute it only once - if ( !div ) { - return; - } - - container.style.cssText = "position:absolute;left:-11111px;width:60px;" + - "margin-top:1px;padding:0;border:0"; - div.style.cssText = - "position:relative;display:block;box-sizing:border-box;overflow:scroll;" + - "margin:auto;border:1px;padding:1px;" + - "width:60%;top:1%"; - documentElement.appendChild( container ).appendChild( div ); - - var divStyle = window.getComputedStyle( div ); - pixelPositionVal = divStyle.top !== "1%"; - - // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 - reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12; - - // Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3 - // Some styles come back with percentage values, even though they shouldn't - div.style.right = "60%"; - pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36; - - // Support: IE 9 - 11 only - // Detect misreporting of content dimensions for box-sizing:border-box elements - boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36; - - // Support: IE 9 only - // Detect overflow:scroll screwiness (gh-3699) - div.style.position = "absolute"; - scrollboxSizeVal = div.offsetWidth === 36 || "absolute"; - - documentElement.removeChild( container ); - - // Nullify the div so it wouldn't be stored in the memory and - // it will also be a sign that checks already performed - div = null; - } - - function roundPixelMeasures( measure ) { - return Math.round( parseFloat( measure ) ); - } - - var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal, - reliableMarginLeftVal, - container = document.createElement( "div" ), - div = document.createElement( "div" ); - - // Finish early in limited (non-browser) environments - if ( !div.style ) { - return; - } - - // Support: IE <=9 - 11 only - // Style of cloned element affects source element cloned (#8908) - div.style.backgroundClip = "content-box"; - div.cloneNode( true ).style.backgroundClip = ""; - support.clearCloneStyle = div.style.backgroundClip === "content-box"; - - jQuery.extend( support, { - boxSizingReliable: function() { - computeStyleTests(); - return boxSizingReliableVal; - }, - pixelBoxStyles: function() { - computeStyleTests(); - return pixelBoxStylesVal; - }, - pixelPosition: function() { - computeStyleTests(); - return pixelPositionVal; - }, - reliableMarginLeft: function() { - computeStyleTests(); - return reliableMarginLeftVal; - }, - scrollboxSize: function() { - computeStyleTests(); - return scrollboxSizeVal; - } - } ); -} )(); - - -function curCSS( elem, name, computed ) { - var width, minWidth, maxWidth, ret, - - // Support: Firefox 51+ - // Retrieving style before computed somehow - // fixes an issue with getting wrong values - // on detached elements - style = elem.style; - - computed = computed || getStyles( elem ); - - // getPropertyValue is needed for: - // .css('filter') (IE 9 only, #12537) - // .css('--customProperty) (#3144) - if ( computed ) { - ret = computed.getPropertyValue( name ) || computed[ name ]; - - if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { - ret = jQuery.style( elem, name ); - } - - // A tribute to the "awesome hack by Dean Edwards" - // Android Browser returns percentage for some values, - // but width seems to be reliably pixels. - // This is against the CSSOM draft spec: - // https://drafts.csswg.org/cssom/#resolved-values - if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) { - - // Remember the original values - width = style.width; - minWidth = style.minWidth; - maxWidth = style.maxWidth; - - // Put in the new values to get a computed value out - style.minWidth = style.maxWidth = style.width = ret; - ret = computed.width; - - // Revert the changed values - style.width = width; - style.minWidth = minWidth; - style.maxWidth = maxWidth; - } - } - - return ret !== undefined ? - - // Support: IE <=9 - 11 only - // IE returns zIndex value as an integer. - ret + "" : - ret; -} - - -function addGetHookIf( conditionFn, hookFn ) { - - // Define the hook, we'll check on the first run if it's really needed. - return { - get: function() { - if ( conditionFn() ) { - - // Hook not needed (or it's not possible to use it due - // to missing dependency), remove it. - delete this.get; - return; - } - - // Hook needed; redefine it so that the support test is not executed again. - return ( this.get = hookFn ).apply( this, arguments ); - } - }; -} - - -var - - // Swappable if display is none or starts with table - // except "table", "table-cell", or "table-caption" - // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display - rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, - cssShow = { position: "absolute", visibility: "hidden", display: "block" }, - cssNormalTransform = { - letterSpacing: "0", - fontWeight: "400" - }, - - cssPrefixes = [ "Webkit", "Moz", "ms" ], - emptyStyle = document.createElement( "div" ).style; - -// Return a css property mapped to a potentially vendor prefixed property -function vendorPropName( name ) { - - // Shortcut for names that are not vendor prefixed - if ( name in emptyStyle ) { - return name; - } - - // Check for vendor prefixed names - var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), - i = cssPrefixes.length; - - while ( i-- ) { - name = cssPrefixes[ i ] + capName; - if ( name in emptyStyle ) { - return name; - } - } -} - -// Return a property mapped along what jQuery.cssProps suggests or to -// a vendor prefixed property. -function finalPropName( name ) { - var ret = jQuery.cssProps[ name ]; - if ( !ret ) { - ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name; - } - return ret; -} - -function setPositiveNumber( elem, value, subtract ) { - - // Any relative (+/-) values have already been - // normalized at this point - var matches = rcssNum.exec( value ); - return matches ? - - // Guard against undefined "subtract", e.g., when used as in cssHooks - Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : - value; -} - -function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) { - var i = dimension === "width" ? 1 : 0, - extra = 0, - delta = 0; - - // Adjustment may not be necessary - if ( box === ( isBorderBox ? "border" : "content" ) ) { - return 0; - } - - for ( ; i < 4; i += 2 ) { - - // Both box models exclude margin - if ( box === "margin" ) { - delta += jQuery.css( elem, box + cssExpand[ i ], true, styles ); - } - - // If we get here with a content-box, we're seeking "padding" or "border" or "margin" - if ( !isBorderBox ) { - - // Add padding - delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - - // For "border" or "margin", add border - if ( box !== "padding" ) { - delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - - // But still keep track of it otherwise - } else { - extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - - // If we get here with a border-box (content + padding + border), we're seeking "content" or - // "padding" or "margin" - } else { - - // For "content", subtract padding - if ( box === "content" ) { - delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); - } - - // For "content" or "padding", subtract border - if ( box !== "margin" ) { - delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); - } - } - } - - // Account for positive content-box scroll gutter when requested by providing computedVal - if ( !isBorderBox && computedVal >= 0 ) { - - // offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border - // Assuming integer scroll gutter, subtract the rest and round down - delta += Math.max( 0, Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - computedVal - - delta - - extra - - 0.5 - ) ); - } - - return delta; -} - -function getWidthOrHeight( elem, dimension, extra ) { - - // Start with computed style - var styles = getStyles( elem ), - val = curCSS( elem, dimension, styles ), - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - valueIsBorderBox = isBorderBox; - - // Support: Firefox <=54 - // Return a confounding non-pixel value or feign ignorance, as appropriate. - if ( rnumnonpx.test( val ) ) { - if ( !extra ) { - return val; - } - val = "auto"; - } - - // Check for style in case a browser which returns unreliable values - // for getComputedStyle silently falls back to the reliable elem.style - valueIsBorderBox = valueIsBorderBox && - ( support.boxSizingReliable() || val === elem.style[ dimension ] ); - - // Fall back to offsetWidth/offsetHeight when value is "auto" - // This happens for inline elements with no explicit setting (gh-3571) - // Support: Android <=4.1 - 4.3 only - // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602) - if ( val === "auto" || - !parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) { - - val = elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ]; - - // offsetWidth/offsetHeight provide border-box values - valueIsBorderBox = true; - } - - // Normalize "" and auto - val = parseFloat( val ) || 0; - - // Adjust for the element's box model - return ( val + - boxModelAdjustment( - elem, - dimension, - extra || ( isBorderBox ? "border" : "content" ), - valueIsBorderBox, - styles, - - // Provide the current computed size to request scroll gutter calculation (gh-3589) - val - ) - ) + "px"; -} - -jQuery.extend( { - - // Add in style property hooks for overriding the default - // behavior of getting and setting a style property - cssHooks: { - opacity: { - get: function( elem, computed ) { - if ( computed ) { - - // We should always get a number back from opacity - var ret = curCSS( elem, "opacity" ); - return ret === "" ? "1" : ret; - } - } - } - }, - - // Don't automatically add "px" to these possibly-unitless properties - cssNumber: { - "animationIterationCount": true, - "columnCount": true, - "fillOpacity": true, - "flexGrow": true, - "flexShrink": true, - "fontWeight": true, - "lineHeight": true, - "opacity": true, - "order": true, - "orphans": true, - "widows": true, - "zIndex": true, - "zoom": true - }, - - // Add in properties whose names you wish to fix before - // setting or getting the value - cssProps: {}, - - // Get and set the style property on a DOM Node - style: function( elem, name, value, extra ) { - - // Don't set styles on text and comment nodes - if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { - return; - } - - // Make sure that we're working with the right name - var ret, type, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ), - style = elem.style; - - // Make sure that we're working with the right name. We don't - // want to query the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Gets hook for the prefixed version, then unprefixed version - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // Check if we're setting a value - if ( value !== undefined ) { - type = typeof value; - - // Convert "+=" or "-=" to relative numbers (#7345) - if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { - value = adjustCSS( elem, name, ret ); - - // Fixes bug #9237 - type = "number"; - } - - // Make sure that null and NaN values aren't set (#7116) - if ( value == null || value !== value ) { - return; - } - - // If a number was passed in, add the unit (except for certain CSS properties) - if ( type === "number" ) { - value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); - } - - // background-* props affect original clone's values - if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { - style[ name ] = "inherit"; - } - - // If a hook was provided, use that value, otherwise just set the specified value - if ( !hooks || !( "set" in hooks ) || - ( value = hooks.set( elem, value, extra ) ) !== undefined ) { - - if ( isCustomProp ) { - style.setProperty( name, value ); - } else { - style[ name ] = value; - } - } - - } else { - - // If a hook was provided get the non-computed value from there - if ( hooks && "get" in hooks && - ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { - - return ret; - } - - // Otherwise just get the value from the style object - return style[ name ]; - } - }, - - css: function( elem, name, extra, styles ) { - var val, num, hooks, - origName = camelCase( name ), - isCustomProp = rcustomProp.test( name ); - - // Make sure that we're working with the right name. We don't - // want to modify the value if it is a CSS custom property - // since they are user-defined. - if ( !isCustomProp ) { - name = finalPropName( origName ); - } - - // Try prefixed name followed by the unprefixed name - hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; - - // If a hook was provided get the computed value from there - if ( hooks && "get" in hooks ) { - val = hooks.get( elem, true, extra ); - } - - // Otherwise, if a way to get the computed value exists, use that - if ( val === undefined ) { - val = curCSS( elem, name, styles ); - } - - // Convert "normal" to computed value - if ( val === "normal" && name in cssNormalTransform ) { - val = cssNormalTransform[ name ]; - } - - // Make numeric if forced or a qualifier was provided and val looks numeric - if ( extra === "" || extra ) { - num = parseFloat( val ); - return extra === true || isFinite( num ) ? num || 0 : val; - } - - return val; - } -} ); - -jQuery.each( [ "height", "width" ], function( i, dimension ) { - jQuery.cssHooks[ dimension ] = { - get: function( elem, computed, extra ) { - if ( computed ) { - - // Certain elements can have dimension info if we invisibly show them - // but it must have a current display style that would benefit - return rdisplayswap.test( jQuery.css( elem, "display" ) ) && - - // Support: Safari 8+ - // Table columns in Safari have non-zero offsetWidth & zero - // getBoundingClientRect().width unless display is changed. - // Support: IE <=11 only - // Running getBoundingClientRect on a disconnected node - // in IE throws an error. - ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? - swap( elem, cssShow, function() { - return getWidthOrHeight( elem, dimension, extra ); - } ) : - getWidthOrHeight( elem, dimension, extra ); - } - }, - - set: function( elem, value, extra ) { - var matches, - styles = getStyles( elem ), - isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box", - subtract = extra && boxModelAdjustment( - elem, - dimension, - extra, - isBorderBox, - styles - ); - - // Account for unreliable border-box dimensions by comparing offset* to computed and - // faking a content-box to get border and padding (gh-3699) - if ( isBorderBox && support.scrollboxSize() === styles.position ) { - subtract -= Math.ceil( - elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] - - parseFloat( styles[ dimension ] ) - - boxModelAdjustment( elem, dimension, "border", false, styles ) - - 0.5 - ); - } - - // Convert to pixels if value adjustment is needed - if ( subtract && ( matches = rcssNum.exec( value ) ) && - ( matches[ 3 ] || "px" ) !== "px" ) { - - elem.style[ dimension ] = value; - value = jQuery.css( elem, dimension ); - } - - return setPositiveNumber( elem, value, subtract ); - } - }; -} ); - -jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, - function( elem, computed ) { - if ( computed ) { - return ( parseFloat( curCSS( elem, "marginLeft" ) ) || - elem.getBoundingClientRect().left - - swap( elem, { marginLeft: 0 }, function() { - return elem.getBoundingClientRect().left; - } ) - ) + "px"; - } - } -); - -// These hooks are used by animate to expand properties -jQuery.each( { - margin: "", - padding: "", - border: "Width" -}, function( prefix, suffix ) { - jQuery.cssHooks[ prefix + suffix ] = { - expand: function( value ) { - var i = 0, - expanded = {}, - - // Assumes a single number if not a string - parts = typeof value === "string" ? value.split( " " ) : [ value ]; - - for ( ; i < 4; i++ ) { - expanded[ prefix + cssExpand[ i ] + suffix ] = - parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; - } - - return expanded; - } - }; - - if ( prefix !== "margin" ) { - jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; - } -} ); - -jQuery.fn.extend( { - css: function( name, value ) { - return access( this, function( elem, name, value ) { - var styles, len, - map = {}, - i = 0; - - if ( Array.isArray( name ) ) { - styles = getStyles( elem ); - len = name.length; - - for ( ; i < len; i++ ) { - map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); - } - - return map; - } - - return value !== undefined ? - jQuery.style( elem, name, value ) : - jQuery.css( elem, name ); - }, name, value, arguments.length > 1 ); - } -} ); - - -function Tween( elem, options, prop, end, easing ) { - return new Tween.prototype.init( elem, options, prop, end, easing ); -} -jQuery.Tween = Tween; - -Tween.prototype = { - constructor: Tween, - init: function( elem, options, prop, end, easing, unit ) { - this.elem = elem; - this.prop = prop; - this.easing = easing || jQuery.easing._default; - this.options = options; - this.start = this.now = this.cur(); - this.end = end; - this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); - }, - cur: function() { - var hooks = Tween.propHooks[ this.prop ]; - - return hooks && hooks.get ? - hooks.get( this ) : - Tween.propHooks._default.get( this ); - }, - run: function( percent ) { - var eased, - hooks = Tween.propHooks[ this.prop ]; - - if ( this.options.duration ) { - this.pos = eased = jQuery.easing[ this.easing ]( - percent, this.options.duration * percent, 0, 1, this.options.duration - ); - } else { - this.pos = eased = percent; - } - this.now = ( this.end - this.start ) * eased + this.start; - - if ( this.options.step ) { - this.options.step.call( this.elem, this.now, this ); - } - - if ( hooks && hooks.set ) { - hooks.set( this ); - } else { - Tween.propHooks._default.set( this ); - } - return this; - } -}; - -Tween.prototype.init.prototype = Tween.prototype; - -Tween.propHooks = { - _default: { - get: function( tween ) { - var result; - - // Use a property on the element directly when it is not a DOM element, - // or when there is no matching style property that exists. - if ( tween.elem.nodeType !== 1 || - tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { - return tween.elem[ tween.prop ]; - } - - // Passing an empty string as a 3rd parameter to .css will automatically - // attempt a parseFloat and fallback to a string if the parse fails. - // Simple values such as "10px" are parsed to Float; - // complex values such as "rotate(1rad)" are returned as-is. - result = jQuery.css( tween.elem, tween.prop, "" ); - - // Empty strings, null, undefined and "auto" are converted to 0. - return !result || result === "auto" ? 0 : result; - }, - set: function( tween ) { - - // Use step hook for back compat. - // Use cssHook if its there. - // Use .style if available and use plain properties where available. - if ( jQuery.fx.step[ tween.prop ] ) { - jQuery.fx.step[ tween.prop ]( tween ); - } else if ( tween.elem.nodeType === 1 && - ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || - jQuery.cssHooks[ tween.prop ] ) ) { - jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); - } else { - tween.elem[ tween.prop ] = tween.now; - } - } - } -}; - -// Support: IE <=9 only -// Panic based approach to setting things on disconnected nodes -Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { - set: function( tween ) { - if ( tween.elem.nodeType && tween.elem.parentNode ) { - tween.elem[ tween.prop ] = tween.now; - } - } -}; - -jQuery.easing = { - linear: function( p ) { - return p; - }, - swing: function( p ) { - return 0.5 - Math.cos( p * Math.PI ) / 2; - }, - _default: "swing" -}; - -jQuery.fx = Tween.prototype.init; - -// Back compat <1.8 extension point -jQuery.fx.step = {}; - - - - -var - fxNow, inProgress, - rfxtypes = /^(?:toggle|show|hide)$/, - rrun = /queueHooks$/; - -function schedule() { - if ( inProgress ) { - if ( document.hidden === false && window.requestAnimationFrame ) { - window.requestAnimationFrame( schedule ); - } else { - window.setTimeout( schedule, jQuery.fx.interval ); - } - - jQuery.fx.tick(); - } -} - -// Animations created synchronously will run synchronously -function createFxNow() { - window.setTimeout( function() { - fxNow = undefined; - } ); - return ( fxNow = Date.now() ); -} - -// Generate parameters to create a standard animation -function genFx( type, includeWidth ) { - var which, - i = 0, - attrs = { height: type }; - - // If we include width, step value is 1 to do all cssExpand values, - // otherwise step value is 2 to skip over Left and Right - includeWidth = includeWidth ? 1 : 0; - for ( ; i < 4; i += 2 - includeWidth ) { - which = cssExpand[ i ]; - attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; - } - - if ( includeWidth ) { - attrs.opacity = attrs.width = type; - } - - return attrs; -} - -function createTween( value, prop, animation ) { - var tween, - collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), - index = 0, - length = collection.length; - for ( ; index < length; index++ ) { - if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { - - // We're done with this property - return tween; - } - } -} - -function defaultPrefilter( elem, props, opts ) { - var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, - isBox = "width" in props || "height" in props, - anim = this, - orig = {}, - style = elem.style, - hidden = elem.nodeType && isHiddenWithinTree( elem ), - dataShow = dataPriv.get( elem, "fxshow" ); - - // Queue-skipping animations hijack the fx hooks - if ( !opts.queue ) { - hooks = jQuery._queueHooks( elem, "fx" ); - if ( hooks.unqueued == null ) { - hooks.unqueued = 0; - oldfire = hooks.empty.fire; - hooks.empty.fire = function() { - if ( !hooks.unqueued ) { - oldfire(); - } - }; - } - hooks.unqueued++; - - anim.always( function() { - - // Ensure the complete handler is called before this completes - anim.always( function() { - hooks.unqueued--; - if ( !jQuery.queue( elem, "fx" ).length ) { - hooks.empty.fire(); - } - } ); - } ); - } - - // Detect show/hide animations - for ( prop in props ) { - value = props[ prop ]; - if ( rfxtypes.test( value ) ) { - delete props[ prop ]; - toggle = toggle || value === "toggle"; - if ( value === ( hidden ? "hide" : "show" ) ) { - - // Pretend to be hidden if this is a "show" and - // there is still data from a stopped show/hide - if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { - hidden = true; - - // Ignore all other no-op show/hide data - } else { - continue; - } - } - orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); - } - } - - // Bail out if this is a no-op like .hide().hide() - propTween = !jQuery.isEmptyObject( props ); - if ( !propTween && jQuery.isEmptyObject( orig ) ) { - return; - } - - // Restrict "overflow" and "display" styles during box animations - if ( isBox && elem.nodeType === 1 ) { - - // Support: IE <=9 - 11, Edge 12 - 15 - // Record all 3 overflow attributes because IE does not infer the shorthand - // from identically-valued overflowX and overflowY and Edge just mirrors - // the overflowX value there. - opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; - - // Identify a display type, preferring old show/hide data over the CSS cascade - restoreDisplay = dataShow && dataShow.display; - if ( restoreDisplay == null ) { - restoreDisplay = dataPriv.get( elem, "display" ); - } - display = jQuery.css( elem, "display" ); - if ( display === "none" ) { - if ( restoreDisplay ) { - display = restoreDisplay; - } else { - - // Get nonempty value(s) by temporarily forcing visibility - showHide( [ elem ], true ); - restoreDisplay = elem.style.display || restoreDisplay; - display = jQuery.css( elem, "display" ); - showHide( [ elem ] ); - } - } - - // Animate inline elements as inline-block - if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { - if ( jQuery.css( elem, "float" ) === "none" ) { - - // Restore the original display value at the end of pure show/hide animations - if ( !propTween ) { - anim.done( function() { - style.display = restoreDisplay; - } ); - if ( restoreDisplay == null ) { - display = style.display; - restoreDisplay = display === "none" ? "" : display; - } - } - style.display = "inline-block"; - } - } - } - - if ( opts.overflow ) { - style.overflow = "hidden"; - anim.always( function() { - style.overflow = opts.overflow[ 0 ]; - style.overflowX = opts.overflow[ 1 ]; - style.overflowY = opts.overflow[ 2 ]; - } ); - } - - // Implement show/hide animations - propTween = false; - for ( prop in orig ) { - - // General show/hide setup for this element animation - if ( !propTween ) { - if ( dataShow ) { - if ( "hidden" in dataShow ) { - hidden = dataShow.hidden; - } - } else { - dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); - } - - // Store hidden/visible for toggle so `.stop().toggle()` "reverses" - if ( toggle ) { - dataShow.hidden = !hidden; - } - - // Show elements before animating them - if ( hidden ) { - showHide( [ elem ], true ); - } - - /* eslint-disable no-loop-func */ - - anim.done( function() { - - /* eslint-enable no-loop-func */ - - // The final step of a "hide" animation is actually hiding the element - if ( !hidden ) { - showHide( [ elem ] ); - } - dataPriv.remove( elem, "fxshow" ); - for ( prop in orig ) { - jQuery.style( elem, prop, orig[ prop ] ); - } - } ); - } - - // Per-property setup - propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); - if ( !( prop in dataShow ) ) { - dataShow[ prop ] = propTween.start; - if ( hidden ) { - propTween.end = propTween.start; - propTween.start = 0; - } - } - } -} - -function propFilter( props, specialEasing ) { - var index, name, easing, value, hooks; - - // camelCase, specialEasing and expand cssHook pass - for ( index in props ) { - name = camelCase( index ); - easing = specialEasing[ name ]; - value = props[ index ]; - if ( Array.isArray( value ) ) { - easing = value[ 1 ]; - value = props[ index ] = value[ 0 ]; - } - - if ( index !== name ) { - props[ name ] = value; - delete props[ index ]; - } - - hooks = jQuery.cssHooks[ name ]; - if ( hooks && "expand" in hooks ) { - value = hooks.expand( value ); - delete props[ name ]; - - // Not quite $.extend, this won't overwrite existing keys. - // Reusing 'index' because we have the correct "name" - for ( index in value ) { - if ( !( index in props ) ) { - props[ index ] = value[ index ]; - specialEasing[ index ] = easing; - } - } - } else { - specialEasing[ name ] = easing; - } - } -} - -function Animation( elem, properties, options ) { - var result, - stopped, - index = 0, - length = Animation.prefilters.length, - deferred = jQuery.Deferred().always( function() { - - // Don't match elem in the :animated selector - delete tick.elem; - } ), - tick = function() { - if ( stopped ) { - return false; - } - var currentTime = fxNow || createFxNow(), - remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), - - // Support: Android 2.3 only - // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) - temp = remaining / animation.duration || 0, - percent = 1 - temp, - index = 0, - length = animation.tweens.length; - - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( percent ); - } - - deferred.notifyWith( elem, [ animation, percent, remaining ] ); - - // If there's more to do, yield - if ( percent < 1 && length ) { - return remaining; - } - - // If this was an empty animation, synthesize a final progress notification - if ( !length ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - } - - // Resolve the animation and report its conclusion - deferred.resolveWith( elem, [ animation ] ); - return false; - }, - animation = deferred.promise( { - elem: elem, - props: jQuery.extend( {}, properties ), - opts: jQuery.extend( true, { - specialEasing: {}, - easing: jQuery.easing._default - }, options ), - originalProperties: properties, - originalOptions: options, - startTime: fxNow || createFxNow(), - duration: options.duration, - tweens: [], - createTween: function( prop, end ) { - var tween = jQuery.Tween( elem, animation.opts, prop, end, - animation.opts.specialEasing[ prop ] || animation.opts.easing ); - animation.tweens.push( tween ); - return tween; - }, - stop: function( gotoEnd ) { - var index = 0, - - // If we are going to the end, we want to run all the tweens - // otherwise we skip this part - length = gotoEnd ? animation.tweens.length : 0; - if ( stopped ) { - return this; - } - stopped = true; - for ( ; index < length; index++ ) { - animation.tweens[ index ].run( 1 ); - } - - // Resolve when we played the last frame; otherwise, reject - if ( gotoEnd ) { - deferred.notifyWith( elem, [ animation, 1, 0 ] ); - deferred.resolveWith( elem, [ animation, gotoEnd ] ); - } else { - deferred.rejectWith( elem, [ animation, gotoEnd ] ); - } - return this; - } - } ), - props = animation.props; - - propFilter( props, animation.opts.specialEasing ); - - for ( ; index < length; index++ ) { - result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); - if ( result ) { - if ( isFunction( result.stop ) ) { - jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = - result.stop.bind( result ); - } - return result; - } - } - - jQuery.map( props, createTween, animation ); - - if ( isFunction( animation.opts.start ) ) { - animation.opts.start.call( elem, animation ); - } - - // Attach callbacks from options - animation - .progress( animation.opts.progress ) - .done( animation.opts.done, animation.opts.complete ) - .fail( animation.opts.fail ) - .always( animation.opts.always ); - - jQuery.fx.timer( - jQuery.extend( tick, { - elem: elem, - anim: animation, - queue: animation.opts.queue - } ) - ); - - return animation; -} - -jQuery.Animation = jQuery.extend( Animation, { - - tweeners: { - "*": [ function( prop, value ) { - var tween = this.createTween( prop, value ); - adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); - return tween; - } ] - }, - - tweener: function( props, callback ) { - if ( isFunction( props ) ) { - callback = props; - props = [ "*" ]; - } else { - props = props.match( rnothtmlwhite ); - } - - var prop, - index = 0, - length = props.length; - - for ( ; index < length; index++ ) { - prop = props[ index ]; - Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; - Animation.tweeners[ prop ].unshift( callback ); - } - }, - - prefilters: [ defaultPrefilter ], - - prefilter: function( callback, prepend ) { - if ( prepend ) { - Animation.prefilters.unshift( callback ); - } else { - Animation.prefilters.push( callback ); - } - } -} ); - -jQuery.speed = function( speed, easing, fn ) { - var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { - complete: fn || !fn && easing || - isFunction( speed ) && speed, - duration: speed, - easing: fn && easing || easing && !isFunction( easing ) && easing - }; - - // Go to the end state if fx are off - if ( jQuery.fx.off ) { - opt.duration = 0; - - } else { - if ( typeof opt.duration !== "number" ) { - if ( opt.duration in jQuery.fx.speeds ) { - opt.duration = jQuery.fx.speeds[ opt.duration ]; - - } else { - opt.duration = jQuery.fx.speeds._default; - } - } - } - - // Normalize opt.queue - true/undefined/null -> "fx" - if ( opt.queue == null || opt.queue === true ) { - opt.queue = "fx"; - } - - // Queueing - opt.old = opt.complete; - - opt.complete = function() { - if ( isFunction( opt.old ) ) { - opt.old.call( this ); - } - - if ( opt.queue ) { - jQuery.dequeue( this, opt.queue ); - } - }; - - return opt; -}; - -jQuery.fn.extend( { - fadeTo: function( speed, to, easing, callback ) { - - // Show any hidden elements after setting opacity to 0 - return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() - - // Animate to the value specified - .end().animate( { opacity: to }, speed, easing, callback ); - }, - animate: function( prop, speed, easing, callback ) { - var empty = jQuery.isEmptyObject( prop ), - optall = jQuery.speed( speed, easing, callback ), - doAnimation = function() { - - // Operate on a copy of prop so per-property easing won't be lost - var anim = Animation( this, jQuery.extend( {}, prop ), optall ); - - // Empty animations, or finishing resolves immediately - if ( empty || dataPriv.get( this, "finish" ) ) { - anim.stop( true ); - } - }; - doAnimation.finish = doAnimation; - - return empty || optall.queue === false ? - this.each( doAnimation ) : - this.queue( optall.queue, doAnimation ); - }, - stop: function( type, clearQueue, gotoEnd ) { - var stopQueue = function( hooks ) { - var stop = hooks.stop; - delete hooks.stop; - stop( gotoEnd ); - }; - - if ( typeof type !== "string" ) { - gotoEnd = clearQueue; - clearQueue = type; - type = undefined; - } - if ( clearQueue && type !== false ) { - this.queue( type || "fx", [] ); - } - - return this.each( function() { - var dequeue = true, - index = type != null && type + "queueHooks", - timers = jQuery.timers, - data = dataPriv.get( this ); - - if ( index ) { - if ( data[ index ] && data[ index ].stop ) { - stopQueue( data[ index ] ); - } - } else { - for ( index in data ) { - if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { - stopQueue( data[ index ] ); - } - } - } - - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && - ( type == null || timers[ index ].queue === type ) ) { - - timers[ index ].anim.stop( gotoEnd ); - dequeue = false; - timers.splice( index, 1 ); - } - } - - // Start the next in the queue if the last step wasn't forced. - // Timers currently will call their complete callbacks, which - // will dequeue but only if they were gotoEnd. - if ( dequeue || !gotoEnd ) { - jQuery.dequeue( this, type ); - } - } ); - }, - finish: function( type ) { - if ( type !== false ) { - type = type || "fx"; - } - return this.each( function() { - var index, - data = dataPriv.get( this ), - queue = data[ type + "queue" ], - hooks = data[ type + "queueHooks" ], - timers = jQuery.timers, - length = queue ? queue.length : 0; - - // Enable finishing flag on private data - data.finish = true; - - // Empty the queue first - jQuery.queue( this, type, [] ); - - if ( hooks && hooks.stop ) { - hooks.stop.call( this, true ); - } - - // Look for any active animations, and finish them - for ( index = timers.length; index--; ) { - if ( timers[ index ].elem === this && timers[ index ].queue === type ) { - timers[ index ].anim.stop( true ); - timers.splice( index, 1 ); - } - } - - // Look for any animations in the old queue and finish them - for ( index = 0; index < length; index++ ) { - if ( queue[ index ] && queue[ index ].finish ) { - queue[ index ].finish.call( this ); - } - } - - // Turn off finishing flag - delete data.finish; - } ); - } -} ); - -jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { - var cssFn = jQuery.fn[ name ]; - jQuery.fn[ name ] = function( speed, easing, callback ) { - return speed == null || typeof speed === "boolean" ? - cssFn.apply( this, arguments ) : - this.animate( genFx( name, true ), speed, easing, callback ); - }; -} ); - -// Generate shortcuts for custom animations -jQuery.each( { - slideDown: genFx( "show" ), - slideUp: genFx( "hide" ), - slideToggle: genFx( "toggle" ), - fadeIn: { opacity: "show" }, - fadeOut: { opacity: "hide" }, - fadeToggle: { opacity: "toggle" } -}, function( name, props ) { - jQuery.fn[ name ] = function( speed, easing, callback ) { - return this.animate( props, speed, easing, callback ); - }; -} ); - -jQuery.timers = []; -jQuery.fx.tick = function() { - var timer, - i = 0, - timers = jQuery.timers; - - fxNow = Date.now(); - - for ( ; i < timers.length; i++ ) { - timer = timers[ i ]; - - // Run the timer and safely remove it when done (allowing for external removal) - if ( !timer() && timers[ i ] === timer ) { - timers.splice( i--, 1 ); - } - } - - if ( !timers.length ) { - jQuery.fx.stop(); - } - fxNow = undefined; -}; - -jQuery.fx.timer = function( timer ) { - jQuery.timers.push( timer ); - jQuery.fx.start(); -}; - -jQuery.fx.interval = 13; -jQuery.fx.start = function() { - if ( inProgress ) { - return; - } - - inProgress = true; - schedule(); -}; - -jQuery.fx.stop = function() { - inProgress = null; -}; - -jQuery.fx.speeds = { - slow: 600, - fast: 200, - - // Default speed - _default: 400 -}; - - -// Based off of the plugin by Clint Helfers, with permission. -// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/ -jQuery.fn.delay = function( time, type ) { - time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; - type = type || "fx"; - - return this.queue( type, function( next, hooks ) { - var timeout = window.setTimeout( next, time ); - hooks.stop = function() { - window.clearTimeout( timeout ); - }; - } ); -}; - - -( function() { - var input = document.createElement( "input" ), - select = document.createElement( "select" ), - opt = select.appendChild( document.createElement( "option" ) ); - - input.type = "checkbox"; - - // Support: Android <=4.3 only - // Default value for a checkbox should be "on" - support.checkOn = input.value !== ""; - - // Support: IE <=11 only - // Must access selectedIndex to make default options select - support.optSelected = opt.selected; - - // Support: IE <=11 only - // An input loses its value after becoming a radio - input = document.createElement( "input" ); - input.value = "t"; - input.type = "radio"; - support.radioValue = input.value === "t"; -} )(); - - -var boolHook, - attrHandle = jQuery.expr.attrHandle; - -jQuery.fn.extend( { - attr: function( name, value ) { - return access( this, jQuery.attr, name, value, arguments.length > 1 ); - }, - - removeAttr: function( name ) { - return this.each( function() { - jQuery.removeAttr( this, name ); - } ); - } -} ); - -jQuery.extend( { - attr: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set attributes on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - // Fallback to prop when attributes are not supported - if ( typeof elem.getAttribute === "undefined" ) { - return jQuery.prop( elem, name, value ); - } - - // Attribute hooks are determined by the lowercase version - // Grab necessary hook if one is defined - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - hooks = jQuery.attrHooks[ name.toLowerCase() ] || - ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); - } - - if ( value !== undefined ) { - if ( value === null ) { - jQuery.removeAttr( elem, name ); - return; - } - - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - elem.setAttribute( name, value + "" ); - return value; - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - ret = jQuery.find.attr( elem, name ); - - // Non-existent attributes return null, we normalize to undefined - return ret == null ? undefined : ret; - }, - - attrHooks: { - type: { - set: function( elem, value ) { - if ( !support.radioValue && value === "radio" && - nodeName( elem, "input" ) ) { - var val = elem.value; - elem.setAttribute( "type", value ); - if ( val ) { - elem.value = val; - } - return value; - } - } - } - }, - - removeAttr: function( elem, value ) { - var name, - i = 0, - - // Attribute names can contain non-HTML whitespace characters - // https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 - attrNames = value && value.match( rnothtmlwhite ); - - if ( attrNames && elem.nodeType === 1 ) { - while ( ( name = attrNames[ i++ ] ) ) { - elem.removeAttribute( name ); - } - } - } -} ); - -// Hooks for boolean attributes -boolHook = { - set: function( elem, value, name ) { - if ( value === false ) { - - // Remove boolean attributes when set to false - jQuery.removeAttr( elem, name ); - } else { - elem.setAttribute( name, name ); - } - return name; - } -}; - -jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { - var getter = attrHandle[ name ] || jQuery.find.attr; - - attrHandle[ name ] = function( elem, name, isXML ) { - var ret, handle, - lowercaseName = name.toLowerCase(); - - if ( !isXML ) { - - // Avoid an infinite loop by temporarily removing this function from the getter - handle = attrHandle[ lowercaseName ]; - attrHandle[ lowercaseName ] = ret; - ret = getter( elem, name, isXML ) != null ? - lowercaseName : - null; - attrHandle[ lowercaseName ] = handle; - } - return ret; - }; -} ); - - - - -var rfocusable = /^(?:input|select|textarea|button)$/i, - rclickable = /^(?:a|area)$/i; - -jQuery.fn.extend( { - prop: function( name, value ) { - return access( this, jQuery.prop, name, value, arguments.length > 1 ); - }, - - removeProp: function( name ) { - return this.each( function() { - delete this[ jQuery.propFix[ name ] || name ]; - } ); - } -} ); - -jQuery.extend( { - prop: function( elem, name, value ) { - var ret, hooks, - nType = elem.nodeType; - - // Don't get/set properties on text, comment and attribute nodes - if ( nType === 3 || nType === 8 || nType === 2 ) { - return; - } - - if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { - - // Fix name and attach hooks - name = jQuery.propFix[ name ] || name; - hooks = jQuery.propHooks[ name ]; - } - - if ( value !== undefined ) { - if ( hooks && "set" in hooks && - ( ret = hooks.set( elem, value, name ) ) !== undefined ) { - return ret; - } - - return ( elem[ name ] = value ); - } - - if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { - return ret; - } - - return elem[ name ]; - }, - - propHooks: { - tabIndex: { - get: function( elem ) { - - // Support: IE <=9 - 11 only - // elem.tabIndex doesn't always return the - // correct value when it hasn't been explicitly set - // https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/ - // Use proper attribute retrieval(#12072) - var tabindex = jQuery.find.attr( elem, "tabindex" ); - - if ( tabindex ) { - return parseInt( tabindex, 10 ); - } - - if ( - rfocusable.test( elem.nodeName ) || - rclickable.test( elem.nodeName ) && - elem.href - ) { - return 0; - } - - return -1; - } - } - }, - - propFix: { - "for": "htmlFor", - "class": "className" - } -} ); - -// Support: IE <=11 only -// Accessing the selectedIndex property -// forces the browser to respect setting selected -// on the option -// The getter ensures a default option is selected -// when in an optgroup -// eslint rule "no-unused-expressions" is disabled for this code -// since it considers such accessions noop -if ( !support.optSelected ) { - jQuery.propHooks.selected = { - get: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent && parent.parentNode ) { - parent.parentNode.selectedIndex; - } - return null; - }, - set: function( elem ) { - - /* eslint no-unused-expressions: "off" */ - - var parent = elem.parentNode; - if ( parent ) { - parent.selectedIndex; - - if ( parent.parentNode ) { - parent.parentNode.selectedIndex; - } - } - } - }; -} - -jQuery.each( [ - "tabIndex", - "readOnly", - "maxLength", - "cellSpacing", - "cellPadding", - "rowSpan", - "colSpan", - "useMap", - "frameBorder", - "contentEditable" -], function() { - jQuery.propFix[ this.toLowerCase() ] = this; -} ); - - - - - // Strip and collapse whitespace according to HTML spec - // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace - function stripAndCollapse( value ) { - var tokens = value.match( rnothtmlwhite ) || []; - return tokens.join( " " ); - } - - -function getClass( elem ) { - return elem.getAttribute && elem.getAttribute( "class" ) || ""; -} - -function classesToArray( value ) { - if ( Array.isArray( value ) ) { - return value; - } - if ( typeof value === "string" ) { - return value.match( rnothtmlwhite ) || []; - } - return []; -} - -jQuery.fn.extend( { - addClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - if ( cur.indexOf( " " + clazz + " " ) < 0 ) { - cur += clazz + " "; - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - removeClass: function( value ) { - var classes, elem, cur, curValue, clazz, j, finalValue, - i = 0; - - if ( isFunction( value ) ) { - return this.each( function( j ) { - jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); - } ); - } - - if ( !arguments.length ) { - return this.attr( "class", "" ); - } - - classes = classesToArray( value ); - - if ( classes.length ) { - while ( ( elem = this[ i++ ] ) ) { - curValue = getClass( elem ); - - // This expression is here for better compressibility (see addClass) - cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); - - if ( cur ) { - j = 0; - while ( ( clazz = classes[ j++ ] ) ) { - - // Remove *all* instances - while ( cur.indexOf( " " + clazz + " " ) > -1 ) { - cur = cur.replace( " " + clazz + " ", " " ); - } - } - - // Only assign if different to avoid unneeded rendering. - finalValue = stripAndCollapse( cur ); - if ( curValue !== finalValue ) { - elem.setAttribute( "class", finalValue ); - } - } - } - } - - return this; - }, - - toggleClass: function( value, stateVal ) { - var type = typeof value, - isValidValue = type === "string" || Array.isArray( value ); - - if ( typeof stateVal === "boolean" && isValidValue ) { - return stateVal ? this.addClass( value ) : this.removeClass( value ); - } - - if ( isFunction( value ) ) { - return this.each( function( i ) { - jQuery( this ).toggleClass( - value.call( this, i, getClass( this ), stateVal ), - stateVal - ); - } ); - } - - return this.each( function() { - var className, i, self, classNames; - - if ( isValidValue ) { - - // Toggle individual class names - i = 0; - self = jQuery( this ); - classNames = classesToArray( value ); - - while ( ( className = classNames[ i++ ] ) ) { - - // Check each className given, space separated list - if ( self.hasClass( className ) ) { - self.removeClass( className ); - } else { - self.addClass( className ); - } - } - - // Toggle whole class name - } else if ( value === undefined || type === "boolean" ) { - className = getClass( this ); - if ( className ) { - - // Store className if set - dataPriv.set( this, "__className__", className ); - } - - // If the element has a class name or if we're passed `false`, - // then remove the whole classname (if there was one, the above saved it). - // Otherwise bring back whatever was previously saved (if anything), - // falling back to the empty string if nothing was stored. - if ( this.setAttribute ) { - this.setAttribute( "class", - className || value === false ? - "" : - dataPriv.get( this, "__className__" ) || "" - ); - } - } - } ); - }, - - hasClass: function( selector ) { - var className, elem, - i = 0; - - className = " " + selector + " "; - while ( ( elem = this[ i++ ] ) ) { - if ( elem.nodeType === 1 && - ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { - return true; - } - } - - return false; - } -} ); - - - - -var rreturn = /\r/g; - -jQuery.fn.extend( { - val: function( value ) { - var hooks, ret, valueIsFunction, - elem = this[ 0 ]; - - if ( !arguments.length ) { - if ( elem ) { - hooks = jQuery.valHooks[ elem.type ] || - jQuery.valHooks[ elem.nodeName.toLowerCase() ]; - - if ( hooks && - "get" in hooks && - ( ret = hooks.get( elem, "value" ) ) !== undefined - ) { - return ret; - } - - ret = elem.value; - - // Handle most common string cases - if ( typeof ret === "string" ) { - return ret.replace( rreturn, "" ); - } - - // Handle cases where value is null/undef or number - return ret == null ? "" : ret; - } - - return; - } - - valueIsFunction = isFunction( value ); - - return this.each( function( i ) { - var val; - - if ( this.nodeType !== 1 ) { - return; - } - - if ( valueIsFunction ) { - val = value.call( this, i, jQuery( this ).val() ); - } else { - val = value; - } - - // Treat null/undefined as ""; convert numbers to string - if ( val == null ) { - val = ""; - - } else if ( typeof val === "number" ) { - val += ""; - - } else if ( Array.isArray( val ) ) { - val = jQuery.map( val, function( value ) { - return value == null ? "" : value + ""; - } ); - } - - hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; - - // If set returns undefined, fall back to normal setting - if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { - this.value = val; - } - } ); - } -} ); - -jQuery.extend( { - valHooks: { - option: { - get: function( elem ) { - - var val = jQuery.find.attr( elem, "value" ); - return val != null ? - val : - - // Support: IE <=10 - 11 only - // option.text throws exceptions (#14686, #14858) - // Strip and collapse whitespace - // https://html.spec.whatwg.org/#strip-and-collapse-whitespace - stripAndCollapse( jQuery.text( elem ) ); - } - }, - select: { - get: function( elem ) { - var value, option, i, - options = elem.options, - index = elem.selectedIndex, - one = elem.type === "select-one", - values = one ? null : [], - max = one ? index + 1 : options.length; - - if ( index < 0 ) { - i = max; - - } else { - i = one ? index : 0; - } - - // Loop through all the selected options - for ( ; i < max; i++ ) { - option = options[ i ]; - - // Support: IE <=9 only - // IE8-9 doesn't update selected after form reset (#2551) - if ( ( option.selected || i === index ) && - - // Don't return options that are disabled or in a disabled optgroup - !option.disabled && - ( !option.parentNode.disabled || - !nodeName( option.parentNode, "optgroup" ) ) ) { - - // Get the specific value for the option - value = jQuery( option ).val(); - - // We don't need an array for one selects - if ( one ) { - return value; - } - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - }, - - set: function( elem, value ) { - var optionSet, option, - options = elem.options, - values = jQuery.makeArray( value ), - i = options.length; - - while ( i-- ) { - option = options[ i ]; - - /* eslint-disable no-cond-assign */ - - if ( option.selected = - jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 - ) { - optionSet = true; - } - - /* eslint-enable no-cond-assign */ - } - - // Force browsers to behave consistently when non-matching value is set - if ( !optionSet ) { - elem.selectedIndex = -1; - } - return values; - } - } - } -} ); - -// Radios and checkboxes getter/setter -jQuery.each( [ "radio", "checkbox" ], function() { - jQuery.valHooks[ this ] = { - set: function( elem, value ) { - if ( Array.isArray( value ) ) { - return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); - } - } - }; - if ( !support.checkOn ) { - jQuery.valHooks[ this ].get = function( elem ) { - return elem.getAttribute( "value" ) === null ? "on" : elem.value; - }; - } -} ); - - - - -// Return jQuery for attributes-only inclusion - - -support.focusin = "onfocusin" in window; - - -var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, - stopPropagationCallback = function( e ) { - e.stopPropagation(); - }; - -jQuery.extend( jQuery.event, { - - trigger: function( event, data, elem, onlyHandlers ) { - - var i, cur, tmp, bubbleType, ontype, handle, special, lastElement, - eventPath = [ elem || document ], - type = hasOwn.call( event, "type" ) ? event.type : event, - namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; - - cur = lastElement = tmp = elem = elem || document; - - // Don't do events on text and comment nodes - if ( elem.nodeType === 3 || elem.nodeType === 8 ) { - return; - } - - // focus/blur morphs to focusin/out; ensure we're not firing them right now - if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { - return; - } - - if ( type.indexOf( "." ) > -1 ) { - - // Namespaced trigger; create a regexp to match event type in handle() - namespaces = type.split( "." ); - type = namespaces.shift(); - namespaces.sort(); - } - ontype = type.indexOf( ":" ) < 0 && "on" + type; - - // Caller can pass in a jQuery.Event object, Object, or just an event type string - event = event[ jQuery.expando ] ? - event : - new jQuery.Event( type, typeof event === "object" && event ); - - // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) - event.isTrigger = onlyHandlers ? 2 : 3; - event.namespace = namespaces.join( "." ); - event.rnamespace = event.namespace ? - new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : - null; - - // Clean up the event in case it is being reused - event.result = undefined; - if ( !event.target ) { - event.target = elem; - } - - // Clone any incoming data and prepend the event, creating the handler arg list - data = data == null ? - [ event ] : - jQuery.makeArray( data, [ event ] ); - - // Allow special events to draw outside the lines - special = jQuery.event.special[ type ] || {}; - if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { - return; - } - - // Determine event propagation path in advance, per W3C events spec (#9951) - // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) - if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) { - - bubbleType = special.delegateType || type; - if ( !rfocusMorph.test( bubbleType + type ) ) { - cur = cur.parentNode; - } - for ( ; cur; cur = cur.parentNode ) { - eventPath.push( cur ); - tmp = cur; - } - - // Only add window if we got to document (e.g., not plain obj or detached DOM) - if ( tmp === ( elem.ownerDocument || document ) ) { - eventPath.push( tmp.defaultView || tmp.parentWindow || window ); - } - } - - // Fire handlers on the event path - i = 0; - while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { - lastElement = cur; - event.type = i > 1 ? - bubbleType : - special.bindType || type; - - // jQuery handler - handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && - dataPriv.get( cur, "handle" ); - if ( handle ) { - handle.apply( cur, data ); - } - - // Native handler - handle = ontype && cur[ ontype ]; - if ( handle && handle.apply && acceptData( cur ) ) { - event.result = handle.apply( cur, data ); - if ( event.result === false ) { - event.preventDefault(); - } - } - } - event.type = type; - - // If nobody prevented the default action, do it now - if ( !onlyHandlers && !event.isDefaultPrevented() ) { - - if ( ( !special._default || - special._default.apply( eventPath.pop(), data ) === false ) && - acceptData( elem ) ) { - - // Call a native DOM method on the target with the same name as the event. - // Don't do default actions on window, that's where global variables be (#6170) - if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) { - - // Don't re-trigger an onFOO event when we call its FOO() method - tmp = elem[ ontype ]; - - if ( tmp ) { - elem[ ontype ] = null; - } - - // Prevent re-triggering of the same event, since we already bubbled it above - jQuery.event.triggered = type; - - if ( event.isPropagationStopped() ) { - lastElement.addEventListener( type, stopPropagationCallback ); - } - - elem[ type ](); - - if ( event.isPropagationStopped() ) { - lastElement.removeEventListener( type, stopPropagationCallback ); - } - - jQuery.event.triggered = undefined; - - if ( tmp ) { - elem[ ontype ] = tmp; - } - } - } - } - - return event.result; - }, - - // Piggyback on a donor event to simulate a different one - // Used only for `focus(in | out)` events - simulate: function( type, elem, event ) { - var e = jQuery.extend( - new jQuery.Event(), - event, - { - type: type, - isSimulated: true - } - ); - - jQuery.event.trigger( e, null, elem ); - } - -} ); - -jQuery.fn.extend( { - - trigger: function( type, data ) { - return this.each( function() { - jQuery.event.trigger( type, data, this ); - } ); - }, - triggerHandler: function( type, data ) { - var elem = this[ 0 ]; - if ( elem ) { - return jQuery.event.trigger( type, data, elem, true ); - } - } -} ); - - -// Support: Firefox <=44 -// Firefox doesn't have focus(in | out) events -// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787 -// -// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 -// focus(in | out) events fire after focus & blur events, -// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order -// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857 -if ( !support.focusin ) { - jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { - - // Attach a single capturing handler on the document while someone wants focusin/focusout - var handler = function( event ) { - jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); - }; - - jQuery.event.special[ fix ] = { - setup: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ); - - if ( !attaches ) { - doc.addEventListener( orig, handler, true ); - } - dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); - }, - teardown: function() { - var doc = this.ownerDocument || this, - attaches = dataPriv.access( doc, fix ) - 1; - - if ( !attaches ) { - doc.removeEventListener( orig, handler, true ); - dataPriv.remove( doc, fix ); - - } else { - dataPriv.access( doc, fix, attaches ); - } - } - }; - } ); -} -var location = window.location; - -var nonce = Date.now(); - -var rquery = ( /\?/ ); - - - -// Cross-browser xml parsing -jQuery.parseXML = function( data ) { - var xml; - if ( !data || typeof data !== "string" ) { - return null; - } - - // Support: IE 9 - 11 only - // IE throws on parseFromString with invalid input. - try { - xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); - } catch ( e ) { - xml = undefined; - } - - if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { - jQuery.error( "Invalid XML: " + data ); - } - return xml; -}; - - -var - rbracket = /\[\]$/, - rCRLF = /\r?\n/g, - rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, - rsubmittable = /^(?:input|select|textarea|keygen)/i; - -function buildParams( prefix, obj, traditional, add ) { - var name; - - if ( Array.isArray( obj ) ) { - - // Serialize array item. - jQuery.each( obj, function( i, v ) { - if ( traditional || rbracket.test( prefix ) ) { - - // Treat each array item as a scalar. - add( prefix, v ); - - } else { - - // Item is non-scalar (array or object), encode its numeric index. - buildParams( - prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", - v, - traditional, - add - ); - } - } ); - - } else if ( !traditional && toType( obj ) === "object" ) { - - // Serialize object item. - for ( name in obj ) { - buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); - } - - } else { - - // Serialize scalar item. - add( prefix, obj ); - } -} - -// Serialize an array of form elements or a set of -// key/values into a query string -jQuery.param = function( a, traditional ) { - var prefix, - s = [], - add = function( key, valueOrFunction ) { - - // If value is a function, invoke it and use its return value - var value = isFunction( valueOrFunction ) ? - valueOrFunction() : - valueOrFunction; - - s[ s.length ] = encodeURIComponent( key ) + "=" + - encodeURIComponent( value == null ? "" : value ); - }; - - // If an array was passed in, assume that it is an array of form elements. - if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { - - // Serialize the form elements - jQuery.each( a, function() { - add( this.name, this.value ); - } ); - - } else { - - // If traditional, encode the "old" way (the way 1.3.2 or older - // did it), otherwise encode params recursively. - for ( prefix in a ) { - buildParams( prefix, a[ prefix ], traditional, add ); - } - } - - // Return the resulting serialization - return s.join( "&" ); -}; - -jQuery.fn.extend( { - serialize: function() { - return jQuery.param( this.serializeArray() ); - }, - serializeArray: function() { - return this.map( function() { - - // Can add propHook for "elements" to filter or add form elements - var elements = jQuery.prop( this, "elements" ); - return elements ? jQuery.makeArray( elements ) : this; - } ) - .filter( function() { - var type = this.type; - - // Use .is( ":disabled" ) so that fieldset[disabled] works - return this.name && !jQuery( this ).is( ":disabled" ) && - rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && - ( this.checked || !rcheckableType.test( type ) ); - } ) - .map( function( i, elem ) { - var val = jQuery( this ).val(); - - if ( val == null ) { - return null; - } - - if ( Array.isArray( val ) ) { - return jQuery.map( val, function( val ) { - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ); - } - - return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; - } ).get(); - } -} ); - - -var - r20 = /%20/g, - rhash = /#.*$/, - rantiCache = /([?&])_=[^&]*/, - rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, - - // #7653, #8125, #8152: local protocol detection - rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, - rnoContent = /^(?:GET|HEAD)$/, - rprotocol = /^\/\//, - - /* Prefilters - * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) - * 2) These are called: - * - BEFORE asking for a transport - * - AFTER param serialization (s.data is a string if s.processData is true) - * 3) key is the dataType - * 4) the catchall symbol "*" can be used - * 5) execution will start with transport dataType and THEN continue down to "*" if needed - */ - prefilters = {}, - - /* Transports bindings - * 1) key is the dataType - * 2) the catchall symbol "*" can be used - * 3) selection will start with transport dataType and THEN go to "*" if needed - */ - transports = {}, - - // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression - allTypes = "*/".concat( "*" ), - - // Anchor tag for parsing the document origin - originAnchor = document.createElement( "a" ); - originAnchor.href = location.href; - -// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport -function addToPrefiltersOrTransports( structure ) { - - // dataTypeExpression is optional and defaults to "*" - return function( dataTypeExpression, func ) { - - if ( typeof dataTypeExpression !== "string" ) { - func = dataTypeExpression; - dataTypeExpression = "*"; - } - - var dataType, - i = 0, - dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; - - if ( isFunction( func ) ) { - - // For each dataType in the dataTypeExpression - while ( ( dataType = dataTypes[ i++ ] ) ) { - - // Prepend if requested - if ( dataType[ 0 ] === "+" ) { - dataType = dataType.slice( 1 ) || "*"; - ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); - - // Otherwise append - } else { - ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); - } - } - } - }; -} - -// Base inspection function for prefilters and transports -function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { - - var inspected = {}, - seekingTransport = ( structure === transports ); - - function inspect( dataType ) { - var selected; - inspected[ dataType ] = true; - jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { - var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); - if ( typeof dataTypeOrTransport === "string" && - !seekingTransport && !inspected[ dataTypeOrTransport ] ) { - - options.dataTypes.unshift( dataTypeOrTransport ); - inspect( dataTypeOrTransport ); - return false; - } else if ( seekingTransport ) { - return !( selected = dataTypeOrTransport ); - } - } ); - return selected; - } - - return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); -} - -// A special extend for ajax options -// that takes "flat" options (not to be deep extended) -// Fixes #9887 -function ajaxExtend( target, src ) { - var key, deep, - flatOptions = jQuery.ajaxSettings.flatOptions || {}; - - for ( key in src ) { - if ( src[ key ] !== undefined ) { - ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; - } - } - if ( deep ) { - jQuery.extend( true, target, deep ); - } - - return target; -} - -/* Handles responses to an ajax request: - * - finds the right dataType (mediates between content-type and expected dataType) - * - returns the corresponding response - */ -function ajaxHandleResponses( s, jqXHR, responses ) { - - var ct, type, finalDataType, firstDataType, - contents = s.contents, - dataTypes = s.dataTypes; - - // Remove auto dataType and get content-type in the process - while ( dataTypes[ 0 ] === "*" ) { - dataTypes.shift(); - if ( ct === undefined ) { - ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); - } - } - - // Check if we're dealing with a known content-type - if ( ct ) { - for ( type in contents ) { - if ( contents[ type ] && contents[ type ].test( ct ) ) { - dataTypes.unshift( type ); - break; - } - } - } - - // Check to see if we have a response for the expected dataType - if ( dataTypes[ 0 ] in responses ) { - finalDataType = dataTypes[ 0 ]; - } else { - - // Try convertible dataTypes - for ( type in responses ) { - if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { - finalDataType = type; - break; - } - if ( !firstDataType ) { - firstDataType = type; - } - } - - // Or just use first one - finalDataType = finalDataType || firstDataType; - } - - // If we found a dataType - // We add the dataType to the list if needed - // and return the corresponding response - if ( finalDataType ) { - if ( finalDataType !== dataTypes[ 0 ] ) { - dataTypes.unshift( finalDataType ); - } - return responses[ finalDataType ]; - } -} - -/* Chain conversions given the request and the original response - * Also sets the responseXXX fields on the jqXHR instance - */ -function ajaxConvert( s, response, jqXHR, isSuccess ) { - var conv2, current, conv, tmp, prev, - converters = {}, - - // Work with a copy of dataTypes in case we need to modify it for conversion - dataTypes = s.dataTypes.slice(); - - // Create converters map with lowercased keys - if ( dataTypes[ 1 ] ) { - for ( conv in s.converters ) { - converters[ conv.toLowerCase() ] = s.converters[ conv ]; - } - } - - current = dataTypes.shift(); - - // Convert to each sequential dataType - while ( current ) { - - if ( s.responseFields[ current ] ) { - jqXHR[ s.responseFields[ current ] ] = response; - } - - // Apply the dataFilter if provided - if ( !prev && isSuccess && s.dataFilter ) { - response = s.dataFilter( response, s.dataType ); - } - - prev = current; - current = dataTypes.shift(); - - if ( current ) { - - // There's only work to do if current dataType is non-auto - if ( current === "*" ) { - - current = prev; - - // Convert response if prev dataType is non-auto and differs from current - } else if ( prev !== "*" && prev !== current ) { - - // Seek a direct converter - conv = converters[ prev + " " + current ] || converters[ "* " + current ]; - - // If none found, seek a pair - if ( !conv ) { - for ( conv2 in converters ) { - - // If conv2 outputs current - tmp = conv2.split( " " ); - if ( tmp[ 1 ] === current ) { - - // If prev can be converted to accepted input - conv = converters[ prev + " " + tmp[ 0 ] ] || - converters[ "* " + tmp[ 0 ] ]; - if ( conv ) { - - // Condense equivalence converters - if ( conv === true ) { - conv = converters[ conv2 ]; - - // Otherwise, insert the intermediate dataType - } else if ( converters[ conv2 ] !== true ) { - current = tmp[ 0 ]; - dataTypes.unshift( tmp[ 1 ] ); - } - break; - } - } - } - } - - // Apply converter (if not an equivalence) - if ( conv !== true ) { - - // Unless errors are allowed to bubble, catch and return them - if ( conv && s.throws ) { - response = conv( response ); - } else { - try { - response = conv( response ); - } catch ( e ) { - return { - state: "parsererror", - error: conv ? e : "No conversion from " + prev + " to " + current - }; - } - } - } - } - } - } - - return { state: "success", data: response }; -} - -jQuery.extend( { - - // Counter for holding the number of active queries - active: 0, - - // Last-Modified header cache for next request - lastModified: {}, - etag: {}, - - ajaxSettings: { - url: location.href, - type: "GET", - isLocal: rlocalProtocol.test( location.protocol ), - global: true, - processData: true, - async: true, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - - /* - timeout: 0, - data: null, - dataType: null, - username: null, - password: null, - cache: null, - throws: false, - traditional: false, - headers: {}, - */ - - accepts: { - "*": allTypes, - text: "text/plain", - html: "text/html", - xml: "application/xml, text/xml", - json: "application/json, text/javascript" - }, - - contents: { - xml: /\bxml\b/, - html: /\bhtml/, - json: /\bjson\b/ - }, - - responseFields: { - xml: "responseXML", - text: "responseText", - json: "responseJSON" - }, - - // Data converters - // Keys separate source (or catchall "*") and destination types with a single space - converters: { - - // Convert anything to text - "* text": String, - - // Text to html (true = no transformation) - "text html": true, - - // Evaluate text as a json expression - "text json": JSON.parse, - - // Parse text as xml - "text xml": jQuery.parseXML - }, - - // For options that shouldn't be deep extended: - // you can add your own custom options here if - // and when you create one that shouldn't be - // deep extended (see ajaxExtend) - flatOptions: { - url: true, - context: true - } - }, - - // Creates a full fledged settings object into target - // with both ajaxSettings and settings fields. - // If target is omitted, writes into ajaxSettings. - ajaxSetup: function( target, settings ) { - return settings ? - - // Building a settings object - ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : - - // Extending ajaxSettings - ajaxExtend( jQuery.ajaxSettings, target ); - }, - - ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), - ajaxTransport: addToPrefiltersOrTransports( transports ), - - // Main method - ajax: function( url, options ) { - - // If url is an object, simulate pre-1.5 signature - if ( typeof url === "object" ) { - options = url; - url = undefined; - } - - // Force options to be an object - options = options || {}; - - var transport, - - // URL without anti-cache param - cacheURL, - - // Response headers - responseHeadersString, - responseHeaders, - - // timeout handle - timeoutTimer, - - // Url cleanup var - urlAnchor, - - // Request state (becomes false upon send and true upon completion) - completed, - - // To know if global events are to be dispatched - fireGlobals, - - // Loop variable - i, - - // uncached part of the url - uncached, - - // Create the final options object - s = jQuery.ajaxSetup( {}, options ), - - // Callbacks context - callbackContext = s.context || s, - - // Context for global events is callbackContext if it is a DOM node or jQuery collection - globalEventContext = s.context && - ( callbackContext.nodeType || callbackContext.jquery ) ? - jQuery( callbackContext ) : - jQuery.event, - - // Deferreds - deferred = jQuery.Deferred(), - completeDeferred = jQuery.Callbacks( "once memory" ), - - // Status-dependent callbacks - statusCode = s.statusCode || {}, - - // Headers (they are sent all at once) - requestHeaders = {}, - requestHeadersNames = {}, - - // Default abort message - strAbort = "canceled", - - // Fake xhr - jqXHR = { - readyState: 0, - - // Builds headers hashtable if needed - getResponseHeader: function( key ) { - var match; - if ( completed ) { - if ( !responseHeaders ) { - responseHeaders = {}; - while ( ( match = rheaders.exec( responseHeadersString ) ) ) { - responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; - } - } - match = responseHeaders[ key.toLowerCase() ]; - } - return match == null ? null : match; - }, - - // Raw string - getAllResponseHeaders: function() { - return completed ? responseHeadersString : null; - }, - - // Caches the header - setRequestHeader: function( name, value ) { - if ( completed == null ) { - name = requestHeadersNames[ name.toLowerCase() ] = - requestHeadersNames[ name.toLowerCase() ] || name; - requestHeaders[ name ] = value; - } - return this; - }, - - // Overrides response content-type header - overrideMimeType: function( type ) { - if ( completed == null ) { - s.mimeType = type; - } - return this; - }, - - // Status-dependent callbacks - statusCode: function( map ) { - var code; - if ( map ) { - if ( completed ) { - - // Execute the appropriate callbacks - jqXHR.always( map[ jqXHR.status ] ); - } else { - - // Lazy-add the new callbacks in a way that preserves old ones - for ( code in map ) { - statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; - } - } - } - return this; - }, - - // Cancel the request - abort: function( statusText ) { - var finalText = statusText || strAbort; - if ( transport ) { - transport.abort( finalText ); - } - done( 0, finalText ); - return this; - } - }; - - // Attach deferreds - deferred.promise( jqXHR ); - - // Add protocol if not provided (prefilters might expect it) - // Handle falsy url in the settings object (#10093: consistency with old signature) - // We also use the url parameter if available - s.url = ( ( url || s.url || location.href ) + "" ) - .replace( rprotocol, location.protocol + "//" ); - - // Alias method option to type as per ticket #12004 - s.type = options.method || options.type || s.method || s.type; - - // Extract dataTypes list - s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; - - // A cross-domain request is in order when the origin doesn't match the current origin. - if ( s.crossDomain == null ) { - urlAnchor = document.createElement( "a" ); - - // Support: IE <=8 - 11, Edge 12 - 15 - // IE throws exception on accessing the href property if url is malformed, - // e.g. http://example.com:80x/ - try { - urlAnchor.href = s.url; - - // Support: IE <=8 - 11 only - // Anchor's host property isn't correctly set when s.url is relative - urlAnchor.href = urlAnchor.href; - s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== - urlAnchor.protocol + "//" + urlAnchor.host; - } catch ( e ) { - - // If there is an error parsing the URL, assume it is crossDomain, - // it can be rejected by the transport if it is invalid - s.crossDomain = true; - } - } - - // Convert data if not already a string - if ( s.data && s.processData && typeof s.data !== "string" ) { - s.data = jQuery.param( s.data, s.traditional ); - } - - // Apply prefilters - inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); - - // If request was aborted inside a prefilter, stop there - if ( completed ) { - return jqXHR; - } - - // We can fire global events as of now if asked to - // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) - fireGlobals = jQuery.event && s.global; - - // Watch for a new set of requests - if ( fireGlobals && jQuery.active++ === 0 ) { - jQuery.event.trigger( "ajaxStart" ); - } - - // Uppercase the type - s.type = s.type.toUpperCase(); - - // Determine if request has content - s.hasContent = !rnoContent.test( s.type ); - - // Save the URL in case we're toying with the If-Modified-Since - // and/or If-None-Match header later on - // Remove hash to simplify url manipulation - cacheURL = s.url.replace( rhash, "" ); - - // More options handling for requests with no content - if ( !s.hasContent ) { - - // Remember the hash so we can put it back - uncached = s.url.slice( cacheURL.length ); - - // If data is available and should be processed, append data to url - if ( s.data && ( s.processData || typeof s.data === "string" ) ) { - cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; - - // #9682: remove data so that it's not used in an eventual retry - delete s.data; - } - - // Add or update anti-cache param if needed - if ( s.cache === false ) { - cacheURL = cacheURL.replace( rantiCache, "$1" ); - uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; - } - - // Put hash and anti-cache on the URL that will be requested (gh-1732) - s.url = cacheURL + uncached; - - // Change '%20' to '+' if this is encoded form body content (gh-2658) - } else if ( s.data && s.processData && - ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { - s.data = s.data.replace( r20, "+" ); - } - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - if ( jQuery.lastModified[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); - } - if ( jQuery.etag[ cacheURL ] ) { - jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); - } - } - - // Set the correct header, if data is being sent - if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { - jqXHR.setRequestHeader( "Content-Type", s.contentType ); - } - - // Set the Accepts header for the server, depending on the dataType - jqXHR.setRequestHeader( - "Accept", - s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? - s.accepts[ s.dataTypes[ 0 ] ] + - ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : - s.accepts[ "*" ] - ); - - // Check for headers option - for ( i in s.headers ) { - jqXHR.setRequestHeader( i, s.headers[ i ] ); - } - - // Allow custom headers/mimetypes and early abort - if ( s.beforeSend && - ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { - - // Abort if not done already and return - return jqXHR.abort(); - } - - // Aborting is no longer a cancellation - strAbort = "abort"; - - // Install callbacks on deferreds - completeDeferred.add( s.complete ); - jqXHR.done( s.success ); - jqXHR.fail( s.error ); - - // Get transport - transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); - - // If no transport, we auto-abort - if ( !transport ) { - done( -1, "No Transport" ); - } else { - jqXHR.readyState = 1; - - // Send global event - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); - } - - // If request was aborted inside ajaxSend, stop there - if ( completed ) { - return jqXHR; - } - - // Timeout - if ( s.async && s.timeout > 0 ) { - timeoutTimer = window.setTimeout( function() { - jqXHR.abort( "timeout" ); - }, s.timeout ); - } - - try { - completed = false; - transport.send( requestHeaders, done ); - } catch ( e ) { - - // Rethrow post-completion exceptions - if ( completed ) { - throw e; - } - - // Propagate others as results - done( -1, e ); - } - } - - // Callback for when everything is done - function done( status, nativeStatusText, responses, headers ) { - var isSuccess, success, error, response, modified, - statusText = nativeStatusText; - - // Ignore repeat invocations - if ( completed ) { - return; - } - - completed = true; - - // Clear timeout if it exists - if ( timeoutTimer ) { - window.clearTimeout( timeoutTimer ); - } - - // Dereference transport for early garbage collection - // (no matter how long the jqXHR object will be used) - transport = undefined; - - // Cache response headers - responseHeadersString = headers || ""; - - // Set readyState - jqXHR.readyState = status > 0 ? 4 : 0; - - // Determine if successful - isSuccess = status >= 200 && status < 300 || status === 304; - - // Get response data - if ( responses ) { - response = ajaxHandleResponses( s, jqXHR, responses ); - } - - // Convert no matter what (that way responseXXX fields are always set) - response = ajaxConvert( s, response, jqXHR, isSuccess ); - - // If successful, handle type chaining - if ( isSuccess ) { - - // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. - if ( s.ifModified ) { - modified = jqXHR.getResponseHeader( "Last-Modified" ); - if ( modified ) { - jQuery.lastModified[ cacheURL ] = modified; - } - modified = jqXHR.getResponseHeader( "etag" ); - if ( modified ) { - jQuery.etag[ cacheURL ] = modified; - } - } - - // if no content - if ( status === 204 || s.type === "HEAD" ) { - statusText = "nocontent"; - - // if not modified - } else if ( status === 304 ) { - statusText = "notmodified"; - - // If we have data, let's convert it - } else { - statusText = response.state; - success = response.data; - error = response.error; - isSuccess = !error; - } - } else { - - // Extract error from statusText and normalize for non-aborts - error = statusText; - if ( status || !statusText ) { - statusText = "error"; - if ( status < 0 ) { - status = 0; - } - } - } - - // Set data for the fake xhr object - jqXHR.status = status; - jqXHR.statusText = ( nativeStatusText || statusText ) + ""; - - // Success/Error - if ( isSuccess ) { - deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); - } else { - deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); - } - - // Status-dependent callbacks - jqXHR.statusCode( statusCode ); - statusCode = undefined; - - if ( fireGlobals ) { - globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", - [ jqXHR, s, isSuccess ? success : error ] ); - } - - // Complete - completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); - - if ( fireGlobals ) { - globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); - - // Handle the global AJAX counter - if ( !( --jQuery.active ) ) { - jQuery.event.trigger( "ajaxStop" ); - } - } - } - - return jqXHR; - }, - - getJSON: function( url, data, callback ) { - return jQuery.get( url, data, callback, "json" ); - }, - - getScript: function( url, callback ) { - return jQuery.get( url, undefined, callback, "script" ); - } -} ); - -jQuery.each( [ "get", "post" ], function( i, method ) { - jQuery[ method ] = function( url, data, callback, type ) { - - // Shift arguments if data argument was omitted - if ( isFunction( data ) ) { - type = type || callback; - callback = data; - data = undefined; - } - - // The url can be an options object (which then must have .url) - return jQuery.ajax( jQuery.extend( { - url: url, - type: method, - dataType: type, - data: data, - success: callback - }, jQuery.isPlainObject( url ) && url ) ); - }; -} ); - - -jQuery._evalUrl = function( url ) { - return jQuery.ajax( { - url: url, - - // Make this explicit, since user can override this through ajaxSetup (#11264) - type: "GET", - dataType: "script", - cache: true, - async: false, - global: false, - "throws": true - } ); -}; - - -jQuery.fn.extend( { - wrapAll: function( html ) { - var wrap; - - if ( this[ 0 ] ) { - if ( isFunction( html ) ) { - html = html.call( this[ 0 ] ); - } - - // The elements to wrap the target around - wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); - - if ( this[ 0 ].parentNode ) { - wrap.insertBefore( this[ 0 ] ); - } - - wrap.map( function() { - var elem = this; - - while ( elem.firstElementChild ) { - elem = elem.firstElementChild; - } - - return elem; - } ).append( this ); - } - - return this; - }, - - wrapInner: function( html ) { - if ( isFunction( html ) ) { - return this.each( function( i ) { - jQuery( this ).wrapInner( html.call( this, i ) ); - } ); - } - - return this.each( function() { - var self = jQuery( this ), - contents = self.contents(); - - if ( contents.length ) { - contents.wrapAll( html ); - - } else { - self.append( html ); - } - } ); - }, - - wrap: function( html ) { - var htmlIsFunction = isFunction( html ); - - return this.each( function( i ) { - jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html ); - } ); - }, - - unwrap: function( selector ) { - this.parent( selector ).not( "body" ).each( function() { - jQuery( this ).replaceWith( this.childNodes ); - } ); - return this; - } -} ); - - -jQuery.expr.pseudos.hidden = function( elem ) { - return !jQuery.expr.pseudos.visible( elem ); -}; -jQuery.expr.pseudos.visible = function( elem ) { - return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); -}; - - - - -jQuery.ajaxSettings.xhr = function() { - try { - return new window.XMLHttpRequest(); - } catch ( e ) {} -}; - -var xhrSuccessStatus = { - - // File protocol always yields status code 0, assume 200 - 0: 200, - - // Support: IE <=9 only - // #1450: sometimes IE returns 1223 when it should be 204 - 1223: 204 - }, - xhrSupported = jQuery.ajaxSettings.xhr(); - -support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); -support.ajax = xhrSupported = !!xhrSupported; - -jQuery.ajaxTransport( function( options ) { - var callback, errorCallback; - - // Cross domain only allowed if supported through XMLHttpRequest - if ( support.cors || xhrSupported && !options.crossDomain ) { - return { - send: function( headers, complete ) { - var i, - xhr = options.xhr(); - - xhr.open( - options.type, - options.url, - options.async, - options.username, - options.password - ); - - // Apply custom fields if provided - if ( options.xhrFields ) { - for ( i in options.xhrFields ) { - xhr[ i ] = options.xhrFields[ i ]; - } - } - - // Override mime type if needed - if ( options.mimeType && xhr.overrideMimeType ) { - xhr.overrideMimeType( options.mimeType ); - } - - // X-Requested-With header - // For cross-domain requests, seeing as conditions for a preflight are - // akin to a jigsaw puzzle, we simply never set it to be sure. - // (it can always be set on a per-request basis or even using ajaxSetup) - // For same-domain requests, won't change header if already provided. - if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { - headers[ "X-Requested-With" ] = "XMLHttpRequest"; - } - - // Set headers - for ( i in headers ) { - xhr.setRequestHeader( i, headers[ i ] ); - } - - // Callback - callback = function( type ) { - return function() { - if ( callback ) { - callback = errorCallback = xhr.onload = - xhr.onerror = xhr.onabort = xhr.ontimeout = - xhr.onreadystatechange = null; - - if ( type === "abort" ) { - xhr.abort(); - } else if ( type === "error" ) { - - // Support: IE <=9 only - // On a manual native abort, IE9 throws - // errors on any property access that is not readyState - if ( typeof xhr.status !== "number" ) { - complete( 0, "error" ); - } else { - complete( - - // File: protocol always yields status 0; see #8605, #14207 - xhr.status, - xhr.statusText - ); - } - } else { - complete( - xhrSuccessStatus[ xhr.status ] || xhr.status, - xhr.statusText, - - // Support: IE <=9 only - // IE9 has no XHR2 but throws on binary (trac-11426) - // For XHR2 non-text, let the caller handle it (gh-2498) - ( xhr.responseType || "text" ) !== "text" || - typeof xhr.responseText !== "string" ? - { binary: xhr.response } : - { text: xhr.responseText }, - xhr.getAllResponseHeaders() - ); - } - } - }; - }; - - // Listen to events - xhr.onload = callback(); - errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" ); - - // Support: IE 9 only - // Use onreadystatechange to replace onabort - // to handle uncaught aborts - if ( xhr.onabort !== undefined ) { - xhr.onabort = errorCallback; - } else { - xhr.onreadystatechange = function() { - - // Check readyState before timeout as it changes - if ( xhr.readyState === 4 ) { - - // Allow onerror to be called first, - // but that will not handle a native abort - // Also, save errorCallback to a variable - // as xhr.onerror cannot be accessed - window.setTimeout( function() { - if ( callback ) { - errorCallback(); - } - } ); - } - }; - } - - // Create the abort callback - callback = callback( "abort" ); - - try { - - // Do send the request (this may raise an exception) - xhr.send( options.hasContent && options.data || null ); - } catch ( e ) { - - // #14683: Only rethrow if this hasn't been notified as an error yet - if ( callback ) { - throw e; - } - } - }, - - abort: function() { - if ( callback ) { - callback(); - } - } - }; - } -} ); - - - - -// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) -jQuery.ajaxPrefilter( function( s ) { - if ( s.crossDomain ) { - s.contents.script = false; - } -} ); - -// Install script dataType -jQuery.ajaxSetup( { - accepts: { - script: "text/javascript, application/javascript, " + - "application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function( text ) { - jQuery.globalEval( text ); - return text; - } - } -} ); - -// Handle cache's special case and crossDomain -jQuery.ajaxPrefilter( "script", function( s ) { - if ( s.cache === undefined ) { - s.cache = false; - } - if ( s.crossDomain ) { - s.type = "GET"; - } -} ); - -// Bind script tag hack transport -jQuery.ajaxTransport( "script", function( s ) { - - // This transport only deals with cross domain requests - if ( s.crossDomain ) { - var script, callback; - return { - send: function( _, complete ) { - script = jQuery( " - - - - - - - - - -<#include "header.ftl"> -

!!Admin ONLY!!

- -
- Override the Database (Optional): - - -
-
- -<#include "footer.ftl"> diff --git a/gateway-ha/src/main/resources/template/footer.ftl b/gateway-ha/src/main/resources/template/footer.ftl deleted file mode 100644 index 17c7245b6..000000000 --- a/gateway-ha/src/main/resources/template/footer.ftl +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/gateway-ha/src/main/resources/template/gateway-view.ftl b/gateway-ha/src/main/resources/template/gateway-view.ftl deleted file mode 100644 index c0214ad90..000000000 --- a/gateway-ha/src/main/resources/template/gateway-view.ftl +++ /dev/null @@ -1,93 +0,0 @@ -<#-- @ftlvariable name="" type="io.trino.gateway.ha.resource.GatewayViewResource$GatewayView" --> -<#setting datetime_format = "MM/dd/yyyy hh:mm:ss a '('zzz')'"> - - - - - - - - - - - - - - -<#include "header.ftl"> -
- Started at : - -
- -
-

All backends:

- - - - - - - - <#if backendStates?keys?size != 0> - - - - <#list backendConfigurations as bc> - - - - - - <#if backendStates?keys?size != 0 && backendStates[bc.name]??> - - - -
NameUrlGroupActiveQueued - Running - -
${bc.name}${bc.externalUrl} ${bc.routingGroup} ${bc.active?c} ${backendStates[bc.name].state()["QUEUED"]} - ${backendStates[bc.name].state()["RUNNING"]} - -
-
- -<#include "footer.ftl"> \ No newline at end of file diff --git a/gateway-ha/src/main/resources/template/header.ftl b/gateway-ha/src/main/resources/template/header.ftl deleted file mode 100644 index 9bab26036..000000000 --- a/gateway-ha/src/main/resources/template/header.ftl +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - -
-

Trino Gateway

-
User: ${displayName}log out
- - - - - - - - - - - - -
diff --git a/gateway-ha/src/main/resources/template/login-form.ftl b/gateway-ha/src/main/resources/template/login-form.ftl deleted file mode 100644 index 4b6016c6d..000000000 --- a/gateway-ha/src/main/resources/template/login-form.ftl +++ /dev/null @@ -1,51 +0,0 @@ -<#-- @ftlvariable name="" type="io.trino.gateway.ha.resource.GatewayViewResource$GatewayView" --> -<#setting datetime_format = "MM/dd/yyyy hh:mm:ss a '('zzz')'"> - - - - - - - - - - - - - - -
-

Trino Gateway

-
-
-
- - -
-
- - -
-
- - -
-
- - -<#include "footer.ftl"> \ No newline at end of file diff --git a/gateway-ha/src/main/resources/template/query-history-view.ftl b/gateway-ha/src/main/resources/template/query-history-view.ftl deleted file mode 100644 index 836bc6684..000000000 --- a/gateway-ha/src/main/resources/template/query-history-view.ftl +++ /dev/null @@ -1,99 +0,0 @@ -<#setting datetime_format = "MM/dd/yyyy hh:mm:ss a '('zzz')'"> - - - - - - - - - - - - - - -<#include "header.ftl"> -
- Started at : - -
- -<#if queryHistory?size != 0> -
Query details [history size = ${queryHistory?size}]
-
- - - - - - - - - - - - - <#list queryHistory as q> - - - - - - - - - - -
queryIdroutedTousersourcequeryTextsubmissionTime
${q.queryId} ${q.backendUrl} - <#if q.user??> - ${q.user} - - - <#if q.source??> - ${q.source} - - ${q.queryText} - -
-
- -

Query history distribution

-
    - <#list queryDistribution?keys as cluster> -
  • - ${cluster?string} => ${queryDistribution[cluster]?string} -
  • - -
-
- - -<#include "footer.ftl"> - diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java index 628e81972..2662d32d8 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java @@ -20,6 +20,8 @@ import io.trino.gateway.ha.config.FormAuthConfiguration; import io.trino.gateway.ha.config.SelfSignKeyPairConfiguration; import io.trino.gateway.ha.config.UserConfiguration; +import io.trino.gateway.ha.domain.Result; +import io.trino.gateway.ha.domain.request.RestLoginRequest; import jakarta.ws.rs.core.NewCookie; import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Test; @@ -29,6 +31,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.util.HashMap; import java.util.Map; import java.util.Optional; @@ -103,7 +106,7 @@ public void testPresetUsers() "user1", new UserConfiguration("priv1, priv2", "pass1"), "user2", new UserConfiguration("priv2, priv2", "pass2")); - LbFormAuthManager authentication = new LbFormAuthManager(null, presetUsers); + LbFormAuthManager authentication = new LbFormAuthManager(null, presetUsers, new HashMap<>()); assertThat(authentication.authenticate(new BasicCredentials("user1", "pass1"))) .isTrue(); @@ -117,7 +120,7 @@ public void testPresetUsers() public void testNoLdapNoPresetUsers() throws Exception { - LbFormAuthManager authentication = new LbFormAuthManager(null, null); + LbFormAuthManager authentication = new LbFormAuthManager(null, null, null); assertThat(authentication.authenticate(new BasicCredentials("user1", "pass1"))) .isFalse(); } @@ -126,7 +129,7 @@ public void testNoLdapNoPresetUsers() public void testWrongLdapConfig() throws Exception { - LbFormAuthManager authentication = new LbFormAuthManager(null, null); + LbFormAuthManager authentication = new LbFormAuthManager(null, null, null); assertThat(authentication.authenticate(new BasicCredentials("user1", "pass1"))) .isFalse(); } @@ -156,12 +159,15 @@ public void testLoginForm() "user1", new UserConfiguration("priv1, priv2", "pass1"), "user2", new UserConfiguration("priv2, priv2", "pass2")); - LbFormAuthManager lbFormAuthManager = new LbFormAuthManager(formAuthConfig, presetUsers); - Response response = lbFormAuthManager.processLoginForm("user1", "pass1"); - NewCookie cookie = response.getCookies().get(OAUTH_ID_TOKEN); - String value = cookie.getValue(); - assertThat(value != null && value.length() > 0).isTrue(); - log.info(cookie.getValue()); - JWT.decode(value); + LbFormAuthManager lbFormAuthManager = new LbFormAuthManager(formAuthConfig, presetUsers, new HashMap<>()); + RestLoginRequest restLoginRequest = new RestLoginRequest(); + restLoginRequest.setUsername("user1"); + restLoginRequest.setPassword("pass1"); + Result r = lbFormAuthManager.processRESTLogin(restLoginRequest); + assertThat(Result.isSuccess(r)).isTrue(); + Map data = (Map) r.getData(); + String token = (String) data.get("token"); + log.info(token); + JWT.decode(token); } } diff --git a/pom.xml b/pom.xml index 2b32ec610..9f577e84d 100644 --- a/pom.xml +++ b/pom.xml @@ -78,12 +78,6 @@ jakarta.activation-api 2.1.2 - - - org.apache.commons - commons-lang3 - 3.13.0 - diff --git a/webapp/.env b/webapp/.env new file mode 100644 index 000000000..5be413018 --- /dev/null +++ b/webapp/.env @@ -0,0 +1,4 @@ +# https://vitejs.dev/guide/env-and-mode.html + +VITE_GLOB_APP_TITLE="Trino Gateway" +VITE_GLOB_APP_SHORT_NAME="TrinoGateway" diff --git a/webapp/.env.development b/webapp/.env.development new file mode 100644 index 000000000..993f5dc7a --- /dev/null +++ b/webapp/.env.development @@ -0,0 +1,4 @@ +# https://vitejs.dev/guide/env-and-mode.html + +VITE_BASE_URL=http://127.0.0.1:8090/ +VITE_PROXY_PATH=/api diff --git a/webapp/.env.production b/webapp/.env.production new file mode 100644 index 000000000..4ddad222f --- /dev/null +++ b/webapp/.env.production @@ -0,0 +1,3 @@ +# https://vitejs.dev/guide/env-and-mode.html + +VITE_BASE_URL=/ diff --git a/webapp/.eslintrc.cjs b/webapp/.eslintrc.cjs new file mode 100644 index 000000000..9d6dfe5f7 --- /dev/null +++ b/webapp/.eslintrc.cjs @@ -0,0 +1,20 @@ +module.exports = { + root: true, + env: { browser: true, es2020: true }, + extends: [ + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', + ], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], + rules: { + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + "@typescript-eslint/no-explicit-any": "off", + "react-hooks/exhaustive-deps": "off" + }, +} diff --git a/webapp/.gitignore b/webapp/.gitignore new file mode 100644 index 000000000..147d9ad3d --- /dev/null +++ b/webapp/.gitignore @@ -0,0 +1,26 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +node diff --git a/webapp/README.md b/webapp/README.md new file mode 100644 index 000000000..01b81e543 --- /dev/null +++ b/webapp/README.md @@ -0,0 +1,26 @@ + +# Framework document +1. Semi UI: https://semi.design/en-US + - If you want to customize the theme, you can view https://semi.design/dsm/landing +2. Vite: https://vitejs.dev/ +3. React: https://react.dev/ +4. TypeScript: https://www.typescriptlang.org/ +5. Echarts: https://echarts.apache.org/ + +# Development +``` +pnpm install +pnpm run dev +pnpm run build +``` + +# Package +``` +# If you want the web to start with the project, you can execute +./mvnw clean install + +# If you want to run the web project alone, you can execute +cd ./webapp +pnpm install +pnpm run build +``` diff --git a/webapp/index.html b/webapp/index.html new file mode 100644 index 000000000..d52a6870e --- /dev/null +++ b/webapp/index.html @@ -0,0 +1,13 @@ + + + + + + + Trino Gateway + + +
+ + + diff --git a/webapp/package.json b/webapp/package.json new file mode 100644 index 000000000..d8fe80568 --- /dev/null +++ b/webapp/package.json @@ -0,0 +1,41 @@ +{ + "name": "trino-gateway", + "private": true, + "version": "0.0.1", + "type": "module", + "scripts": { + "dev": "vite", + "build": "tsc && vite build", + "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", + "preview": "vite preview" + }, + "dependencies": { + "@douyinfe/semi-icons": "^2.47.1", + "@douyinfe/semi-icons-lab": "^2.47.1", + "@douyinfe/semi-illustrations": "^2.47.1", + "@douyinfe/semi-ui": "^2.47.1", + "echarts": "^5.4.3", + "js-cookie": "^3.0.5", + "moment": "^2.29.4", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-router-dom": "^6.20.0", + "sass": "^1.69.5", + "zustand": "^4.3.8" + }, + "devDependencies": { + "@types/react": "^18.2.37", + "@types/react-dom": "^18.2.15", + "@typescript-eslint/eslint-plugin": "^6.10.0", + "@typescript-eslint/parser": "^6.10.0", + "@vitejs/plugin-react": "^4.2.0", + "eslint": "^8.53.0", + "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-react-refresh": "^0.4.4", + "typescript": "^5.2.2", + "vite": "^5.0.0", + "vite-plugin-svgr": "^4.2.0", + "@types/echarts": "^4.9.22", + "@types/js-cookie": "^3.0.6" + } +} diff --git a/webapp/pnpm-lock.yaml b/webapp/pnpm-lock.yaml new file mode 100644 index 000000000..32082fc13 --- /dev/null +++ b/webapp/pnpm-lock.yaml @@ -0,0 +1,3265 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +dependencies: + '@douyinfe/semi-icons': + specifier: ^2.47.1 + version: registry.npmmirror.com/@douyinfe/semi-icons@2.47.1(react@18.2.0) + '@douyinfe/semi-icons-lab': + specifier: ^2.47.1 + version: registry.npmmirror.com/@douyinfe/semi-icons-lab@2.47.1(react-dom@18.2.0)(react@18.2.0) + '@douyinfe/semi-illustrations': + specifier: ^2.47.1 + version: registry.npmmirror.com/@douyinfe/semi-illustrations@2.47.1(react@18.2.0) + '@douyinfe/semi-ui': + specifier: ^2.47.1 + version: registry.npmmirror.com/@douyinfe/semi-ui@2.47.1(react-dom@18.2.0)(react@18.2.0) + echarts: + specifier: ^5.4.3 + version: registry.npmmirror.com/echarts@5.4.3 + js-cookie: + specifier: ^3.0.5 + version: registry.npmmirror.com/js-cookie@3.0.5 + moment: + specifier: ^2.29.4 + version: registry.npmmirror.com/moment@2.29.4 + react: + specifier: ^18.2.0 + version: registry.npmmirror.com/react@18.2.0 + react-dom: + specifier: ^18.2.0 + version: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + react-router-dom: + specifier: ^6.20.0 + version: registry.npmmirror.com/react-router-dom@6.20.0(react-dom@18.2.0)(react@18.2.0) + sass: + specifier: ^1.69.5 + version: registry.npmmirror.com/sass@1.69.5 + zustand: + specifier: ^4.3.8 + version: registry.npmmirror.com/zustand@4.3.8(react@18.2.0) + +devDependencies: + '@types/echarts': + specifier: ^4.9.22 + version: registry.npmmirror.com/@types/echarts@4.9.22 + '@types/js-cookie': + specifier: ^3.0.6 + version: registry.npmmirror.com/@types/js-cookie@3.0.6 + '@types/react': + specifier: ^18.2.37 + version: registry.npmmirror.com/@types/react@18.2.37 + '@types/react-dom': + specifier: ^18.2.15 + version: registry.npmmirror.com/@types/react-dom@18.2.15 + '@typescript-eslint/eslint-plugin': + specifier: ^6.10.0 + version: registry.npmmirror.com/@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/parser': + specifier: ^6.10.0 + version: registry.npmmirror.com/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@vitejs/plugin-react': + specifier: ^4.2.0 + version: registry.npmmirror.com/@vitejs/plugin-react@4.2.0(vite@5.0.0) + eslint: + specifier: ^8.53.0 + version: registry.npmmirror.com/eslint@8.53.0 + eslint-plugin-react-hooks: + specifier: ^4.6.0 + version: registry.npmmirror.com/eslint-plugin-react-hooks@4.6.0(eslint@8.53.0) + eslint-plugin-react-refresh: + specifier: ^0.4.4 + version: registry.npmmirror.com/eslint-plugin-react-refresh@0.4.4(eslint@8.53.0) + typescript: + specifier: ^5.2.2 + version: registry.npmmirror.com/typescript@5.2.2 + vite: + specifier: ^5.0.0 + version: registry.npmmirror.com/vite@5.0.0(sass@1.69.5) + vite-plugin-svgr: + specifier: ^4.2.0 + version: registry.npmmirror.com/vite-plugin-svgr@4.2.0(typescript@5.2.2)(vite@5.0.0) + +packages: + + registry.npmmirror.com/@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz} + name: '@aashutoshrathi/word-wrap' + version: 1.2.6 + engines: {node: '>=0.10.0'} + dev: true + + registry.npmmirror.com/@ampproject/remapping@2.2.1: + resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.2.1.tgz} + name: '@ampproject/remapping' + version: 2.2.1 + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/gen-mapping': registry.npmmirror.com/@jridgewell/gen-mapping@0.3.3 + '@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20 + dev: true + + registry.npmmirror.com/@babel/code-frame@7.23.5: + resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.23.5.tgz} + name: '@babel/code-frame' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/highlight': registry.npmmirror.com/@babel/highlight@7.23.4 + chalk: registry.npmmirror.com/chalk@2.4.2 + dev: true + + registry.npmmirror.com/@babel/compat-data@7.23.5: + resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.23.5.tgz} + name: '@babel/compat-data' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/@babel/core@7.23.5: + resolution: {integrity: sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/core/-/core-7.23.5.tgz} + name: '@babel/core' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + '@ampproject/remapping': registry.npmmirror.com/@ampproject/remapping@2.2.1 + '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 + '@babel/generator': registry.npmmirror.com/@babel/generator@7.23.5 + '@babel/helper-compilation-targets': registry.npmmirror.com/@babel/helper-compilation-targets@7.22.15 + '@babel/helper-module-transforms': registry.npmmirror.com/@babel/helper-module-transforms@7.23.3(@babel/core@7.23.5) + '@babel/helpers': registry.npmmirror.com/@babel/helpers@7.23.5 + '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 + '@babel/template': registry.npmmirror.com/@babel/template@7.22.15 + '@babel/traverse': registry.npmmirror.com/@babel/traverse@7.23.5 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + convert-source-map: registry.npmmirror.com/convert-source-map@2.0.0 + debug: registry.npmmirror.com/debug@4.3.4 + gensync: registry.npmmirror.com/gensync@1.0.0-beta.2 + json5: registry.npmmirror.com/json5@2.2.3 + semver: registry.npmmirror.com/semver@6.3.1 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@babel/generator@7.23.5: + resolution: {integrity: sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/generator/-/generator-7.23.5.tgz} + name: '@babel/generator' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@jridgewell/gen-mapping': registry.npmmirror.com/@jridgewell/gen-mapping@0.3.3 + '@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20 + jsesc: registry.npmmirror.com/jsesc@2.5.2 + dev: true + + registry.npmmirror.com/@babel/helper-compilation-targets@7.22.15: + resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz} + name: '@babel/helper-compilation-targets' + version: 7.22.15 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/compat-data': registry.npmmirror.com/@babel/compat-data@7.23.5 + '@babel/helper-validator-option': registry.npmmirror.com/@babel/helper-validator-option@7.23.5 + browserslist: registry.npmmirror.com/browserslist@4.22.1 + lru-cache: registry.npmmirror.com/lru-cache@5.1.1 + semver: registry.npmmirror.com/semver@6.3.1 + dev: true + + registry.npmmirror.com/@babel/helper-environment-visitor@7.22.20: + resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz} + name: '@babel/helper-environment-visitor' + version: 7.22.20 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/@babel/helper-function-name@7.23.0: + resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz} + name: '@babel/helper-function-name' + version: 7.23.0 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': registry.npmmirror.com/@babel/template@7.22.15 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/helper-hoist-variables@7.22.5: + resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz} + name: '@babel/helper-hoist-variables' + version: 7.22.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/helper-module-imports@7.22.15: + resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz} + name: '@babel/helper-module-imports' + version: 7.22.15 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/helper-module-transforms@7.23.3(@babel/core@7.23.5): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz} + id: registry.npmmirror.com/@babel/helper-module-transforms/7.23.3 + name: '@babel/helper-module-transforms' + version: 7.23.3 + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/helper-environment-visitor': registry.npmmirror.com/@babel/helper-environment-visitor@7.22.20 + '@babel/helper-module-imports': registry.npmmirror.com/@babel/helper-module-imports@7.22.15 + '@babel/helper-simple-access': registry.npmmirror.com/@babel/helper-simple-access@7.22.5 + '@babel/helper-split-export-declaration': registry.npmmirror.com/@babel/helper-split-export-declaration@7.22.6 + '@babel/helper-validator-identifier': registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20 + dev: true + + registry.npmmirror.com/@babel/helper-plugin-utils@7.22.5: + resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz} + name: '@babel/helper-plugin-utils' + version: 7.22.5 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/@babel/helper-simple-access@7.22.5: + resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz} + name: '@babel/helper-simple-access' + version: 7.22.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/helper-split-export-declaration@7.22.6: + resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz} + name: '@babel/helper-split-export-declaration' + version: 7.22.6 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/helper-string-parser@7.23.4: + resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz} + name: '@babel/helper-string-parser' + version: 7.23.4 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz} + name: '@babel/helper-validator-identifier' + version: 7.22.20 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/@babel/helper-validator-option@7.23.5: + resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz} + name: '@babel/helper-validator-option' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/@babel/helpers@7.23.5: + resolution: {integrity: sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helpers/-/helpers-7.23.5.tgz} + name: '@babel/helpers' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/template': registry.npmmirror.com/@babel/template@7.22.15 + '@babel/traverse': registry.npmmirror.com/@babel/traverse@7.23.5 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@babel/highlight@7.23.4: + resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/highlight/-/highlight-7.23.4.tgz} + name: '@babel/highlight' + version: 7.23.4 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-validator-identifier': registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20 + chalk: registry.npmmirror.com/chalk@2.4.2 + js-tokens: registry.npmmirror.com/js-tokens@4.0.0 + dev: true + + registry.npmmirror.com/@babel/parser@7.23.5: + resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/parser/-/parser-7.23.5.tgz} + name: '@babel/parser' + version: 7.23.5 + engines: {node: '>=6.0.0'} + hasBin: true + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.23.5): + resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.23.3.tgz} + id: registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/7.23.3 + name: '@babel/plugin-transform-react-jsx-self' + version: 7.23.3 + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/helper-plugin-utils': registry.npmmirror.com/@babel/helper-plugin-utils@7.22.5 + dev: true + + registry.npmmirror.com/@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.23.5): + resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.23.3.tgz} + id: registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/7.23.3 + name: '@babel/plugin-transform-react-jsx-source' + version: 7.23.3 + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/helper-plugin-utils': registry.npmmirror.com/@babel/helper-plugin-utils@7.22.5 + dev: true + + registry.npmmirror.com/@babel/runtime@7.23.5: + resolution: {integrity: sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/runtime/-/runtime-7.23.5.tgz} + name: '@babel/runtime' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + regenerator-runtime: registry.npmmirror.com/regenerator-runtime@0.14.0 + dev: false + + registry.npmmirror.com/@babel/template@7.22.15: + resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/template/-/template-7.22.15.tgz} + name: '@babel/template' + version: 7.22.15 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 + '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@babel/traverse@7.23.5: + resolution: {integrity: sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/traverse/-/traverse-7.23.5.tgz} + name: '@babel/traverse' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 + '@babel/generator': registry.npmmirror.com/@babel/generator@7.23.5 + '@babel/helper-environment-visitor': registry.npmmirror.com/@babel/helper-environment-visitor@7.22.20 + '@babel/helper-function-name': registry.npmmirror.com/@babel/helper-function-name@7.23.0 + '@babel/helper-hoist-variables': registry.npmmirror.com/@babel/helper-hoist-variables@7.22.5 + '@babel/helper-split-export-declaration': registry.npmmirror.com/@babel/helper-split-export-declaration@7.22.6 + '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + debug: registry.npmmirror.com/debug@4.3.4 + globals: registry.npmmirror.com/globals@11.12.0 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@babel/types@7.23.5: + resolution: {integrity: sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/types/-/types-7.23.5.tgz} + name: '@babel/types' + version: 7.23.5 + engines: {node: '>=6.9.0'} + dependencies: + '@babel/helper-string-parser': registry.npmmirror.com/@babel/helper-string-parser@7.23.4 + '@babel/helper-validator-identifier': registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20 + to-fast-properties: registry.npmmirror.com/to-fast-properties@2.0.0 + dev: true + + registry.npmmirror.com/@dnd-kit/accessibility@3.1.0(react@18.2.0): + resolution: {integrity: sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/accessibility/-/accessibility-3.1.0.tgz} + id: registry.npmmirror.com/@dnd-kit/accessibility/3.1.0 + name: '@dnd-kit/accessibility' + version: 3.1.0 + peerDependencies: + react: '>=16.8.0' + dependencies: + react: registry.npmmirror.com/react@18.2.0 + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: false + + registry.npmmirror.com/@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-J3cQBClB4TVxwGo3KEjssGEXNJqGVWx17aRTZ1ob0FliR5IjYgTxl5YJbKTzA6IzrtelotH19v6y7uoIRUZPSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/core/-/core-6.1.0.tgz} + id: registry.npmmirror.com/@dnd-kit/core/6.1.0 + name: '@dnd-kit/core' + version: 6.1.0 + peerDependencies: + react: '>=16.8.0' + react-dom: '>=16.8.0' + dependencies: + '@dnd-kit/accessibility': registry.npmmirror.com/@dnd-kit/accessibility@3.1.0(react@18.2.0) + '@dnd-kit/utilities': registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: false + + registry.npmmirror.com/@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0): + resolution: {integrity: sha512-wDkBHHf9iCi1veM834Gbk1429bd4lHX4RpAwT0y2cHLf246GAvU2sVw/oxWNpPKQNQRQaeGXhAVgrOl1IT+iyA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/sortable/-/sortable-7.0.2.tgz} + id: registry.npmmirror.com/@dnd-kit/sortable/7.0.2 + name: '@dnd-kit/sortable' + version: 7.0.2 + peerDependencies: + '@dnd-kit/core': ^6.0.7 + react: '>=16.8.0' + dependencies: + '@dnd-kit/core': registry.npmmirror.com/@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0) + '@dnd-kit/utilities': registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0) + react: registry.npmmirror.com/react@18.2.0 + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: false + + registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0): + resolution: {integrity: sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/utilities/-/utilities-3.2.2.tgz} + id: registry.npmmirror.com/@dnd-kit/utilities/3.2.2 + name: '@dnd-kit/utilities' + version: 3.2.2 + peerDependencies: + react: '>=16.8.0' + dependencies: + react: registry.npmmirror.com/react@18.2.0 + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: false + + registry.npmmirror.com/@douyinfe/semi-animation-react@2.47.1: + resolution: {integrity: sha512-5BzuEHSOW06IbNotshB1RsUoq0oJdY9IpmbQQL77kmvu8DvKnIsGDeYWP6TYwoKycCCMIDyCYsD13s+qMUGvwg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-animation-react/-/semi-animation-react-2.47.1.tgz} + name: '@douyinfe/semi-animation-react' + version: 2.47.1 + dependencies: + '@douyinfe/semi-animation': registry.npmmirror.com/@douyinfe/semi-animation@2.47.1 + '@douyinfe/semi-animation-styled': registry.npmmirror.com/@douyinfe/semi-animation-styled@2.47.1 + classnames: registry.npmmirror.com/classnames@2.3.2 + dev: false + + registry.npmmirror.com/@douyinfe/semi-animation-styled@2.47.1: + resolution: {integrity: sha512-jjEwbVMKaIh74A1svvLdSseGIiJYX0CiMisfiwWtp/f3OCJTB20CaIHrINGTti5R9bB/MD5Oe3GuHLoD6/JQMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-animation-styled/-/semi-animation-styled-2.47.1.tgz} + name: '@douyinfe/semi-animation-styled' + version: 2.47.1 + dev: false + + registry.npmmirror.com/@douyinfe/semi-animation@2.47.1: + resolution: {integrity: sha512-DG4bP3N3UZSeIoP4hDGFyKzNF83cd9vVjCJnxHUGTtVtFSpO1b47iQ0kD1qcgkUZghEqeixPFFu+6ilhq0qzZg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-animation/-/semi-animation-2.47.1.tgz} + name: '@douyinfe/semi-animation' + version: 2.47.1 + dependencies: + bezier-easing: registry.npmmirror.com/bezier-easing@2.1.0 + dev: false + + registry.npmmirror.com/@douyinfe/semi-foundation@2.47.1: + resolution: {integrity: sha512-2yO2kPO9TX+7gzRikmUy34CRckTB3Qkt+K9eIA2FMnIQ7R00yus7nAeoLaOaU8qUJd+OrqIEtwHGxthd0V1Wrg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-foundation/-/semi-foundation-2.47.1.tgz} + name: '@douyinfe/semi-foundation' + version: 2.47.1 + dependencies: + '@douyinfe/semi-animation': registry.npmmirror.com/@douyinfe/semi-animation@2.47.1 + async-validator: registry.npmmirror.com/async-validator@3.5.2 + classnames: registry.npmmirror.com/classnames@2.3.2 + date-fns: registry.npmmirror.com/date-fns@2.30.0 + date-fns-tz: registry.npmmirror.com/date-fns-tz@1.3.8(date-fns@2.30.0) + lodash: registry.npmmirror.com/lodash@4.17.21 + memoize-one: registry.npmmirror.com/memoize-one@5.2.1 + scroll-into-view-if-needed: registry.npmmirror.com/scroll-into-view-if-needed@2.2.31 + dev: false + + registry.npmmirror.com/@douyinfe/semi-icons-lab@2.47.1(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-UYAtDQjdHk3ymLAPmiHjk+XGLn6ppghpzRnMMxq7TUucJw8enysOM6lvr6bH34VNk0SKrzHBQyKgG7rhQL3gmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-icons-lab/-/semi-icons-lab-2.47.1.tgz} + id: registry.npmmirror.com/@douyinfe/semi-icons-lab/2.47.1 + name: '@douyinfe/semi-icons-lab' + version: 2.47.1 + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + dev: false + + registry.npmmirror.com/@douyinfe/semi-icons@2.47.1(react@18.2.0): + resolution: {integrity: sha512-+gC22MWuOCKSRwB5Yxq55+NUgoO9b7stYvIkuCmPuD3kYgjFhhGRR+o9dscQmDa8Wjd98wY05zI01S4BV/ptLw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-icons/-/semi-icons-2.47.1.tgz} + id: registry.npmmirror.com/@douyinfe/semi-icons/2.47.1 + name: '@douyinfe/semi-icons' + version: 2.47.1 + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + classnames: registry.npmmirror.com/classnames@2.3.2 + react: registry.npmmirror.com/react@18.2.0 + dev: false + + registry.npmmirror.com/@douyinfe/semi-illustrations@2.47.1(react@18.2.0): + resolution: {integrity: sha512-ouhdAHzcBEW5kv5EFvHQsITSHIxlL0mnCMz63TVIywGA6QnCcxyMG6er0rlChAnu76FhlERR/Ys5Dlf2e5VhSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-illustrations/-/semi-illustrations-2.47.1.tgz} + id: registry.npmmirror.com/@douyinfe/semi-illustrations/2.47.1 + name: '@douyinfe/semi-illustrations' + version: 2.47.1 + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: registry.npmmirror.com/react@18.2.0 + dev: false + + registry.npmmirror.com/@douyinfe/semi-theme-default@2.47.1: + resolution: {integrity: sha512-GGWH6sBvwBft8eB+7V0VSueSVmsfLhabzSv/GXYwZeyljyuj4/JTRZa2qyiSgN1BOZbwn3vPW1si2QFioR0gQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-theme-default/-/semi-theme-default-2.47.1.tgz} + name: '@douyinfe/semi-theme-default' + version: 2.47.1 + dependencies: + glob: registry.npmmirror.com/glob@7.2.3 + dev: false + + registry.npmmirror.com/@douyinfe/semi-ui@2.47.1(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-HxYvjn32DJsDPmcspM8jzHMY84f4skEAN6Zheg4FPW74uAUSnGILj5HXd/vZM4c6bbJeQSnxP0Grqa5qrZFpkg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-ui/-/semi-ui-2.47.1.tgz} + id: registry.npmmirror.com/@douyinfe/semi-ui/2.47.1 + name: '@douyinfe/semi-ui' + version: 2.47.1 + peerDependencies: + react: '>=16.0.0' + react-dom: '>=16.0.0' + dependencies: + '@dnd-kit/core': registry.npmmirror.com/@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0) + '@dnd-kit/sortable': registry.npmmirror.com/@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0) + '@dnd-kit/utilities': registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0) + '@douyinfe/semi-animation': registry.npmmirror.com/@douyinfe/semi-animation@2.47.1 + '@douyinfe/semi-animation-react': registry.npmmirror.com/@douyinfe/semi-animation-react@2.47.1 + '@douyinfe/semi-foundation': registry.npmmirror.com/@douyinfe/semi-foundation@2.47.1 + '@douyinfe/semi-icons': registry.npmmirror.com/@douyinfe/semi-icons@2.47.1(react@18.2.0) + '@douyinfe/semi-illustrations': registry.npmmirror.com/@douyinfe/semi-illustrations@2.47.1(react@18.2.0) + '@douyinfe/semi-theme-default': registry.npmmirror.com/@douyinfe/semi-theme-default@2.47.1 + async-validator: registry.npmmirror.com/async-validator@3.5.2 + classnames: registry.npmmirror.com/classnames@2.3.2 + copy-text-to-clipboard: registry.npmmirror.com/copy-text-to-clipboard@2.2.0 + date-fns: registry.npmmirror.com/date-fns@2.30.0 + date-fns-tz: registry.npmmirror.com/date-fns-tz@1.3.8(date-fns@2.30.0) + lodash: registry.npmmirror.com/lodash@4.17.21 + prop-types: registry.npmmirror.com/prop-types@15.8.1 + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + react-resizable: registry.npmmirror.com/react-resizable@3.0.5(react-dom@18.2.0)(react@18.2.0) + react-window: registry.npmmirror.com/react-window@1.8.10(react-dom@18.2.0)(react@18.2.0) + resize-observer-polyfill: registry.npmmirror.com/resize-observer-polyfill@1.5.1 + scroll-into-view-if-needed: registry.npmmirror.com/scroll-into-view-if-needed@2.2.31 + utility-types: registry.npmmirror.com/utility-types@3.10.0 + dev: false + + registry.npmmirror.com/@esbuild/android-arm64@0.19.8: + resolution: {integrity: sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLECj6FhDzk1cF9WHMVwrtA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.19.8.tgz} + name: '@esbuild/android-arm64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/android-arm@0.19.8: + resolution: {integrity: sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvLBax+VKTPlpnx+sPicOA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.19.8.tgz} + name: '@esbuild/android-arm' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/android-x64@0.19.8: + resolution: {integrity: sha512-rdqqYfRIn4jWOp+lzQttYMa2Xar3OK9Yt2fhOhzFXqg0rVWEfSclJvZq5fZslnz6ypHvVf3CT7qyf0A5pM682A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.19.8.tgz} + name: '@esbuild/android-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/darwin-arm64@0.19.8: + resolution: {integrity: sha512-RQw9DemMbIq35Bprbboyf8SmOr4UXsRVxJ97LgB55VKKeJOOdvsIPy0nFyF2l8U+h4PtBx/1kRf0BelOYCiQcw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.8.tgz} + name: '@esbuild/darwin-arm64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/darwin-x64@0.19.8: + resolution: {integrity: sha512-3sur80OT9YdeZwIVgERAysAbwncom7b4bCI2XKLjMfPymTud7e/oY4y+ci1XVp5TfQp/bppn7xLw1n/oSQY3/Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.19.8.tgz} + name: '@esbuild/darwin-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/freebsd-arm64@0.19.8: + resolution: {integrity: sha512-WAnPJSDattvS/XtPCTj1tPoTxERjcTpH6HsMr6ujTT+X6rylVe8ggxk8pVxzf5U1wh5sPODpawNicF5ta/9Tmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.8.tgz} + name: '@esbuild/freebsd-arm64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/freebsd-x64@0.19.8: + resolution: {integrity: sha512-ICvZyOplIjmmhjd6mxi+zxSdpPTKFfyPPQMQTK/w+8eNK6WV01AjIztJALDtwNNfFhfZLux0tZLC+U9nSyA5Zg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.8.tgz} + name: '@esbuild/freebsd-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [freebsd] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-arm64@0.19.8: + resolution: {integrity: sha512-z1zMZivxDLHWnyGOctT9JP70h0beY54xDDDJt4VpTX+iwA77IFsE1vCXWmprajJGa+ZYSqkSbRQ4eyLCpCmiCQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.19.8.tgz} + name: '@esbuild/linux-arm64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-arm@0.19.8: + resolution: {integrity: sha512-H4vmI5PYqSvosPaTJuEppU9oz1dq2A7Mr2vyg5TF9Ga+3+MGgBdGzcyBP7qK9MrwFQZlvNyJrvz6GuCaj3OukQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.19.8.tgz} + name: '@esbuild/linux-arm' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-ia32@0.19.8: + resolution: {integrity: sha512-1a8suQiFJmZz1khm/rDglOc8lavtzEMRo0v6WhPgxkrjcU0LkHj+TwBrALwoz/OtMExvsqbbMI0ChyelKabSvQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.19.8.tgz} + name: '@esbuild/linux-ia32' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [ia32] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-loong64@0.19.8: + resolution: {integrity: sha512-fHZWS2JJxnXt1uYJsDv9+b60WCc2RlvVAy1F76qOLtXRO+H4mjt3Tr6MJ5l7Q78X8KgCFudnTuiQRBhULUyBKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.19.8.tgz} + name: '@esbuild/linux-loong64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [loong64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-mips64el@0.19.8: + resolution: {integrity: sha512-Wy/z0EL5qZYLX66dVnEg9riiwls5IYnziwuju2oUiuxVc+/edvqXa04qNtbrs0Ukatg5HEzqT94Zs7J207dN5Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.8.tgz} + name: '@esbuild/linux-mips64el' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [mips64el] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-ppc64@0.19.8: + resolution: {integrity: sha512-ETaW6245wK23YIEufhMQ3HSeHO7NgsLx8gygBVldRHKhOlD1oNeNy/P67mIh1zPn2Hr2HLieQrt6tWrVwuqrxg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.8.tgz} + name: '@esbuild/linux-ppc64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [ppc64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-riscv64@0.19.8: + resolution: {integrity: sha512-T2DRQk55SgoleTP+DtPlMrxi/5r9AeFgkhkZ/B0ap99zmxtxdOixOMI570VjdRCs9pE4Wdkz7JYrsPvsl7eESg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.8.tgz} + name: '@esbuild/linux-riscv64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [riscv64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-s390x@0.19.8: + resolution: {integrity: sha512-NPxbdmmo3Bk7mbNeHmcCd7R7fptJaczPYBaELk6NcXxy7HLNyWwCyDJ/Xx+/YcNH7Im5dHdx9gZ5xIwyliQCbg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.19.8.tgz} + name: '@esbuild/linux-s390x' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [s390x] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/linux-x64@0.19.8: + resolution: {integrity: sha512-lytMAVOM3b1gPypL2TRmZ5rnXl7+6IIk8uB3eLsV1JwcizuolblXRrc5ShPrO9ls/b+RTp+E6gbsuLWHWi2zGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.19.8.tgz} + name: '@esbuild/linux-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/netbsd-x64@0.19.8: + resolution: {integrity: sha512-hvWVo2VsXz/8NVt1UhLzxwAfo5sioj92uo0bCfLibB0xlOmimU/DeAEsQILlBQvkhrGjamP0/el5HU76HAitGw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.8.tgz} + name: '@esbuild/netbsd-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [netbsd] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/openbsd-x64@0.19.8: + resolution: {integrity: sha512-/7Y7u77rdvmGTxR83PgaSvSBJCC2L3Kb1M/+dmSIvRvQPXXCuC97QAwMugBNG0yGcbEGfFBH7ojPzAOxfGNkwQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.8.tgz} + name: '@esbuild/openbsd-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [openbsd] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/sunos-x64@0.19.8: + resolution: {integrity: sha512-9Lc4s7Oi98GqFA4HzA/W2JHIYfnXbUYgekUP/Sm4BG9sfLjyv6GKKHKKVs83SMicBF2JwAX6A1PuOLMqpD001w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.19.8.tgz} + name: '@esbuild/sunos-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [sunos] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/win32-arm64@0.19.8: + resolution: {integrity: sha512-rq6WzBGjSzihI9deW3fC2Gqiak68+b7qo5/3kmB6Gvbh/NYPA0sJhrnp7wgV4bNwjqM+R2AApXGxMO7ZoGhIJg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.19.8.tgz} + name: '@esbuild/win32-arm64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/win32-ia32@0.19.8: + resolution: {integrity: sha512-AIAbverbg5jMvJznYiGhrd3sumfwWs8572mIJL5NQjJa06P8KfCPWZQ0NwZbPQnbQi9OWSZhFVSUWjjIrn4hSw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.19.8.tgz} + name: '@esbuild/win32-ia32' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@esbuild/win32-x64@0.19.8: + resolution: {integrity: sha512-bfZ0cQ1uZs2PqpulNL5j/3w+GDhP36k1K5c38QdQg+Swy51jFZWWeIkteNsufkQxp986wnqRRsb/bHbY1WQ7TA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.19.8.tgz} + name: '@esbuild/win32-x64' + version: 0.19.8 + engines: {node: '>=12'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz} + id: registry.npmmirror.com/@eslint-community/eslint-utils/4.4.0 + name: '@eslint-community/eslint-utils' + version: 4.4.0 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + dependencies: + eslint: registry.npmmirror.com/eslint@8.53.0 + eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + dev: true + + registry.npmmirror.com/@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz} + name: '@eslint-community/regexpp' + version: 4.10.0 + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + dev: true + + registry.npmmirror.com/@eslint/eslintrc@2.1.3: + resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.3.tgz} + name: '@eslint/eslintrc' + version: 2.1.3 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + ajv: registry.npmmirror.com/ajv@6.12.6 + debug: registry.npmmirror.com/debug@4.3.4 + espree: registry.npmmirror.com/espree@9.6.1 + globals: registry.npmmirror.com/globals@13.23.0 + ignore: registry.npmmirror.com/ignore@5.3.0 + import-fresh: registry.npmmirror.com/import-fresh@3.3.0 + js-yaml: registry.npmmirror.com/js-yaml@4.1.0 + minimatch: registry.npmmirror.com/minimatch@3.1.2 + strip-json-comments: registry.npmmirror.com/strip-json-comments@3.1.1 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@eslint/js@8.53.0: + resolution: {integrity: sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint/js/-/js-8.53.0.tgz} + name: '@eslint/js' + version: 8.53.0 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + registry.npmmirror.com/@humanwhocodes/config-array@0.11.13: + resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz} + name: '@humanwhocodes/config-array' + version: 0.11.13 + engines: {node: '>=10.10.0'} + dependencies: + '@humanwhocodes/object-schema': registry.npmmirror.com/@humanwhocodes/object-schema@2.0.1 + debug: registry.npmmirror.com/debug@4.3.4 + minimatch: registry.npmmirror.com/minimatch@3.1.2 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@humanwhocodes/module-importer@1.0.1: + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz} + name: '@humanwhocodes/module-importer' + version: 1.0.1 + engines: {node: '>=12.22'} + dev: true + + registry.npmmirror.com/@humanwhocodes/object-schema@2.0.1: + resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz} + name: '@humanwhocodes/object-schema' + version: 2.0.1 + dev: true + + registry.npmmirror.com/@jridgewell/gen-mapping@0.3.3: + resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz} + name: '@jridgewell/gen-mapping' + version: 0.3.3 + engines: {node: '>=6.0.0'} + dependencies: + '@jridgewell/set-array': registry.npmmirror.com/@jridgewell/set-array@1.1.2 + '@jridgewell/sourcemap-codec': registry.npmmirror.com/@jridgewell/sourcemap-codec@1.4.15 + '@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20 + dev: true + + registry.npmmirror.com/@jridgewell/resolve-uri@3.1.1: + resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz} + name: '@jridgewell/resolve-uri' + version: 3.1.1 + engines: {node: '>=6.0.0'} + dev: true + + registry.npmmirror.com/@jridgewell/set-array@1.1.2: + resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.1.2.tgz} + name: '@jridgewell/set-array' + version: 1.1.2 + engines: {node: '>=6.0.0'} + dev: true + + registry.npmmirror.com/@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz} + name: '@jridgewell/sourcemap-codec' + version: 1.4.15 + dev: true + + registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20: + resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz} + name: '@jridgewell/trace-mapping' + version: 0.3.20 + dependencies: + '@jridgewell/resolve-uri': registry.npmmirror.com/@jridgewell/resolve-uri@3.1.1 + '@jridgewell/sourcemap-codec': registry.npmmirror.com/@jridgewell/sourcemap-codec@1.4.15 + dev: true + + registry.npmmirror.com/@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz} + name: '@nodelib/fs.scandir' + version: 2.1.5 + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.stat': registry.npmmirror.com/@nodelib/fs.stat@2.0.5 + run-parallel: registry.npmmirror.com/run-parallel@1.2.0 + dev: true + + registry.npmmirror.com/@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz} + name: '@nodelib/fs.stat' + version: 2.0.5 + engines: {node: '>= 8'} + dev: true + + registry.npmmirror.com/@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz} + name: '@nodelib/fs.walk' + version: 1.2.8 + engines: {node: '>= 8'} + dependencies: + '@nodelib/fs.scandir': registry.npmmirror.com/@nodelib/fs.scandir@2.1.5 + fastq: registry.npmmirror.com/fastq@1.15.0 + dev: true + + registry.npmmirror.com/@remix-run/router@1.13.0: + resolution: {integrity: sha512-5dMOnVnefRsl4uRnAdoWjtVTdh8e6aZqgM4puy9nmEADH72ck+uXwzpJLEKE9Q6F8ZljNewLgmTfkxUrBdv4WA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@remix-run/router/-/router-1.13.0.tgz} + name: '@remix-run/router' + version: 1.13.0 + engines: {node: '>=14.0.0'} + dev: false + + registry.npmmirror.com/@rollup/pluginutils@5.1.0: + resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz} + name: '@rollup/pluginutils' + version: 5.1.0 + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 + peerDependenciesMeta: + rollup: + optional: true + dependencies: + '@types/estree': registry.npmmirror.com/@types/estree@1.0.5 + estree-walker: registry.npmmirror.com/estree-walker@2.0.2 + picomatch: registry.npmmirror.com/picomatch@2.3.1 + dev: true + + registry.npmmirror.com/@rollup/rollup-android-arm-eabi@4.6.1: + resolution: {integrity: sha512-0WQ0ouLejaUCRsL93GD4uft3rOmB8qoQMU05Kb8CmMtMBe7XUDLAltxVZI1q6byNqEtU7N1ZX1Vw5lIpgulLQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.6.1.tgz} + name: '@rollup/rollup-android-arm-eabi' + version: 4.6.1 + cpu: [arm] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-android-arm64@4.6.1: + resolution: {integrity: sha512-1TKm25Rn20vr5aTGGZqo6E4mzPicCUD79k17EgTLAsXc1zysyi4xXKACfUbwyANEPAEIxkzwue6JZ+stYzWUTA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.6.1.tgz} + name: '@rollup/rollup-android-arm64' + version: 4.6.1 + cpu: [arm64] + os: [android] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-darwin-arm64@4.6.1: + resolution: {integrity: sha512-cEXJQY/ZqMACb+nxzDeX9IPLAg7S94xouJJCNVE5BJM8JUEP4HeTF+ti3cmxWeSJo+5D+o8Tc0UAWUkfENdeyw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.6.1.tgz} + name: '@rollup/rollup-darwin-arm64' + version: 4.6.1 + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-darwin-x64@4.6.1: + resolution: {integrity: sha512-LoSU9Xu56isrkV2jLldcKspJ7sSXmZWkAxg7sW/RfF7GS4F5/v4EiqKSMCFbZtDu2Nc1gxxFdQdKwkKS4rwxNg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.6.1.tgz} + name: '@rollup/rollup-darwin-x64' + version: 4.6.1 + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf@4.6.1: + resolution: {integrity: sha512-EfI3hzYAy5vFNDqpXsNxXcgRDcFHUWSx5nnRSCKwXuQlI5J9dD84g2Usw81n3FLBNsGCegKGwwTVsSKK9cooSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.6.1.tgz} + name: '@rollup/rollup-linux-arm-gnueabihf' + version: 4.6.1 + cpu: [arm] + os: [linux] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu@4.6.1: + resolution: {integrity: sha512-9lhc4UZstsegbNLhH0Zu6TqvDfmhGzuCWtcTFXY10VjLLUe4Mr0Ye2L3rrtHaDd/J5+tFMEuo5LTCSCMXWfUKw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.6.1.tgz} + name: '@rollup/rollup-linux-arm64-gnu' + version: 4.6.1 + cpu: [arm64] + os: [linux] + libc: [glibc] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-linux-arm64-musl@4.6.1: + resolution: {integrity: sha512-FfoOK1yP5ksX3wwZ4Zk1NgyGHZyuRhf99j64I5oEmirV8EFT7+OhUZEnP+x17lcP/QHJNWGsoJwrz4PJ9fBEXw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.6.1.tgz} + name: '@rollup/rollup-linux-arm64-musl' + version: 4.6.1 + cpu: [arm64] + os: [linux] + libc: [musl] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-linux-x64-gnu@4.6.1: + resolution: {integrity: sha512-DNGZvZDO5YF7jN5fX8ZqmGLjZEXIJRdJEdTFMhiyXqyXubBa0WVLDWSNlQ5JR2PNgDbEV1VQowhVRUh+74D+RA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.6.1.tgz} + name: '@rollup/rollup-linux-x64-gnu' + version: 4.6.1 + cpu: [x64] + os: [linux] + libc: [glibc] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-linux-x64-musl@4.6.1: + resolution: {integrity: sha512-RkJVNVRM+piYy87HrKmhbexCHg3A6Z6MU0W9GHnJwBQNBeyhCJG9KDce4SAMdicQnpURggSvtbGo9xAWOfSvIQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.6.1.tgz} + name: '@rollup/rollup-linux-x64-musl' + version: 4.6.1 + cpu: [x64] + os: [linux] + libc: [musl] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc@4.6.1: + resolution: {integrity: sha512-v2FVT6xfnnmTe3W9bJXl6r5KwJglMK/iRlkKiIFfO6ysKs0rDgz7Cwwf3tjldxQUrHL9INT/1r4VA0n9L/F1vQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.6.1.tgz} + name: '@rollup/rollup-win32-arm64-msvc' + version: 4.6.1 + cpu: [arm64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc@4.6.1: + resolution: {integrity: sha512-YEeOjxRyEjqcWphH9dyLbzgkF8wZSKAKUkldRY6dgNR5oKs2LZazqGB41cWJ4Iqqcy9/zqYgmzBkRoVz3Q9MLw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.6.1.tgz} + name: '@rollup/rollup-win32-ia32-msvc' + version: 4.6.1 + cpu: [ia32] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@rollup/rollup-win32-x64-msvc@4.6.1: + resolution: {integrity: sha512-0zfTlFAIhgz8V2G8STq8toAjsYYA6eci1hnXuyOTUFnymrtJwnS6uGKiv3v5UrPZkBlamLvrLV2iiaeqCKzb0A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.6.1.tgz} + name: '@rollup/rollup-win32-x64-msvc' + version: 4.6.1 + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + + registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute/8.0.0 + name: '@svgr/babel-plugin-add-jsx-attribute' + version: 8.0.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute/8.0.0 + name: '@svgr/babel-plugin-remove-jsx-attribute' + version: 8.0.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression/8.0.0 + name: '@svgr/babel-plugin-remove-jsx-empty-expression' + version: 8.0.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value/8.0.0 + name: '@svgr/babel-plugin-replace-jsx-attribute-value' + version: 8.0.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title/8.0.0 + name: '@svgr/babel-plugin-svg-dynamic-title' + version: 8.0.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions/8.0.0 + name: '@svgr/babel-plugin-svg-em-dimensions' + version: 8.0.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.23.5): + resolution: {integrity: sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg/8.1.0 + name: '@svgr/babel-plugin-transform-react-native-svg' + version: 8.1.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.23.5): + resolution: {integrity: sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz} + id: registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component/8.0.0 + name: '@svgr/babel-plugin-transform-svg-component' + version: 8.0.0 + engines: {node: '>=12'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + dev: true + + registry.npmmirror.com/@svgr/babel-preset@8.1.0(@babel/core@7.23.5): + resolution: {integrity: sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-preset/-/babel-preset-8.1.0.tgz} + id: registry.npmmirror.com/@svgr/babel-preset/8.1.0 + name: '@svgr/babel-preset' + version: 8.1.0 + engines: {node: '>=14'} + peerDependencies: + '@babel/core': ^7.0.0-0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@svgr/babel-plugin-add-jsx-attribute': registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.5) + '@svgr/babel-plugin-remove-jsx-attribute': registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.23.5) + '@svgr/babel-plugin-remove-jsx-empty-expression': registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.23.5) + '@svgr/babel-plugin-replace-jsx-attribute-value': registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.23.5) + '@svgr/babel-plugin-svg-dynamic-title': registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.23.5) + '@svgr/babel-plugin-svg-em-dimensions': registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.23.5) + '@svgr/babel-plugin-transform-react-native-svg': registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.23.5) + '@svgr/babel-plugin-transform-svg-component': registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.23.5) + dev: true + + registry.npmmirror.com/@svgr/core@8.1.0(typescript@5.2.2): + resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/core/-/core-8.1.0.tgz} + id: registry.npmmirror.com/@svgr/core/8.1.0 + name: '@svgr/core' + version: 8.1.0 + engines: {node: '>=14'} + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@svgr/babel-preset': registry.npmmirror.com/@svgr/babel-preset@8.1.0(@babel/core@7.23.5) + camelcase: registry.npmmirror.com/camelcase@6.3.0 + cosmiconfig: registry.npmmirror.com/cosmiconfig@8.3.6(typescript@5.2.2) + snake-case: registry.npmmirror.com/snake-case@3.0.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + registry.npmmirror.com/@svgr/hast-util-to-babel-ast@8.0.0: + resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz} + name: '@svgr/hast-util-to-babel-ast' + version: 8.0.0 + engines: {node: '>=14'} + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + entities: registry.npmmirror.com/entities@4.5.0 + dev: true + + registry.npmmirror.com/@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0): + resolution: {integrity: sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz} + id: registry.npmmirror.com/@svgr/plugin-jsx/8.1.0 + name: '@svgr/plugin-jsx' + version: 8.1.0 + engines: {node: '>=14'} + peerDependencies: + '@svgr/core': '*' + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@svgr/babel-preset': registry.npmmirror.com/@svgr/babel-preset@8.1.0(@babel/core@7.23.5) + '@svgr/core': registry.npmmirror.com/@svgr/core@8.1.0(typescript@5.2.2) + '@svgr/hast-util-to-babel-ast': registry.npmmirror.com/@svgr/hast-util-to-babel-ast@8.0.0 + svg-parser: registry.npmmirror.com/svg-parser@2.0.4 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@types/babel__core@7.20.5: + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__core/-/babel__core-7.20.5.tgz} + name: '@types/babel__core' + version: 7.20.5 + dependencies: + '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@types/babel__generator': registry.npmmirror.com/@types/babel__generator@7.6.7 + '@types/babel__template': registry.npmmirror.com/@types/babel__template@7.4.4 + '@types/babel__traverse': registry.npmmirror.com/@types/babel__traverse@7.20.4 + dev: true + + registry.npmmirror.com/@types/babel__generator@7.6.7: + resolution: {integrity: sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__generator/-/babel__generator-7.6.7.tgz} + name: '@types/babel__generator' + version: 7.6.7 + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@types/babel__template@7.4.4: + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__template/-/babel__template-7.4.4.tgz} + name: '@types/babel__template' + version: 7.4.4 + dependencies: + '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@types/babel__traverse@7.20.4: + resolution: {integrity: sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__traverse/-/babel__traverse-7.20.4.tgz} + name: '@types/babel__traverse' + version: 7.20.4 + dependencies: + '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + dev: true + + registry.npmmirror.com/@types/echarts@4.9.22: + resolution: {integrity: sha512-7Fo6XdWpoi8jxkwP7BARUOM7riq8bMhmsCtSG8gzUcJmFhLo387tihoBYS/y5j7jl3PENT5RxeWZdN9RiwO7HQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/echarts/-/echarts-4.9.22.tgz} + name: '@types/echarts' + version: 4.9.22 + dependencies: + '@types/zrender': registry.npmmirror.com/@types/zrender@4.0.6 + dev: true + + registry.npmmirror.com/@types/estree@1.0.5: + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz} + name: '@types/estree' + version: 1.0.5 + dev: true + + registry.npmmirror.com/@types/js-cookie@3.0.6: + resolution: {integrity: sha512-wkw9yd1kEXOPnvEeEV1Go1MmxtBJL0RR79aOTAApecWFVu7w0NNXNqhcWgvw2YgZDYadliXkl14pa3WXw5jlCQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/js-cookie/-/js-cookie-3.0.6.tgz} + name: '@types/js-cookie' + version: 3.0.6 + dev: true + + registry.npmmirror.com/@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz} + name: '@types/json-schema' + version: 7.0.15 + dev: true + + registry.npmmirror.com/@types/prop-types@15.7.11: + resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.11.tgz} + name: '@types/prop-types' + version: 15.7.11 + dev: true + + registry.npmmirror.com/@types/react-dom@18.2.15: + resolution: {integrity: sha512-HWMdW+7r7MR5+PZqJF6YFNSCtjz1T0dsvo/f1BV6HkV+6erD/nA7wd9NM00KVG83zf2nJ7uATPO9ttdIPvi3gg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/react-dom/-/react-dom-18.2.15.tgz} + name: '@types/react-dom' + version: 18.2.15 + dependencies: + '@types/react': registry.npmmirror.com/@types/react@18.2.37 + dev: true + + registry.npmmirror.com/@types/react@18.2.37: + resolution: {integrity: sha512-RGAYMi2bhRgEXT3f4B92WTohopH6bIXw05FuGlmJEnv/omEn190+QYEIYxIAuIBdKgboYYdVved2p1AxZVQnaw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/react/-/react-18.2.37.tgz} + name: '@types/react' + version: 18.2.37 + dependencies: + '@types/prop-types': registry.npmmirror.com/@types/prop-types@15.7.11 + '@types/scheduler': registry.npmmirror.com/@types/scheduler@0.16.8 + csstype: registry.npmmirror.com/csstype@3.1.2 + dev: true + + registry.npmmirror.com/@types/scheduler@0.16.8: + resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/scheduler/-/scheduler-0.16.8.tgz} + name: '@types/scheduler' + version: 0.16.8 + dev: true + + registry.npmmirror.com/@types/semver@7.5.6: + resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/semver/-/semver-7.5.6.tgz} + name: '@types/semver' + version: 7.5.6 + dev: true + + registry.npmmirror.com/@types/zrender@4.0.6: + resolution: {integrity: sha512-1jZ9bJn2BsfmYFPBHtl5o3uV+ILejAtGrDcYSpT4qaVKEI/0YY+arw3XHU04Ebd8Nca3SQ7uNcLaqiL+tTFVMg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/zrender/-/zrender-4.0.6.tgz} + name: '@types/zrender' + version: 4.0.6 + dev: true + + registry.npmmirror.com/@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-uoLj4g2OTL8rfUQVx2AFO1hp/zja1wABJq77P6IclQs6I/m9GLrm7jCdgzZkvWdDCQf1uEvoa8s8CupsgWQgVg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.10.0.tgz} + id: registry.npmmirror.com/@typescript-eslint/eslint-plugin/6.10.0 + name: '@typescript-eslint/eslint-plugin' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@eslint-community/regexpp': registry.npmmirror.com/@eslint-community/regexpp@4.10.0 + '@typescript-eslint/parser': registry.npmmirror.com/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/scope-manager': registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0 + '@typescript-eslint/type-utils': registry.npmmirror.com/@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/utils': registry.npmmirror.com/@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 + debug: registry.npmmirror.com/debug@4.3.4 + eslint: registry.npmmirror.com/eslint@8.53.0 + graphemer: registry.npmmirror.com/graphemer@1.4.0 + ignore: registry.npmmirror.com/ignore@5.3.0 + natural-compare: registry.npmmirror.com/natural-compare@1.4.0 + semver: registry.npmmirror.com/semver@7.5.4 + ts-api-utils: registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2) + typescript: registry.npmmirror.com/typescript@5.2.2 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-6.10.0.tgz} + id: registry.npmmirror.com/@typescript-eslint/parser/6.10.0 + name: '@typescript-eslint/parser' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/scope-manager': registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0 + '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 + '@typescript-eslint/typescript-estree': registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2) + '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 + debug: registry.npmmirror.com/debug@4.3.4 + eslint: registry.npmmirror.com/eslint@8.53.0 + typescript: registry.npmmirror.com/typescript@5.2.2 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0: + resolution: {integrity: sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-6.10.0.tgz} + name: '@typescript-eslint/scope-manager' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 + '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 + dev: true + + registry.npmmirror.com/@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-wYpPs3hgTFblMYwbYWPT3eZtaDOjbLyIYuqpwuLBBqhLiuvJ+9sEp2gNRJEtR5N/c9G1uTtQQL5AhV0fEPJYcg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-6.10.0.tgz} + id: registry.npmmirror.com/@typescript-eslint/type-utils/6.10.0 + name: '@typescript-eslint/type-utils' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/typescript-estree': registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2) + '@typescript-eslint/utils': registry.npmmirror.com/@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2) + debug: registry.npmmirror.com/debug@4.3.4 + eslint: registry.npmmirror.com/eslint@8.53.0 + ts-api-utils: registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2) + typescript: registry.npmmirror.com/typescript@5.2.2 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@typescript-eslint/types@6.10.0: + resolution: {integrity: sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/types/-/types-6.10.0.tgz} + name: '@typescript-eslint/types' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + dev: true + + registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2): + resolution: {integrity: sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.10.0.tgz} + id: registry.npmmirror.com/@typescript-eslint/typescript-estree/6.10.0 + name: '@typescript-eslint/typescript-estree' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 + '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 + debug: registry.npmmirror.com/debug@4.3.4 + globby: registry.npmmirror.com/globby@11.1.0 + is-glob: registry.npmmirror.com/is-glob@4.0.3 + semver: registry.npmmirror.com/semver@7.5.4 + ts-api-utils: registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2) + typescript: registry.npmmirror.com/typescript@5.2.2 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-v+pJ1/RcVyRc0o4wAGux9x42RHmAjIGzPRo538Z8M1tVx6HOnoQBCX/NoadHQlZeC+QO2yr4nNSFWOoraZCAyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-6.10.0.tgz} + id: registry.npmmirror.com/@typescript-eslint/utils/6.10.0 + name: '@typescript-eslint/utils' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 + dependencies: + '@eslint-community/eslint-utils': registry.npmmirror.com/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0) + '@types/json-schema': registry.npmmirror.com/@types/json-schema@7.0.15 + '@types/semver': registry.npmmirror.com/@types/semver@7.5.6 + '@typescript-eslint/scope-manager': registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0 + '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 + '@typescript-eslint/typescript-estree': registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2) + eslint: registry.npmmirror.com/eslint@8.53.0 + semver: registry.npmmirror.com/semver@7.5.4 + transitivePeerDependencies: + - supports-color + - typescript + dev: true + + registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0: + resolution: {integrity: sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.10.0.tgz} + name: '@typescript-eslint/visitor-keys' + version: 6.10.0 + engines: {node: ^16.0.0 || >=18.0.0} + dependencies: + '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 + eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + dev: true + + registry.npmmirror.com/@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz} + name: '@ungap/structured-clone' + version: 1.2.0 + dev: true + + registry.npmmirror.com/@vitejs/plugin-react@4.2.0(vite@5.0.0): + resolution: {integrity: sha512-+MHTH/e6H12kRp5HUkzOGqPMksezRMmW+TNzlh/QXfI8rRf6l2Z2yH/v12no1UvTwhZgEDMuQ7g7rrfMseU6FQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vitejs/plugin-react/-/plugin-react-4.2.0.tgz} + id: registry.npmmirror.com/@vitejs/plugin-react/4.2.0 + name: '@vitejs/plugin-react' + version: 4.2.0 + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + vite: ^4.2.0 || ^5.0.0 + dependencies: + '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/plugin-transform-react-jsx-self': registry.npmmirror.com/@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.23.5) + '@babel/plugin-transform-react-jsx-source': registry.npmmirror.com/@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.23.5) + '@types/babel__core': registry.npmmirror.com/@types/babel__core@7.20.5 + react-refresh: registry.npmmirror.com/react-refresh@0.14.0 + vite: registry.npmmirror.com/vite@5.0.0(sass@1.69.5) + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/acorn-jsx@5.3.2(acorn@8.11.2): + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz} + id: registry.npmmirror.com/acorn-jsx/5.3.2 + name: acorn-jsx + version: 5.3.2 + peerDependencies: + acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 + dependencies: + acorn: registry.npmmirror.com/acorn@8.11.2 + dev: true + + registry.npmmirror.com/acorn@8.11.2: + resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/acorn/-/acorn-8.11.2.tgz} + name: acorn + version: 8.11.2 + engines: {node: '>=0.4.0'} + hasBin: true + dev: true + + registry.npmmirror.com/ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz} + name: ajv + version: 6.12.6 + dependencies: + fast-deep-equal: registry.npmmirror.com/fast-deep-equal@3.1.3 + fast-json-stable-stringify: registry.npmmirror.com/fast-json-stable-stringify@2.1.0 + json-schema-traverse: registry.npmmirror.com/json-schema-traverse@0.4.1 + uri-js: registry.npmmirror.com/uri-js@4.4.1 + dev: true + + registry.npmmirror.com/ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz} + name: ansi-regex + version: 5.0.1 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/ansi-styles@3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz} + name: ansi-styles + version: 3.2.1 + engines: {node: '>=4'} + dependencies: + color-convert: registry.npmmirror.com/color-convert@1.9.3 + dev: true + + registry.npmmirror.com/ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz} + name: ansi-styles + version: 4.3.0 + engines: {node: '>=8'} + dependencies: + color-convert: registry.npmmirror.com/color-convert@2.0.1 + dev: true + + registry.npmmirror.com/anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz} + name: anymatch + version: 3.1.3 + engines: {node: '>= 8'} + dependencies: + normalize-path: registry.npmmirror.com/normalize-path@3.0.0 + picomatch: registry.npmmirror.com/picomatch@2.3.1 + + registry.npmmirror.com/argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz} + name: argparse + version: 2.0.1 + dev: true + + registry.npmmirror.com/array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz} + name: array-union + version: 2.1.0 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/async-validator@3.5.2: + resolution: {integrity: sha512-8eLCg00W9pIRZSB781UUX/H6Oskmm8xloZfr09lz5bikRpBVDlJ3hRVuxxP1SxcwsEYfJ4IU8Q19Y8/893r3rQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/async-validator/-/async-validator-3.5.2.tgz} + name: async-validator + version: 3.5.2 + dev: false + + registry.npmmirror.com/balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz} + name: balanced-match + version: 1.0.2 + + registry.npmmirror.com/bezier-easing@2.1.0: + resolution: {integrity: sha512-gbIqZ/eslnUFC1tjEvtz0sgx+xTK20wDnYMIA27VA04R7w6xxXQPZDbibjA9DTWZRA2CXtwHykkVzlCaAJAZig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/bezier-easing/-/bezier-easing-2.1.0.tgz} + name: bezier-easing + version: 2.1.0 + dev: false + + registry.npmmirror.com/binary-extensions@2.2.0: + resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz} + name: binary-extensions + version: 2.2.0 + engines: {node: '>=8'} + + registry.npmmirror.com/brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz} + name: brace-expansion + version: 1.1.11 + dependencies: + balanced-match: registry.npmmirror.com/balanced-match@1.0.2 + concat-map: registry.npmmirror.com/concat-map@0.0.1 + + registry.npmmirror.com/braces@3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz} + name: braces + version: 3.0.2 + engines: {node: '>=8'} + dependencies: + fill-range: registry.npmmirror.com/fill-range@7.0.1 + + registry.npmmirror.com/browserslist@4.22.1: + resolution: {integrity: sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/browserslist/-/browserslist-4.22.1.tgz} + name: browserslist + version: 4.22.1 + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + dependencies: + caniuse-lite: registry.npmmirror.com/caniuse-lite@1.0.30001565 + electron-to-chromium: registry.npmmirror.com/electron-to-chromium@1.4.597 + node-releases: registry.npmmirror.com/node-releases@2.0.13 + update-browserslist-db: registry.npmmirror.com/update-browserslist-db@1.0.13(browserslist@4.22.1) + dev: true + + registry.npmmirror.com/callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz} + name: callsites + version: 3.1.0 + engines: {node: '>=6'} + dev: true + + registry.npmmirror.com/camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/camelcase/-/camelcase-6.3.0.tgz} + name: camelcase + version: 6.3.0 + engines: {node: '>=10'} + dev: true + + registry.npmmirror.com/caniuse-lite@1.0.30001565: + resolution: {integrity: sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz} + name: caniuse-lite + version: 1.0.30001565 + dev: true + + registry.npmmirror.com/chalk@2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz} + name: chalk + version: 2.4.2 + engines: {node: '>=4'} + dependencies: + ansi-styles: registry.npmmirror.com/ansi-styles@3.2.1 + escape-string-regexp: registry.npmmirror.com/escape-string-regexp@1.0.5 + supports-color: registry.npmmirror.com/supports-color@5.5.0 + dev: true + + registry.npmmirror.com/chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz} + name: chalk + version: 4.1.2 + engines: {node: '>=10'} + dependencies: + ansi-styles: registry.npmmirror.com/ansi-styles@4.3.0 + supports-color: registry.npmmirror.com/supports-color@7.2.0 + dev: true + + registry.npmmirror.com/chokidar@3.5.3: + resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz} + name: chokidar + version: 3.5.3 + engines: {node: '>= 8.10.0'} + dependencies: + anymatch: registry.npmmirror.com/anymatch@3.1.3 + braces: registry.npmmirror.com/braces@3.0.2 + glob-parent: registry.npmmirror.com/glob-parent@5.1.2 + is-binary-path: registry.npmmirror.com/is-binary-path@2.1.0 + is-glob: registry.npmmirror.com/is-glob@4.0.3 + normalize-path: registry.npmmirror.com/normalize-path@3.0.0 + readdirp: registry.npmmirror.com/readdirp@3.6.0 + optionalDependencies: + fsevents: registry.npmmirror.com/fsevents@2.3.3 + + registry.npmmirror.com/classnames@2.3.2: + resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/classnames/-/classnames-2.3.2.tgz} + name: classnames + version: 2.3.2 + dev: false + + registry.npmmirror.com/clsx@1.2.1: + resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/clsx/-/clsx-1.2.1.tgz} + name: clsx + version: 1.2.1 + engines: {node: '>=6'} + dev: false + + registry.npmmirror.com/color-convert@1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz} + name: color-convert + version: 1.9.3 + dependencies: + color-name: registry.npmmirror.com/color-name@1.1.3 + dev: true + + registry.npmmirror.com/color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz} + name: color-convert + version: 2.0.1 + engines: {node: '>=7.0.0'} + dependencies: + color-name: registry.npmmirror.com/color-name@1.1.4 + dev: true + + registry.npmmirror.com/color-name@1.1.3: + resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-name/-/color-name-1.1.3.tgz} + name: color-name + version: 1.1.3 + dev: true + + registry.npmmirror.com/color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz} + name: color-name + version: 1.1.4 + dev: true + + registry.npmmirror.com/compute-scroll-into-view@1.0.20: + resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz} + name: compute-scroll-into-view + version: 1.0.20 + dev: false + + registry.npmmirror.com/concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz} + name: concat-map + version: 0.0.1 + + registry.npmmirror.com/convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz} + name: convert-source-map + version: 2.0.0 + dev: true + + registry.npmmirror.com/copy-text-to-clipboard@2.2.0: + resolution: {integrity: sha512-WRvoIdnTs1rgPMkgA2pUOa/M4Enh2uzCwdKsOMYNAJiz/4ZvEJgmbF4OmninPmlFdAWisfeh0tH+Cpf7ni3RqQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-2.2.0.tgz} + name: copy-text-to-clipboard + version: 2.2.0 + engines: {node: '>=6'} + dev: false + + registry.npmmirror.com/cosmiconfig@8.3.6(typescript@5.2.2): + resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz} + id: registry.npmmirror.com/cosmiconfig/8.3.6 + name: cosmiconfig + version: 8.3.6 + engines: {node: '>=14'} + peerDependencies: + typescript: '>=4.9.5' + peerDependenciesMeta: + typescript: + optional: true + dependencies: + import-fresh: registry.npmmirror.com/import-fresh@3.3.0 + js-yaml: registry.npmmirror.com/js-yaml@4.1.0 + parse-json: registry.npmmirror.com/parse-json@5.2.0 + path-type: registry.npmmirror.com/path-type@4.0.0 + typescript: registry.npmmirror.com/typescript@5.2.2 + dev: true + + registry.npmmirror.com/cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz} + name: cross-spawn + version: 7.0.3 + engines: {node: '>= 8'} + dependencies: + path-key: registry.npmmirror.com/path-key@3.1.1 + shebang-command: registry.npmmirror.com/shebang-command@2.0.0 + which: registry.npmmirror.com/which@2.0.2 + dev: true + + registry.npmmirror.com/csstype@3.1.2: + resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/csstype/-/csstype-3.1.2.tgz} + name: csstype + version: 3.1.2 + dev: true + + registry.npmmirror.com/date-fns-tz@1.3.8(date-fns@2.30.0): + resolution: {integrity: sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/date-fns-tz/-/date-fns-tz-1.3.8.tgz} + id: registry.npmmirror.com/date-fns-tz/1.3.8 + name: date-fns-tz + version: 1.3.8 + peerDependencies: + date-fns: '>=2.0.0' + dependencies: + date-fns: registry.npmmirror.com/date-fns@2.30.0 + dev: false + + registry.npmmirror.com/date-fns@2.30.0: + resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/date-fns/-/date-fns-2.30.0.tgz} + name: date-fns + version: 2.30.0 + engines: {node: '>=0.11'} + dependencies: + '@babel/runtime': registry.npmmirror.com/@babel/runtime@7.23.5 + dev: false + + registry.npmmirror.com/debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz} + name: debug + version: 4.3.4 + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + dependencies: + ms: registry.npmmirror.com/ms@2.1.2 + dev: true + + registry.npmmirror.com/deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz} + name: deep-is + version: 0.1.4 + dev: true + + registry.npmmirror.com/dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz} + name: dir-glob + version: 3.0.1 + engines: {node: '>=8'} + dependencies: + path-type: registry.npmmirror.com/path-type@4.0.0 + dev: true + + registry.npmmirror.com/doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz} + name: doctrine + version: 3.0.0 + engines: {node: '>=6.0.0'} + dependencies: + esutils: registry.npmmirror.com/esutils@2.0.3 + dev: true + + registry.npmmirror.com/dot-case@3.0.4: + resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dot-case/-/dot-case-3.0.4.tgz} + name: dot-case + version: 3.0.4 + dependencies: + no-case: registry.npmmirror.com/no-case@3.0.4 + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: true + + registry.npmmirror.com/echarts@5.4.3: + resolution: {integrity: sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/echarts/-/echarts-5.4.3.tgz} + name: echarts + version: 5.4.3 + dependencies: + tslib: registry.npmmirror.com/tslib@2.3.0 + zrender: registry.npmmirror.com/zrender@5.4.4 + dev: false + + registry.npmmirror.com/electron-to-chromium@1.4.597: + resolution: {integrity: sha512-0XOQNqHhg2YgRVRUrS4M4vWjFCFIP2ETXcXe/0KIQBjXE9Cpy+tgzzYfuq6HGai3hWq0YywtG+5XK8fyG08EjA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.597.tgz} + name: electron-to-chromium + version: 1.4.597 + dev: true + + registry.npmmirror.com/entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz} + name: entities + version: 4.5.0 + engines: {node: '>=0.12'} + dev: true + + registry.npmmirror.com/error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz} + name: error-ex + version: 1.3.2 + dependencies: + is-arrayish: registry.npmmirror.com/is-arrayish@0.2.1 + dev: true + + registry.npmmirror.com/esbuild@0.19.8: + resolution: {integrity: sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild/-/esbuild-0.19.8.tgz} + name: esbuild + version: 0.19.8 + engines: {node: '>=12'} + hasBin: true + requiresBuild: true + optionalDependencies: + '@esbuild/android-arm': registry.npmmirror.com/@esbuild/android-arm@0.19.8 + '@esbuild/android-arm64': registry.npmmirror.com/@esbuild/android-arm64@0.19.8 + '@esbuild/android-x64': registry.npmmirror.com/@esbuild/android-x64@0.19.8 + '@esbuild/darwin-arm64': registry.npmmirror.com/@esbuild/darwin-arm64@0.19.8 + '@esbuild/darwin-x64': registry.npmmirror.com/@esbuild/darwin-x64@0.19.8 + '@esbuild/freebsd-arm64': registry.npmmirror.com/@esbuild/freebsd-arm64@0.19.8 + '@esbuild/freebsd-x64': registry.npmmirror.com/@esbuild/freebsd-x64@0.19.8 + '@esbuild/linux-arm': registry.npmmirror.com/@esbuild/linux-arm@0.19.8 + '@esbuild/linux-arm64': registry.npmmirror.com/@esbuild/linux-arm64@0.19.8 + '@esbuild/linux-ia32': registry.npmmirror.com/@esbuild/linux-ia32@0.19.8 + '@esbuild/linux-loong64': registry.npmmirror.com/@esbuild/linux-loong64@0.19.8 + '@esbuild/linux-mips64el': registry.npmmirror.com/@esbuild/linux-mips64el@0.19.8 + '@esbuild/linux-ppc64': registry.npmmirror.com/@esbuild/linux-ppc64@0.19.8 + '@esbuild/linux-riscv64': registry.npmmirror.com/@esbuild/linux-riscv64@0.19.8 + '@esbuild/linux-s390x': registry.npmmirror.com/@esbuild/linux-s390x@0.19.8 + '@esbuild/linux-x64': registry.npmmirror.com/@esbuild/linux-x64@0.19.8 + '@esbuild/netbsd-x64': registry.npmmirror.com/@esbuild/netbsd-x64@0.19.8 + '@esbuild/openbsd-x64': registry.npmmirror.com/@esbuild/openbsd-x64@0.19.8 + '@esbuild/sunos-x64': registry.npmmirror.com/@esbuild/sunos-x64@0.19.8 + '@esbuild/win32-arm64': registry.npmmirror.com/@esbuild/win32-arm64@0.19.8 + '@esbuild/win32-ia32': registry.npmmirror.com/@esbuild/win32-ia32@0.19.8 + '@esbuild/win32-x64': registry.npmmirror.com/@esbuild/win32-x64@0.19.8 + dev: true + + registry.npmmirror.com/escalade@3.1.1: + resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/escalade/-/escalade-3.1.1.tgz} + name: escalade + version: 3.1.1 + engines: {node: '>=6'} + dev: true + + registry.npmmirror.com/escape-string-regexp@1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz} + name: escape-string-regexp + version: 1.0.5 + engines: {node: '>=0.8.0'} + dev: true + + registry.npmmirror.com/escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz} + name: escape-string-regexp + version: 4.0.0 + engines: {node: '>=10'} + dev: true + + registry.npmmirror.com/eslint-plugin-react-hooks@4.6.0(eslint@8.53.0): + resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz} + id: registry.npmmirror.com/eslint-plugin-react-hooks/4.6.0 + name: eslint-plugin-react-hooks + version: 4.6.0 + engines: {node: '>=10'} + peerDependencies: + eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + dependencies: + eslint: registry.npmmirror.com/eslint@8.53.0 + dev: true + + registry.npmmirror.com/eslint-plugin-react-refresh@0.4.4(eslint@8.53.0): + resolution: {integrity: sha512-eD83+65e8YPVg6603Om2iCIwcQJf/y7++MWm4tACtEswFLYMwxwVWAfwN+e19f5Ad/FOyyNg9Dfi5lXhH3Y3rA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.4.tgz} + id: registry.npmmirror.com/eslint-plugin-react-refresh/0.4.4 + name: eslint-plugin-react-refresh + version: 0.4.4 + peerDependencies: + eslint: '>=7' + dependencies: + eslint: registry.npmmirror.com/eslint@8.53.0 + dev: true + + registry.npmmirror.com/eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz} + name: eslint-scope + version: 7.2.2 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + esrecurse: registry.npmmirror.com/esrecurse@4.3.0 + estraverse: registry.npmmirror.com/estraverse@5.3.0 + dev: true + + registry.npmmirror.com/eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz} + name: eslint-visitor-keys + version: 3.4.3 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dev: true + + registry.npmmirror.com/eslint@8.53.0: + resolution: {integrity: sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint/-/eslint-8.53.0.tgz} + name: eslint + version: 8.53.0 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + hasBin: true + dependencies: + '@eslint-community/eslint-utils': registry.npmmirror.com/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0) + '@eslint-community/regexpp': registry.npmmirror.com/@eslint-community/regexpp@4.10.0 + '@eslint/eslintrc': registry.npmmirror.com/@eslint/eslintrc@2.1.3 + '@eslint/js': registry.npmmirror.com/@eslint/js@8.53.0 + '@humanwhocodes/config-array': registry.npmmirror.com/@humanwhocodes/config-array@0.11.13 + '@humanwhocodes/module-importer': registry.npmmirror.com/@humanwhocodes/module-importer@1.0.1 + '@nodelib/fs.walk': registry.npmmirror.com/@nodelib/fs.walk@1.2.8 + '@ungap/structured-clone': registry.npmmirror.com/@ungap/structured-clone@1.2.0 + ajv: registry.npmmirror.com/ajv@6.12.6 + chalk: registry.npmmirror.com/chalk@4.1.2 + cross-spawn: registry.npmmirror.com/cross-spawn@7.0.3 + debug: registry.npmmirror.com/debug@4.3.4 + doctrine: registry.npmmirror.com/doctrine@3.0.0 + escape-string-regexp: registry.npmmirror.com/escape-string-regexp@4.0.0 + eslint-scope: registry.npmmirror.com/eslint-scope@7.2.2 + eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + espree: registry.npmmirror.com/espree@9.6.1 + esquery: registry.npmmirror.com/esquery@1.5.0 + esutils: registry.npmmirror.com/esutils@2.0.3 + fast-deep-equal: registry.npmmirror.com/fast-deep-equal@3.1.3 + file-entry-cache: registry.npmmirror.com/file-entry-cache@6.0.1 + find-up: registry.npmmirror.com/find-up@5.0.0 + glob-parent: registry.npmmirror.com/glob-parent@6.0.2 + globals: registry.npmmirror.com/globals@13.23.0 + graphemer: registry.npmmirror.com/graphemer@1.4.0 + ignore: registry.npmmirror.com/ignore@5.3.0 + imurmurhash: registry.npmmirror.com/imurmurhash@0.1.4 + is-glob: registry.npmmirror.com/is-glob@4.0.3 + is-path-inside: registry.npmmirror.com/is-path-inside@3.0.3 + js-yaml: registry.npmmirror.com/js-yaml@4.1.0 + json-stable-stringify-without-jsonify: registry.npmmirror.com/json-stable-stringify-without-jsonify@1.0.1 + levn: registry.npmmirror.com/levn@0.4.1 + lodash.merge: registry.npmmirror.com/lodash.merge@4.6.2 + minimatch: registry.npmmirror.com/minimatch@3.1.2 + natural-compare: registry.npmmirror.com/natural-compare@1.4.0 + optionator: registry.npmmirror.com/optionator@0.9.3 + strip-ansi: registry.npmmirror.com/strip-ansi@6.0.1 + text-table: registry.npmmirror.com/text-table@0.2.0 + transitivePeerDependencies: + - supports-color + dev: true + + registry.npmmirror.com/espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz} + name: espree + version: 9.6.1 + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + dependencies: + acorn: registry.npmmirror.com/acorn@8.11.2 + acorn-jsx: registry.npmmirror.com/acorn-jsx@5.3.2(acorn@8.11.2) + eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + dev: true + + registry.npmmirror.com/esquery@1.5.0: + resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esquery/-/esquery-1.5.0.tgz} + name: esquery + version: 1.5.0 + engines: {node: '>=0.10'} + dependencies: + estraverse: registry.npmmirror.com/estraverse@5.3.0 + dev: true + + registry.npmmirror.com/esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz} + name: esrecurse + version: 4.3.0 + engines: {node: '>=4.0'} + dependencies: + estraverse: registry.npmmirror.com/estraverse@5.3.0 + dev: true + + registry.npmmirror.com/estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz} + name: estraverse + version: 5.3.0 + engines: {node: '>=4.0'} + dev: true + + registry.npmmirror.com/estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz} + name: estree-walker + version: 2.0.2 + dev: true + + registry.npmmirror.com/esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz} + name: esutils + version: 2.0.3 + engines: {node: '>=0.10.0'} + dev: true + + registry.npmmirror.com/fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz} + name: fast-deep-equal + version: 3.1.3 + dev: true + + registry.npmmirror.com/fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz} + name: fast-glob + version: 3.3.2 + engines: {node: '>=8.6.0'} + dependencies: + '@nodelib/fs.stat': registry.npmmirror.com/@nodelib/fs.stat@2.0.5 + '@nodelib/fs.walk': registry.npmmirror.com/@nodelib/fs.walk@1.2.8 + glob-parent: registry.npmmirror.com/glob-parent@5.1.2 + merge2: registry.npmmirror.com/merge2@1.4.1 + micromatch: registry.npmmirror.com/micromatch@4.0.5 + dev: true + + registry.npmmirror.com/fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz} + name: fast-json-stable-stringify + version: 2.1.0 + dev: true + + registry.npmmirror.com/fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz} + name: fast-levenshtein + version: 2.0.6 + dev: true + + registry.npmmirror.com/fastq@1.15.0: + resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fastq/-/fastq-1.15.0.tgz} + name: fastq + version: 1.15.0 + dependencies: + reusify: registry.npmmirror.com/reusify@1.0.4 + dev: true + + registry.npmmirror.com/file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz} + name: file-entry-cache + version: 6.0.1 + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flat-cache: registry.npmmirror.com/flat-cache@3.2.0 + dev: true + + registry.npmmirror.com/fill-range@7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz} + name: fill-range + version: 7.0.1 + engines: {node: '>=8'} + dependencies: + to-regex-range: registry.npmmirror.com/to-regex-range@5.0.1 + + registry.npmmirror.com/find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz} + name: find-up + version: 5.0.0 + engines: {node: '>=10'} + dependencies: + locate-path: registry.npmmirror.com/locate-path@6.0.0 + path-exists: registry.npmmirror.com/path-exists@4.0.0 + dev: true + + registry.npmmirror.com/flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz} + name: flat-cache + version: 3.2.0 + engines: {node: ^10.12.0 || >=12.0.0} + dependencies: + flatted: registry.npmmirror.com/flatted@3.2.9 + keyv: registry.npmmirror.com/keyv@4.5.4 + rimraf: registry.npmmirror.com/rimraf@3.0.2 + dev: true + + registry.npmmirror.com/flatted@3.2.9: + resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/flatted/-/flatted-3.2.9.tgz} + name: flatted + version: 3.2.9 + dev: true + + registry.npmmirror.com/fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz} + name: fs.realpath + version: 1.0.0 + + registry.npmmirror.com/fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz} + name: fsevents + version: 2.3.3 + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + requiresBuild: true + optional: true + + registry.npmmirror.com/gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz} + name: gensync + version: 1.0.0-beta.2 + engines: {node: '>=6.9.0'} + dev: true + + registry.npmmirror.com/glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz} + name: glob-parent + version: 5.1.2 + engines: {node: '>= 6'} + dependencies: + is-glob: registry.npmmirror.com/is-glob@4.0.3 + + registry.npmmirror.com/glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz} + name: glob-parent + version: 6.0.2 + engines: {node: '>=10.13.0'} + dependencies: + is-glob: registry.npmmirror.com/is-glob@4.0.3 + dev: true + + registry.npmmirror.com/glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz} + name: glob + version: 7.2.3 + dependencies: + fs.realpath: registry.npmmirror.com/fs.realpath@1.0.0 + inflight: registry.npmmirror.com/inflight@1.0.6 + inherits: registry.npmmirror.com/inherits@2.0.4 + minimatch: registry.npmmirror.com/minimatch@3.1.2 + once: registry.npmmirror.com/once@1.4.0 + path-is-absolute: registry.npmmirror.com/path-is-absolute@1.0.1 + + registry.npmmirror.com/globals@11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz} + name: globals + version: 11.12.0 + engines: {node: '>=4'} + dev: true + + registry.npmmirror.com/globals@13.23.0: + resolution: {integrity: sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/globals/-/globals-13.23.0.tgz} + name: globals + version: 13.23.0 + engines: {node: '>=8'} + dependencies: + type-fest: registry.npmmirror.com/type-fest@0.20.2 + dev: true + + registry.npmmirror.com/globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/globby/-/globby-11.1.0.tgz} + name: globby + version: 11.1.0 + engines: {node: '>=10'} + dependencies: + array-union: registry.npmmirror.com/array-union@2.1.0 + dir-glob: registry.npmmirror.com/dir-glob@3.0.1 + fast-glob: registry.npmmirror.com/fast-glob@3.3.2 + ignore: registry.npmmirror.com/ignore@5.3.0 + merge2: registry.npmmirror.com/merge2@1.4.1 + slash: registry.npmmirror.com/slash@3.0.0 + dev: true + + registry.npmmirror.com/graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz} + name: graphemer + version: 1.4.0 + dev: true + + registry.npmmirror.com/has-flag@3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz} + name: has-flag + version: 3.0.0 + engines: {node: '>=4'} + dev: true + + registry.npmmirror.com/has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz} + name: has-flag + version: 4.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/ignore@5.3.0: + resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ignore/-/ignore-5.3.0.tgz} + name: ignore + version: 5.3.0 + engines: {node: '>= 4'} + dev: true + + registry.npmmirror.com/immutable@4.3.4: + resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/immutable/-/immutable-4.3.4.tgz} + name: immutable + version: 4.3.4 + + registry.npmmirror.com/import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz} + name: import-fresh + version: 3.3.0 + engines: {node: '>=6'} + dependencies: + parent-module: registry.npmmirror.com/parent-module@1.0.1 + resolve-from: registry.npmmirror.com/resolve-from@4.0.0 + dev: true + + registry.npmmirror.com/imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz} + name: imurmurhash + version: 0.1.4 + engines: {node: '>=0.8.19'} + dev: true + + registry.npmmirror.com/inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz} + name: inflight + version: 1.0.6 + dependencies: + once: registry.npmmirror.com/once@1.4.0 + wrappy: registry.npmmirror.com/wrappy@1.0.2 + + registry.npmmirror.com/inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz} + name: inherits + version: 2.0.4 + + registry.npmmirror.com/is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.2.1.tgz} + name: is-arrayish + version: 0.2.1 + dev: true + + registry.npmmirror.com/is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz} + name: is-binary-path + version: 2.1.0 + engines: {node: '>=8'} + dependencies: + binary-extensions: registry.npmmirror.com/binary-extensions@2.2.0 + + registry.npmmirror.com/is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz} + name: is-extglob + version: 2.1.1 + engines: {node: '>=0.10.0'} + + registry.npmmirror.com/is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz} + name: is-glob + version: 4.0.3 + engines: {node: '>=0.10.0'} + dependencies: + is-extglob: registry.npmmirror.com/is-extglob@2.1.1 + + registry.npmmirror.com/is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz} + name: is-number + version: 7.0.0 + engines: {node: '>=0.12.0'} + + registry.npmmirror.com/is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz} + name: is-path-inside + version: 3.0.3 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz} + name: isexe + version: 2.0.0 + dev: true + + registry.npmmirror.com/js-cookie@3.0.5: + resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/js-cookie/-/js-cookie-3.0.5.tgz} + name: js-cookie + version: 3.0.5 + engines: {node: '>=14'} + dev: false + + registry.npmmirror.com/js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz} + name: js-tokens + version: 4.0.0 + + registry.npmmirror.com/js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz} + name: js-yaml + version: 4.1.0 + hasBin: true + dependencies: + argparse: registry.npmmirror.com/argparse@2.0.1 + dev: true + + registry.npmmirror.com/jsesc@2.5.2: + resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz} + name: jsesc + version: 2.5.2 + engines: {node: '>=4'} + hasBin: true + dev: true + + registry.npmmirror.com/json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz} + name: json-buffer + version: 3.0.1 + dev: true + + registry.npmmirror.com/json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz} + name: json-parse-even-better-errors + version: 2.3.1 + dev: true + + registry.npmmirror.com/json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz} + name: json-schema-traverse + version: 0.4.1 + dev: true + + registry.npmmirror.com/json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz} + name: json-stable-stringify-without-jsonify + version: 1.0.1 + dev: true + + registry.npmmirror.com/json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz} + name: json5 + version: 2.2.3 + engines: {node: '>=6'} + hasBin: true + dev: true + + registry.npmmirror.com/keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz} + name: keyv + version: 4.5.4 + dependencies: + json-buffer: registry.npmmirror.com/json-buffer@3.0.1 + dev: true + + registry.npmmirror.com/levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz} + name: levn + version: 0.4.1 + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: registry.npmmirror.com/prelude-ls@1.2.1 + type-check: registry.npmmirror.com/type-check@0.4.0 + dev: true + + registry.npmmirror.com/lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz} + name: lines-and-columns + version: 1.2.4 + dev: true + + registry.npmmirror.com/locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz} + name: locate-path + version: 6.0.0 + engines: {node: '>=10'} + dependencies: + p-locate: registry.npmmirror.com/p-locate@5.0.0 + dev: true + + registry.npmmirror.com/lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz} + name: lodash.merge + version: 4.6.2 + dev: true + + registry.npmmirror.com/lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz} + name: lodash + version: 4.17.21 + dev: false + + registry.npmmirror.com/loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz} + name: loose-envify + version: 1.4.0 + hasBin: true + dependencies: + js-tokens: registry.npmmirror.com/js-tokens@4.0.0 + dev: false + + registry.npmmirror.com/lower-case@2.0.2: + resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lower-case/-/lower-case-2.0.2.tgz} + name: lower-case + version: 2.0.2 + dependencies: + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: true + + registry.npmmirror.com/lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz} + name: lru-cache + version: 5.1.1 + dependencies: + yallist: registry.npmmirror.com/yallist@3.1.1 + dev: true + + registry.npmmirror.com/lru-cache@6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz} + name: lru-cache + version: 6.0.0 + engines: {node: '>=10'} + dependencies: + yallist: registry.npmmirror.com/yallist@4.0.0 + dev: true + + registry.npmmirror.com/memoize-one@5.2.1: + resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/memoize-one/-/memoize-one-5.2.1.tgz} + name: memoize-one + version: 5.2.1 + dev: false + + registry.npmmirror.com/merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz} + name: merge2 + version: 1.4.1 + engines: {node: '>= 8'} + dev: true + + registry.npmmirror.com/micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz} + name: micromatch + version: 4.0.5 + engines: {node: '>=8.6'} + dependencies: + braces: registry.npmmirror.com/braces@3.0.2 + picomatch: registry.npmmirror.com/picomatch@2.3.1 + dev: true + + registry.npmmirror.com/minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz} + name: minimatch + version: 3.1.2 + dependencies: + brace-expansion: registry.npmmirror.com/brace-expansion@1.1.11 + + registry.npmmirror.com/moment@2.29.4: + resolution: {integrity: sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/moment/-/moment-2.29.4.tgz} + name: moment + version: 2.29.4 + dev: false + + registry.npmmirror.com/ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz} + name: ms + version: 2.1.2 + dev: true + + registry.npmmirror.com/nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz} + name: nanoid + version: 3.3.7 + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + dev: true + + registry.npmmirror.com/natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz} + name: natural-compare + version: 1.4.0 + dev: true + + registry.npmmirror.com/no-case@3.0.4: + resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/no-case/-/no-case-3.0.4.tgz} + name: no-case + version: 3.0.4 + dependencies: + lower-case: registry.npmmirror.com/lower-case@2.0.2 + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: true + + registry.npmmirror.com/node-releases@2.0.13: + resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/node-releases/-/node-releases-2.0.13.tgz} + name: node-releases + version: 2.0.13 + dev: true + + registry.npmmirror.com/normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz} + name: normalize-path + version: 3.0.0 + engines: {node: '>=0.10.0'} + + registry.npmmirror.com/object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz} + name: object-assign + version: 4.1.1 + engines: {node: '>=0.10.0'} + dev: false + + registry.npmmirror.com/once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/once/-/once-1.4.0.tgz} + name: once + version: 1.4.0 + dependencies: + wrappy: registry.npmmirror.com/wrappy@1.0.2 + + registry.npmmirror.com/optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/optionator/-/optionator-0.9.3.tgz} + name: optionator + version: 0.9.3 + engines: {node: '>= 0.8.0'} + dependencies: + '@aashutoshrathi/word-wrap': registry.npmmirror.com/@aashutoshrathi/word-wrap@1.2.6 + deep-is: registry.npmmirror.com/deep-is@0.1.4 + fast-levenshtein: registry.npmmirror.com/fast-levenshtein@2.0.6 + levn: registry.npmmirror.com/levn@0.4.1 + prelude-ls: registry.npmmirror.com/prelude-ls@1.2.1 + type-check: registry.npmmirror.com/type-check@0.4.0 + dev: true + + registry.npmmirror.com/p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz} + name: p-limit + version: 3.1.0 + engines: {node: '>=10'} + dependencies: + yocto-queue: registry.npmmirror.com/yocto-queue@0.1.0 + dev: true + + registry.npmmirror.com/p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz} + name: p-locate + version: 5.0.0 + engines: {node: '>=10'} + dependencies: + p-limit: registry.npmmirror.com/p-limit@3.1.0 + dev: true + + registry.npmmirror.com/parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz} + name: parent-module + version: 1.0.1 + engines: {node: '>=6'} + dependencies: + callsites: registry.npmmirror.com/callsites@3.1.0 + dev: true + + registry.npmmirror.com/parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/parse-json/-/parse-json-5.2.0.tgz} + name: parse-json + version: 5.2.0 + engines: {node: '>=8'} + dependencies: + '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 + error-ex: registry.npmmirror.com/error-ex@1.3.2 + json-parse-even-better-errors: registry.npmmirror.com/json-parse-even-better-errors@2.3.1 + lines-and-columns: registry.npmmirror.com/lines-and-columns@1.2.4 + dev: true + + registry.npmmirror.com/path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz} + name: path-exists + version: 4.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz} + name: path-is-absolute + version: 1.0.1 + engines: {node: '>=0.10.0'} + + registry.npmmirror.com/path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz} + name: path-key + version: 3.1.1 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz} + name: path-type + version: 4.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/picocolors@1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz} + name: picocolors + version: 1.0.0 + dev: true + + registry.npmmirror.com/picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz} + name: picomatch + version: 2.3.1 + engines: {node: '>=8.6'} + + registry.npmmirror.com/postcss@8.4.31: + resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/postcss/-/postcss-8.4.31.tgz} + name: postcss + version: 8.4.31 + engines: {node: ^10 || ^12 || >=14} + dependencies: + nanoid: registry.npmmirror.com/nanoid@3.3.7 + picocolors: registry.npmmirror.com/picocolors@1.0.0 + source-map-js: registry.npmmirror.com/source-map-js@1.0.2 + dev: true + + registry.npmmirror.com/prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz} + name: prelude-ls + version: 1.2.1 + engines: {node: '>= 0.8.0'} + dev: true + + registry.npmmirror.com/prop-types@15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz} + name: prop-types + version: 15.8.1 + dependencies: + loose-envify: registry.npmmirror.com/loose-envify@1.4.0 + object-assign: registry.npmmirror.com/object-assign@4.1.1 + react-is: registry.npmmirror.com/react-is@16.13.1 + dev: false + + registry.npmmirror.com/punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz} + name: punycode + version: 2.3.1 + engines: {node: '>=6'} + dev: true + + registry.npmmirror.com/queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz} + name: queue-microtask + version: 1.2.3 + dev: true + + registry.npmmirror.com/react-dom@18.2.0(react@18.2.0): + resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-dom/-/react-dom-18.2.0.tgz} + id: registry.npmmirror.com/react-dom/18.2.0 + name: react-dom + version: 18.2.0 + peerDependencies: + react: ^18.2.0 + dependencies: + loose-envify: registry.npmmirror.com/loose-envify@1.4.0 + react: registry.npmmirror.com/react@18.2.0 + scheduler: registry.npmmirror.com/scheduler@0.23.0 + dev: false + + registry.npmmirror.com/react-draggable@4.4.6(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-LtY5Xw1zTPqHkVmtM3X8MUOxNDOUhv/khTgBgrUvwaS064bwVvxT+q5El0uUFNx5IEPKXuRejr7UqLwBIg5pdw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-draggable/-/react-draggable-4.4.6.tgz} + id: registry.npmmirror.com/react-draggable/4.4.6 + name: react-draggable + version: 4.4.6 + peerDependencies: + react: '>= 16.3.0' + react-dom: '>= 16.3.0' + dependencies: + clsx: registry.npmmirror.com/clsx@1.2.1 + prop-types: registry.npmmirror.com/prop-types@15.8.1 + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + dev: false + + registry.npmmirror.com/react-is@16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz} + name: react-is + version: 16.13.1 + dev: false + + registry.npmmirror.com/react-refresh@0.14.0: + resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-refresh/-/react-refresh-0.14.0.tgz} + name: react-refresh + version: 0.14.0 + engines: {node: '>=0.10.0'} + dev: true + + registry.npmmirror.com/react-resizable@3.0.5(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-resizable/-/react-resizable-3.0.5.tgz} + id: registry.npmmirror.com/react-resizable/3.0.5 + name: react-resizable + version: 3.0.5 + peerDependencies: + react: '>= 16.3' + dependencies: + prop-types: registry.npmmirror.com/prop-types@15.8.1 + react: registry.npmmirror.com/react@18.2.0 + react-draggable: registry.npmmirror.com/react-draggable@4.4.6(react-dom@18.2.0)(react@18.2.0) + transitivePeerDependencies: + - react-dom + dev: false + + registry.npmmirror.com/react-router-dom@6.20.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-CbcKjEyiSVpA6UtCHOIYLUYn/UJfwzp55va4yEfpk7JBN3GPqWfHrdLkAvNCcpXr8QoihcDMuk0dzWZxtlB/mQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-router-dom/-/react-router-dom-6.20.0.tgz} + id: registry.npmmirror.com/react-router-dom/6.20.0 + name: react-router-dom + version: 6.20.0 + engines: {node: '>=14.0.0'} + peerDependencies: + react: '>=16.8' + react-dom: '>=16.8' + dependencies: + '@remix-run/router': registry.npmmirror.com/@remix-run/router@1.13.0 + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + react-router: registry.npmmirror.com/react-router@6.20.0(react@18.2.0) + dev: false + + registry.npmmirror.com/react-router@6.20.0(react@18.2.0): + resolution: {integrity: sha512-pVvzsSsgUxxtuNfTHC4IxjATs10UaAtvLGVSA1tbUE4GDaOSU1Esu2xF5nWLz7KPiMuW8BJWuPFdlGYJ7/rW0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-router/-/react-router-6.20.0.tgz} + id: registry.npmmirror.com/react-router/6.20.0 + name: react-router + version: 6.20.0 + engines: {node: '>=14.0.0'} + peerDependencies: + react: '>=16.8' + dependencies: + '@remix-run/router': registry.npmmirror.com/@remix-run/router@1.13.0 + react: registry.npmmirror.com/react@18.2.0 + dev: false + + registry.npmmirror.com/react-window@1.8.10(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-Y0Cx+dnU6NLa5/EvoHukUD0BklJ8qITCtVEPY1C/nL8wwoZ0b5aEw8Ff1dOVHw7fCzMt55XfJDd8S8W8LCaUCg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-window/-/react-window-1.8.10.tgz} + id: registry.npmmirror.com/react-window/1.8.10 + name: react-window + version: 1.8.10 + engines: {node: '>8.0.0'} + peerDependencies: + react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 + react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 + dependencies: + '@babel/runtime': registry.npmmirror.com/@babel/runtime@7.23.5 + memoize-one: registry.npmmirror.com/memoize-one@5.2.1 + react: registry.npmmirror.com/react@18.2.0 + react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + dev: false + + registry.npmmirror.com/react@18.2.0: + resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react/-/react-18.2.0.tgz} + name: react + version: 18.2.0 + engines: {node: '>=0.10.0'} + dependencies: + loose-envify: registry.npmmirror.com/loose-envify@1.4.0 + dev: false + + registry.npmmirror.com/readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz} + name: readdirp + version: 3.6.0 + engines: {node: '>=8.10.0'} + dependencies: + picomatch: registry.npmmirror.com/picomatch@2.3.1 + + registry.npmmirror.com/regenerator-runtime@0.14.0: + resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz} + name: regenerator-runtime + version: 0.14.0 + dev: false + + registry.npmmirror.com/resize-observer-polyfill@1.5.1: + resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz} + name: resize-observer-polyfill + version: 1.5.1 + dev: false + + registry.npmmirror.com/resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz} + name: resolve-from + version: 4.0.0 + engines: {node: '>=4'} + dev: true + + registry.npmmirror.com/reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz} + name: reusify + version: 1.0.4 + engines: {iojs: '>=1.0.0', node: '>=0.10.0'} + dev: true + + registry.npmmirror.com/rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz} + name: rimraf + version: 3.0.2 + hasBin: true + dependencies: + glob: registry.npmmirror.com/glob@7.2.3 + dev: true + + registry.npmmirror.com/rollup@4.6.1: + resolution: {integrity: sha512-jZHaZotEHQaHLgKr8JnQiDT1rmatjgKlMekyksz+yk9jt/8z9quNjnKNRoaM0wd9DC2QKXjmWWuDYtM3jfF8pQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rollup/-/rollup-4.6.1.tgz} + name: rollup + version: 4.6.1 + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + optionalDependencies: + '@rollup/rollup-android-arm-eabi': registry.npmmirror.com/@rollup/rollup-android-arm-eabi@4.6.1 + '@rollup/rollup-android-arm64': registry.npmmirror.com/@rollup/rollup-android-arm64@4.6.1 + '@rollup/rollup-darwin-arm64': registry.npmmirror.com/@rollup/rollup-darwin-arm64@4.6.1 + '@rollup/rollup-darwin-x64': registry.npmmirror.com/@rollup/rollup-darwin-x64@4.6.1 + '@rollup/rollup-linux-arm-gnueabihf': registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf@4.6.1 + '@rollup/rollup-linux-arm64-gnu': registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu@4.6.1 + '@rollup/rollup-linux-arm64-musl': registry.npmmirror.com/@rollup/rollup-linux-arm64-musl@4.6.1 + '@rollup/rollup-linux-x64-gnu': registry.npmmirror.com/@rollup/rollup-linux-x64-gnu@4.6.1 + '@rollup/rollup-linux-x64-musl': registry.npmmirror.com/@rollup/rollup-linux-x64-musl@4.6.1 + '@rollup/rollup-win32-arm64-msvc': registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc@4.6.1 + '@rollup/rollup-win32-ia32-msvc': registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc@4.6.1 + '@rollup/rollup-win32-x64-msvc': registry.npmmirror.com/@rollup/rollup-win32-x64-msvc@4.6.1 + fsevents: registry.npmmirror.com/fsevents@2.3.3 + dev: true + + registry.npmmirror.com/run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz} + name: run-parallel + version: 1.2.0 + dependencies: + queue-microtask: registry.npmmirror.com/queue-microtask@1.2.3 + dev: true + + registry.npmmirror.com/sass@1.69.5: + resolution: {integrity: sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/sass/-/sass-1.69.5.tgz} + name: sass + version: 1.69.5 + engines: {node: '>=14.0.0'} + hasBin: true + dependencies: + chokidar: registry.npmmirror.com/chokidar@3.5.3 + immutable: registry.npmmirror.com/immutable@4.3.4 + source-map-js: registry.npmmirror.com/source-map-js@1.0.2 + + registry.npmmirror.com/scheduler@0.23.0: + resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/scheduler/-/scheduler-0.23.0.tgz} + name: scheduler + version: 0.23.0 + dependencies: + loose-envify: registry.npmmirror.com/loose-envify@1.4.0 + dev: false + + registry.npmmirror.com/scroll-into-view-if-needed@2.2.31: + resolution: {integrity: sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz} + name: scroll-into-view-if-needed + version: 2.2.31 + dependencies: + compute-scroll-into-view: registry.npmmirror.com/compute-scroll-into-view@1.0.20 + dev: false + + registry.npmmirror.com/semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz} + name: semver + version: 6.3.1 + hasBin: true + dev: true + + registry.npmmirror.com/semver@7.5.4: + resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz} + name: semver + version: 7.5.4 + engines: {node: '>=10'} + hasBin: true + dependencies: + lru-cache: registry.npmmirror.com/lru-cache@6.0.0 + dev: true + + registry.npmmirror.com/shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz} + name: shebang-command + version: 2.0.0 + engines: {node: '>=8'} + dependencies: + shebang-regex: registry.npmmirror.com/shebang-regex@3.0.0 + dev: true + + registry.npmmirror.com/shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz} + name: shebang-regex + version: 3.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz} + name: slash + version: 3.0.0 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/snake-case@3.0.4: + resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/snake-case/-/snake-case-3.0.4.tgz} + name: snake-case + version: 3.0.4 + dependencies: + dot-case: registry.npmmirror.com/dot-case@3.0.4 + tslib: registry.npmmirror.com/tslib@2.6.2 + dev: true + + registry.npmmirror.com/source-map-js@1.0.2: + resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz} + name: source-map-js + version: 1.0.2 + engines: {node: '>=0.10.0'} + + registry.npmmirror.com/strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz} + name: strip-ansi + version: 6.0.1 + engines: {node: '>=8'} + dependencies: + ansi-regex: registry.npmmirror.com/ansi-regex@5.0.1 + dev: true + + registry.npmmirror.com/strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz} + name: strip-json-comments + version: 3.1.1 + engines: {node: '>=8'} + dev: true + + registry.npmmirror.com/supports-color@5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz} + name: supports-color + version: 5.5.0 + engines: {node: '>=4'} + dependencies: + has-flag: registry.npmmirror.com/has-flag@3.0.0 + dev: true + + registry.npmmirror.com/supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz} + name: supports-color + version: 7.2.0 + engines: {node: '>=8'} + dependencies: + has-flag: registry.npmmirror.com/has-flag@4.0.0 + dev: true + + registry.npmmirror.com/svg-parser@2.0.4: + resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/svg-parser/-/svg-parser-2.0.4.tgz} + name: svg-parser + version: 2.0.4 + dev: true + + registry.npmmirror.com/text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz} + name: text-table + version: 0.2.0 + dev: true + + registry.npmmirror.com/to-fast-properties@2.0.0: + resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz} + name: to-fast-properties + version: 2.0.0 + engines: {node: '>=4'} + dev: true + + registry.npmmirror.com/to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz} + name: to-regex-range + version: 5.0.1 + engines: {node: '>=8.0'} + dependencies: + is-number: registry.npmmirror.com/is-number@7.0.0 + + registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2): + resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz} + id: registry.npmmirror.com/ts-api-utils/1.0.3 + name: ts-api-utils + version: 1.0.3 + engines: {node: '>=16.13.0'} + peerDependencies: + typescript: '>=4.2.0' + dependencies: + typescript: registry.npmmirror.com/typescript@5.2.2 + dev: true + + registry.npmmirror.com/tslib@2.3.0: + resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz} + name: tslib + version: 2.3.0 + dev: false + + registry.npmmirror.com/tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/tslib/-/tslib-2.6.2.tgz} + name: tslib + version: 2.6.2 + + registry.npmmirror.com/type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz} + name: type-check + version: 0.4.0 + engines: {node: '>= 0.8.0'} + dependencies: + prelude-ls: registry.npmmirror.com/prelude-ls@1.2.1 + dev: true + + registry.npmmirror.com/type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz} + name: type-fest + version: 0.20.2 + engines: {node: '>=10'} + dev: true + + registry.npmmirror.com/typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/typescript/-/typescript-5.2.2.tgz} + name: typescript + version: 5.2.2 + engines: {node: '>=14.17'} + hasBin: true + dev: true + + registry.npmmirror.com/update-browserslist-db@1.0.13(browserslist@4.22.1): + resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz} + id: registry.npmmirror.com/update-browserslist-db/1.0.13 + name: update-browserslist-db + version: 1.0.13 + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + dependencies: + browserslist: registry.npmmirror.com/browserslist@4.22.1 + escalade: registry.npmmirror.com/escalade@3.1.1 + picocolors: registry.npmmirror.com/picocolors@1.0.0 + dev: true + + registry.npmmirror.com/uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz} + name: uri-js + version: 4.4.1 + dependencies: + punycode: registry.npmmirror.com/punycode@2.3.1 + dev: true + + registry.npmmirror.com/use-sync-external-store@1.2.0(react@18.2.0): + resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz} + id: registry.npmmirror.com/use-sync-external-store/1.2.0 + name: use-sync-external-store + version: 1.2.0 + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 + dependencies: + react: registry.npmmirror.com/react@18.2.0 + dev: false + + registry.npmmirror.com/utility-types@3.10.0: + resolution: {integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/utility-types/-/utility-types-3.10.0.tgz} + name: utility-types + version: 3.10.0 + engines: {node: '>= 4'} + dev: false + + registry.npmmirror.com/vite-plugin-svgr@4.2.0(typescript@5.2.2)(vite@5.0.0): + resolution: {integrity: sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vite-plugin-svgr/-/vite-plugin-svgr-4.2.0.tgz} + id: registry.npmmirror.com/vite-plugin-svgr/4.2.0 + name: vite-plugin-svgr + version: 4.2.0 + peerDependencies: + vite: ^2.6.0 || 3 || 4 || 5 + dependencies: + '@rollup/pluginutils': registry.npmmirror.com/@rollup/pluginutils@5.1.0 + '@svgr/core': registry.npmmirror.com/@svgr/core@8.1.0(typescript@5.2.2) + '@svgr/plugin-jsx': registry.npmmirror.com/@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0) + vite: registry.npmmirror.com/vite@5.0.0(sass@1.69.5) + transitivePeerDependencies: + - rollup + - supports-color + - typescript + dev: true + + registry.npmmirror.com/vite@5.0.0(sass@1.69.5): + resolution: {integrity: sha512-ESJVM59mdyGpsiNAeHQOR/0fqNoOyWPYesFto8FFZugfmhdHx8Fzd8sF3Q/xkVhZsyOxHfdM7ieiVAorI9RjFw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vite/-/vite-5.0.0.tgz} + id: registry.npmmirror.com/vite/5.0.0 + name: vite + version: 5.0.0 + engines: {node: ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || >=20.0.0 + less: '*' + lightningcss: ^1.21.0 + sass: '*' + stylus: '*' + sugarss: '*' + terser: ^5.4.0 + peerDependenciesMeta: + '@types/node': + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + dependencies: + esbuild: registry.npmmirror.com/esbuild@0.19.8 + postcss: registry.npmmirror.com/postcss@8.4.31 + rollup: registry.npmmirror.com/rollup@4.6.1 + sass: registry.npmmirror.com/sass@1.69.5 + optionalDependencies: + fsevents: registry.npmmirror.com/fsevents@2.3.3 + dev: true + + registry.npmmirror.com/which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/which/-/which-2.0.2.tgz} + name: which + version: 2.0.2 + engines: {node: '>= 8'} + hasBin: true + dependencies: + isexe: registry.npmmirror.com/isexe@2.0.0 + dev: true + + registry.npmmirror.com/wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz} + name: wrappy + version: 1.0.2 + + registry.npmmirror.com/yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz} + name: yallist + version: 3.1.1 + dev: true + + registry.npmmirror.com/yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz} + name: yallist + version: 4.0.0 + dev: true + + registry.npmmirror.com/yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz} + name: yocto-queue + version: 0.1.0 + engines: {node: '>=10'} + dev: true + + registry.npmmirror.com/zrender@5.4.4: + resolution: {integrity: sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/zrender/-/zrender-5.4.4.tgz} + name: zrender + version: 5.4.4 + dependencies: + tslib: registry.npmmirror.com/tslib@2.3.0 + dev: false + + registry.npmmirror.com/zustand@4.3.8(react@18.2.0): + resolution: {integrity: sha512-4h28KCkHg5ii/wcFFJ5Fp+k1J3gJoasaIbppdgZFO4BPJnsNxL0mQXBSFgOgAdCdBj35aDTPvdAJReTMntFPGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/zustand/-/zustand-4.3.8.tgz} + id: registry.npmmirror.com/zustand/4.3.8 + name: zustand + version: 4.3.8 + engines: {node: '>=12.7.0'} + peerDependencies: + immer: '>=9.0' + react: '>=16.8' + peerDependenciesMeta: + immer: + optional: true + react: + optional: true + dependencies: + react: registry.npmmirror.com/react@18.2.0 + use-sync-external-store: registry.npmmirror.com/use-sync-external-store@1.2.0(react@18.2.0) + dev: false diff --git a/webapp/public/logo.svg b/webapp/public/logo.svg new file mode 100644 index 000000000..a562a957a --- /dev/null +++ b/webapp/public/logo.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx new file mode 100644 index 000000000..232e56163 --- /dev/null +++ b/webapp/src/App.tsx @@ -0,0 +1,117 @@ +import "./styles/globals.scss"; +import { ErrorBoundary } from './components/error'; +import { + HashRouter as Router, + Routes, + Route +} from "react-router-dom"; +import { Login } from './components/login'; +import { RootLayout as Layout } from './components/layout'; +import { hasPagePermission, routers } from './router'; +import { Empty, LocaleProvider } from '@douyinfe/semi-ui'; +import { getSemiLang } from './locales'; +import { useAccessStore, useConfigStore } from './store'; +import { useEffect } from 'react'; +import { getCSSVar } from './utils/utils'; +import { IllustrationIdle, IllustrationIdleDark } from '@douyinfe/semi-illustrations'; +import Cookies from 'js-cookie'; + +function App() { + return ( + <> + + + + + + + + + ) +} + +function Screen() { + useSwitchTheme() + const access = useAccessStore(); + useEffect(() => { + const token = Cookies.get('token'); + if (token) { + access.updateToken(token); + Cookies.remove('token'); + } + }, []) + return ( + <> + {access.isAuthorized() ? ( + + + {routers.flatMap(router => { + return hasPagePermission(router, access) ? [] : []; + })} + {/* Default page */} + } key={"*"} /> + + + ) : ( + <> + + + )} + + ); +} + +function Home() { + const access = useAccessStore(); + return ( +
+ } + darkModeImage={} + description={`Welcome, ${access.userName} 🌻🌻🌻`} + style={{ fontSize: '22px' }} + /> +
+ ) +} + +function useSwitchTheme() { + const config = useConfigStore(); + + useEffect(() => { + document.body.classList.remove("light"); + document.body.classList.remove("dark"); + + if (config.theme === "dark") { + document.body.classList.add("dark"); + document.body.setAttribute("theme-mode", "dark"); + } else if (config.theme === "light") { + document.body.classList.add("light"); + document.body.removeAttribute("theme-mode"); + } + + const metaDescriptionDark = document.querySelector( + 'meta[name="theme-color"][media*="dark"]', + ); + const metaDescriptionLight = document.querySelector( + 'meta[name="theme-color"][media*="light"]', + ); + + if (config.theme === "auto") { + metaDescriptionDark?.setAttribute("content", "#151515"); + metaDescriptionLight?.setAttribute("content", "#fafafa"); + + if (window.matchMedia("(prefers-color-scheme: dark)").matches) { + document.body.setAttribute("theme-mode", "dark"); + } else { + document.body.removeAttribute("theme-mode"); + } + } else { + const themeColor = getCSSVar("--theme-color"); + metaDescriptionDark?.setAttribute("content", themeColor); + metaDescriptionLight?.setAttribute("content", themeColor); + } + }, [config.theme]); +} + +export default App diff --git a/webapp/src/api/base.ts b/webapp/src/api/base.ts new file mode 100644 index 000000000..37d955f5e --- /dev/null +++ b/webapp/src/api/base.ts @@ -0,0 +1,138 @@ +import { useAccessStore } from "../store"; +import Locale, { getServerLang } from "../locales"; +import { Toast } from "@douyinfe/semi-ui"; + +export class ClientApi { + async get(url: string, params: Record = {}): Promise { + let queryString = ""; + if (Object.keys(params).length > 0) { + queryString = "?" + new URLSearchParams(params).toString(); + } + const res: Response = await fetch( + this.path(url + queryString), + { + headers: getHeaders(), + method: "GET" + }); + if (res.status !== 200) { + Toast.error({ + content: Locale.Error.Network, + duration: 5, + theme: "light" + }); + throw new Error(Locale.Error.Network); + } + const resJson = await res.json(); + if (resJson.code === 401) { + Toast.error({ + content: Locale.Auth.Expiration, + duration: 5, + theme: "light" + }); + const accessStore = useAccessStore.getState(); + accessStore.updateToken(""); + throw new Error(Locale.Auth.Expiration); + } else if (resJson.code !== 200) { + Toast.error({ + content: resJson.msg, + duration: 5, + theme: "light" + }); + throw new Error(resJson.msg); + } + return resJson.data; + } + + async post(url: string, body: Record = {}): Promise { + const res: Response = await fetch( + this.path(url), + { + body: JSON.stringify(body), + headers: { + "Content-Type": "application/json", + ...getHeaders() + }, + method: "POST" + }); + if (res.status !== 200) { + Toast.error({ + content: Locale.Error.Network, + duration: 5, + theme: "light" + }); + throw new Error(Locale.Error.Network); + } + const resJson = await res.json(); + if (resJson.code === 401) { + Toast.error({ + content: Locale.Auth.Expiration, + duration: 5, + theme: "light" + }); + const accessStore = useAccessStore.getState(); + accessStore.updateToken(""); + throw new Error(Locale.Auth.Expiration); + } else if (resJson.code !== 200) { + Toast.error({ + content: resJson.msg, + duration: 5, + theme: "light" + }); + throw new Error(resJson.msg); + } + return resJson.data; + } + + async postForm(url: string, formData: FormData = new FormData()): Promise { + const res: Response = await fetch( + this.path(url), + { + body: formData, + headers: getHeaders(), + method: "POST", + redirect: "follow" + }); + if (res.status !== 200) { + Toast.error({ + content: Locale.Error.Network, + duration: 5, + theme: "light" + }); + throw new Error(Locale.Error.Network); + } + const resJson = await res.json(); + if (resJson.code !== 200) { + Toast.error({ + content: resJson.msg, + duration: 5, + theme: "light" + }); + throw new Error(resJson.msg); + } + return resJson.data; + } + + path(path: string): string { + const proxyPath = import.meta.env.VITE_PROXY_PATH; + return [proxyPath, path].join(""); + } +} + +export const api = new ClientApi(); + +export function getHeaders(): Record { + const accessStore = useAccessStore.getState(); + const headers: Record = { + "x-requested-with": "XMLHttpRequest", + "Content-Language": getServerLang(), + }; + + const makeBearer = (token: string) => `Bearer ${token.trim()}`; + const validString = (x: string) => x && x.length > 0; + + if (validString(accessStore.token)) { + headers.Authorization = makeBearer(accessStore.token); + } + + return headers; +} diff --git a/webapp/src/api/webapp/cluster.ts b/webapp/src/api/webapp/cluster.ts new file mode 100644 index 000000000..a93d39b4d --- /dev/null +++ b/webapp/src/api/webapp/cluster.ts @@ -0,0 +1,18 @@ +import { BackendData } from "../../types/cluster"; +import { api } from "../base"; + +export async function backendsApi(body: Record): Promise { + return api.post('/webapp/getAllBackends', body) +} + +export async function backendSaveApi(body: Record): Promise { + return api.post('/webapp/saveBackend', body) +} + +export async function backendUpdateApi(body: Record): Promise { + return api.post('/webapp/updateBackend', body) +} + +export async function backendDeleteApi(body: Record): Promise { + return api.post('/webapp/deleteBackend', body) +} diff --git a/webapp/src/api/webapp/dashboard.ts b/webapp/src/api/webapp/dashboard.ts new file mode 100644 index 000000000..fa3c1ebea --- /dev/null +++ b/webapp/src/api/webapp/dashboard.ts @@ -0,0 +1,6 @@ +import { DistributionDetail } from "../../types/dashboard"; +import { api } from "../base"; + +export async function distributionApi(body: Record): Promise { + return api.post('/webapp/getDistribution', body) +} diff --git a/webapp/src/api/webapp/global-property.ts b/webapp/src/api/webapp/global-property.ts new file mode 100644 index 000000000..864fe5a77 --- /dev/null +++ b/webapp/src/api/webapp/global-property.ts @@ -0,0 +1,21 @@ +import { api } from "../base"; + +export async function globalPropertiesApi(body: Record): Promise { + return api.post('/webapp/findGlobalProperty', body) +} + +export async function globalPropertyGetApi(body: Record): Promise { + return api.post('/webapp/getGlobalProperty', body) +} + +export async function globalPropertySaveApi(body: Record): Promise { + return api.post('/webapp/saveGlobalProperty', body) +} + +export async function globalPropertyUpdateApi(body: Record): Promise { + return api.post('/webapp/updateGlobalProperty', body) +} + +export async function globalPropertyDeleteApi(body: Record): Promise { + return api.post('/webapp/deleteGlobalProperty', body) +} diff --git a/webapp/src/api/webapp/history.ts b/webapp/src/api/webapp/history.ts new file mode 100644 index 000000000..48105f25a --- /dev/null +++ b/webapp/src/api/webapp/history.ts @@ -0,0 +1,6 @@ +import { HistoryData } from "../../types/history"; +import { api } from "../base"; + +export async function queryHistoryApi(body: Record): Promise { + return api.post('/webapp/findQueryHistory', body) +} diff --git a/webapp/src/api/webapp/login.ts b/webapp/src/api/webapp/login.ts new file mode 100644 index 000000000..392114f46 --- /dev/null +++ b/webapp/src/api/webapp/login.ts @@ -0,0 +1,21 @@ +import { api } from "../base"; + +export async function loginFormApi(body: Record): Promise { + return api.post('/login', body) +} + +export async function logoutApi(body: Record): Promise { + return api.post('/logout', body) +} + +export async function loginOAuthApi(body: Record): Promise { + return api.post('/sso', body) +} + +export async function getInfoApi(): Promise { + return api.post('/userinfo', {}) +} + +export async function loginTypeApi(): Promise { + return api.post('/loginType', {}) +} diff --git a/webapp/src/api/webapp/resource-group.ts b/webapp/src/api/webapp/resource-group.ts new file mode 100644 index 000000000..55b503e92 --- /dev/null +++ b/webapp/src/api/webapp/resource-group.ts @@ -0,0 +1,22 @@ +import { ResourceGroupData } from "../../types/resource-group"; +import { api } from "../base"; + +export async function resourceGroupsApi(body: Record): Promise { + return api.post('/webapp/findResourceGroup', body) +} + +export async function resourceGroupGetApi(body: Record): Promise { + return api.post('/webapp/getResourceGroup', body) +} + +export async function resourceGroupSaveApi(body: Record): Promise { + return api.post('/webapp/saveResourceGroup', body) +} + +export async function resourceGroupUpdateApi(body: Record): Promise { + return api.post('/webapp/updateResourceGroup', body) +} + +export async function resourceGroupDeleteApi(body: Record): Promise { + return api.post('/webapp/deleteResourceGroup', body) +} diff --git a/webapp/src/api/webapp/selector.ts b/webapp/src/api/webapp/selector.ts new file mode 100644 index 000000000..0b479de9f --- /dev/null +++ b/webapp/src/api/webapp/selector.ts @@ -0,0 +1,22 @@ +import { SelectorData } from "../../types/selector"; +import { api } from "../base"; + +export async function selectorsApi(body: Record): Promise { + return api.post('/webapp/findSelector', body) +} + +export async function selectorGetApi(body: Record): Promise { + return api.post('/webapp/getSelector', body) +} + +export async function selectorSaveApi(body: Record): Promise { + return api.post('/webapp/saveSelector', body) +} + +export async function selectorUpdateApi(body: Record): Promise { + return api.post('/webapp/updateSelector', body) +} + +export async function selectorDeleteApi(body: Record): Promise { + return api.post('/webapp/deleteSelector', body) +} diff --git a/webapp/src/assets/logo.svg b/webapp/src/assets/logo.svg new file mode 100644 index 000000000..a562a957a --- /dev/null +++ b/webapp/src/assets/logo.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/webapp/src/components/cluster.module.scss b/webapp/src/components/cluster.module.scss new file mode 100644 index 000000000..9c72aa486 --- /dev/null +++ b/webapp/src/components/cluster.module.scss @@ -0,0 +1,8 @@ +.description{ + padding: 10px; +} + +.card { + background-color: var(--semi-color-bg-1); + width: 100%; +} diff --git a/webapp/src/components/cluster.tsx b/webapp/src/components/cluster.tsx new file mode 100644 index 000000000..99ee70d07 --- /dev/null +++ b/webapp/src/components/cluster.tsx @@ -0,0 +1,211 @@ +import { useEffect, useState } from "react"; +import styles from './cluster.module.scss'; +import Locale from "../locales"; +import { backendDeleteApi, backendSaveApi, backendUpdateApi, backendsApi } from "../api/webapp/cluster"; +import { Button, ButtonGroup, Card, Form, Modal, Popconfirm, Switch, Table, Typography } from "@douyinfe/semi-ui"; +import Column from "@douyinfe/semi-ui/lib/es/table/Column"; +import { FormApi } from "@douyinfe/semi-ui/lib/es/form"; +import { Role, useAccessStore } from "../store"; +import { BackendData } from "../types/cluster"; + +export function Cluster() { + const { Text } = Typography; + const access = useAccessStore(); + const [backendData, setBackendData] = useState(); + const [visibleForm, setVisibleForm] = useState(false); + const [formApi, setFormApi] = useState>(); + const [form, setForm] = useState(); + + useEffect(() => { + list(); + }, []); + + const list = () => { + backendsApi({}) + .then(data => { + setBackendData(data); + }).catch(() => { }); + } + + const linkRender = (text: string) => { + return ( + {text} + ); + } + + const switchRender = (text: boolean, record: BackendData) => { + return ( + + ); + } + + const operateRender = (_text: any, record: BackendData) => { + return ( + + + { + backendDeleteApi({ name: record.name }) + .then(data => { + console.log(data) + list(); + }).catch(() => { }); + }} + > + + + + ); + } + + return ( + <> + + + + b.routingGroup))] + .map(routingGroup => { + return { + text: routingGroup, + value: routingGroup + } + })} + onFilter={(value, record) => { + return value === record.routingGroup + }} /> + + + + + + {access.hasRole(Role.ADMIN) && ( + + + + + } dataIndex="operate" key="operate" render={operateRender} /> + )} +
+
+ { formApi?.submitForm() }} + onCancel={() => { setVisibleForm(false) }} + centered + width={500} + height={500} + bodyStyle={{ overflow: 'auto' }} + > +
{ + if (form === undefined) { + backendSaveApi(values) + .then(data => { + console.log(data); + list(); + setVisibleForm(false); + }).catch(() => { }); + } else { + backendUpdateApi(values) + .then(data => { + console.log(data); + list(); + setVisibleForm(false); + }).catch(() => { }); + } + }} + getFormApi={setFormApi} + > + + + + + + +
+ + ); +} + +const SwitchRender = (props: { + text: boolean; + record: BackendData; + list: () => void; +}) => { + const access = useAccessStore(); + const [loading, setLoading] = useState(false); + + const handleSwitchChange = (v: boolean) => { + setLoading(true); + props.record.active = v; + backendUpdateApi(props.record) + .then(data => { + console.log(data); + setLoading(false); + props.list(); + }).catch(() => { }); + }; + + return ( + + ); +} diff --git a/webapp/src/components/dashboard.module.scss b/webapp/src/components/dashboard.module.scss new file mode 100644 index 000000000..d33250265 --- /dev/null +++ b/webapp/src/components/dashboard.module.scss @@ -0,0 +1,26 @@ +.description { + padding: 10px; + + .tip { + display: flex; + + .title { + margin-right: 5px; + } + + .help { + display: flex; + align-items: center; + justify-content: center; + } + } + + .linkText:hover { + cursor: pointer; + text-decoration: underline; + } +} + +.card { + background-color: var(--semi-color-bg-1); +} diff --git a/webapp/src/components/dashboard.tsx b/webapp/src/components/dashboard.tsx new file mode 100644 index 000000000..dc28797af --- /dev/null +++ b/webapp/src/components/dashboard.tsx @@ -0,0 +1,248 @@ +import { useEffect, useRef, useState } from "react"; +import Locale from "../locales"; +import styles from './dashboard.module.scss'; +import * as echarts from "echarts"; +import { Card, Col, Descriptions, Row, Tooltip } from "@douyinfe/semi-ui"; +import { distributionApi } from "../api/webapp/dashboard"; +import { DistributionDetail, DistributionChartData, LineChartData } from "../types/dashboard"; +import { getCSSVar } from "../utils/utils"; +import { IconHelpCircle } from "@douyinfe/semi-icons"; +import { useNavigate } from "react-router-dom"; +import { hasPagePermission, routersMapper } from "../router"; +import { useAccessStore } from "../store"; + +export function Dashboard() { + const access = useAccessStore(); + const navigate = useNavigate(); + const [distributionDetail, setDistributionDetail] = useState(); + + useEffect(() => { + distributionApi({}) + .then(data => { + setDistributionDetail(data); + }).catch(() => { }); + }, []); + + const data = [ + { + key: Locale.Dashboard.StartTime, + value: distributionDetail?.startTime + }, + { + key: Locale.Dashboard.Backends, + value: hasPagePermission(routersMapper['cluster'], access) + ? { + const router = routersMapper['cluster']; + if (router && router.routeProps && router.routeProps.path) { + navigate(router.routeProps.path); + } + }}>{distributionDetail?.totalBackendCount} + : {distributionDetail?.totalBackendCount} + + }, + { + key: Locale.Dashboard.BackendsOnline, + value: distributionDetail?.onlineBackendCount, + }, + { + key: Locale.Dashboard.BackendsOffline, + value: distributionDetail?.offlineBackendCount + }, + { + key: ( +
+ {Locale.Dashboard.QPH} + + + + + +
+ ), + value: distributionDetail?.totalQueryCount + }, + { + key: ( +
+ {Locale.Dashboard.QPM} + + + + + +
+ ), + value: distributionDetail?.averageQueryCountMinute.toFixed(2) + }, + { + key: ( +
+ {Locale.Dashboard.QPS} + + + + + +
+ ), + value: distributionDetail?.averageQueryCountSecond.toFixed(2) + }, + ]; + + return ( + <> +
+ + + + + + + + + + + + + + + + + + + +
+ + ); +} + +function LineChart(props: { + data: Record +}) { + const chartRef = useRef(null); + + useEffect(() => { + const chartInstance = echarts.init(chartRef.current); + let minMinute = 2400; + let maxMinute = 0; + Object.keys(props.data).forEach(d => { + const lineChartDatas = props.data[d] + const lineChartDataTemp = lineChartDatas.map(lineChartData => parseInt(lineChartData.minute.replace(":", ""))) + const minMinuteTemp = Math.min(...lineChartDataTemp); + const maxMinuteTemp = Math.max(...lineChartDataTemp); + if (minMinuteTemp < minMinute) { + minMinute = minMinuteTemp; + } + if (maxMinuteTemp > maxMinute) { + maxMinute = maxMinuteTemp; + } + }); + const minuteStrings: string[] = []; + for (let i = minMinute; i <= maxMinute; i++) { + if ((i % 100) >= 60) { + continue; + } + const hour = Math.floor(i / 100).toString().padStart(2, "0"); + const minute = (i % 100).toString().padStart(2, "0"); + minuteStrings.push(`${hour}:${minute}`); + } + const option = { + legend: { + textStyle: { + color: getCSSVar('--semi-color-text-0') + } + }, + xAxis: { + type: 'category', + data: minuteStrings + }, + yAxis: { + type: 'value', + minInterval: 1 + }, + tooltip: { + trigger: 'axis' + }, + series: Object.keys(props.data).map(d => { + const lineChartDatas = props.data[d].reduce((obj, item) => { + obj[item.minute] = item.queryCount; + return obj; + }, {} as Record); + return { + name: d, + data: minuteStrings.map(m => lineChartDatas[m] || 0), + type: 'line', + smooth: true + } + }) + } + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + chartInstance.setOption(option); + }, [props.data]); + + return ( +
+
+
+ ); +} + +function DistributionChart(props: { + data: DistributionChartData[] +}) { + const chartRef = useRef(null); + + useEffect(() => { + const chartInstance = echarts.init(chartRef.current); + const option = { + tooltip: { + trigger: 'item' + }, + legend: { + textStyle: { + color: getCSSVar('--semi-color-text-0') + } + }, + series: [ + { + name: Locale.Dashboard.QueryCount, + type: 'pie', + radius: ['40%', '70%'], + avoidLabelOverlap: false, + itemStyle: { + borderRadius: 10, + borderColor: '#fff', + borderWidth: 2 + }, + label: { + show: false, + position: 'center', + }, + emphasis: { + label: { + show: true, + fontSize: 17, + fontWeight: 'bold' + } + }, + labelLine: { + show: false + }, + data: props.data.map(d => { + return { value: d.queryCount, name: d.name } + }) + } + ] + }; + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + chartInstance.setOption(option); + }, [props.data]); + + return ( +
+
+
+ ); +} diff --git a/webapp/src/components/error.tsx b/webapp/src/components/error.tsx new file mode 100644 index 000000000..76bdac8fc --- /dev/null +++ b/webapp/src/components/error.tsx @@ -0,0 +1,40 @@ +import React from "react"; + +interface IErrorBoundaryState { + hasError: boolean; + error: Error | null; + info: React.ErrorInfo | null; +} + +interface IErrorBoundaryProps { + children: React.ReactNode; +} + +export class ErrorBoundary extends React.Component { + constructor(props: IErrorBoundaryProps) { + super(props); + this.state = { hasError: false, error: null, info: null }; + } + + componentDidCatch(error: Error, info: React.ErrorInfo) { + // Update state with error details + this.setState({ hasError: true, error, info }); + } + + render() { + if (this.state.hasError) { + // Render error message + return ( +
+

Oops, something went wrong!

+
+            {this.state.error?.toString()}
+            {this.state.info?.componentStack}
+          
+
+ ); + } + // if no error occurred, render children + return this.props.children; + } +} diff --git a/webapp/src/components/history.module.scss b/webapp/src/components/history.module.scss new file mode 100644 index 000000000..9c72aa486 --- /dev/null +++ b/webapp/src/components/history.module.scss @@ -0,0 +1,8 @@ +.description{ + padding: 10px; +} + +.card { + background-color: var(--semi-color-bg-1); + width: 100%; +} diff --git a/webapp/src/components/history.tsx b/webapp/src/components/history.tsx new file mode 100644 index 000000000..098f6c193 --- /dev/null +++ b/webapp/src/components/history.tsx @@ -0,0 +1,122 @@ +import { useEffect, useState } from "react"; +import styles from './history.module.scss'; +import Locale from "../locales"; +import { Button, Card, Form, Table, Tag, Typography } from "@douyinfe/semi-ui"; +import Column from "@douyinfe/semi-ui/lib/es/table/Column"; +import { queryHistoryApi } from "../api/webapp/history"; +import { HistoryData, HistoryDetail } from "../types/history"; +import { formatYYYYMMddHHMMSS } from "../utils/time"; +import { backendsApi } from "../api/webapp/cluster"; +import { Role, useAccessStore } from "../store"; +import { BackendData } from "../types/cluster"; + +export function History() { + const { Text } = Typography; + const access = useAccessStore(); + const [backendData, setBackendData] = useState(); + const [historyData, setHistoryData] = useState(); + const [backendMapping, setBackendMapping] = useState>({}); + const [page, setPage] = useState(1); + const [size] = useState(15); + const [form, setForm] = useState({ + user: access.userName + }); + + useEffect(() => { + backendsApi({}) + .then(data => { + setBackendData(data); + const mapping: Record = {}; + for (let index = 0; index < data.length; index++) { + const backend = data[index] as BackendData; + mapping[backend.name] = backend.proxyTo; + mapping[backend.proxyTo] = backend.name; + mapping[backend.externalUrl] = backend.name; + } + setBackendMapping(mapping); + }).catch(() => { }); + }, []); + + useEffect(() => { + list(1); + }, [form]); + + const list = (p: number) => { + setPage(p); + queryHistoryApi({ + page: p, + size: size, + ...form + }).then(data => { + setHistoryData(data); + }).catch(() => { }); + } + + const linkQueryRender = (text: string, record: HistoryDetail) => { + return ( + {text} + ); + } + + const linkRender = (text: string) => { + return ( + {text} + ); + } + + const timeRender = (text: number) => { + return ( + {formatYYYYMMddHHMMSS(text)} + ); + } + + const ellipsisRender = (text: string) => { + return ( + {text} + ); + } + + return ( + <> + +
( + <> + + {backendData?.map(b => ( + + {backendMapping[b.proxyTo]} + {b.proxyTo} + + ))} + + + + + + )} + layout='horizontal' + onSubmit={(values) => { + setForm(values) + }} + > +
+ + + + {backendMapping[text]}} /> + + + + + +
+
+ + ); +} diff --git a/webapp/src/components/layout.module.scss b/webapp/src/components/layout.module.scss new file mode 100644 index 000000000..9691d8a7c --- /dev/null +++ b/webapp/src/components/layout.module.scss @@ -0,0 +1,181 @@ +.header { + align-self: stretch; + height: 60px; + width: 100%; + position: fixed; + top: 0; + left: 0; + z-index: 99; + + .navigationHeaderLogo { + height: 50px; + width: 50px; + } + + .dIV { + align-items: center; + column-gap: 16px; + display: inline-flex; + flex-shrink: 0; + + .semiIconsBell { + font-size: 20px; + color: var(--semi-color-text-2); + } + + .avatar { + height: 32px; + width: 32px; + } + } +} + +.sider { + position: fixed; + top: 0; + left: 0; + + .collapsed { + display: flex; + //Two 8-margin + width: calc(100% - 16px); + cursor: pointer; + background-color: var(--semi-color-nav-bg); + position: absolute; + bottom: 0; + height: 40px; + align-items: center; + } + + .nav::-webkit-scrollbar { + display: none; + //Hide scrollbars + } + + .nav { + height: 100vh; + padding-top: 60px; + overflow-y: auto; + + .icon { + height: 20px; + width: 20px; + } + } +} + +.content { + margin-top: 60px; + align-items: flex-start; + display: flex; + flex-basis: 0; + flex-direction: column; + padding: 20px; + row-gap: 24px; + flex-grow: 1; + transition: margin-left 0.3s ease; +} + +.userProfile { + align-items: center; + display: flex; + flex-direction: column; + row-gap: 22px; + flex-shrink: 0; + padding-top: 40px; + + .banner { + align-items: center; + display: flex; + flex-direction: column; + + .frame4159 { + align-items: center; + display: flex; + row-gap: 0; + + .avatar { + height: 72px; + width: 72px; + } + } + + .name { + align-items: center; + display: inline-flex; + flex-direction: column; + text-align: center; + + .richardHendricks { + color: var(--semi-color-text-0); + font-size: 20px; + font-weight: 600; + vertical-align: top; + flex-shrink: 0; + } + + .aRichardHendricks { + color: var(--semi-color-text-2); + font-size: 12px; + font-weight: 400; + line-height: 16px; + vertical-align: top; + flex-shrink: 0; + } + } + } + + .main { + align-items: flex-start; + display: flex; + flex-direction: column; + flex-shrink: 0; + padding: 0 38px 0 24px; + row-gap: 12px; + align-self: stretch; + text-align: left; + letter-spacing: -0.14px; + + .descriptions { + align-items: flex-start; + display: inline-flex; + flex-direction: column; + row-gap: 16px; + flex-shrink: 0; + + .frame4152 { + align-items: center; + column-gap: 12px; + display: inline-flex; + flex-shrink: 0; + + .semiIconsMapPin { + font-size: 24px; + color: var(--semi-color-disabled-text); + } + + .value { + color: var(--semi-color-text-0); + font-size: 14px; + min-width: 61px; + vertical-align: top; + flex-shrink: 0; + } + } + } + + .tags { + align-items: flex-start; + column-gap: 8px; + display: inline-flex; + flex-shrink: 0; + + .tag, + .tag1, + .tag2 { + height: 24px; + margin-right: 5px; + } + } + } +} diff --git a/webapp/src/components/layout.tsx b/webapp/src/components/layout.tsx new file mode 100644 index 000000000..faa3e1269 --- /dev/null +++ b/webapp/src/components/layout.tsx @@ -0,0 +1,193 @@ +import { Nav, Avatar, Layout, Dropdown, Button, Toast, Modal, Tag } from '@douyinfe/semi-ui'; +import { IconGithubLogo, IconDoubleChevronRight, IconDoubleChevronLeft, IconMoon, IconSun, IconMark, IconIdCard } from '@douyinfe/semi-icons'; +import styles from './layout.module.scss'; +import { useEffect, useState } from 'react'; +import { Link, useLocation } from "react-router-dom"; +import { hasPagePermission, routers, routersMapper } from '../router'; +import { Theme, useAccessStore, useConfigStore } from '../store'; +import { logoutApi } from '../api/webapp/login'; +import Locale from "../locales"; + +export const RootLayout = (props: { + children: React.ReactNode +}) => { + const access = useAccessStore(); + const config = useConfigStore(); + const location = useLocation(); + const { Header, Sider, Content } = Layout; + const [collapsed, setCollapsed] = useState(false); + const [selectedKey, setSelectedKey] = useState(location.pathname.substring(location.pathname.lastIndexOf('/') + 1)); + const [userProfile, setUserProfile] = useState(false); + + useEffect(() => { + const router = routersMapper[location.pathname]; + if (router && router.itemKey != null && selectedKey !== router.itemKey) { + setSelectedKey(router.itemKey); + } + }, [location]); + + const lonout = () => { + logoutApi({}).then(data => { + console.log(data); + access.updateToken(""); + Toast.success(Locale.Auth.LogoutSuccess); + }).catch(() => { }); + } + + const theme = config.theme; + function nextTheme() { + const themes = [Theme.Auto, Theme.Light, Theme.Dark]; + const themeIndex = themes.indexOf(theme); + const nextIndex = (themeIndex + 1) % themes.length; + const nextTheme = themes[nextIndex]; + config.update((config) => (config.theme = nextTheme)); + } + + return ( + <> + +
+ +
+ + + + + + {props.children} + + +
+ + setUserProfile(false)} + width={400} + height={400} + closable={false} + footer={<>} + > +
+
+
+ + {access.userName} + +
+
+

{access.userName}

+
+
+
+
+
+ +

{access.userId}

+
+
+
+ {access.roles.map(role => ( + {role} + ))} +
+
+
+
+ + ); +} diff --git a/webapp/src/components/login.module.scss b/webapp/src/components/login.module.scss new file mode 100644 index 000000000..53940a2d0 --- /dev/null +++ b/webapp/src/components/login.module.scss @@ -0,0 +1,104 @@ +.main { + width: 100vw; + height: 100vh; + align-items: center; + display: flex; + justify-content: center; + + .login { + align-items: center; + background: var(--semi-color-bg-0); + border-radius: 8px; + box-shadow: var(--login-shadow); + display: flex; + flex-direction: column; + padding: 48px 56px; + row-gap: 30px; + width: 440px; + flex-shrink: 0; + + .component66 { + align-items: center; + border-radius: 8px; + display: inline-flex; + flex-direction: column; + row-gap: 24px; + flex-shrink: 0; + + .logo { + height: 200px; + width: 200px; + flex-shrink: 0; + } + + .header { + align-items: center; + display: inline-flex; + flex-direction: column; + justify-content: center; + row-gap: 6px; + flex-shrink: 0; + + .title { + color: var(--semi-color-text-0); + font-size: 32px; + font-weight: 600; + line-height: 44px; + min-width: 128px; + vertical-align: middle; + flex-shrink: 0; + } + + &>.text { + color: var(--semi-color-text-2); + font-size: 16px; + font-weight: 400; + line-height: 22px; + min-width: 163px; + vertical-align: middle; + flex-shrink: 0; + } + } + } + + .form { + align-items: flex-start; + display: flex; + flex-direction: column; + flex-shrink: 0; + row-gap: 28px; + align-self: stretch; + + .inputs { + align-items: flex-start; + display: flex; + flex-direction: column; + flex-shrink: 0; + row-gap: 24px; + align-self: stretch; + } + + .button { + height: 40px; + width: 440px; + } + } + + .oauth { + align-items: center; + justify-content: center; + display: flex; + + .button { + height: 40px; + width: 440px; + } + } + + .undefined { + align-items: center; + justify-content: center; + display: flex; + } + } +} diff --git a/webapp/src/components/login.tsx b/webapp/src/components/login.tsx new file mode 100644 index 000000000..6b65466b9 --- /dev/null +++ b/webapp/src/components/login.tsx @@ -0,0 +1,130 @@ +import { Form, Button, Toast, Spin } from '@douyinfe/semi-ui'; +import styles from './login.module.scss'; +import Locale from "../locales"; +import { useEffect, useState } from 'react'; +import { FormApi } from '@douyinfe/semi-ui/lib/es/form'; +import { loginFormApi, loginOAuthApi, loginTypeApi } from '../api/webapp/login'; +import { useAccessStore } from '../store'; + +export function Login() { + const access = useAccessStore(); + const [formApi, setFormApi] = useState>(); + const [loginBo, setLoginBo] = useState>({}); + const [loginType, setLoginType] = useState<'form' | 'oauth' | 'none'>(); + + useEffect(() => { + loginTypeApi().then(data => { + setLoginType(data); + }).catch(() => { }); + }, []) + + const submitForm = () => { + if (formApi) { + formApi.validate(['username', 'password']) + .then(() => { + loginFormApi(loginBo).then(data => { + access.updateToken(data.token); + Toast.success(Locale.Auth.LoginSuccess); + }).catch(() => { }); + }).catch(() => { }); + } + } + + const submitOAuth = () => { + loginOAuthApi({}).then(data => { + window.location.href = data; + }).catch(() => { }); + } + + return ( +
+
+
+ +
+

+ {Locale.Auth.tips.tip1} + {Locale.Auth.tips.tip2} + {Locale.Auth.tips.tip3} +

+
+
+ {loginType == 'form' && ( +
+
setLoginBo(values)}> + + + + +
+ )} + {loginType == 'oauth' && ( +
+ +
+ )} + {loginType == 'none' && ( +
+
setLoginBo(values)}> + + + + +
+ )} + {loginType == undefined && ( +
+ +
+ )} +
+
+ ); +} diff --git a/webapp/src/components/resource-group.module.scss b/webapp/src/components/resource-group.module.scss new file mode 100644 index 000000000..9c72aa486 --- /dev/null +++ b/webapp/src/components/resource-group.module.scss @@ -0,0 +1,8 @@ +.description{ + padding: 10px; +} + +.card { + background-color: var(--semi-color-bg-1); + width: 100%; +} diff --git a/webapp/src/components/resource-group.tsx b/webapp/src/components/resource-group.tsx new file mode 100644 index 000000000..3412a824c --- /dev/null +++ b/webapp/src/components/resource-group.tsx @@ -0,0 +1,283 @@ +import { useEffect, useState } from "react"; +import styles from './resource-group.module.scss'; +import Locale from "../locales"; +import { Button, ButtonGroup, Card, Form, Modal, Popconfirm, Table } from "@douyinfe/semi-ui"; +import Column from "@douyinfe/semi-ui/lib/es/table/Column"; +import { FormApi } from "@douyinfe/semi-ui/lib/es/form"; +import { resourceGroupDeleteApi, resourceGroupSaveApi, resourceGroupUpdateApi, resourceGroupsApi } from "../api/webapp/resource-group"; +import { ResourceGroupData } from "../types/resource-group"; +import { Role, useAccessStore } from "../store"; + +export function ResourceGroup() { + const access = useAccessStore(); + const [resourceGroupData, setResourceGroupData] = useState(); + const [visibleForm, setVisibleForm] = useState(false); + const [formApi, setFormApi] = useState>(); + const [form, setForm] = useState(); + const [useSchema, setUseSchema] = useState(); + + useEffect(() => { + list(); + }, []); + + const list = () => { + resourceGroupsApi({}) + .then(data => { + setResourceGroupData(data); + }).catch(() => { }); + } + + const operateRender = (_text: any, record: ResourceGroupData) => { + return ( + + + { + resourceGroupDeleteApi({ + useSchema: useSchema, + data: { + resourceGroupId: record.resourceGroupId + } + }).then(data => { + console.log(data); + list(); + }).catch(() => { }); + }} + > + + + + ); + } + + return ( + <> + +
( + <> + + + + )} + layout='horizontal' + onValueChange={values => setUseSchema(values.useSchema)} + >
+
+ + + + + + + + + + + + + + + + {access.hasRole(Role.ADMIN) && ( + + + + + } dataIndex="operate" key="operate" fixed="right" render={operateRender} /> + )} +
+
+ { formApi?.submitForm(); }} + onCancel={() => { setVisibleForm(false); }} + centered + width={700} + height={700} + bodyStyle={{ overflow: 'auto' }} + > +
{ + if (form === undefined) { + resourceGroupSaveApi({ + useSchema: useSchema, + data: values + }).then(data => { + console.log(data); + list(); + setVisibleForm(false); + }).catch(() => { }); + } else { + resourceGroupUpdateApi({ + useSchema: useSchema, + data: values + }).then(data => { + console.log(data); + list(); + setVisibleForm(false); + }).catch(() => { }); + } + }} + getFormApi={setFormApi} + > + {form !== undefined && ( + + )} + + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + + + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + + + + +
+ + ); +} diff --git a/webapp/src/components/selector.module.scss b/webapp/src/components/selector.module.scss new file mode 100644 index 000000000..9c72aa486 --- /dev/null +++ b/webapp/src/components/selector.module.scss @@ -0,0 +1,8 @@ +.description{ + padding: 10px; +} + +.card { + background-color: var(--semi-color-bg-1); + width: 100%; +} diff --git a/webapp/src/components/selector.tsx b/webapp/src/components/selector.tsx new file mode 100644 index 000000000..0180c50d4 --- /dev/null +++ b/webapp/src/components/selector.tsx @@ -0,0 +1,208 @@ +import { useEffect, useState } from "react"; +import styles from './selector.module.scss'; +import Locale from "../locales"; +import { Button, ButtonGroup, Card, Form, Modal, Popconfirm, Table } from "@douyinfe/semi-ui"; +import Column from "@douyinfe/semi-ui/lib/es/table/Column"; +import { FormApi } from "@douyinfe/semi-ui/lib/es/form"; +import { selectorDeleteApi, selectorSaveApi, selectorUpdateApi, selectorsApi } from "../api/webapp/selector"; +import { SelectorData } from "../types/selector"; +import { Role, useAccessStore } from "../store"; + +export function Selector() { + const access = useAccessStore(); + const [selectorData, setSelectorData] = useState(); + const [visibleForm, setVisibleForm] = useState(false); + const [formApi, setFormApi] = useState>(); + const [form, setForm] = useState(); + const [useSchema, setUseSchema] = useState(); + + useEffect(() => { + list(); + }, []); + + const list = () => { + selectorsApi({}) + .then(data => { + setSelectorData(data); + }).catch(() => { }); + } + + const operateRender = (_text: any, record: SelectorData) => { + return ( + + + { + selectorDeleteApi({ + useSchema: useSchema, + data: record + }).then(data => { + console.log(data); + list(); + }).catch(() => { }); + }} + > + + + + ); + } + + return ( + <> + +
( + <> + + + + )} + layout='horizontal' + onValueChange={values => setUseSchema(values.useSchema)} + >
+
+ + + + + + + + + + {access.hasRole(Role.ADMIN) && ( + + + + + } dataIndex="operate" key="operate" render={operateRender} /> + )} +
+
+ { formApi?.submitForm() }} + onCancel={() => { setVisibleForm(false) }} + centered + width={600} + height={600} + bodyStyle={{ overflow: 'auto' }} + > +
{ + if (form === undefined) { + selectorSaveApi({ + useSchema: useSchema, + data: values + }).then(data => { + console.log(data); + list(); + setVisibleForm(false); + }).catch(() => { }); + } else { + selectorUpdateApi({ + useSchema: useSchema, + data: values, + oldData: form + }).then(data => { + console.log(data); + list(); + setVisibleForm(false); + }).catch(() => { }); + } + }} + getFormApi={setFormApi} + > + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + `${value}`.replace(/\D/g, '')} + min={0} + max={Number.MAX_SAFE_INTEGER} + /> + + + + + + +
+ + ); +} diff --git a/webapp/src/constant.ts b/webapp/src/constant.ts new file mode 100644 index 000000000..ac8673a80 --- /dev/null +++ b/webapp/src/constant.ts @@ -0,0 +1,4 @@ +export enum StoreKey { + Access = "access-control", + Config = "app-config", +} diff --git a/webapp/src/locales/en_US.ts b/webapp/src/locales/en_US.ts new file mode 100644 index 000000000..c0e1f00d8 --- /dev/null +++ b/webapp/src/locales/en_US.ts @@ -0,0 +1,81 @@ +const en_US = { + Error: { + Network: "The network has wandered off, please try again later!", + }, + Dashboard: { + QPH: "QPH", + QPHTip: "The number of queries in the past hour.", + QPS: "Avg. QPS", + QPSTip: "Average number of queries per second in the past hour.", + QPM: "Avg. QPM", + QPMTip: "Average number of queries per minute in the past hour.", + Backends: "Backends", + BackendsOffline: "Backends Offline", + BackendsOnline: "Backends Online", + StartTime: "Started At", + Summary: "Summary", + QueryDistribution: "Query Distribution in last hour.", + QueryCount: "Query Count", + }, + History: { + RoutedToTip: "Default All", + QueryIdTip: "Default All", + }, + Menu: { + Header: { + PersonalCenter: "Profile", + Logout: "Logout" + }, + Sider: { + Dashboard: "Dashboard", + Cluster: "Cluster", + History: "History", + ResourceGroup: "Resource Group", + Selector: "Selector", + } + }, + Auth: { + LoginTitle: "Welcome", + tips: { + tip1: "Sign in", + tip2: " Trino Gateway ", + tip3: "Account" + }, + Username: "Username", + Password: "Password", + PasswordTip: "Input password", + UsernameTip: "Input username", + Login: "Sign in", + OAuth2: "Sign in with External Authentication", + NoneAuthTip: "Password not allowed", + LoginSuccess: "Login Success", + Expiration: "Login has expired, please log in again", + LogoutSuccess: "Logout Success", + }, + Copy: { + Success: "Copied to clipboard", + Failed: "Copy failed, please grant permission to access clipboard", + }, + UI: { + Confirm: "Confirm", + Cancel: "Cancel", + Close: "Close", + Create: "Create", + Edit: "Edit", + Delete: "Delete", + DeleteTitle: "Are you sure you want to delete?", + DeleteContent: "Once deleted, it cannot be recovered!", + Query: "Query", + }, +}; + +type DeepPartial = T extends object + ? { + [P in keyof T]?: DeepPartial; + } + : T; + +export type LocaleType = typeof en_US; +export type PartialLocaleType = DeepPartial; + +export default en_US; diff --git a/webapp/src/locales/index.ts b/webapp/src/locales/index.ts new file mode 100644 index 000000000..926131d1e --- /dev/null +++ b/webapp/src/locales/index.ts @@ -0,0 +1,93 @@ +import en_US from "./en_US"; +import { merge } from "../utils/merge"; +import type { LocaleType } from "./en_US"; +export type { LocaleType, PartialLocaleType } from "./en_US"; +import { Locale } from '@douyinfe/semi-ui/lib/es/locale/interface'; + +import semi_en_US from '@douyinfe/semi-ui/lib/es/locale/source/en_US'; + +const ALL_LANGS = { + en_US, +}; + +export type Lang = keyof typeof ALL_LANGS; + +export const AllLangs = Object.keys(ALL_LANGS) as Lang[]; + +export const ALL_LANG_OPTIONS: Record = { + en_US: "English", +}; + +export const SERVER_LAND_MAPPER: Record = { + en_US: "en_US", +}; + +export const SEMI_LAND_MAPPER: Record = { + en_US: semi_en_US, +}; + +const LANG_KEY = "lang"; +const DEFAULT_LANG = "en_US"; + +const fallbackLang = en_US; +const targetLang = ALL_LANGS[getLang()] as LocaleType; + +// if target lang missing some fields, it will use fallback lang string +merge(fallbackLang, targetLang); + +export default fallbackLang as LocaleType; + +function getItem(key: string): string | null { + try { + return localStorage.getItem(key); + } catch { + return null; + } +} + +function setItem(key: string, value: string): void { + try { + localStorage.setItem(key, value); + } catch { + console.error('error') + } +} + +function getLanguage(): string { + try { + return navigator.language.toLowerCase(); + } catch { + return DEFAULT_LANG; + } +} + +export function getLang(): Lang { + const savedLang = getItem(LANG_KEY); + + if (AllLangs.includes((savedLang ?? "") as Lang)) { + return savedLang as Lang; + } + + const lang = getLanguage(); + + for (const option of AllLangs) { + if (lang.includes(option)) { + return option; + } + } + + return DEFAULT_LANG; +} + +export function getServerLang(): string { + return SERVER_LAND_MAPPER[getLang()] +} + +export function getSemiLang(): Locale { + return SEMI_LAND_MAPPER[getLang()] +} + +export function changeLang(lang: Lang): void { + setItem(LANG_KEY, lang); + location.reload(); +} diff --git a/webapp/src/main.tsx b/webapp/src/main.tsx new file mode 100644 index 000000000..e63eef4a8 --- /dev/null +++ b/webapp/src/main.tsx @@ -0,0 +1,9 @@ +import React from 'react' +import ReactDOM from 'react-dom/client' +import App from './App.tsx' + +ReactDOM.createRoot(document.getElementById('root')!).render( + + + , +) diff --git a/webapp/src/router.tsx b/webapp/src/router.tsx new file mode 100644 index 000000000..fe061b7d9 --- /dev/null +++ b/webapp/src/router.tsx @@ -0,0 +1,121 @@ +import { IconHeart, IconIntro, IconPopover, IconScrollList, IconToast } from "@douyinfe/semi-icons-lab"; +import { NavItemProps, NavItemPropsWithItems, SubNavProps } from "@douyinfe/semi-ui/lib/es/navigation"; +import styles from './components/layout.module.scss'; +import { RouteProps } from "react-router-dom"; +import Locale from "./locales"; +import { Dashboard } from './components/dashboard'; +import { Cluster } from './components/cluster'; +import { History } from './components/history'; +import { Selector } from "./components/selector"; +import { ResourceGroup } from "./components/resource-group"; +import { AccessControlStore, Role } from "./store"; + +export interface SubItemItem extends NavItemPropsWithItems { + routeProps: RouteProps, + roles: Role[] +} + +export interface SubRouterItem extends SubNavProps { + itemKey?: string; + items: (SubItemItem)[], + routeProps?: RouteProps, + roles: Role[] +} + +export interface RouterItem extends NavItemProps { + itemKey?: string; + items?: (SubItemItem)[], + routeProps: RouteProps, + roles: Role[] +} + +export type RouterItems = (RouterItem | SubRouterItem)[] + +export const routers: RouterItems = [ + { + itemKey: '', + text: Locale.Menu.Sider.Dashboard, + icon: , + // Role.**** + roles: [], + routeProps: { + path: '/', + element: < Dashboard /> + }, + }, + { + itemKey: 'cluster', + text: Locale.Menu.Sider.Cluster, + icon: , + roles: [], + routeProps: { + path: '/cluster', + element: < Cluster /> + }, + }, + { + itemKey: 'resource-group', + text: Locale.Menu.Sider.ResourceGroup, + icon: , + roles: [], + routeProps: { + path: '/resource-group', + element: < ResourceGroup /> + }, + }, + { + itemKey: 'selector', + text: Locale.Menu.Sider.Selector, + icon: , + roles: [], + routeProps: { + path: '/selector', + element: < Selector /> + }, + }, + { + itemKey: 'history', + text: Locale.Menu.Sider.History, + icon: , + roles: [], + routeProps: { + path: '/history', + element: < History /> + }, + } +] + +export const routersMapper: Record = routers.reduce((mapper, item) => { + if (item.itemKey && item.routeProps && item.routeProps.path) { + mapper[item.itemKey] = item; + mapper[item.routeProps.path] = item; + } + return mapper; +}, {} as Record); + +export function hasPagePermission(router: RouterItem | SubRouterItem, access: AccessControlStore): boolean { + let parentHasPermission = true; + if (router.items == undefined) { + // First level menu + if (router.roles.length != 0) { + parentHasPermission = router.roles.some(role => access.hasRole(role)); + } + if (parentHasPermission && router.itemKey != undefined) { + parentHasPermission = access.hasPermission(router.itemKey.toString()); + } + } else { + // Second level menu + router.items = router.items.filter(item => { + let chilnHasPermission = true; + if (item.roles.length != 0) { + chilnHasPermission = item.roles.some(role => access.hasRole(role)); + } + if (chilnHasPermission && item.itemKey != undefined) { + chilnHasPermission = access.hasPermission(item.itemKey.toString()); + } + return chilnHasPermission; + }); + parentHasPermission = router.items.length != 0; + } + return parentHasPermission; +} diff --git a/webapp/src/store/access.ts b/webapp/src/store/access.ts new file mode 100644 index 000000000..cf8fe1d69 --- /dev/null +++ b/webapp/src/store/access.ts @@ -0,0 +1,96 @@ +import { create } from "zustand"; +import { persist } from "zustand/middleware"; +import { StoreKey } from "../constant"; +import { getInfoApi } from "../api/webapp/login"; + +export enum Role { + ADMIN = "ADMIN", + API = "API", + USER = "USER", +} + +export interface AccessControlStore { + token: string; + + userId: string; + userName: string; + nickName: string; + userType: string; + email: string; + phonenumber: string; + sex: string; + avatar: string; + permissions: string[]; + roles: string[]; + + updateToken: (_: string) => void; + isAuthorized: () => boolean; + getUserInfo: (_?: boolean) => void; + hasRole: (role: Role) => boolean; + hasPermission: (permission: string | undefined) => boolean; +} + +let fetchState: number = 0; // 0 not fetch, 1 fetching, 2 done + +export const useAccessStore = create()( + persist( + (set, get) => ({ + token: "", + + userId: "", + userName: "", + nickName: "", + userType: "", + email: "", + phonenumber: "", + sex: "", + avatar: "", + permissions: [], + roles: [], + + updateToken(token: string) { + set(() => ({ token: token?.trim() })); + if (get().token) { + get().getUserInfo(true); + } + }, + isAuthorized() { + get().getUserInfo(); + return ( + !!get().token + ); + }, + getUserInfo(force: boolean = false) { + if ((!get().token) || (!force && fetchState > 0)) return; + fetchState = 1; + getInfoApi().then((data) => { + set(() => ({ ...data })); + }).catch(() => { + // console.error("[Config] failed to fetch config"); + }).finally(() => { + fetchState = 2; + }); + }, + hasRole(role: Role) { + return get().roles.includes(role); + }, + hasPermission(permission: string | undefined) { + const permissions = get().permissions + return permission == undefined || permissions == null || permissions.length == 0 || permissions.includes(permission); + }, + }), + { + name: StoreKey.Access, + version: 1, + migrate(persistedState, version) { + const state = persistedState as AccessControlStore; + + if (version < 1) { + // merge your old config + } + + return state as any; + }, + }, + ), +); diff --git a/webapp/src/store/config.ts b/webapp/src/store/config.ts new file mode 100644 index 000000000..ad5bc9c3a --- /dev/null +++ b/webapp/src/store/config.ts @@ -0,0 +1,55 @@ +import { create } from "zustand"; +import { persist } from "zustand/middleware"; +import { StoreKey } from "../constant"; + +export enum Theme { + Auto = "auto", + Dark = "dark", + Light = "light", +} + +export const DEFAULT_CONFIG = { + avatar: "/logo.svg", + theme: Theme.Auto as Theme, + + fontSize: 14, + sidebarWidth: 270, +}; + +export type AppConfig = typeof DEFAULT_CONFIG; + +export type AppConfigStore = AppConfig & { + reset: () => void; + update: (updater: (config: AppConfig) => void) => void; +}; + +export const useConfigStore = create()( + persist( + (set, get) => ({ + ...DEFAULT_CONFIG, + + reset() { + set(() => ({ ...DEFAULT_CONFIG })); + }, + + update(updater) { + const config = { ...get() }; + updater(config); + set(() => config); + }, + }), + { + name: StoreKey.Config, + version: 1, + migrate(persistedState, version) { + const state = persistedState as AppConfig; + + if (version < 1) { + // merge your old config + } + + return state as any; + }, + }, + ), +); diff --git a/webapp/src/store/index.ts b/webapp/src/store/index.ts new file mode 100644 index 000000000..d319633ec --- /dev/null +++ b/webapp/src/store/index.ts @@ -0,0 +1,2 @@ +export * from "./access"; +export * from "./config"; diff --git a/webapp/src/styles/animation.scss b/webapp/src/styles/animation.scss new file mode 100644 index 000000000..b423b08a2 --- /dev/null +++ b/webapp/src/styles/animation.scss @@ -0,0 +1,23 @@ +@keyframes slide-in { + from { + opacity: 0; + transform: translateY(20px); + } + + to { + opacity: 1; + transform: translateY(0px); + } +} + +@keyframes slide-in-from-top { + from { + opacity: 0; + transform: translateY(-20px); + } + + to { + opacity: 1; + transform: translateY(0px); + } +} diff --git a/webapp/src/styles/globals.scss b/webapp/src/styles/globals.scss new file mode 100644 index 000000000..46abf0aa5 --- /dev/null +++ b/webapp/src/styles/globals.scss @@ -0,0 +1,42 @@ +@import "./animation.scss"; + +// If you need to customize the theme, you have to open this line of code. +// see: https://semi.design/en-US/start/customize-theme +// @import '~@semi-bot/semi-theme-xxxxxx/semi.min.css'; + +// customize +@mixin light { + --login-shadow: 0px 4px 14px 0px #0000001a, 0px 0px 1px 0px #0000004d; + --semi-color-bg-0: rgba(245, 245, 245, 1); +} + +@mixin dark { + --login-shadow: 0px 4px 14px 0px #FFFFFF1a, 0px 0px 1px 0px #FFFFFF4d; +} + +.light { + @include light; +} + +.dark { + @include dark; +} + +:root { + @include light; + + font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; +} + +@media (prefers-color-scheme: dark) { + :root { + @include dark; + } +} + +body { + padding: 0; + margin: 0; + color: var(--semi-color-text-0); + background: var(--semi-color-bg-0); +} diff --git a/webapp/src/types/cluster.d.ts b/webapp/src/types/cluster.d.ts new file mode 100644 index 000000000..704a6d54b --- /dev/null +++ b/webapp/src/types/cluster.d.ts @@ -0,0 +1,9 @@ +export interface BackendData { + name: string; + proxyTo: string; + active: boolean; + routingGroup: string; + externalUrl: string; + queued: number; + running: number; +} diff --git a/webapp/src/types/dashboard.d.ts b/webapp/src/types/dashboard.d.ts new file mode 100644 index 000000000..6b9972d82 --- /dev/null +++ b/webapp/src/types/dashboard.d.ts @@ -0,0 +1,24 @@ +export interface DistributionDetail { + totalBackendCount: number; + offlineBackendCount: number; + onlineBackendCount: number; + totalQueryCount: number; + averageQueryCountMinute: number; + averageQueryCountSecond: number; + distributionChart: DistributionChartData[]; + lineChart: Record; + startTime: string; +} + +export interface DistributionChartData { + backendUrl: string; + queryCount: number; + name: string; +} + +export interface LineChartData { + minute: string; + backendUrl: string; + queryCount: number; + name: string; +} diff --git a/webapp/src/types/history.d.ts b/webapp/src/types/history.d.ts new file mode 100644 index 000000000..cafb52f2d --- /dev/null +++ b/webapp/src/types/history.d.ts @@ -0,0 +1,13 @@ +export interface HistoryDetail { + queryId: string; + queryText: string; + user: string; + source: string; + backendUrl: string; + captureTime: number; +} + +export interface HistoryData { + total: number; + rows: HistoryDetail[]; +} diff --git a/webapp/src/types/resource-group.d.ts b/webapp/src/types/resource-group.d.ts new file mode 100644 index 000000000..9f8ec7d83 --- /dev/null +++ b/webapp/src/types/resource-group.d.ts @@ -0,0 +1,15 @@ +export interface ResourceGroupData { + resourceGroupId: number; + name: string; + parent: number; + jmxExport: boolean; + schedulingPolicy: string; + schedulingWeight: number; + softMemoryLimit: string; + maxQueued: number; + hardConcurrencyLimit: number; + softConcurrencyLimit: number; + softCpuLimit: string; + hardCpuLimit: string; + environment: string; +} diff --git a/webapp/src/types/selector.d.ts b/webapp/src/types/selector.d.ts new file mode 100644 index 000000000..85aa63a7d --- /dev/null +++ b/webapp/src/types/selector.d.ts @@ -0,0 +1,9 @@ +export interface SelectorData { + resourceGroupId: number; + priority: number; + userRegex: string; + sourceRegex: string; + queryType: string; + clientTags: string; + selectorResourceEstimate: string; +} diff --git a/webapp/src/utils/merge.ts b/webapp/src/utils/merge.ts new file mode 100644 index 000000000..ad1b62254 --- /dev/null +++ b/webapp/src/utils/merge.ts @@ -0,0 +1,9 @@ +export function merge(target: any, source: any): any { + Object.keys(source).forEach(function (key) { + if (source[key] && typeof source[key] === "object") { + merge((target[key] = target[key] || {}), source[key]); + return; + } + target[key] = source[key]; + }); +} diff --git a/webapp/src/utils/time.ts b/webapp/src/utils/time.ts new file mode 100644 index 000000000..e149bd026 --- /dev/null +++ b/webapp/src/utils/time.ts @@ -0,0 +1,41 @@ +import moment from "moment"; + +export const formatTime = ( + time: number, + options: { showMilliseconds?: boolean; extra?: number }, +) => { + options = { + showMilliseconds: false, + ...options, + }; + + const durationFormatted = options.extra + ? ` (${format(options.extra, options)})` + : ""; + + return `${format(time, options)}${durationFormatted}`; +}; + +const format = ( + time: number, + { showMilliseconds }: { showMilliseconds?: boolean } = {}, +) => { + const formatString = `${time >= 60 * 60 ? "hh:m" : ""}m:ss${showMilliseconds ? ".SS" : "" + }`; + + return moment() + .startOf("day") + .millisecond(time * 1000) + .format(formatString); +}; + +export const formatYYYYMMddHHMMSS = (timestamp: number): string => { + const date = new Date(timestamp); + const year = date.getFullYear(); + const month = String(date.getMonth() + 1).padStart(2, '0'); + const day = String(date.getDate()).padStart(2, '0'); + const hours = String(date.getHours()).padStart(2, '0'); + const minutes = String(date.getMinutes()).padStart(2, '0'); + const seconds = String(date.getSeconds()).padStart(2, '0'); + return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; +} diff --git a/webapp/src/utils/token.ts b/webapp/src/utils/token.ts new file mode 100644 index 000000000..ec8139b20 --- /dev/null +++ b/webapp/src/utils/token.ts @@ -0,0 +1,22 @@ +export function estimateTokenLength(input: string): number { + let tokenLength = 0; + + for (let i = 0; i < input.length; i++) { + const charCode = input.charCodeAt(i); + + if (charCode < 128) { + // ASCII character + if (charCode <= 122 && charCode >= 65) { + // a-Z + tokenLength += 0.25; + } else { + tokenLength += 0.5; + } + } else { + // Unicode character + tokenLength += 1.5; + } + } + + return tokenLength; +} diff --git a/webapp/src/utils/utils.ts b/webapp/src/utils/utils.ts new file mode 100644 index 000000000..7cc01e8f5 --- /dev/null +++ b/webapp/src/utils/utils.ts @@ -0,0 +1,171 @@ +import { useEffect, useState } from "react"; +import Locale from "../locales"; +import { Toast } from "@douyinfe/semi-ui"; + +export function trimTopic(topic: string): string { + return topic.replace(/[,。!?”“"、,.!?]*$/, ""); +} + +export async function copyToClipboard(text: string): Promise { + try { + await navigator.clipboard.writeText(text); + Toast.success(Locale.Copy.Success); + } catch (error) { + const textArea = document.createElement("textarea"); + textArea.value = text; + document.body.appendChild(textArea); + textArea.focus(); + textArea.select(); + try { + document.execCommand("copy"); + Toast.success(Locale.Copy.Success); + } catch (error) { + Toast.error(Locale.Copy.Failed); + } + document.body.removeChild(textArea); + } +} + +export function downloadAs(text: string, filename: string): void { + const element = document.createElement("a"); + element.setAttribute( + "href", + "data:text/plain;charset=utf-8," + encodeURIComponent(text), + ); + element.setAttribute("download", filename); + element.style.display = "none"; + document.body.appendChild(element); + element.click(); + document.body.removeChild(element); +} + +export function isIOS(): boolean { + const userAgent = navigator.userAgent.toLowerCase(); + return /iphone|ipad|ipod/.test(userAgent); +} + +export function isIPad(): boolean { + const userAgent = navigator.userAgent.toLowerCase(); + return /ipad/.test(userAgent); +} + +export function isPc(): boolean { + const userAgent = navigator.userAgent.toLowerCase(); + return /mac|windows/.test(userAgent); +} + +export function containsChinese(str: string): boolean { + const pattern = /[\u4e00-\u9fa5]/; + return pattern.test(str); +} + +export function useWindowSize(): { width: number, height: number } { + const [size, setSize] = useState({ + width: window.innerWidth, + height: window.innerHeight, + }); + + useEffect(() => { + const onResize = () => { + setSize({ + width: window.innerWidth, + height: window.innerHeight, + }); + }; + window.addEventListener("resize", onResize); + return () => { + window.removeEventListener("resize", onResize); + }; + }, []); + + return size; +} + +export const MOBILE_MAX_WIDTH = 600; +export function useMobileScreen(): boolean { + const { width } = useWindowSize(); + return width <= MOBILE_MAX_WIDTH; +} + +export const FULL_SCREEN_MAX_WIDTH = 1080; +export function useFullScreen(): boolean { + const { width } = useWindowSize(); + return width <= FULL_SCREEN_MAX_WIDTH; +} + +export function isFirefox(): boolean { + return ( + typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent) + ); +} + +export function selectOrCopy(_el: HTMLElement, content: string): boolean { + const currentSelection = window.getSelection(); + if (currentSelection?.type === "Range") { + return false; + } + copyToClipboard(content); + return true; +} + +function getDomContentWidth(dom: HTMLElement): number { + const style = window.getComputedStyle(dom); + const paddingWidth = parseFloat(style.paddingLeft) + parseFloat(style.paddingRight); + const width = dom.clientWidth - paddingWidth; + return width; +} + +function getOrCreateMeasureDom(id: string, init?: (dom: HTMLElement) => void): HTMLElement { + let dom = document.getElementById(id); + if (!dom) { + dom = document.createElement("span"); + dom.style.position = "absolute"; + dom.style.wordBreak = "break-word"; + dom.style.fontSize = "14px"; + dom.style.transform = "translateY(-200vh)"; + dom.style.pointerEvents = "none"; + dom.style.opacity = "0"; + dom.id = id; + document.body.appendChild(dom); + init?.(dom); + } + return dom!; +} + +export function autoGrowTextArea(dom: HTMLTextAreaElement): number { + const measureDom = getOrCreateMeasureDom("__measure"); + const singleLineDom = getOrCreateMeasureDom("__single_measure", (dom) => { + dom.innerText = "TEXT_FOR_MEASURE"; + }); + + const width = getDomContentWidth(dom); + measureDom.style.width = width + "px"; + measureDom.innerText = dom.value !== "" ? dom.value : "1"; + measureDom.style.fontSize = dom.style.fontSize; + const endWithEmptyLine = dom.value.endsWith("\n"); + const height = parseFloat(window.getComputedStyle(measureDom).height); + const singleLineHeight = parseFloat( + window.getComputedStyle(singleLineDom).height, + ); + + const rows = Math.round(height / singleLineHeight) + (endWithEmptyLine ? 1 : 0); + return rows; +} + +export function getCSSVar(varName: string): string { + return getComputedStyle(document.body).getPropertyValue(varName).trim(); +} + + +let isThrottled = false; +// eslint-disable-next-line @typescript-eslint/ban-types +export function throttle(func: Function, throttleTime: number = 1000): void { + if (isThrottled) { + return; + } + isThrottled = true; + func(); + setTimeout(() => { + isThrottled = false; + }, throttleTime); +} diff --git a/webapp/src/vite-env.d.ts b/webapp/src/vite-env.d.ts new file mode 100644 index 000000000..b1f45c786 --- /dev/null +++ b/webapp/src/vite-env.d.ts @@ -0,0 +1,2 @@ +/// +/// diff --git a/webapp/tsconfig.json b/webapp/tsconfig.json new file mode 100644 index 000000000..a7fc6fbf2 --- /dev/null +++ b/webapp/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true + }, + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] +} diff --git a/webapp/tsconfig.node.json b/webapp/tsconfig.node.json new file mode 100644 index 000000000..42872c59f --- /dev/null +++ b/webapp/tsconfig.node.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "composite": true, + "skipLibCheck": true, + "module": "ESNext", + "moduleResolution": "bundler", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +} diff --git a/webapp/vite.config.ts b/webapp/vite.config.ts new file mode 100644 index 000000000..1fd7adadf --- /dev/null +++ b/webapp/vite.config.ts @@ -0,0 +1,24 @@ +import { ConfigEnv, defineConfig, loadEnv } from 'vite' +import react from '@vitejs/plugin-react' +import svgr from 'vite-plugin-svgr'; + +// https://vitejs.dev/config/ +export default defineConfig((mode: ConfigEnv) => { + // eslint-disable-next-line @typescript-eslint/ban-ts-comment + // @ts-ignore + const env = loadEnv(mode.mode, process.cwd()); + const baseUrl = env.VITE_BASE_URL + const proxyPath = env.VITE_PROXY_PATH; + return { + plugins: [react(), svgr()], + server: { + proxy: { + [proxyPath]: { + target: baseUrl, + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, '') + }, + } + } + } +}) From d3c4ec3217dbf473dfc77754cb2ee626e188f984 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Tue, 5 Mar 2024 22:45:02 +0900 Subject: [PATCH 010/148] Rename SQL files to clarify the target database --- docs/installation.md | 2 +- .../gateway/ha/persistence/dao/ExactMatchSourceSelectors.java | 2 +- .../io/trino/gateway/ha/persistence/dao/ResourceGroups.java | 2 +- .../java/io/trino/gateway/ha/persistence/dao/Selectors.java | 2 +- ...ay-ha-persistence.sql => gateway-ha-persistence-mysql.sql} | 0 .../src/test/java/io/trino/gateway/TrinoGatewayRunner.java | 4 ++-- .../src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java | 2 +- .../resources/{add_backends.sql => add_backends_mysql.sql} | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename gateway-ha/src/main/resources/{gateway-ha-persistence.sql => gateway-ha-persistence-mysql.sql} (100%) rename gateway-ha/src/test/resources/{add_backends.sql => add_backends_mysql.sql} (100%) diff --git a/docs/installation.md b/docs/installation.md index a84e4d811..51b171b35 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -70,7 +70,7 @@ Trino Gateway requires a MySQL or PostgreSQL database. Use the following scripts to initialize the database: -* [gateway-ha-persistence.sql](../gateway-ha/src/main/resources/gateway-ha-persistence.sql) for MySQL +* [gateway-ha-persistence-mysql.sql](../gateway-ha/src/main/resources/gateway-ha-persistence-mysql.sql) for MySQL * [gateway-ha-persistence-postgres.sql](../gateway-ha/src/main/resources/gateway-ha-persistence-postgres.sql) for PostgreSQL The files are also included in the JAR file. diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java index 6f58bcd57..772626797 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java @@ -24,7 +24,7 @@ import static io.trino.gateway.ha.router.ResourceGroupsManager.ExactSelectorsDetail; @CompositePK({"environment", "source", "query_type"}) -@Table("exact_match_source_selectors") // located in gateway-ha-persistence.sql +@Table("exact_match_source_selectors") // located in gateway-ha-persistence-*.sql @Cached public class ExactMatchSourceSelectors extends Model diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java index c27ad439b..27f2963a6 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java @@ -28,7 +28,7 @@ @BelongsTo(parent = ResourceGroups.class, foreignKeyName = "parent") @HasMany(child = ResourceGroups.class, foreignKeyName = "parent") @IdName("resource_group_id") -@Table("resource_groups") // located in gateway-ha-persistence.sql +@Table("resource_groups") // located in gateway-ha-persistence-*.sql @Cached public class ResourceGroups extends Model diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java index ae3fba2cd..71b56aad5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java @@ -26,7 +26,7 @@ @BelongsTo(parent = ResourceGroups.class, foreignKeyName = "resource_group_id") @IdName("resource_group_id") -@Table("selectors") // located in gateway-ha-persistence.sql +@Table("selectors") // located in gateway-ha-persistence-*.sql @Cached public class Selectors extends Model diff --git a/gateway-ha/src/main/resources/gateway-ha-persistence.sql b/gateway-ha/src/main/resources/gateway-ha-persistence-mysql.sql similarity index 100% rename from gateway-ha/src/main/resources/gateway-ha-persistence.sql rename to gateway-ha/src/main/resources/gateway-ha-persistence-mysql.sql diff --git a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java index c5f27e60d..3b8a2d375 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java +++ b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java @@ -51,8 +51,8 @@ public static void main(String[] args) mysql.withUsername("root"); mysql.withPassword("root123"); mysql.withDatabaseName("trinogateway"); - mysql.withCopyFileToContainer(forClasspathResource("gateway-ha-persistence.sql"), "/docker-entrypoint-initdb.d/1-gateway-ha-persistence.sql"); - mysql.withCopyFileToContainer(forClasspathResource("add_backends.sql"), "/docker-entrypoint-initdb.d/2-add_backends.sql"); + mysql.withCopyFileToContainer(forClasspathResource("gateway-ha-persistence-mysql.sql"), "/docker-entrypoint-initdb.d/1-gateway-ha-persistence-mysql.sql"); + mysql.withCopyFileToContainer(forClasspathResource("add_backends_mysql.sql"), "/docker-entrypoint-initdb.d/2-add_backends_mysql.sql"); mysql.setPortBindings(List.of("3306:3306")); mysql.start(); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java index 4ba1534d8..9daa55053 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java @@ -53,7 +53,7 @@ public static void seedRequiredData(TestConfig testConfig) Jdbi jdbi = Jdbi.create(jdbcUrl, "sa", "sa"); JdbcConnectionManager connectionManager = new JdbcConnectionManager(jdbi, db); connectionManager.open(); - Base.exec(HaGatewayTestUtils.getResourceFileContent("gateway-ha-persistence.sql")); + Base.exec(HaGatewayTestUtils.getResourceFileContent("gateway-ha-persistence-mysql.sql")); connectionManager.close(); } diff --git a/gateway-ha/src/test/resources/add_backends.sql b/gateway-ha/src/test/resources/add_backends_mysql.sql similarity index 100% rename from gateway-ha/src/test/resources/add_backends.sql rename to gateway-ha/src/test/resources/add_backends_mysql.sql From efe5b7b328f18cdf8f5e534b05aa20a7b02f3539 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Tue, 5 Mar 2024 22:52:34 +0900 Subject: [PATCH 011/148] Merge yml files into docker-compose.yml --- docker/README.md | 2 +- docker/docker-compose.yml | 31 +++++++++++++++++++++++------ docker/postgres-backend-compose.yml | 21 ------------------- docker/trino-gateway-compose.yml | 21 ------------------- 4 files changed, 26 insertions(+), 49 deletions(-) delete mode 100644 docker/postgres-backend-compose.yml delete mode 100644 docker/trino-gateway-compose.yml diff --git a/docker/README.md b/docker/README.md index c73b24feb..61ed3bb94 100644 --- a/docker/README.md +++ b/docker/README.md @@ -135,7 +135,7 @@ The Trino Gateway is available at [http://localhost:8080](http://localhost:8080) The PostgreSQL backend database for Trino Gateway runs on `localhost:5432`. You can query it for troubleshooting and other purposes using the credentials and -details found in the `postgres-backend-compose.yml` file. +details found in the `docker-compose.yml` file. ## Configuration diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 6b52887da..0fe3d7552 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,20 +1,39 @@ version: "3.4" services: trino-gateway: - extends: - file: ./trino-gateway-compose.yml - service: trino-gateway + image: ${TRINO_GATEWAY_IMAGE:-trinodb/trino-gateway:latest} + depends_on: + postgres: + condition: service_healthy healthcheck: interval: 5s timeout: 5s retries: 60 start_period: 20s + ports: + - "8080:8080" + volumes: + - target: /opt/trino/gateway-ha-config.yml + source: ../gateway-ha/gateway-ha-config-docker.yml + type: bind + postgres: - extends: - file: ./postgres-backend-compose.yml - service: postgres + image: ${TRINO_GATEWAY_POSTGRES_IMAGE:-postgres} + environment: + - PGPORT=5432 + - POSTGRES_PASSWORD=P0stG&es + - POSTGRES_DB=trino_gateway_db + - POSTGRES_USER=trino_gateway_db_admin + ports: + - "5432:5432" healthcheck: + # Need user and database name to check PostgreSQL server status + test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB || exit 1"] interval: 1s timeout: 1s retries: 60 start_period: 10s + volumes: + - target: /docker-entrypoint-initdb.d/1-gateway-ha-persistence-postgres.sql + source: ../gateway-ha/src/main/resources/gateway-ha-persistence-postgres.sql + type: bind diff --git a/docker/postgres-backend-compose.yml b/docker/postgres-backend-compose.yml deleted file mode 100644 index 68ae3bb01..000000000 --- a/docker/postgres-backend-compose.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: "3.4" -services: - postgres: - image: ${TRINO_GATEWAY_POSTGRES_IMAGE:-postgres} - environment: - - PGPORT=5432 - - POSTGRES_PASSWORD=P0stG&es - - POSTGRES_DB=trino_gateway_db - - POSTGRES_USER=trino_gateway_db_admin - ports: - - "5432:5432" - healthcheck: - # Need user and database name to check PostgreSQL server status - test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB || exit 1"] - interval: 10s - timeout: 3s - retries: 10 - volumes: - - target: /docker-entrypoint-initdb.d/1-gateway-ha-persistence-postgres.sql - source: ../gateway-ha/src/main/resources/gateway-ha-persistence-postgres.sql - type: bind diff --git a/docker/trino-gateway-compose.yml b/docker/trino-gateway-compose.yml deleted file mode 100644 index 9869ca06d..000000000 --- a/docker/trino-gateway-compose.yml +++ /dev/null @@ -1,21 +0,0 @@ -version: "3.4" -services: - trino-gateway: - image: ${TRINO_GATEWAY_IMAGE:-trinodb/trino-gateway:latest} - depends_on: - postgres: - condition: service_healthy - healthcheck: - interval: 10s - timeout: 5s - retries: 3 - start_period: 10s - ports: - - "8080:8080" - volumes: - - target: /opt/trino/gateway-ha-config.yml - source: ../gateway-ha/gateway-ha-config-docker.yml - type: bind - # - target: /opt/trino/localhost.jks - # source: ../gateway-ha/target/localhost.jks - # type: bind From e79a82278f218dcd30995fd6bb540a48fdfa6407 Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Tue, 27 Feb 2024 11:38:05 -0500 Subject: [PATCH 012/148] Fix query id matching in request querystring --- .../handler/QueryIdCachingProxyHandler.java | 22 +++++++++- .../TestQueryIdCachingProxyHandler.java | 42 ++++++++++++------- 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index 32671bb41..413eb282b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -60,7 +60,19 @@ public class QueryIdCachingProxyHandler public static final String SOURCE_HEADER = "X-Trino-Source"; public static final String HOST_HEADER = "Host"; private static final int QUERY_TEXT_LENGTH_FOR_HISTORY = 200; - private static final Pattern QUERY_ID_PATTERN = Pattern.compile(".*[/=?](\\d+_\\d+_\\d+_\\w+).*"); + /** + * This regular expression matches query ids as they appear in the path of a URL. The query id must be preceded + * by a "/". A query id is defined as three groups of digits separated by underscores, with a final group + * consisting of any alphanumeric characters. + */ + private static final Pattern QUERY_ID_PATH_PATTERN = Pattern.compile(".*/(\\d+_\\d+_\\d+_\\w+).*"); + /** + * This regular expression matches query ids as they appear in the query parameters of a URL. The query id is + * defined as in QUERY_TEXT_LENGTH_FOR_HISTORY. The query id must either be at the beginning of the query parameter + * string, or be preceded by %2F (a URL-encoded "/"), or "query_id=", with or without the underscore and any + * capitalization. + */ + private static final Pattern QUERY_ID_PARAM_PATTERN = Pattern.compile(".*(?:%2F|(?i)query_?id(?-i)=|^)(\\d+_\\d+_\\d+_\\w+).*"); private static final Pattern EXTRACT_BETWEEN_SINGLE_QUOTES = Pattern.compile("'([^\\s']+)'"); @@ -113,7 +125,13 @@ protected static String extractQueryIdIfPresent(String path, String queryParams) } } else if (path.startsWith(TRINO_UI_PATH)) { - Matcher matcher = QUERY_ID_PATTERN.matcher(path); + Matcher matcher = QUERY_ID_PATH_PATTERN.matcher(path); + if (matcher.matches()) { + queryId = matcher.group(1); + } + } + if (!isNullOrEmpty(queryParams)) { + Matcher matcher = QUERY_ID_PARAM_PATTERN.matcher(queryParams); if (matcher.matches()) { queryId = matcher.group(1); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java index ee4d88751..4e8cfd10f 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java @@ -23,6 +23,7 @@ import java.io.IOException; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.extractQueryIdIfPresent; import static java.lang.String.format; import static org.assertj.core.api.Assertions.assertThat; @@ -33,22 +34,31 @@ public class TestQueryIdCachingProxyHandler public void testExtractQueryIdFromUrl() throws IOException { - String[] paths = { - "/ui/api/query/20200416_160256_03078_6b4yt", - "/ui/api/query/20200416_160256_03078_6b4yt?bogus_fictional_param", - "/ui/api/query?query_id=20200416_160256_03078_6b4yt", - "/ui/api/query.html?20200416_160256_03078_6b4yt"}; - for (String path : paths) { - String queryId = QueryIdCachingProxyHandler.extractQueryIdIfPresent(path, null); - assertThat(queryId).isEqualTo("20200416_160256_03078_6b4yt"); - } - String[] nonPaths = { - "/ui/api/query/myOtherThing", - "/ui/api/query/20200416_blah?bogus_fictional_param"}; - for (String path : nonPaths) { - String queryId = QueryIdCachingProxyHandler.extractQueryIdIfPresent(path, null); - assertThat(queryId).isNull(); - } + assertThat(extractQueryIdIfPresent("/v1/statement/executing/20200416_160256_03078_6b4yt/ya7e884929c67cdf86207a80e7a77ab2166fa2e7b/1368", null)) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/v1/statement/queued/20200416_160256_03078_6b4yt/y0d7620a6941e78d3950798a1085383234258a566/1", null)) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/ui/api/query/20200416_160256_03078_6b4yt", null)) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/ui/api/query/20200416_160256_03078_6b4yt/killed", null)) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/ui/api/query/20200416_160256_03078_6b4yt/preempted", null)) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/v1/query/20200416_160256_03078_6b4yt", "pretty")) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/ui/troubleshooting", "queryId=20200416_160256_03078_6b4yt")) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/ui/query.html", "20200416_160256_03078_6b4yt")) + .isEqualTo("20200416_160256_03078_6b4yt"); + assertThat(extractQueryIdIfPresent("/login", "redirect=%2Fui%2Fapi%2Fquery%2F20200416_160256_03078_6b4yt")) + .isEqualTo("20200416_160256_03078_6b4yt"); + + assertThat(extractQueryIdIfPresent("/ui/api/query/myOtherThing", null)) + .isNull(); + assertThat(extractQueryIdIfPresent("/ui/api/query/20200416_blah", "bogus_fictional_param")) + .isNull(); + assertThat(extractQueryIdIfPresent("/ui/", "lang=en&p=1&id=0_1_2_a")) + .isNull(); } @Test From e060de72a8deec07748e890d60fd5416c18bafdb Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Thu, 22 Feb 2024 21:24:30 -0500 Subject: [PATCH 013/148] Get cluster health from v1/info --- docs/quickstart-config.yaml | 6 +- gateway-ha/gateway-ha-config-docker.yml | 6 +- gateway-ha/gateway-ha-config.yml | 6 +- gateway-ha/pom.xml | 32 +++++++++- .../ClusterStatsInfoApiMonitor.java | 64 +++++++++++++++++++ .../gateway/ha/clustermonitor/ServerInfo.java | 38 +++++++++++ .../ha/config/ClusterStatsConfiguration.java | 10 +-- .../ha/config/ClusterStatsMonitorType.java | 22 +++++++ .../ha/module/ClusterStatsMonitorModule.java | 15 +++-- .../TestClusterStatsMonitor.java | 6 ++ 10 files changed, 177 insertions(+), 28 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsInfoApiMonitor.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsMonitorType.java diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index 43182e5ff..d1ebefcff 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -22,11 +22,7 @@ dataStore: driver: org.postgresql.Driver clusterStatsConfiguration: - useApi: true - -backendState: - username: gateway - ssl: false + monitorType: INFO_API modules: - io.trino.gateway.ha.module.HaGatewayProviderModule diff --git a/gateway-ha/gateway-ha-config-docker.yml b/gateway-ha/gateway-ha-config-docker.yml index 4c7e8f587..ced2ef8f7 100644 --- a/gateway-ha/gateway-ha-config-docker.yml +++ b/gateway-ha/gateway-ha-config-docker.yml @@ -15,12 +15,8 @@ dataStore: driver: org.postgresql.Driver queryHistoryHoursRetention: 24 -backendState: - username: lb_query - ssl: false - clusterStatsConfiguration: - useApi: true + monitorType: INFO_API server: applicationConnectors: diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index d60d4ec4d..4c8a6fa69 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -15,12 +15,8 @@ dataStore: driver: org.postgresql.Driver queryHistoryHoursRetention: 24 -backendState: - username: lb_query - ssl: false - clusterStatsConfiguration: - useApi: true + monitorType: INFO_API server: applicationConnectors: diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 2f1855aa2..07d9957a7 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -98,6 +98,16 @@ + + io.airlift + http-client + + + + io.airlift + json + + io.dropwizard dropwizard-assets @@ -235,6 +245,13 @@ jakarta.ws.rs-api + + + joda-time + joda-time + + org.apache.commons commons-pool2 @@ -502,9 +519,22 @@ - org.apache.maven.plugins + maven-dependency-plugin + + + + + joda-time:joda-time + + + + + + + + maven-shade-plugin false diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsInfoApiMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsInfoApiMonitor.java new file mode 100644 index 000000000..d9d5f1095 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsInfoApiMonitor.java @@ -0,0 +1,64 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.clustermonitor; + +import io.airlift.http.client.HttpClient; +import io.airlift.http.client.HttpClientConfig; +import io.airlift.http.client.JsonResponseHandler; +import io.airlift.http.client.Request; +import io.airlift.http.client.jetty.JettyHttpClient; +import io.trino.gateway.ha.config.ProxyBackendConfiguration; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.net.URI; + +import static io.airlift.http.client.HttpUriBuilder.uriBuilderFrom; +import static io.airlift.http.client.JsonResponseHandler.createJsonResponseHandler; +import static io.airlift.http.client.Request.Builder.prepareGet; +import static io.airlift.json.JsonCodec.jsonCodec; + +public class ClusterStatsInfoApiMonitor + implements ClusterStatsMonitor +{ + //TODO: make client options configurable + private static final HttpClient client = new JettyHttpClient(new HttpClientConfig()); + private static final Logger log = LoggerFactory.getLogger(ClusterStatsInfoApiMonitor.class); + private static final JsonResponseHandler SERVER_INFO_JSON_RESPONSE_HANDLER = createJsonResponseHandler(jsonCodec(ServerInfo.class)); + + @Override + public ClusterStats monitor(ProxyBackendConfiguration backend) + { + return ClusterStats.builder(backend.getName()).healthy(isReadyStatus(backend.getProxyTo())) + .proxyTo(backend.getProxyTo()) + .externalUrl(backend.getExternalUrl()) + .routingGroup(backend.getRoutingGroup()).build(); + } + + private boolean isReadyStatus(String baseUrl) + { + Request request = prepareGet() + .setUri(uriBuilderFrom(URI.create(baseUrl)).appendPath("/v1/info").build()) + .build(); + + try { + ServerInfo serverInfo = client.execute(request, SERVER_INFO_JSON_RESPONSE_HANDLER); + return !serverInfo.isStarting(); + } + catch (Exception e) { + log.error("Exception checking {} for health: {} ", request.getUri(), e.getMessage()); + } + return false; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java new file mode 100644 index 000000000..6137070c9 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java @@ -0,0 +1,38 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.clustermonitor; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; + +import static java.util.Objects.requireNonNull; + +// based on https://github.com/trinodb/trino/blob/439/client/trino-client/src/main/java/io/trino/client/ServerInfo.java +// without unused fields +public class ServerInfo +{ + private final Boolean starting; + + @JsonCreator + public ServerInfo( + @JsonProperty("starting") Boolean starting) + { + this.starting = requireNonNull(starting, "starting is null"); + } + + public boolean isStarting() + { + return starting; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsConfiguration.java index 3b84e6e5e..0c05978e1 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsConfiguration.java @@ -15,17 +15,17 @@ public class ClusterStatsConfiguration { - private boolean useApi; + private ClusterStatsMonitorType monitorType; public ClusterStatsConfiguration() {} - public boolean isUseApi() + public ClusterStatsMonitorType getMonitorType() { - return this.useApi; + return monitorType; } - public void setUseApi(boolean useApi) + public void setMonitorType(ClusterStatsMonitorType monitorType) { - this.useApi = useApi; + this.monitorType = monitorType; } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsMonitorType.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsMonitorType.java new file mode 100644 index 000000000..ad7835bd2 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ClusterStatsMonitorType.java @@ -0,0 +1,22 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.config; + +public enum ClusterStatsMonitorType +{ + NOOP, + INFO_API, + UI_API, + JDBC +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java index dd11be260..fe7495742 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java @@ -18,6 +18,7 @@ import io.dropwizard.core.setup.Environment; import io.trino.gateway.baseapp.AppModule; import io.trino.gateway.ha.clustermonitor.ClusterStatsHttpMonitor; +import io.trino.gateway.ha.clustermonitor.ClusterStatsInfoApiMonitor; import io.trino.gateway.ha.clustermonitor.ClusterStatsJdbcMonitor; import io.trino.gateway.ha.clustermonitor.ClusterStatsMonitor; import io.trino.gateway.ha.clustermonitor.NoopClusterStatsMonitor; @@ -41,13 +42,13 @@ public ClusterStatsMonitor getClusterStatsMonitor() { ClusterStatsConfiguration clusterStatsConfig = config.getClusterStatsConfiguration(); if (config.getBackendState() == null) { - return new NoopClusterStatsMonitor(); - } - if (clusterStatsConfig.isUseApi()) { - return new ClusterStatsHttpMonitor(config.getBackendState()); - } - else { - return new ClusterStatsJdbcMonitor(config.getBackendState()); + return new ClusterStatsInfoApiMonitor(); } + return switch (clusterStatsConfig.getMonitorType()) { + case INFO_API -> new ClusterStatsInfoApiMonitor(); + case UI_API -> new ClusterStatsHttpMonitor(config.getBackendState()); + case JDBC -> new ClusterStatsJdbcMonitor(config.getBackendState()); + case NOOP -> new NoopClusterStatsMonitor(); + }; } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java b/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java index bfbde8f47..9b89728e3 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java @@ -56,6 +56,12 @@ public void testJdbcMonitor() testClusterStatsMonitor(ClusterStatsJdbcMonitor::new); } + @Test + public void testInfoApiMonitor() + { + testClusterStatsMonitor(ignored -> new ClusterStatsInfoApiMonitor()); + } + private void testClusterStatsMonitor(Function monitorFactory) { BackendStateConfiguration backendStateConfiguration = new BackendStateConfiguration(); From 8a5105a3f25dae3ecd03b8621990a941e359eba2 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Fri, 16 Feb 2024 14:15:52 -0800 Subject: [PATCH 014/148] Improve and doc release process --- docker/README.md | 6 ------ docker/release-docker.sh | 4 +++- docs/development.md | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 7 deletions(-) diff --git a/docker/README.md b/docker/README.md index 61ed3bb94..4fae0d674 100644 --- a/docker/README.md +++ b/docker/README.md @@ -147,9 +147,3 @@ from the project checkout, and mounts it at `/opt/trino/gateway-ha-config.yml`. By default the container health check uses the file `docker/bin/health-check` mounted at `/usr/lib/trino/bin/health-check`. The scripts expects a 2XX response from the server at `/api/public/backends`. - -## Release - -After the container images are built locally, a maintainer can login to -Docker Hub and use the `release-docker.sh` script to publish the locally built -images. diff --git a/docker/release-docker.sh b/docker/release-docker.sh index 0c3dad85f..75567da6a 100755 --- a/docker/release-docker.sh +++ b/docker/release-docker.sh @@ -7,7 +7,9 @@ REPO=trinodb/trino-gateway IMAGE=trino-gateway:$VERSION TARGET=$REPO:$VERSION -docker/build.sh -r "$VERSION" +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" + +$SCRIPT_DIR/build.sh -r "$VERSION" architectures=(amd64 arm64 ppc64le) diff --git a/docs/development.md b/docs/development.md index 72d443d62..c5b830cb4 100644 --- a/docs/development.md +++ b/docs/development.md @@ -109,3 +109,42 @@ for more details. Want to help build Trino Gateway? Check out our [contributing documentation](../.github/CONTRIBUTING.md) + + +## Release process + +A full release process consists of the following steps: + +Merge the pull request for the release notes and pull the changes locally: + +```shell +cd trino-gateway +git checkout main +git pull +``` + +Run a Maven release build: + +```shell +./mvnw clean release:prepare release:perform +``` + +A successful release build performs the necessary commits, and pushes the +binaries to Maven Central staging. + +Close and release the staging repository, and wait until the sync to Central is +completed. Confirm the presence of the artifacts at +[https://repo.maven.apache.org/maven2/io/trino/gateway/gateway-ha/](https://repo.maven.apache.org/maven2/io/trino/gateway/gateway-ha/). + +Ensure that you are logged into Docker Hub with suitable permissions, and run +the container release script with the version number that was just released, +for example `6`: + +```shell +docker/release-docker.sh 6 +``` + +Once completed, verify the availability at +[https://hub.docker.com/r/trinodb/trino-gateway](https://hub.docker.com/r/trinodb/trino-gateway). + +Announce the release on Trino Slack and LinkedIn. From 27051963adc827148a732533f98eb98a33e82d01 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Tue, 30 Jan 2024 19:18:54 +0900 Subject: [PATCH 015/148] Use Airlift logger --- docs/installation.md | 8 + gateway-ha/etc/log.properties | 1 + gateway-ha/gateway-ha-config-docker.yml | 13 +- gateway-ha/gateway-ha-config.yml | 13 +- gateway-ha/pom.xml | 59 ++++-- .../io/trino/gateway/baseapp/BaseApp.java | 37 ++-- .../gateway/baseapp/LogFilterFactory.java | 44 ----- .../trino/gateway/ha/HaGatewayLauncher.java | 14 ++ .../clustermonitor/ActiveClusterMonitor.java | 11 +- .../ClusterStatsHttpMonitor.java | 17 +- .../ClusterStatsJdbcMonitor.java | 11 +- .../gateway/ha/config/LdapConfiguration.java | 9 +- .../handler/QueryIdCachingProxyHandler.java | 37 ++-- .../gateway/ha/log/GatewayRequestLog.java | 32 ++++ .../ha/log/GatewayRequestLogFactory.java | 33 ++++ .../gateway/ha/notifier/EmailNotifier.java | 15 +- .../ha/persistence/JdbcConnectionManager.java | 5 +- .../ha/resource/EntityEditorResource.java | 9 +- .../gateway/ha/resource/GatewayResource.java | 9 +- .../gateway/ha/resource/TrinoResource.java | 19 +- .../gateway/ha/router/HaGatewayManager.java | 7 +- .../gateway/ha/router/HaRoutingManager.java | 7 +- .../gateway/ha/router/RoutingManager.java | 13 +- .../RuleReloadingRoutingGroupSelector.java | 16 +- .../router/TrinoQueueLengthRoutingTable.java | 27 ++- .../gateway/ha/security/LbAuthorizer.java | 13 +- .../ha/security/LbFormAuthManager.java | 7 +- .../gateway/ha/security/LbLdapClient.java | 11 +- .../gateway/ha/security/LbOAuthManager.java | 7 +- .../gateway/ha/security/LbTokenUtil.java | 9 +- .../gateway/proxyserver/ProxyHandler.java | 5 +- .../gateway/proxyserver/ProxyServer.java | 9 +- .../gateway/proxyserver/ProxyServletImpl.java | 10 +- ...wizard.logging.common.filter.FilterFactory | 2 - .../static/assets/index-WjKhXYTT.css | 1 + .../resources/static/assets/index-d2L8ur2V.js | 169 ++++++++++++++++++ .../src/main/resources/static/index.html | 14 ++ gateway-ha/src/main/resources/static/logo.svg | 121 +++++++++++++ .../io/trino/gateway/TrinoGatewayRunner.java | 8 +- .../trino/gateway/ha/HaGatewayTestUtils.java | 7 +- .../gateway/ha/security/LbLdapClientTest.java | 7 +- .../ha/security/TestLbAuthenticator.java | 7 +- .../gateway/ha/security/TestLbAuthorizer.java | 7 +- .../test/resources/test-config-template.yml | 3 + 44 files changed, 606 insertions(+), 277 deletions(-) create mode 100644 gateway-ha/etc/log.properties delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/baseapp/LogFilterFactory.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java delete mode 100644 gateway-ha/src/main/resources/META-INF/services/io.dropwizard.logging.common.filter.FilterFactory create mode 100644 gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css create mode 100644 gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js create mode 100644 gateway-ha/src/main/resources/static/index.html create mode 100644 gateway-ha/src/main/resources/static/logo.svg diff --git a/docs/installation.md b/docs/installation.md index 51b171b35..a12b4d427 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -105,6 +105,14 @@ configuration YAML file. Find more information in the [routing rules documentation](routing-rules.md). +### Configure logging + +Path to `log.properties` must be set via `log.levels-file` JVM options +like `-Dlog.levels-file=etc/log.properties`. + +Use the `log.*` properties from the [Trino logging properties +documentation](https://trino.io/docs/current/admin/properties-logging.html) for further configuration. + ### Proxying additional paths By default, Trino Gateway only proxies requests to paths starting with diff --git a/gateway-ha/etc/log.properties b/gateway-ha/etc/log.properties new file mode 100644 index 000000000..9f237f0cd --- /dev/null +++ b/gateway-ha/etc/log.properties @@ -0,0 +1 @@ +io.trino=INFO diff --git a/gateway-ha/gateway-ha-config-docker.yml b/gateway-ha/gateway-ha-config-docker.yml index ced2ef8f7..91e3a622c 100644 --- a/gateway-ha/gateway-ha-config-docker.yml +++ b/gateway-ha/gateway-ha-config-docker.yml @@ -37,16 +37,5 @@ managedApps: - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor -# Logging settings. logging: - # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL. - level: INFO - - # Logger-specific levels. - loggers: - io.trino: DEBUG - - appenders: - - type: console - filterFactories: - - type: Log-filter-factory + type: external diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index 4c8a6fa69..176ac0f0c 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -37,16 +37,5 @@ managedApps: - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor -# Logging settings. logging: - # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL. - level: INFO - - # Logger-specific levels. - loggers: - io.trino: DEBUG - - appenders: - - type: console - filterFactories: - - type: Log-filter-factory + type: external diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 07d9957a7..5421039f5 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -29,18 +29,6 @@ - - ch.qos.logback - logback-classic - ${dep.logback.version} - - - - ch.qos.logback - logback-core - ${dep.logback.version} - - com.auth0 java-jwt @@ -98,6 +86,11 @@ + + io.airlift + configuration + + io.airlift http-client @@ -108,6 +101,16 @@ json + + io.airlift + log + + + + io.airlift + log-manager + + io.dropwizard dropwizard-assets @@ -205,7 +208,7 @@ io.dropwizard - dropwizard-logging + dropwizard-request-logging @@ -235,6 +238,11 @@ 2.1.1 + + jakarta.servlet + jakarta.servlet-api + + jakarta.validation jakarta.validation-api @@ -299,6 +307,12 @@ org.eclipse.jetty jetty-server + + + org.eclipse.jetty.toolchain + jetty-jakarta-servlet-api + + @@ -311,11 +325,6 @@ jetty-util - - org.eclipse.jetty.toolchain - jetty-jakarta-servlet-api - - org.glassfish.jersey.core jersey-server @@ -533,6 +542,20 @@ + + org.apache.maven.plugins + maven-dependency-plugin + + + + + joda-time:joda-time + + + + + + maven-shade-plugin diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 5008e5a22..21ece88d8 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -18,15 +18,18 @@ import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Module; +import io.airlift.log.Logger; import io.dropwizard.auth.AuthDynamicFeature; import io.dropwizard.auth.AuthFilter; import io.dropwizard.core.Application; import io.dropwizard.core.Configuration; +import io.dropwizard.core.server.DefaultServerFactory; import io.dropwizard.core.setup.Bootstrap; import io.dropwizard.core.setup.Environment; import io.dropwizard.lifecycle.Managed; import io.dropwizard.lifecycle.setup.LifecycleEnvironment; import io.dropwizard.servlets.tasks.Task; +import io.trino.gateway.ha.log.GatewayRequestLogFactory; import jakarta.ws.rs.Path; import jakarta.ws.rs.ext.Provider; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; @@ -36,8 +39,6 @@ import org.reflections.util.ClasspathHelper; import org.reflections.util.ConfigurationBuilder; import org.reflections.util.FilterBuilder; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; @@ -60,7 +61,7 @@ public abstract class BaseApp extends Application { - private static final Logger logger = LoggerFactory.getLogger(BaseApp.class); + private static final Logger logger = Logger.get(BaseApp.class); private final Reflections reflections; private final ImmutableList.Builder appModules = ImmutableList.builder(); @@ -75,7 +76,7 @@ protected BaseApp(String... basePackages) basePackages = new String[] {}; } - logger.info("op=create auto_scan_packages={}", basePackages); + logger.info("op=create auto_scan_packages=%s", basePackages); for (String basePkg : basePackages) { confBuilder.addUrls(ClasspathHelper.forPackage(basePkg)); @@ -89,6 +90,9 @@ protected BaseApp(String... basePackages) this.reflections = new Reflections(confBuilder); } + @Override // Using Airlift logger + protected void bootstrapLogging() {} + /** * Initializes the application bootstrap. * @@ -115,8 +119,9 @@ public void initialize(Bootstrap bootstrap) public void run(T configuration, Environment environment) throws Exception { + ((DefaultServerFactory) configuration.getServerFactory()).setRequestLogFactory(new GatewayRequestLogFactory()); this.injector = configureGuice(configuration, environment); - logger.info("op=configure_guice injector={}", injector); + logger.info("op=configure_guice injector=%s", injector); applicationAtRun(configuration, environment, injector); logger.info("op=configure_app_custom completed"); } @@ -147,14 +152,14 @@ private Injector configureGuice(T configuration, Environment environment) private void registerWithInjector(T configuration, Environment environment, Injector injector) { - logger.info("op=register_start configuration={}", configuration.toString()); + logger.info("op=register_start configuration=%s", configuration.toString()); registerAuthFilters(environment, injector); registerHealthChecks(environment, injector); registerProviders(environment, injector); registerTasks(environment, injector); addManagedApps(configuration, environment, injector); registerResources(environment, injector); - logger.info("op=register_end configuration={}", configuration.toString()); + logger.info("op=register_end configuration=%s", configuration.toString()); } /** @@ -172,7 +177,7 @@ protected List addModules(T configuration, Environment environment) } for (String clazz : configuration.getModules()) { try { - logger.info("Trying to load module [{}]", clazz); + logger.info("Trying to load module [%s]", clazz); Object ob = Class.forName(clazz) .getConstructor(configuration.getClass(), Environment.class) @@ -180,7 +185,7 @@ protected List addModules(T configuration, Environment environment) modules.add((AppModule) ob); } catch (Exception e) { - logger.error("Could not instantiate module [" + clazz + "]", e); + logger.error(e, "Could not instantiate module [%s]", clazz); } } return modules; @@ -205,10 +210,10 @@ protected List addManagedApps( Class c = Class.forName(clazz); LifecycleEnvironment lifecycle = environment.lifecycle(); lifecycle.manage((Managed) injector.getInstance(c)); - logger.info("op=register type=managed item={}", c); + logger.info("op=register type=managed item=%s", c); } catch (Exception e) { - logger.error("Error loading managed app", e); + logger.error(e, "Error loading managed app"); } }); return managedApps; @@ -220,7 +225,7 @@ private void registerTasks(Environment environment, Injector injector) classes.forEach( c -> { environment.admin().addTask(injector.getInstance(c)); - logger.info("op=register type=task item={}", c); + logger.info("op=register type=task item=%s", c); }); } @@ -230,7 +235,7 @@ private void registerHealthChecks(Environment environment, Injector injector) classes.forEach( c -> { environment.healthChecks().register(c.getSimpleName(), injector.getInstance(c)); - logger.info("op=register type=healthcheck item={}", c); + logger.info("op=register type=healthcheck item=%s", c); }); } @@ -240,7 +245,7 @@ private void registerProviders(Environment environment, Injector injector) classes.forEach( c -> { environment.jersey().register(injector.getInstance(c)); - logger.info("op=register type=provider item={}", c); + logger.info("op=register type=provider item=%s", c); }); } @@ -250,7 +255,7 @@ private void registerResources(Environment environment, Injector injector) classes.forEach( c -> { environment.jersey().register(injector.getInstance(c)); - logger.info("op=register type=resource item={}", c); + logger.info("op=register type=resource item=%s", c); }); } @@ -259,7 +264,7 @@ private void registerAuthFilters(Environment environment, Injector injector) environment .jersey() .register(new AuthDynamicFeature(injector.getInstance(AuthFilter.class))); - logger.info("op=register type=auth filter item={}", AuthFilter.class); + logger.info("op=register type=auth filter item=%s", AuthFilter.class); environment.jersey().register(RolesAllowedDynamicFeature.class); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/LogFilterFactory.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/LogFilterFactory.java deleted file mode 100644 index af221ae70..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/LogFilterFactory.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.baseapp; - -import ch.qos.logback.classic.spi.ILoggingEvent; -import ch.qos.logback.core.filter.Filter; -import ch.qos.logback.core.spi.FilterReply; -import com.fasterxml.jackson.annotation.JsonTypeName; -import io.dropwizard.logging.common.filter.FilterFactory; - -@JsonTypeName("Log-filter-factory") -public class LogFilterFactory - implements FilterFactory -{ - @Override - public Filter build() - { - return new Filter() - { - @Override - public FilterReply decide(ILoggingEvent event) - { - //Don't leak the authentication information in the debug/trace mode - if (event.getMessage() != null && event.getMessage().contains("Authorization")) { - return FilterReply.DENY; - } - else { - return FilterReply.NEUTRAL; - } - } - }; - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index 9df16593b..04f8d11a0 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -13,11 +13,18 @@ */ package io.trino.gateway.ha; +import io.airlift.configuration.ConfigurationFactory; +import io.airlift.log.Logging; +import io.airlift.log.LoggingConfiguration; import io.dropwizard.assets.AssetsBundle; import io.dropwizard.core.setup.Bootstrap; import io.trino.gateway.baseapp.BaseApp; import io.trino.gateway.ha.config.HaGatewayConfiguration; +import java.util.Map; + +import static io.airlift.configuration.ConfigurationLoader.getSystemProperties; + public class HaGatewayLauncher extends BaseApp { @@ -37,6 +44,13 @@ public void initialize(Bootstrap bootstrap) public static void main(String[] args) throws Exception { + Logging.initialize(); + Map properties = getSystemProperties(); + ConfigurationFactory configurationFactory = new ConfigurationFactory(properties); + LoggingConfiguration configuration = configurationFactory.build(LoggingConfiguration.class); + Logging logging = Logging.initialize(); + logging.configure(configuration); + /* base package is scanned for any Resource class to be loaded by default. */ String basePackage = "io.trino"; new HaGatewayLauncher(basePackage).run(args); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java index 45e7ba8c3..fb16cb62d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java @@ -14,12 +14,11 @@ package io.trino.gateway.ha.clustermonitor; import com.google.inject.Inject; +import io.airlift.log.Logger; import io.dropwizard.lifecycle.Managed; import io.trino.gateway.ha.config.MonitorConfiguration; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.ha.router.GatewayBackendManager; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; @@ -33,7 +32,7 @@ public class ActiveClusterMonitor { public static final int MONITOR_TASK_DELAY_MIN = 1; public static final int DEFAULT_THREAD_POOL_SIZE = 20; - private static final Logger log = LoggerFactory.getLogger(ActiveClusterMonitor.class); + private static final Logger log = Logger.get(ActiveClusterMonitor.class); private final List clusterStatsObservers; private final GatewayBackendManager gatewayBackendManager; @@ -54,7 +53,7 @@ public ActiveClusterMonitor( this.gatewayBackendManager = gatewayBackendManager; this.taskDelayMin = monitorConfiguration.getTaskDelayMin(); this.clusterStatsMonitor = clusterStatsMonitor; - log.info("Running cluster monitor with task delay of {}", taskDelayMin); + log.info("Running cluster monitor with task delay of %d", taskDelayMin); } /** @@ -88,13 +87,13 @@ public void start() } } catch (Exception e) { - log.error("Error performing backend monitor tasks", e); + log.error(e, "Error performing backend monitor tasks"); } try { Thread.sleep(TimeUnit.MINUTES.toMillis(taskDelayMin)); } catch (Exception e) { - log.error("Error with monitor task", e); + log.error(e, "Error with monitor task"); } } }); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java index 1d112ebe1..e2433f672 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java @@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Strings; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.BackendStateConfiguration; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import okhttp3.Call; @@ -26,8 +27,6 @@ import okhttp3.RequestBody; import okhttp3.Response; import org.eclipse.jetty.http.HttpStatus; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.HashMap; @@ -41,7 +40,7 @@ public class ClusterStatsHttpMonitor implements ClusterStatsMonitor { - private static final Logger log = LoggerFactory.getLogger(ClusterStatsHttpMonitor.class); + private static final Logger log = Logger.get(ClusterStatsHttpMonitor.class); private static final String SESSION_USER = "sessionUser"; private final String username; @@ -61,7 +60,7 @@ public ClusterStats monitor(ProxyBackendConfiguration backend) // Fetch Cluster level Stats. String response = queryCluster(backend, UI_API_STATS_PATH); if (Strings.isNullOrEmpty(response)) { - log.error("Received null/empty response for {}", UI_API_STATS_PATH); + log.error("Received null/empty response for %s", UI_API_STATS_PATH); return clusterStats.build(); } @@ -79,14 +78,14 @@ public ClusterStats monitor(ProxyBackendConfiguration backend) .routingGroup(backend.getRoutingGroup()); } catch (Exception e) { - log.error("Error parsing cluster stats from [{}]", response, e); + log.error(e, "Error parsing cluster stats from [%s]", response); } // Fetch User Level Stats. Map clusterUserStats = new HashMap<>(); response = queryCluster(backend, UI_API_QUEUED_LIST_PATH); if (Strings.isNullOrEmpty(response)) { - log.error("Received null/empty response for {}", UI_API_QUEUED_LIST_PATH); + log.error("Received null/empty response for %s", UI_API_QUEUED_LIST_PATH); return clusterStats.build(); } try { @@ -101,7 +100,7 @@ public ClusterStats monitor(ProxyBackendConfiguration backend) } } catch (Exception e) { - log.error("Error parsing cluster user stats", e); + log.error(e, "Error parsing cluster user stats"); } return clusterStats.userQueuedCount(clusterUserStats).build(); } @@ -122,7 +121,7 @@ private OkHttpClient acquireClientWithCookie(String loginUrl) Call call = client.newCall(loginRequest); try (Response res = call.execute()) { - log.info("login request received response code {}", res.code()); + log.info("login request received response code %d", res.code()); return client; } catch (IOException e) { @@ -154,7 +153,7 @@ private String queryCluster(ProxyBackendConfiguration backend, String path) return res.body().string(); case HttpStatus.UNAUTHORIZED_401: log.info("Unauthorized to fetch cluster stats"); - log.debug("username: {}, targetUrl: {}, cookieStore: {}", + log.debug("username: %s, targetUrl: %s, cookieStore: %s", username, targetUrl, client.cookieJar().loadForRequest(HttpUrl.parse(targetUrl))); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java index 2de7a01a3..130cd7450 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java @@ -14,10 +14,9 @@ package io.trino.gateway.ha.clustermonitor; import com.google.common.util.concurrent.SimpleTimeLimiter; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.BackendStateConfiguration; import io.trino.gateway.ha.config.ProxyBackendConfiguration; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.net.MalformedURLException; import java.net.URL; @@ -35,7 +34,7 @@ public class ClusterStatsJdbcMonitor implements ClusterStatsMonitor { - private static final Logger log = LoggerFactory.getLogger(ClusterStatsJdbcMonitor.class); + private static final Logger log = Logger.get(ClusterStatsJdbcMonitor.class); private final Properties properties; // TODO Avoid using a mutable field @@ -69,7 +68,7 @@ public ClusterStats monitor(ProxyBackendConfiguration backend) properties.setProperty("SSL", String.valueOf(parsedUrl.getProtocol().equals("https"))); } catch (MalformedURLException e) { - log.error("could not parse backend url {} ", url); + log.error("could not parse backend url %s ", url); return clusterStats.build(); // TODO Invalid configuration should fail } @@ -89,10 +88,10 @@ public ClusterStats monitor(ProxyBackendConfiguration backend) .build(); } catch (TimeoutException e) { - log.error("timed out fetching status for {} backend", url, e); + log.error(e, "timed out fetching status for %s backend", url); } catch (Exception e) { - log.error("could not fetch status for {} backend", url, e); + log.error(e, "could not fetch status for %s backend", url); } return clusterStats.build(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java index 3e8a2bb89..2e1b644b5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java @@ -13,15 +13,14 @@ */ package io.trino.gateway.ha.config; +import io.airlift.log.Logger; import io.dropwizard.configuration.ConfigurationException; import io.dropwizard.configuration.YamlConfigurationFactory; import io.dropwizard.jackson.Jackson; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; public class LdapConfiguration { - private static final Logger log = LoggerFactory.getLogger(LdapConfiguration.class); + private static final Logger log = Logger.get(LdapConfiguration.class); private String ldapHost; private Integer ldapPort; private boolean useTls; @@ -73,11 +72,11 @@ public static LdapConfiguration load(String path) .build(new java.io.File(path)); } catch (java.io.IOException e) { - log.error("Error loading configuration file", e); + log.error(e, "Error loading configuration file"); throw new RuntimeException(e); } catch (ConfigurationException e) { - log.error("Error loading configuration file", e); + log.error(e, "Error loading configuration file"); throw new RuntimeException(e); } return configuration; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index 413eb282b..9922b0217 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Splitter; import com.google.common.io.CharStreams; +import io.airlift.log.Logger; import io.trino.gateway.ha.router.QueryHistoryManager; import io.trino.gateway.ha.router.RoutingGroupSelector; import io.trino.gateway.ha.router.RoutingManager; @@ -28,8 +29,6 @@ import org.eclipse.jetty.client.api.Request; import org.eclipse.jetty.http.HttpStatus; import org.eclipse.jetty.util.Callback; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.IOException; import java.net.URI; @@ -77,7 +76,7 @@ public class QueryIdCachingProxyHandler private static final Pattern EXTRACT_BETWEEN_SINGLE_QUOTES = Pattern.compile("'([^\\s']+)'"); private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); - private static final Logger log = LoggerFactory.getLogger(QueryIdCachingProxyHandler.class); + private static final Logger log = Logger.get(QueryIdCachingProxyHandler.class); private final RoutingManager routingManager; private final RoutingGroupSelector routingGroupSelector; @@ -109,7 +108,7 @@ protected static String extractQueryIdIfPresent(String path, String queryParams) } String queryId = null; - log.debug("trying to extract query id from path [{}] or queryString [{}]", path, queryParams); + log.debug("trying to extract query id from path [%s] or queryString [%s]", path, queryParams); if (path.startsWith(V1_STATEMENT_PATH) || path.startsWith(V1_QUERY_PATH)) { String[] tokens = path.split("/"); if (tokens.length >= 4) { @@ -136,7 +135,7 @@ else if (path.startsWith(TRINO_UI_PATH)) { queryId = matcher.group(1); } } - log.debug("query id in url [{}]", queryId); + log.debug("query id in url [%s]", queryId); return queryId; } @@ -152,7 +151,7 @@ static void setForwardedHostHeaderOnProxyRequest(HttpServletRequest request, hostName.append(":").append(backendUri.getPort()); } String overrideHostName = hostName.toString(); - log.debug("Incoming Request Host header : [{}], proxy request host header : [{}]", + log.debug("Incoming Request Host header : [%s], proxy request host header : [%s]", request.getHeader(HOST_HEADER), overrideHostName); proxyRequest.headers(headers -> headers.add(HOST_HEADER, overrideHostName)); @@ -171,7 +170,7 @@ static String getQueryUser(HttpServletRequest request) String trinoUser = request.getHeader(USER_HEADER); if (!isNullOrEmpty(trinoUser)) { - log.info("user from {}", USER_HEADER); + log.info("user from %s", USER_HEADER); return trinoUser; } @@ -228,7 +227,7 @@ protected String extractQueryIdIfPresent(HttpServletRequest request) } } catch (Exception e) { - log.error("Error extracting query payload from request", e); + log.error(e, "Error extracting query payload from request"); } return extractQueryIdIfPresent(path, queryParams); @@ -243,13 +242,13 @@ public void preConnectionHook(HttpServletRequest request, Request proxyRequest) try { String requestBody = CharStreams.toString(request.getReader()); log.info( - "Processing request endpoint: [{}], payload: [{}]", + "Processing request endpoint: [%s], payload: [%s]", request.getRequestURI(), requestBody); debugLogHeaders(request); } catch (Exception e) { - log.warn("Error fetching the request payload", e); + log.warn(e, "Error fetching the request payload"); } } @@ -298,7 +297,7 @@ public String rewriteTarget(HttpServletRequest request) private void logRewrite(String newBackend, HttpServletRequest request) { - log.info("Rerouting [{}://{}:{}{}{}]--> [{}]", + log.info("Rerouting [%s://%s:%s%s%s]--> [%s]", request.getScheme(), request.getRemoteHost(), request.getServerPort(), @@ -331,7 +330,7 @@ private String getPreviousBackend(HttpServletRequest request) if (!isNullOrEmpty(queryId)) { return routingManager.findBackendForQueryId(queryId); } - log.error("No backend found for queryId {}", queryId); + log.error("No backend found for queryId %s", queryId); return getBackendFromRoutingGroup(request); } @@ -361,10 +360,10 @@ protected void postConnectionHook( else { output = new String(buffer); } - log.debug("For Request [{}] got Response output [{}]", request.getRequestURI(), output); + log.debug("For Request [%s] got Response output [%s]", request.getRequestURI(), output); QueryHistoryManager.QueryDetail queryDetail = getQueryDetailsFromRequest(request); - log.debug("Extracting Proxy destination : [{}] for request : [{}]", + log.debug("Extracting Proxy destination : [%s] for request : [%s]", queryDetail.getBackendUrl(), request.getRequestURI()); if (response.getStatus() == HttpStatus.OK_200) { @@ -375,17 +374,17 @@ protected void postConnectionHook( routingManager.setBackendForQueryId( queryDetail.getQueryId(), queryDetail.getBackendUrl()); log.debug( - "QueryId [{}] mapped with proxy [{}]", + "QueryId [%s] mapped with proxy [%s]", queryDetail.getQueryId(), queryDetail.getBackendUrl()); } else { - log.debug("QueryId [{}] could not be cached", queryDetail.getQueryId()); + log.debug("QueryId [%s] could not be cached", queryDetail.getQueryId()); } } else { log.error( - "Non OK HTTP Status code with response [{}] , Status code [{}]", + "Non OK HTTP Status code with response [%s] , Status code [%s]", output, response.getStatus()); } @@ -393,11 +392,11 @@ protected void postConnectionHook( queryHistoryManager.submitQueryDetail(queryDetail); } else { - log.debug("SKIPPING For {}", requestPath); + log.debug("SKIPPING For %s", requestPath); } } catch (Exception e) { - log.error("Error in proxying falling back to super call", e); + log.error(e, "Error in proxying falling back to super call"); } super.postConnectionHook(request, response, buffer, offset, length, callback); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java b/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java new file mode 100644 index 000000000..a8117bbb8 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java @@ -0,0 +1,32 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.log; + +import io.airlift.log.Logger; +import org.eclipse.jetty.server.Request; +import org.eclipse.jetty.server.RequestLog; +import org.eclipse.jetty.server.Response; + +public class GatewayRequestLog + implements RequestLog +{ + private static final Logger log = Logger.get(GatewayRequestLog.class); + + @Override + public void log(Request request, Response response) + { + // Logging without filter as both request and response don't contain sensitive information + log.debug("Request: %s, response: %s", request, response); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java b/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java new file mode 100644 index 000000000..101cf89a6 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.log; + +import io.dropwizard.request.logging.RequestLogFactory; +import org.eclipse.jetty.server.RequestLog; + +public class GatewayRequestLogFactory + implements RequestLogFactory +{ + @Override + public boolean isEnabled() + { + return true; + } + + @Override + public RequestLog build(String name) + { + return new GatewayRequestLog(); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java b/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java index ace9f9a68..89e279287 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/notifier/EmailNotifier.java @@ -13,14 +13,13 @@ */ package io.trino.gateway.ha.notifier; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.NotifierConfiguration; import jakarta.mail.Message; import jakarta.mail.Session; import jakarta.mail.Transport; import jakarta.mail.internet.InternetAddress; import jakarta.mail.internet.MimeMessage; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.List; import java.util.Properties; @@ -31,7 +30,7 @@ public class EmailNotifier implements Notifier { - private static final Logger log = LoggerFactory.getLogger(EmailNotifier.class); + private static final Logger log = Logger.get(EmailNotifier.class); private final NotifierConfiguration notifierConfiguration; private final Properties props; @@ -82,7 +81,7 @@ public void sendNotification( message.addRecipient(Message.RecipientType.TO, new InternetAddress(r)); } catch (Exception e) { - log.error("Recipient email [" + e + "] could not be added", e); + log.error(e, "Recipient email [%s] could not be added", r); } }); message.setSubject(subject); @@ -100,16 +99,16 @@ public void sendNotification( transport.sendMessage(message, message.getAllRecipients()); } catch (Exception e) { - log.error("Error creating email transport client", e); + log.error(e, "Error creating email transport client"); } - log.debug("Sent message [{}] successfully.", content); + log.debug("Sent message [%s] successfully.", content); } catch (Exception e) { - log.error("Error sending alert", e); + log.error(e, "Error sending alert"); } } else { - log.warn("No recipients configured to send app notification [{}]", content); + log.warn("No recipients configured to send app notification [%s]", content); } } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java index fe55123be..b2d5fa601 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java @@ -13,14 +13,13 @@ */ package io.trino.gateway.ha.persistence; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.DataStoreConfiguration; import io.trino.gateway.ha.persistence.dao.QueryHistoryDao; import jakarta.annotation.Nullable; import org.javalite.activejdbc.Base; import org.jdbi.v3.core.Jdbi; import org.jdbi.v3.sqlobject.SqlObjectPlugin; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; @@ -30,7 +29,7 @@ public class JdbcConnectionManager { - private static final Logger log = LoggerFactory.getLogger(JdbcConnectionManager.class); + private static final Logger log = Logger.get(JdbcConnectionManager.class); private final Jdbi jdbi; private final DataStoreConfiguration configuration; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java index 6065ca190..8eb6cba5c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java @@ -17,6 +17,7 @@ import com.google.common.base.Strings; import com.google.common.collect.ImmutableList; import com.google.inject.Inject; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.ha.router.GatewayBackendManager; import io.trino.gateway.ha.router.ResourceGroupsManager; @@ -32,8 +33,6 @@ import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.Arrays; @@ -48,7 +47,7 @@ public class EntityEditorResource { public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); - private static final Logger log = LoggerFactory.getLogger(EntityEditorResource.class); + private static final Logger log = Logger.get(EntityEditorResource.class); private final GatewayBackendManager gatewayBackendManager; private final ResourceGroupsManager resourceGroupsManager; @@ -87,7 +86,7 @@ public Response updateEntity( ProxyBackendConfiguration backend = OBJECT_MAPPER.readValue(jsonPayload, ProxyBackendConfiguration.class); gatewayBackendManager.updateBackend(backend); - log.info("Setting up the backend {} with healthy state", backend.getName()); + log.info("Setting up the backend %s with healthy state", backend.getName()); routingManager.upateBackEndHealth(backend.getName(), true); break; case RESOURCE_GROUP: @@ -112,7 +111,7 @@ public Response updateEntity( } } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e, e.getMessage()); throw new WebApplicationException(e); } return Response.ok().build(); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayResource.java index 699ebcdd2..7539af2f4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayResource.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.resource; import com.google.inject.Inject; +import io.airlift.log.Logger; import io.trino.gateway.ha.router.GatewayBackendManager; import jakarta.annotation.security.RolesAllowed; import jakarta.ws.rs.GET; @@ -25,8 +26,6 @@ import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Request; import jakarta.ws.rs.core.Response; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import static java.util.Objects.requireNonNull; @@ -35,7 +34,7 @@ @Produces(MediaType.APPLICATION_JSON) public class GatewayResource { - private static final Logger log = LoggerFactory.getLogger(GatewayResource.class); + private static final Logger log = Logger.get(GatewayResource.class); private final GatewayBackendManager gatewayBackendManager; @@ -73,7 +72,7 @@ public Response deactivateBackend(@PathParam("name") String name) this.gatewayBackendManager.deactivateBackend(name); } catch (Exception e) { - log.error(e.getMessage(), e); + log.error(e, e.getMessage()); return throwError(e); } return Response.ok().build(); @@ -87,7 +86,7 @@ public Response activateBackend(@PathParam("name") String name) this.gatewayBackendManager.activateBackend(name); } catch (Exception e) { - log.error(e.getMessage(), e); + log.error(e); return throwError(e); } return Response.ok().build(); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java index 227a598e4..fda54ee3f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/TrinoResource.java @@ -17,6 +17,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Strings; import com.google.inject.Inject; +import io.airlift.log.Logger; import io.trino.gateway.ha.router.ResourceGroupsManager; import jakarta.annotation.security.RolesAllowed; import jakarta.ws.rs.GET; @@ -28,8 +29,6 @@ import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.List; @@ -45,7 +44,7 @@ public class TrinoResource { public static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); - private static final Logger log = LoggerFactory.getLogger(TrinoResource.class); + private static final Logger log = Logger.get(TrinoResource.class); private final ResourceGroupsManager resourceGroupsManager; @@ -69,7 +68,7 @@ public Response createResourceGroup( return Response.ok(newResourceGroup).build(); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); throw new WebApplicationException(e); } } @@ -108,7 +107,7 @@ public Response updateResourceGroup( return Response.ok(updatedResourceGroup).build(); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); throw new WebApplicationException(e); } } @@ -137,7 +136,7 @@ public Response createSelector( return Response.ok(updatedSelector).build(); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); throw new WebApplicationException(e); } } @@ -179,7 +178,7 @@ public Response updateSelector( return Response.ok(updatedSelector).build(); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); throw new WebApplicationException(e); } } @@ -198,7 +197,7 @@ public Response deleteSelector(String jsonPayload, resourceGroupsManager.deleteSelector(selector, useSchema); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); } return Response.ok().build(); } @@ -218,7 +217,7 @@ public Response createGlobalProperty( return Response.ok(newGlobalProperty).build(); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); throw new WebApplicationException(e); } } @@ -257,7 +256,7 @@ public Response updateGlobalProperty( return Response.ok(updatedGlobalProperty).build(); } catch (IOException e) { - log.error(e.getMessage(), e); + log.error(e); throw new WebApplicationException(e); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaGatewayManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaGatewayManager.java index 846ee94a1..efa5a8a97 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaGatewayManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaGatewayManager.java @@ -14,12 +14,11 @@ package io.trino.gateway.ha.router; import com.google.common.collect.ImmutableList; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.ha.persistence.dao.GatewayBackend; import io.trino.gateway.ha.persistence.dao.GatewayBackendDao; import org.jdbi.v3.core.Jdbi; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.List; @@ -30,7 +29,7 @@ public class HaGatewayManager implements GatewayBackendManager { - private static final Logger log = LoggerFactory.getLogger(HaGatewayManager.class); + private static final Logger log = Logger.get(HaGatewayManager.class); private final GatewayBackendDao dao; @@ -61,7 +60,7 @@ public List getActiveAdhocBackends() return upcast(proxyBackendList); } catch (Exception e) { - log.info("Error fetching all backends: {}", e.getLocalizedMessage()); + log.info("Error fetching all backends: %s", e.getLocalizedMessage()); } return ImmutableList.of(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java index aef97440d..e85fd1b4a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java @@ -14,13 +14,12 @@ package io.trino.gateway.ha.router; import com.google.common.base.Strings; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import io.airlift.log.Logger; public class HaRoutingManager extends RoutingManager { - private static final Logger log = LoggerFactory.getLogger(HaRoutingManager.class); + private static final Logger log = Logger.get(HaRoutingManager.class); QueryHistoryManager queryHistoryManager; public HaRoutingManager( @@ -36,7 +35,7 @@ protected String findBackendForUnknownQueryId(String queryId) String backend; backend = queryHistoryManager.getBackendForQueryId(queryId); if (Strings.isNullOrEmpty(backend)) { - log.debug("Unable to find backend mapping for [{}]. Searching for suitable backend", queryId); + log.debug("Unable to find backend mapping for [%s]. Searching for suitable backend", queryId); backend = super.findBackendForUnknownQueryId(queryId); } return backend; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java index 08643c110..8a9707c9d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java @@ -16,12 +16,11 @@ import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; +import io.airlift.log.Logger; import io.trino.gateway.ha.clustermonitor.ClusterStats; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.proxyserver.ProxyServerConfiguration; import jakarta.ws.rs.HttpMethod; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.net.HttpURLConnection; import java.net.URL; @@ -43,7 +42,7 @@ public abstract class RoutingManager { private static final Random RANDOM = new Random(); - private static final Logger log = LoggerFactory.getLogger(RoutingManager.class); + private static final Logger log = Logger.get(RoutingManager.class); private final LoadingCache queryIdBackendCache; private final ExecutorService executorService = Executors.newFixedThreadPool(5); private final GatewayBackendManager gatewayBackendManager; @@ -120,14 +119,14 @@ public String findBackendForQueryId(String queryId) backendAddress = queryIdBackendCache.get(queryId); } catch (ExecutionException e) { - log.error("Exception while loading queryId from cache {}", e.getLocalizedMessage()); + log.error("Exception while loading queryId from cache %s", e.getLocalizedMessage()); } return backendAddress; } public void upateBackEndHealth(String backendId, Boolean value) { - log.info("backend {} isHealthy {}", backendId, value); + log.info("backend %s isHealthy %s", backendId, value); backendToHealth.put(backendId, value); } @@ -171,7 +170,7 @@ protected String findBackendForUnknownQueryId(String queryId) if (entry.getValue().isDone()) { int responseCode = entry.getValue().get(); if (responseCode == 200) { - log.info("Found query [{}] on backend [{}]", queryId, entry.getKey()); + log.info("Found query [%s] on backend [%s]", queryId, entry.getKey()); setBackendForQueryId(queryId, entry.getKey()); return entry.getKey(); } @@ -179,7 +178,7 @@ protected String findBackendForUnknownQueryId(String queryId) } } catch (Exception e) { - log.warn("Query id [{}] not found", queryId); + log.warn("Query id [%s] not found", queryId); } // Fallback on first active backend if queryId mapping not found. return gatewayBackendManager.getActiveAdhocBackends().get(0).getProxyTo(); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RuleReloadingRoutingGroupSelector.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RuleReloadingRoutingGroupSelector.java index 0ca3f56fb..0072c44de 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RuleReloadingRoutingGroupSelector.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RuleReloadingRoutingGroupSelector.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.router; +import io.airlift.log.Logger; import jakarta.servlet.http.HttpServletRequest; import org.jeasy.rules.api.Facts; import org.jeasy.rules.api.Rules; @@ -20,7 +21,6 @@ import org.jeasy.rules.core.DefaultRulesEngine; import org.jeasy.rules.mvel.MVELRuleFactory; import org.jeasy.rules.support.reader.YamlRuleDefinitionReader; -import org.slf4j.LoggerFactory; import java.io.FileReader; import java.nio.file.Files; @@ -36,7 +36,7 @@ public class RuleReloadingRoutingGroupSelector implements RoutingGroupSelector { - private static final org.slf4j.Logger log = LoggerFactory.getLogger(RuleReloadingRoutingGroupSelector.class); + private static final Logger log = Logger.get(RuleReloadingRoutingGroupSelector.class); private final RulesEngine rulesEngine = new DefaultRulesEngine(); private final MVELRuleFactory ruleFactory = new MVELRuleFactory(new YamlRuleDefinitionReader()); private final String rulesConfigPath; @@ -55,8 +55,8 @@ public class RuleReloadingRoutingGroupSelector lastUpdatedTime = attr.lastModifiedTime().toMillis(); } catch (Exception e) { - log.error("Error opening rules configuration file, using " - + "routing group header as default.", e); + log.error(e, "Error opening rules configuration file, using " + + "routing group header as default."); } } @@ -66,7 +66,7 @@ public String findRoutingGroup(HttpServletRequest request) try { BasicFileAttributes attr = Files.readAttributes(Path.of(rulesConfigPath), BasicFileAttributes.class); - log.debug("File modified time: " + attr.lastModifiedTime() + ". lastUpdatedTime: " + lastUpdatedTime); + log.debug("File modified time: %s. lastUpdatedTime: %s", attr.lastModifiedTime(), lastUpdatedTime); if (attr.lastModifiedTime().toMillis() > lastUpdatedTime) { Lock writeLock = readWriteLock.writeLock(); writeLock.lock(); @@ -74,7 +74,7 @@ public String findRoutingGroup(HttpServletRequest request) if (attr.lastModifiedTime().toMillis() > lastUpdatedTime) { // This check is performed again to prevent parsing the rules twice in case another // thread finds the condition true and acquires the lock before this one - log.info("Updating rules to file modified at {}", attr.lastModifiedTime()); + log.info("Updating rules to file modified at %s", attr.lastModifiedTime()); rules = ruleFactory.createRules( new FileReader(rulesConfigPath, UTF_8)); lastUpdatedTime = attr.lastModifiedTime().toMillis(); @@ -99,8 +99,8 @@ public String findRoutingGroup(HttpServletRequest request) return result.get("routingGroup"); } catch (Exception e) { - log.error("Error opening rules configuration file, using " - + "routing group header as default.", e); + log.error(e, "Error opening rules configuration file, using " + + "routing group header as default."); // Invalid rules could lead to perf problems as every thread goes into the writeLock // block until the issue is resolved } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java index f37d84b68..14a0f6467 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java @@ -16,10 +16,9 @@ import com.google.common.base.Strings; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Table; +import io.airlift.log.Logger; import io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor; import io.trino.gateway.ha.config.ProxyBackendConfiguration; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.Collection; import java.util.Collections; @@ -47,7 +46,7 @@ public class TrinoQueueLengthRoutingTable extends HaRoutingManager { - private static final Logger log = LoggerFactory.getLogger(TrinoQueueLengthRoutingTable.class); + private static final Logger log = Logger.get(TrinoQueueLengthRoutingTable.class); private static final Random RANDOM = new Random(); private static final int MIN_WT = 1; private static final int MAX_WT = 100; @@ -141,19 +140,19 @@ private void computeWeightsBasedOnQueueLength(ConcurrentHashMap weightsMap = new TreeMap<>(); if (queueLengthMap.get(routingGroup).size() == 0) { - log.warn("No active clusters in routingGroup : [{}]. Continue to " + log.warn("No active clusters in routingGroup : [%s]. Continue to " + "process rest of routing table ", routingGroup); continue; } else if (queueLengthMap.get(routingGroup).size() == 1) { - log.debug("Routing Group: [{}] has only 1 active backend.", routingGroup); + log.debug("Routing Group: [%s] has only 1 active backend.", routingGroup); weightedDistributionRouting.put(routingGroup, new TreeMap<>(ImmutableMap.of(MAX_WT, queueLengthMap.get(routingGroup).keys().nextElement()))); routingGroupWeightSum.put(routingGroup, MAX_WT); @@ -192,7 +191,7 @@ else if (queueLengthMap.get(routingGroup).size() == 1) { if (log.isDebugEnabled()) { for (String rg : weightedDistributionRouting.keySet()) { - log.debug("Routing Table for : [{}] is [{}]", rg, + log.debug("Routing Table for : [%s] is [%s]", rg, weightedDistributionRouting.get(rg).toString()); } } @@ -209,8 +208,8 @@ public void updateRoutingTable(String routingGroup, Set backends) { synchronized (lockObject) { if (clusterQueueLengthMap.containsKey(routingGroup)) { - log.debug("Update routing table for routing group : [{}]" - + " with active backends : [{}]", routingGroup, backends.toString()); + log.debug("Update routing table for routing group : [%s]" + + " with active backends : [%s]", routingGroup, backends.toString()); Collection knownBackends = new HashSet(); knownBackends.addAll(clusterQueueLengthMap.get(routingGroup).keySet()); @@ -238,7 +237,7 @@ public void updateRoutingTable(Table updatedQueueLength Table updatedUserQueueLengthMap) { synchronized (lockObject) { - log.debug("Update Routing table with new cluster queue lengths : [{}]", + log.debug("Update Routing table with new cluster queue lengths : [%s]", updatedQueueLengthMap.toString()); clusterQueueLengthMap.clear(); userClusterQueueLengthMap.clear(); @@ -262,8 +261,8 @@ public void updateRoutingTable(Table updatedQueueLength if (minQueueLen == maxQueueLen && updatedQueueLengthMap.row(grp).size() > 1 && updatedRunningLengthMap.containsRow(grp)) { - log.info("Queue lengths equal: {} for all clusters in the group {}." - + " Falling back to Running Counts : {}", maxQueueLen, grp, + log.info("Queue lengths equal: %s for all clusters in the group %s." + + " Falling back to Running Counts : %s", maxQueueLen, grp, updatedRunningLengthMap.row(grp)); queueMap.putAll(updatedRunningLengthMap.row(grp)); } @@ -320,7 +319,7 @@ public String getEligibleBackEnd(String routingGroup, String user) } // If all clusters have the same queue count, then fallback to the older weighted logic. if (!Strings.isNullOrEmpty(leastQueuedCluster) && !minQueueCount.equals(maxQueueCount)) { - log.debug("{} routing to:{}. userQueueCount:{}", user, leastQueuedCluster, minQueueCount); + log.debug("%s routing to:%s. userQueueCount:%s", user, leastQueuedCluster, minQueueCount); return leastQueuedCluster; } @@ -357,7 +356,7 @@ public String provideBackendForRoutingGroup(String routingGroup, String user) updateRoutingTable(routingGroup, proxyMap.keySet()); String clusterId = getEligibleBackEnd(routingGroup, user); - log.debug("Routing to eligible backend : [{}] for routing group: [{}]", + log.debug("Routing to eligible backend : [%s] for routing group: [%s]", clusterId, routingGroup); if (clusterId != null) { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java index 5d56dba33..ba1e70e3f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java @@ -13,17 +13,16 @@ */ package io.trino.gateway.ha.security; +import io.airlift.log.Logger; import io.dropwizard.auth.Authorizer; import io.trino.gateway.ha.config.AuthorizationConfiguration; import jakarta.annotation.Nullable; import jakarta.ws.rs.container.ContainerRequestContext; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; public class LbAuthorizer implements Authorizer { - private static final Logger log = LoggerFactory.getLogger(LbAuthorizer.class); + private static final Logger log = Logger.get(LbAuthorizer.class); private final AuthorizationConfiguration configuration; public LbAuthorizer(AuthorizationConfiguration configuration) @@ -38,25 +37,25 @@ public boolean authorize(LbPrincipal principal, { switch (role) { case "ADMIN": - log.info("User '{}' with memberOf({}) was identified as ADMIN({})", + log.info("User '%s' with memberOf(%s) was identified as ADMIN(%s)", principal.getName(), principal.getMemberOf(), configuration.getAdmin()); return principal.getMemberOf() .filter(m -> m.matches(configuration.getAdmin())) .isPresent(); case "USER": - log.info("User '{}' with memberOf({}) identified as USER({})", + log.info("User '%s' with memberOf(%s) identified as USER(%s)", principal.getName(), principal.getMemberOf(), configuration.getUser()); return principal.getMemberOf() .filter(m -> m.matches(configuration.getUser())) .isPresent(); case "API": - log.info("User '{}' with memberOf({}) identified as API({})", + log.info("User '%s' with memberOf(%s) identified as API(%s)", principal.getName(), principal.getMemberOf(), configuration.getApi()); return principal.getMemberOf() .filter(m -> m.matches(configuration.getApi())) .isPresent(); default: - log.warn("User '{}' with role {} has no regex match based on ldap search", + log.warn("User '%s' with role %s has no regex match based on ldap search", principal.getName(), role); return false; } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java index 2a7008d1b..53ee4ed34 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java @@ -18,14 +18,13 @@ import com.auth0.jwt.exceptions.JWTCreationException; import com.auth0.jwt.interfaces.Claim; import com.auth0.jwt.interfaces.DecodedJWT; +import io.airlift.log.Logger; import io.dropwizard.auth.basic.BasicCredentials; import io.trino.gateway.ha.config.FormAuthConfiguration; import io.trino.gateway.ha.config.LdapConfiguration; import io.trino.gateway.ha.config.UserConfiguration; import io.trino.gateway.ha.domain.Result; import io.trino.gateway.ha.domain.request.RestLoginRequest; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.Collections; import java.util.List; @@ -35,7 +34,7 @@ public class LbFormAuthManager { - private static final Logger log = LoggerFactory.getLogger(LbFormAuthManager.class); + private static final Logger log = Logger.get(LbFormAuthManager.class); /** * Cookie key to pass the token. */ @@ -106,7 +105,7 @@ public Optional> getClaimsFromIdToken(String idToken) } } catch (Exception exc) { - log.error("Could not validate token or get claims from it.", exc); + log.error(exc, "Could not validate token or get claims from it."); } return Optional.empty(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbLdapClient.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbLdapClient.java index 2309f70c9..c36ecccb5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbLdapClient.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbLdapClient.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.security; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.LdapConfiguration; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import org.apache.directory.api.ldap.model.entry.Entry; @@ -27,14 +28,12 @@ import org.apache.directory.ldap.client.template.LdapConnectionTemplate; import org.apache.directory.ldap.client.template.PasswordWarning; import org.apache.directory.ldap.client.template.exception.PasswordException; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.List; public class LbLdapClient { - private static final Logger log = LoggerFactory.getLogger(LbLdapClient.class); + private static final Logger log = Logger.get(LbLdapClient.class); private LdapConnectionTemplate ldapConnectionTemplate; private LdapConfiguration config; private UserEntryMapper userRecordEntryMapper; @@ -85,12 +84,12 @@ public boolean authenticate(String user, String password) password.toCharArray()); if (passwordWarning != null) { - log.warn("password warning {}", passwordWarning); + log.warn("password warning %s", passwordWarning); return true; } } catch (PasswordException exception) { - log.error("Failed to authenticate {}", exception.getResultCode()); + log.error("Failed to authenticate %s", exception.getResultCode()); return false; } log.info("Authenticated successfully"); @@ -111,7 +110,7 @@ public String getMemberOf(String user) String memberOf = ""; if (list != null && !list.isEmpty()) { memberOf = list.listIterator().next().getMemberOf(); - log.debug("Member of {}", memberOf); + log.debug("Member of %s", memberOf); } return memberOf; } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index c3694183c..b6867a0cc 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -22,14 +22,13 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.OAuthConfiguration; import jakarta.ws.rs.client.Client; import jakarta.ws.rs.client.ClientBuilder; import jakarta.ws.rs.client.Entity; import jakarta.ws.rs.core.Form; import jakarta.ws.rs.core.Response; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.net.URI; import java.net.URL; @@ -45,7 +44,7 @@ public class LbOAuthManager { - private static final Logger log = LoggerFactory.getLogger(LbOAuthManager.class); + private static final Logger log = Logger.get(LbOAuthManager.class); /** * Cookie key to pass the token. */ @@ -145,7 +144,7 @@ public Optional> getClaimsFromIdToken(String idToken) } } catch (Exception exc) { - log.error("Could not validate token or get claims from it.", exc); + log.error(exc, "Could not validate token or get claims from it."); } return Optional.empty(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java index aecdc6156..a23b2849a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java @@ -17,8 +17,7 @@ import com.auth0.jwt.algorithms.Algorithm; import com.auth0.jwt.interfaces.DecodedJWT; import com.auth0.jwt.interfaces.Verification; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import io.airlift.log.Logger; import java.security.interfaces.RSAPublicKey; import java.util.List; @@ -26,7 +25,7 @@ public final class LbTokenUtil { - private static final Logger log = LoggerFactory.getLogger(LbTokenUtil.class); + private static final Logger log = Logger.get(LbTokenUtil.class); /** * Cookie key to pass the token. @@ -42,7 +41,7 @@ public static boolean validateToken(String idToken, RSAPublicKey publicKey, Stri if (log.isDebugEnabled()) { DecodedJWT jwt = JWT.decode(idToken); jwt.getClaims().forEach( - (key, value) -> log.debug("JWT {} : {}", key, value)); + (key, value) -> log.debug("JWT %s : %s", key, value)); } Algorithm algorithm = Algorithm.RSA256(publicKey, null); @@ -55,7 +54,7 @@ public static boolean validateToken(String idToken, RSAPublicKey publicKey, Stri verification.build().verify(idToken); } catch (Exception exc) { - log.error("Could not validate token.", exc); + log.error(exc, "Could not validate token."); return false; } return true; diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java index 00ef2ad66..088536940 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java @@ -13,13 +13,12 @@ */ package io.trino.gateway.proxyserver; +import io.airlift.log.Logger; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import org.eclipse.jetty.client.api.Request; import org.eclipse.jetty.http.HttpHeader; import org.eclipse.jetty.util.Callback; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.BufferedReader; import java.io.ByteArrayInputStream; @@ -33,7 +32,7 @@ /* Order of control => rewriteTarget, preConnectionHook, postConnectionHook. */ public class ProxyHandler { - private static final Logger log = LoggerFactory.getLogger(ProxyHandler.class); + private static final Logger log = Logger.get(ProxyHandler.class); protected String rewriteTarget(HttpServletRequest request) { diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java index a984256a2..6b823ac0f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.proxyserver; +import io.airlift.log.Logger; import jakarta.servlet.DispatcherType; import org.eclipse.jetty.http.HttpScheme; import org.eclipse.jetty.proxy.ConnectHandler; @@ -25,8 +26,6 @@ import org.eclipse.jetty.servlet.ServletContextHandler; import org.eclipse.jetty.servlet.ServletHolder; import org.eclipse.jetty.util.ssl.SslContextFactory; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.Closeable; import java.io.File; @@ -38,7 +37,7 @@ public class ProxyServer implements Closeable { - private static final Logger log = LoggerFactory.getLogger(ProxyServer.class); + private static final Logger log = Logger.get(ProxyServer.class); private final Server server; private final ProxyServletImpl proxy; private final ProxyHandler proxyHandler; @@ -135,7 +134,7 @@ public void start() this.server.start(); } catch (Exception e) { - log.error("Error starting proxy server", e); + log.error(e, "Error starting proxy server"); throw new IllegalStateException(e); } } @@ -147,7 +146,7 @@ public void close() this.server.stop(); } catch (Exception e) { - log.error("Could not close the proxy server", e); + log.error(e, "Could not close the proxy server"); } } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java index 50bf41ff0..5267d7c89 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.proxyserver; +import io.airlift.log.Logger; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import org.eclipse.jetty.client.HttpClient; @@ -23,15 +24,13 @@ import org.eclipse.jetty.proxy.ProxyServlet; import org.eclipse.jetty.util.Callback; import org.eclipse.jetty.util.ssl.SslContextFactory; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.concurrent.TimeUnit; public class ProxyServletImpl extends ProxyServlet.Transparent { - private static final Logger log = LoggerFactory.getLogger(ProxyServletImpl.class); + private static final Logger log = Logger.get(ProxyServletImpl.class); private ProxyHandler proxyHandler; private ProxyServerConfiguration serverConfig; @@ -113,10 +112,7 @@ protected void onResponseContent( Callback callback) { try { - if (this._log.isDebugEnabled()) { - this._log.debug( - "[{}] proxying content to downstream: [{}] bytes", this.getRequestId(request), length); - } + log.debug("[%d] proxying content to downstream: [%d] bytes", this.getRequestId(request), length); if (this.proxyHandler != null) { proxyHandler.postConnectionHook(request, response, buffer, offset, length, callback); } diff --git a/gateway-ha/src/main/resources/META-INF/services/io.dropwizard.logging.common.filter.FilterFactory b/gateway-ha/src/main/resources/META-INF/services/io.dropwizard.logging.common.filter.FilterFactory deleted file mode 100644 index 1595bd83f..000000000 --- a/gateway-ha/src/main/resources/META-INF/services/io.dropwizard.logging.common.filter.FilterFactory +++ /dev/null @@ -1,2 +0,0 @@ -io.trino.gateway.baseapp.LogFilterFactory - diff --git a/gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css b/gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css new file mode 100644 index 000000000..d11631625 --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css @@ -0,0 +1 @@ +@keyframes slide-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-from-top{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.light{--login-shadow: 0px 4px 14px 0px #0000001a, 0px 0px 1px 0px #0000004d;--semi-color-bg-0: rgba(245, 245, 245, 1)}.dark{--login-shadow: 0px 4px 14px 0px #FFFFFF1a, 0px 0px 1px 0px #FFFFFF4d}:root{--login-shadow: 0px 4px 14px 0px #0000001a, 0px 0px 1px 0px #0000004d;--semi-color-bg-0: rgba(245, 245, 245, 1);font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}@media (prefers-color-scheme: dark){:root{--login-shadow: 0px 4px 14px 0px #FFFFFF1a, 0px 0px 1px 0px #FFFFFF4d}}body{padding:0;margin:0;color:var(--semi-color-text-0);background:var(--semi-color-bg-0)}body{--semi-transition_duration-slowest:0ms;--semi-transition_duration-slower:0ms;--semi-transition_duration-slow:0ms;--semi-transition_duration-normal:0ms;--semi-transition_duration-fast:0ms;--semi-transition_duration-faster:0ms;--semi-transition_duration-fastest:0ms;--semi-transition_duration-none:0ms;--semi-transition_function-linear:linear;--semi-transition_function-ease:ease;--semi-transition_function-easeIn:ease-in;--semi-transition_function-easeOut:ease-out;--semi-transition_function-easeInIOut:ease-in-out;--semi-transition_delay-none: 0ms;--semi-transition_delay-slowest:0ms;--semi-transition_delay-slower:0ms;--semi-transition_delay-slow:0ms;--semi-transition_delay-normal:0ms;--semi-transition_delay-fast:0ms;--semi-transition_delay-faster:0ms;--semi-transition_delay-fastest:0ms;--semi-transform_scale-none:scale(1,1);--semi-transform_scale-small:scale(1,1);--semi-transform_scale-medium:scale(1,1);--semi-transform_scale-large:scale(1,1);--semi-transform-rotate-none:rotate(0deg);--semi-transform_rotate-clockwise90deg:rotate(90deg);--semi-transform_rotate-clockwise180deg:rotate(180deg);--semi-transform_rotate-clockwise270deg:rotate(270deg);--semi-transform_rotate-clockwise360deg:rotate(360deg);--semi-transform_rotate-anticlockwise90deg:rotate(-90deg);--semi-transform_rotate-anticlockwise180deg:rotate(-180deg);--semi-transform_rotate-anticlockwise270deg:rotate(-270deg);--semi-transform_rotate-anticlockwise360deg:rotate(-360deg)}body,body .semi-always-light{--semi-amber-0: 254,251,235;--semi-amber-1: 252,245,206;--semi-amber-2: 249,232,158;--semi-amber-3: 246,216,111;--semi-amber-4: 243,198,65;--semi-amber-5: 240,177,20;--semi-amber-6: 200,138,15;--semi-amber-7: 160,102,10;--semi-amber-8: 120,70,6;--semi-amber-9: 80,43,3;--semi-black: 0,0,0;--semi-blue-0: 234,245,255;--semi-blue-1: 203,231,254;--semi-blue-2: 152,205,253;--semi-blue-3: 101,178,252;--semi-blue-4: 50,149,251;--semi-blue-5: 0,100,250;--semi-blue-6: 0,98,214;--semi-blue-7: 0,79,179;--semi-blue-8: 0,61,143;--semi-blue-9: 0,44,107;--semi-cyan-0: 229,247,248;--semi-cyan-1: 194,239,240;--semi-cyan-2: 138,221,226;--semi-cyan-3: 88,203,211;--semi-cyan-4: 44,184,197;--semi-cyan-5: 5,164,182;--semi-cyan-6: 3,134,152;--semi-cyan-7: 1,105,121;--semi-cyan-8: 0,77,91;--semi-cyan-9: 0,50,61;--semi-green-0: 236,247,236;--semi-green-1: 208,240,209;--semi-green-2: 164,224,167;--semi-green-3: 125,209,130;--semi-green-4: 90,194,98;--semi-green-5: 59,179,70;--semi-green-6: 48,149,59;--semi-green-7: 37,119,47;--semi-green-8: 27,89,36;--semi-green-9: 17,60,24;--semi-grey-0: 249,249,249;--semi-grey-1: 230,232,234;--semi-grey-2: 198,202,205;--semi-grey-3: 167,171,176;--semi-grey-4: 136,141,146;--semi-grey-5: 107,112,117;--semi-grey-6: 85,91,97;--semi-grey-7: 65,70,76;--semi-grey-8: 46,50,56;--semi-grey-9: 28,31,35;--semi-indigo-0: 236,239,248;--semi-indigo-1: 209,216,240;--semi-indigo-2: 167,179,225;--semi-indigo-3: 128,144,211;--semi-indigo-4: 94,111,196;--semi-indigo-5: 63,81,181;--semi-indigo-6: 51,66,161;--semi-indigo-7: 40,52,140;--semi-indigo-8: 31,40,120;--semi-indigo-9: 23,29,99;--semi-light-blue-0: 233,247,253;--semi-light-blue-1: 201,236,252;--semi-light-blue-2: 149,216,248;--semi-light-blue-3: 98,195,245;--semi-light-blue-4: 48,172,241;--semi-light-blue-5: 0,149,238;--semi-light-blue-6: 0,123,202;--semi-light-blue-7: 0,99,167;--semi-light-blue-8: 0,75,131;--semi-light-blue-9: 0,53,95;--semi-light-green-0: 243,248,236;--semi-light-green-1: 227,240,208;--semi-light-green-2: 200,226,165;--semi-light-green-3: 173,211,126;--semi-light-green-4: 147,197,91;--semi-light-green-5: 123,182,60;--semi-light-green-6: 100,152,48;--semi-light-green-7: 78,121,38;--semi-light-green-8: 57,91,27;--semi-light-green-9: 37,61,18;--semi-lime-0: 242,250,230;--semi-lime-1: 227,246,197;--semi-lime-2: 203,237,142;--semi-lime-3: 183,227,91;--semi-lime-4: 167,218,44;--semi-lime-5: 155,209,0;--semi-lime-6: 126,174,0;--semi-lime-7: 99,139,0;--semi-lime-8: 72,104,0;--semi-lime-9: 47,70,0;--semi-orange-0: 255,248,234;--semi-orange-1: 254,238,204;--semi-orange-2: 254,217,152;--semi-orange-3: 253,193,101;--semi-orange-4: 253,166,51;--semi-orange-5: 252,136,0;--semi-orange-6: 210,103,0;--semi-orange-7: 168,74,0;--semi-orange-8: 126,49,0;--semi-orange-9: 84,29,0;--semi-pink-0: 253,236,239;--semi-pink-1: 251,207,216;--semi-pink-2: 246,160,181;--semi-pink-3: 242,115,150;--semi-pink-4: 237,72,123;--semi-pink-5: 233,30,99;--semi-pink-6: 197,19,86;--semi-pink-7: 162,11,72;--semi-pink-8: 126,5,58;--semi-pink-9: 90,1,43;--semi-purple-0: 247,233,247;--semi-purple-1: 239,202,240;--semi-purple-2: 221,155,224;--semi-purple-3: 201,111,209;--semi-purple-4: 180,73,194;--semi-purple-5: 158,40,179;--semi-purple-6: 135,30,158;--semi-purple-7: 113,22,138;--semi-purple-8: 92,15,117;--semi-purple-9: 73,10,97;--semi-red-0: 254,242,237;--semi-red-1: 254,221,210;--semi-red-2: 253,183,165;--semi-red-3: 251,144,120;--semi-red-4: 250,102,76;--semi-red-5: 249,57,32;--semi-red-6: 213,37,21;--semi-red-7: 178,20,12;--semi-red-8: 142,8,5;--semi-red-9: 106,1,3;--semi-teal-0: 228,247,244;--semi-teal-1: 192,240,232;--semi-teal-2: 135,224,211;--semi-teal-3: 84,209,193;--semi-teal-4: 39,194,176;--semi-teal-5: 0,179,161;--semi-teal-6: 0,149,137;--semi-teal-7: 0,119,111;--semi-teal-8: 0,89,85;--semi-teal-9: 0,60,58;--semi-violet-0: 243,237,249;--semi-violet-1: 226,209,244;--semi-violet-2: 196,167,233;--semi-violet-3: 166,127,221;--semi-violet-4: 136,91,210;--semi-violet-5: 106,58,199;--semi-violet-6: 87,47,179;--semi-violet-7: 70,37,158;--semi-violet-8: 54,28,138;--semi-violet-9: 40,20,117;--semi-white: 255,255,255;--semi-yellow-0: 255,253,234;--semi-yellow-1: 254,251,203;--semi-yellow-2: 253,243,152;--semi-yellow-3: 252,232,101;--semi-yellow-4: 251,218,50;--semi-yellow-5: 250,200,0;--semi-yellow-6: 208,170,0;--semi-yellow-7: 167,139,0;--semi-yellow-8: 125,106,0;--semi-yellow-9: 83,72,0}body[theme-mode=dark],body .semi-always-dark{--semi-red-0: 108,9,11;--semi-red-1: 144,17,16;--semi-red-2: 180,32,25;--semi-red-3: 215,51,36;--semi-red-4: 251,73,50;--semi-red-5: 252,114,90;--semi-red-6: 253,153,131;--semi-red-7: 253,190,172;--semi-red-8: 254,224,213;--semi-red-9: 255,243,239;--semi-pink-0: 92,7,48;--semi-pink-1: 128,14,65;--semi-pink-2: 164,23,81;--semi-pink-3: 199,34,97;--semi-pink-4: 235,47,113;--semi-pink-5: 239,86,134;--semi-pink-6: 243,126,159;--semi-pink-7: 247,168,188;--semi-pink-8: 251,211,220;--semi-pink-9: 253,238,241;--semi-purple-0: 74,16,97;--semi-purple-1: 94,23,118;--semi-purple-2: 115,31,138;--semi-purple-3: 137,40,159;--semi-purple-4: 160,51,179;--semi-purple-5: 181,83,194;--semi-purple-6: 202,120,209;--semi-purple-7: 221,160,225;--semi-purple-8: 239,206,240;--semi-purple-9: 247,235,247;--semi-violet-0: 64,27,119;--semi-violet-1: 76,36,140;--semi-violet-2: 88,46,160;--semi-violet-3: 100,57,181;--semi-violet-4: 114,70,201;--semi-violet-5: 136,101,212;--semi-violet-6: 162,136,223;--semi-violet-7: 190,173,233;--semi-violet-8: 221,212,244;--semi-violet-9: 241,238,250;--semi-indigo-0: 23,30,101;--semi-indigo-1: 32,41,122;--semi-indigo-2: 41,54,142;--semi-indigo-3: 52,68,163;--semi-indigo-4: 64,83,183;--semi-indigo-5: 95,113,197;--semi-indigo-6: 129,145,212;--semi-indigo-7: 167,180,226;--semi-indigo-8: 209,216,241;--semi-indigo-9: 237,239,248;--semi-blue-0: 5,49,112;--semi-blue-1: 10,70,148;--semi-blue-2: 19,92,184;--semi-blue-3: 29,117,219;--semi-blue-4: 41,144,255;--semi-blue-5: 84,169,255;--semi-blue-6: 127,193,255;--semi-blue-7: 169,215,255;--semi-blue-8: 212,236,255;--semi-blue-9: 239,248,255;--semi-light-blue-0: 0,55,97;--semi-light-blue-1: 0,77,133;--semi-light-blue-2: 3,102,169;--semi-light-blue-3: 10,129,204;--semi-light-blue-4: 19,159,240;--semi-light-blue-5: 64,180,243;--semi-light-blue-6: 110,200,246;--semi-light-blue-7: 157,220,249;--semi-light-blue-8: 206,238,252;--semi-light-blue-9: 235,248,254;--semi-cyan-0: 4,52,61;--semi-cyan-1: 7,79,92;--semi-cyan-2: 10,108,123;--semi-cyan-3: 14,137,153;--semi-cyan-4: 19,168,184;--semi-cyan-5: 56,187,198;--semi-cyan-6: 98,205,212;--semi-cyan-7: 145,223,227;--semi-cyan-8: 198,239,241;--semi-cyan-9: 231,247,248;--semi-teal-0: 2,60,57;--semi-teal-1: 4,90,85;--semi-teal-2: 7,119,111;--semi-teal-3: 10,149,136;--semi-teal-4: 14,179,161;--semi-teal-5: 51,194,176;--semi-teal-6: 94,209,193;--semi-teal-7: 142,225,211;--semi-teal-8: 196,240,232;--semi-teal-9: 230,247,244;--semi-green-0: 18,60,25;--semi-green-1: 28,90,37;--semi-green-2: 39,119,49;--semi-green-3: 50,149,61;--semi-green-4: 62,179,73;--semi-green-5: 93,194,100;--semi-green-6: 127,209,132;--semi-green-7: 166,225,168;--semi-green-8: 208,240,209;--semi-green-9: 236,247,236;--semi-light-green-0: 38,61,19;--semi-light-green-1: 59,92,29;--semi-light-green-2: 81,123,40;--semi-light-green-3: 103,153,52;--semi-light-green-4: 127,184,64;--semi-light-green-5: 151,198,95;--semi-light-green-6: 176,212,129;--semi-light-green-7: 201,227,167;--semi-light-green-8: 228,241,209;--semi-light-green-9: 243,248,237;--semi-lime-0: 49,70,3;--semi-lime-1: 75,105,5;--semi-lime-2: 103,141,9;--semi-lime-3: 132,176,12;--semi-lime-4: 162,211,17;--semi-lime-5: 174,220,58;--semi-lime-6: 189,229,102;--semi-lime-7: 207,237,150;--semi-lime-8: 229,246,201;--semi-lime-9: 243,251,233;--semi-yellow-0: 84,73,3;--semi-yellow-1: 126,108,6;--semi-yellow-2: 168,142,10;--semi-yellow-3: 210,175,15;--semi-yellow-4: 252,206,20;--semi-yellow-5: 253,222,67;--semi-yellow-6: 253,235,113;--semi-yellow-7: 254,245,160;--semi-yellow-8: 254,251,208;--semi-yellow-9: 255,254,236;--semi-amber-0: 81,46,9;--semi-amber-1: 121,75,15;--semi-amber-2: 161,107,22;--semi-amber-3: 202,143,30;--semi-amber-4: 242,183,38;--semi-amber-5: 245,202,80;--semi-amber-6: 247,219,122;--semi-amber-7: 250,234,166;--semi-amber-8: 252,246,210;--semi-amber-9: 254,251,237;--semi-orange-0: 85,31,3;--semi-orange-1: 128,53,6;--semi-orange-2: 170,80,10;--semi-orange-3: 213,111,15;--semi-orange-4: 255,146,20;--semi-orange-5: 255,174,67;--semi-orange-6: 255,199,114;--semi-orange-7: 255,221,161;--semi-orange-8: 255,239,208;--semi-orange-9: 255,249,237;--semi-grey-0: 28,31,35;--semi-grey-1: 46,50,56;--semi-grey-2: 65,70,76;--semi-grey-3: 85,91,97;--semi-grey-4: 107,112,117;--semi-grey-5: 136,141,146;--semi-grey-6: 167,171,176;--semi-grey-7: 198,202,205;--semi-grey-8: 230,232,234;--semi-grey-9: 249,249,249;--semi-white: 255, 255, 255;--semi-black: 0, 0, 0}body,body[theme-mode=dark] .semi-always-light{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;--semi-color-white: rgba(var(--semi-white), 1);--semi-color-black: rgba(var(--semi-black), 1);--semi-color-primary: rgba(var(--semi-blue-5), 1);--semi-color-primary-hover: rgba(var(--semi-blue-6), 1);--semi-color-primary-active: rgba(var(--semi-blue-7), 1);--semi-color-primary-disabled: rgba(var(--semi-blue-2), 1);--semi-color-primary-light-default: rgba(var(--semi-blue-0), 1);--semi-color-primary-light-hover: rgba(var(--semi-blue-1), 1);--semi-color-primary-light-active: rgba(var(--semi-blue-2), 1);--semi-color-secondary: rgba(var(--semi-light-blue-5), 1);--semi-color-secondary-hover: rgba(var(--semi-light-blue-6), 1);--semi-color-secondary-active: rgba(var(--semi-light-blue-7), 1);--semi-color-secondary-disabled: rgba(var(--semi-light-blue-2), 1);--semi-color-secondary-light-default: rgba(var(--semi-light-blue-0), 1);--semi-color-secondary-light-hover: rgba(var(--semi-light-blue-1), 1);--semi-color-secondary-light-active: rgba(var(--semi-light-blue-2), 1);--semi-color-tertiary: rgba(var(--semi-grey-5), 1);--semi-color-tertiary-hover: rgba(var(--semi-grey-6), 1);--semi-color-tertiary-active: rgba(var(--semi-grey-7), 1);--semi-color-tertiary-light-default: rgba(var(--semi-grey-0), 1);--semi-color-tertiary-light-hover: rgba(var(--semi-grey-1), 1);--semi-color-tertiary-light-active: rgba(var(--semi-grey-2), 1);--semi-color-default: rgba(var(--semi-grey-0), 1);--semi-color-default-hover: rgba(var(--semi-grey-1), 1);--semi-color-default-active: rgba(var(--semi-grey-2), 1);--semi-color-info: rgba(var(--semi-blue-5), 1);--semi-color-info-hover: rgba(var(--semi-blue-6), 1);--semi-color-info-active: rgba(var(--semi-blue-7), 1);--semi-color-info-disabled: rgba(var(--semi-blue-2), 1);--semi-color-info-light-default: rgba(var(--semi-blue-0), 1);--semi-color-info-light-hover: rgba(var(--semi-blue-1), 1);--semi-color-info-light-active: rgba(var(--semi-blue-2), 1);--semi-color-success: rgba(var(--semi-green-5), 1);--semi-color-success-hover: rgba(var(--semi-green-6), 1);--semi-color-success-active: rgba(var(--semi-green-7), 1);--semi-color-success-disabled: rgba(var(--semi-green-2), 1);--semi-color-success-light-default: rgba(var(--semi-green-0), 1);--semi-color-success-light-hover: rgba(var(--semi-green-1), 1);--semi-color-success-light-active: rgba(var(--semi-green-2), 1);--semi-color-danger: rgba(var(--semi-red-5), 1);--semi-color-danger-hover: rgba(var(--semi-red-6), 1);--semi-color-danger-active: rgba(var(--semi-red-7), 1);--semi-color-danger-light-default: rgba(var(--semi-red-0), 1);--semi-color-danger-light-hover: rgba(var(--semi-red-1), 1);--semi-color-danger-light-active: rgba(var(--semi-red-2), 1);--semi-color-warning: rgba(var(--semi-orange-5), 1);--semi-color-warning-hover: rgba(var(--semi-orange-6), 1);--semi-color-warning-active: rgba(var(--semi-orange-7), 1);--semi-color-warning-light-default: rgba(var(--semi-orange-0), 1);--semi-color-warning-light-hover: rgba(var(--semi-orange-1), 1);--semi-color-warning-light-active: rgba(var(--semi-orange-2), 1);--semi-color-focus-border: rgba(var(--semi-blue-5), 1);--semi-color-disabled-text: rgba(var(--semi-grey-9), .35);--semi-color-disabled-border: rgba(var(--semi-grey-1), 1);--semi-color-disabled-bg: rgba(var(--semi-grey-1), 1);--semi-color-disabled-fill: rgba(var(--semi-grey-8), .04);--semi-color-shadow: rgba(var(--semi-black), .04);--semi-color-link: rgba(var(--semi-blue-5), 1);--semi-color-link-hover: rgba(var(--semi-blue-6), 1);--semi-color-link-active: rgba(var(--semi-blue-7), 1);--semi-color-link-visited: rgba(var(--semi-blue-5), 1);--semi-color-border: rgba(var(--semi-grey-9), .08);--semi-color-nav-bg: rgba(var(--semi-white), 1);--semi-color-overlay-bg: rgba(22, 22, 26, .6);--semi-color-fill-0: rgba(var(--semi-grey-8), .05);--semi-color-fill-1: rgba(var(--semi-grey-8), .09);--semi-color-fill-2: rgba(var(--semi-grey-8), .13);--semi-color-bg-0: rgba(var(--semi-white), 1);--semi-color-bg-1: rgba(var(--semi-white), 1);--semi-color-bg-2: rgba(var(--semi-white), 1);--semi-color-bg-3: rgba(var(--semi-white), 1);--semi-color-bg-4: rgba(var(--semi-white), 1);--semi-color-text-0: rgba(var(--semi-grey-9), 1);--semi-color-text-1: rgba(var(--semi-grey-9), .8);--semi-color-text-2: rgba(var(--semi-grey-9), .62);--semi-color-text-3: rgba(var(--semi-grey-9), .35);--semi-shadow-elevated: 0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1);--semi-border-radius-extra-small: 3px;--semi-border-radius-small: 3px;--semi-border-radius-medium: 6px;--semi-border-radius-large: 12px;--semi-border-radius-circle: 50%;--semi-border-radius-full: 9999px;--semi-color-highlight-bg: rgba(var(--semi-yellow-4), 1);--semi-color-highlight: rgba(var(--semi-black), 1);--semi-color-data-0:rgba(22, 100, 255, 1);--semi-color-data-1:rgba(178, 207, 255, 1);--semi-color-data-2:rgba(26, 198, 255, 1);--semi-color-data-3:rgba(148, 239, 255, 1);--semi-color-data-4:rgba(255, 138, 0, 1);--semi-color-data-5:rgba(255, 206, 122, 1);--semi-color-data-6:rgba(60, 199, 128, 1);--semi-color-data-7:rgba(185, 237, 205, 1);--semi-color-data-8:rgba(116, 66, 212, 1);--semi-color-data-9:rgba(221, 197, 250, 1);--semi-color-data-10:rgba(255, 196, 0, 1);--semi-color-data-11:rgba(250, 232, 120, 1);--semi-color-data-12:rgba(48, 77, 119, 1);--semi-color-data-13:rgba(139, 149, 158, 1);--semi-color-data-14:rgba(180, 141, 235, 1);--semi-color-data-15:rgba(239, 227, 255, 1);--semi-color-data-16:rgba(0, 148, 136, 1);--semi-color-data-17:rgba(89, 186, 168, 1);--semi-color-data-18:rgba(255, 125, 218, 1);--semi-color-data-19:rgba(255, 207, 238, 1)}body[theme-mode=dark],body .semi-always-dark{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;--semi-color-white: rgba(228, 231, 245, 1);--semi-color-black: rgba(var(--semi-black), 1);--semi-color-primary: rgba(var(--semi-blue-5), 1);--semi-color-primary-hover: rgba(var(--semi-blue-6), 1);--semi-color-primary-active: rgba(var(--semi-blue-7), 1);--semi-color-primary-disabled: rgba(var(--semi-blue-2), 1);--semi-color-primary-light-default: rgba(var(--semi-blue-5), .2);--semi-color-primary-light-hover: rgba(var(--semi-blue-5), .3);--semi-color-primary-light-active: rgba(var(--semi-blue-5), .4);--semi-color-secondary: rgba(var(--semi-light-blue-5), 1);--semi-color-secondary-hover: rgba(var(--semi-light-blue-6), 1);--semi-color-secondary-active: rgba(var(--semi-light-blue-7), 1);--semi-color-secondary-disabled: rgba(var(--semi-light-blue-2), 1);--semi-color-secondary-light-default: rgba(var(--semi-light-blue-5), .2);--semi-color-secondary-light-hover: rgba(var(--semi-light-blue-5), .3);--semi-color-secondary-light-active: rgba(var(--semi-light-blue-5), .4);--semi-color-tertiary: rgba(var(--semi-grey-5), 1);--semi-color-tertiary-hover: rgba(var(--semi-grey-6), 1);--semi-color-tertiary-active: rgba(var(--semi-grey-7), 1);--semi-color-tertiary-light-default: rgba(var(--semi-grey-5), .2);--semi-color-tertiary-light-hover: rgba(var(--semi-grey-5), .3);--semi-color-tertiary-light-active: rgba(var(--semi-grey-5), .4);--semi-color-default: rgba(var(--semi-grey-0), 1);--semi-color-default-hover: rgba(var(--semi-grey-1), 1);--semi-color-default-active: rgba(var(--semi-grey-2), 1);--semi-color-info: rgba(var(--semi-blue-5), 1);--semi-color-info-hover: rgba(var(--semi-blue-6), 1);--semi-color-info-active: rgba(var(--semi-blue-7), 1);--semi-color-info-disabled: rgba(var(--semi-blue-2), 1);--semi-color-info-light-default: rgba(var(--semi-blue-5), .2);--semi-color-info-light-hover: rgba(var(--semi-blue-5), .3);--semi-color-info-light-active: rgba(var(--semi-blue-5), .4);--semi-color-success: rgba(var(--semi-green-5), 1);--semi-color-success-hover: rgba(var(--semi-green-6), 1);--semi-color-success-active: rgba(var(--semi-green-7), 1);--semi-color-success-disabled: rgba(var(--semi-green-2), 1);--semi-color-success-light-default: rgba(var(--semi-green-5), .2);--semi-color-success-light-hover: rgba(var(--semi-green-5), .3);--semi-color-success-light-active: rgba(var(--semi-green-5), .4);--semi-color-danger: rgba(var(--semi-red-5), 1);--semi-color-danger-hover: rgba(var(--semi-red-6), 1);--semi-color-danger-active: rgba(var(--semi-red-7), 1);--semi-color-danger-light-default: rgba(var(--semi-red-5), .2);--semi-color-danger-light-hover: rgba(var(--semi-red-5), .3);--semi-color-danger-light-active: rgba(var(--semi-red-5), .4);--semi-color-warning: rgba(var(--semi-orange-5), 1);--semi-color-warning-hover: rgba(var(--semi-orange-6), 1);--semi-color-warning-active: rgba(var(--semi-orange-7), 1);--semi-color-warning-light-default: rgba(var(--semi-orange-5), .2);--semi-color-warning-light-hover: rgba(var(--semi-orange-5), .3);--semi-color-warning-light-active: rgba(var(--semi-orange-5), .4);--semi-color-focus-border: rgba(var(--semi-blue-5), 1);--semi-color-disabled-text: rgba(var(--semi-grey-9), .35);--semi-color-disabled-border: rgba(var(--semi-grey-1), 1);--semi-color-disabled-bg: rgba(var(--semi-grey-1), 1);--semi-color-disabled-fill: rgba(var(--semi-grey-8), .04);--semi-color-link: rgba(var(--semi-blue-5), 1);--semi-color-link-hover: rgba(var(--semi-blue-6), 1);--semi-color-link-active: rgba(var(--semi-blue-7), 1);--semi-color-link-visited: rgba(var(--semi-blue-5), 1);--semi-color-nav-bg: rgba(35, 36, 41, 1);--semi-shadow-elevated: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .25);--semi-color-overlay-bg: rgba(22, 22, 26, .6);--semi-color-fill-0: rgba(var(--semi-white), .12);--semi-color-fill-1: rgba(var(--semi-white), .16);--semi-color-fill-2: rgba(var(--semi-white), .2);--semi-color-border: rgba(var(--semi-white), .08);--semi-color-shadow: rgba(var(--semi-black), .04);--semi-color-bg-0: rgba(22, 22, 26, 1);--semi-color-bg-1: rgba(35, 36, 41, 1);--semi-color-bg-2: rgba(53, 54, 60, 1);--semi-color-bg-3: rgba(67, 68, 74, 1);--semi-color-bg-4: rgba(79, 81, 89, 1);--semi-color-text-0: rgba(var(--semi-grey-9), 1);--semi-color-text-1: rgba(var(--semi-grey-9), .8);--semi-color-text-2: rgba(var(--semi-grey-9), .6);--semi-color-text-3: rgba(var(--semi-grey-9), .35);--semi-border-radius-extra-small: 3px;--semi-border-radius-small: 3px;--semi-border-radius-medium: 6px;--semi-border-radius-large: 12px;--semi-border-radius-circle: 50%;--semi-border-radius-full: 9999px;--semi-color-highlight-bg: rgba(var(--semi-yellow-2), 1);--semi-color-highlight: rgba(var(--semi-white), 1);--semi-color-data-0:rgba(22, 100, 255, 1);--semi-color-data-1:rgba(178, 207, 255, 1);--semi-color-data-2:rgba(26, 198, 255, 1);--semi-color-data-3:rgba(148, 239, 255, 1);--semi-color-data-4:rgba(255, 138, 0, 1);--semi-color-data-5:rgba(255, 206, 122, 1);--semi-color-data-6:rgba(60, 199, 128, 1);--semi-color-data-7:rgba(185, 237, 205, 1);--semi-color-data-8:rgba(116, 66, 212, 1);--semi-color-data-9:rgba(221, 197, 250, 1);--semi-color-data-10:rgba(255, 196, 0, 1);--semi-color-data-11:rgba(250, 232, 120, 1);--semi-color-data-12:rgba(48, 77, 119, 1);--semi-color-data-13:rgba(139, 149, 158, 1);--semi-color-data-14:rgba(180, 141, 235, 1);--semi-color-data-15:rgba(239, 227, 255, 1);--semi-color-data-16:rgba(0, 148, 136, 1);--semi-color-data-17:rgba(89, 186, 168, 1);--semi-color-data-18:rgba(255, 125, 218, 1);--semi-color-data-19:rgba(255, 207, 238, 1)}.semi-light-scrollbar::-webkit-scrollbar,.semi-light-scrollbar *::-webkit-scrollbar{width:8px;height:8px}.semi-light-scrollbar::-webkit-scrollbar-track,.semi-light-scrollbar *::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.semi-light-scrollbar::-webkit-scrollbar-corner,.semi-light-scrollbar *::-webkit-scrollbar-corner{background-color:#0000}.semi-light-scrollbar::-webkit-scrollbar-thumb,.semi-light-scrollbar *::-webkit-scrollbar-thumb{border-radius:6px;background:transparent;transition:all 1s}.semi-light-scrollbar:hover::-webkit-scrollbar-thumb,.semi-light-scrollbar *:hover::-webkit-scrollbar-thumb{background:var(--semi-color-fill-2)}.semi-light-scrollbar::-webkit-scrollbar-thumb:hover,.semi-light-scrollbar *::-webkit-scrollbar-thumb:hover{background:var(--semi-color-fill-1)}.semi-typography{color:var(--semi-color-text-0);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-typography.semi-typography-secondary{color:var(--semi-color-text-1)}.semi-typography.semi-typography-tertiary{color:var(--semi-color-text-2)}.semi-typography.semi-typography-quaternary{color:var(--semi-color-text-3)}.semi-typography.semi-typography-warning{color:var(--semi-color-warning)}.semi-typography.semi-typography-success{color:var(--semi-color-success)}.semi-typography.semi-typography-danger{color:var(--semi-color-danger)}.semi-typography.semi-typography-link{color:var(--semi-color-link);font-weight:600}.semi-typography.semi-typography-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed;-webkit-user-select:none;user-select:none}.semi-typography.semi-typography-disabled.semi-typography-link{color:var(--semi-color-link)}.semi-typography-icon{margin-right:4px;vertical-align:middle;color:inherit}.semi-typography-small{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.semi-typography-small.semi-typography-paragraph{font-weight:400}.semi-typography code{border:1px solid var(--semi-color-border);border-radius:2px;color:var(--semi-color-text-2);background-color:var(--semi-color-fill-1);padding:2px 4px}.semi-typography mark{background-color:var(--semi-color-primary-light-default)}.semi-typography u{text-decoration:underline;text-decoration-skip-ink:auto}.semi-typography del{text-decoration:line-through}.semi-typography strong{font-weight:600}.semi-typography a{display:inline;color:var(--semi-color-link);cursor:pointer;text-decoration:none}.semi-typography a:visited{color:var(--semi-color-link-visited)}.semi-typography a:hover{color:var(--semi-color-link-hover)}.semi-typography a:active{color:var(--semi-color-link-active)}.semi-typography a .semi-typography-link-underline:hover{border-bottom:1px solid var(--semi-color-link-hover);margin-bottom:-1px}.semi-typography a .semi-typography-link-underline:active{border-bottom:1px solid var(--semi-color-link-active);margin-bottom:-1px}.semi-typography-ellipsis-single-line{overflow:hidden}.semi-typography-ellipsis-multiple-line{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.semi-typography-ellipsis-multiple-line.semi-typography-ellipsis-multiple-line-text{display:-webkit-inline-box}.semi-typography-ellipsis-overflow-ellipsis{display:block;white-space:nowrap;text-overflow:ellipsis}.semi-typography-ellipsis-overflow-ellipsis.semi-typography-ellipsis-overflow-ellipsis-text{display:inline-block;max-width:100%;vertical-align:top}.semi-typography-ellipsis-expand{display:inline;margin-left:8px}.semi-typography-action-copy{display:inline-flex;vertical-align:middle;padding:0;margin-left:4px}.semi-typography a.semi-typography-action-copy-icon{display:inline-flex}.semi-typography-action-copied{display:inline-flex;padding:0;margin-left:4px;color:var(--semi-color-text-2)}.semi-typography-action-copied .semi-icon{vertical-align:middle;color:var(--semi-color-success)}.semi-typography-paragraph{margin:0}h1.semi-typography,.semi-typography-h1.semi-typography{font-size:32px;line-height:44px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h1.semi-typography.semi-typography-h1-weight-light,.semi-typography-h1.semi-typography.semi-typography-h1-weight-light{font-weight:200}h1.semi-typography.semi-typography-h1-weight-regular,.semi-typography-h1.semi-typography.semi-typography-h1-weight-regular{font-weight:400}h1.semi-typography.semi-typography-h1-weight-medium,.semi-typography-h1.semi-typography.semi-typography-h1-weight-medium{font-weight:500}h1.semi-typography.semi-typography-h1-weight-semibold,.semi-typography-h1.semi-typography.semi-typography-h1-weight-semibold{font-weight:600}h1.semi-typography.semi-typography-h1-weight-bold,.semi-typography-h1.semi-typography.semi-typography-h1-weight-bold{font-weight:700}h2.semi-typography,.semi-typography-h2.semi-typography{font-size:28px;line-height:40px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h2.semi-typography.semi-typography-h2-weight-light,.semi-typography-h2.semi-typography.semi-typography-h2-weight-light{font-weight:200}h2.semi-typography.semi-typography-h2-weight-regular,.semi-typography-h2.semi-typography.semi-typography-h2-weight-regular{font-weight:400}h2.semi-typography.semi-typography-h2-weight-medium,.semi-typography-h2.semi-typography.semi-typography-h2-weight-medium{font-weight:500}h2.semi-typography.semi-typography-h2-weight-semibold,.semi-typography-h2.semi-typography.semi-typography-h2-weight-semibold{font-weight:600}h2.semi-typography.semi-typography-h2-weight-bold,.semi-typography-h2.semi-typography.semi-typography-h2-weight-bold{font-weight:700}h3.semi-typography,.semi-typography-h3.semi-typography{font-size:24px;line-height:32px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h3.semi-typography.semi-typography-h3-weight-light,.semi-typography-h3.semi-typography.semi-typography-h3-weight-light{font-weight:200}h3.semi-typography.semi-typography-h3-weight-regular,.semi-typography-h3.semi-typography.semi-typography-h3-weight-regular{font-weight:400}h3.semi-typography.semi-typography-h3-weight-medium,.semi-typography-h3.semi-typography.semi-typography-h3-weight-medium{font-weight:500}h3.semi-typography.semi-typography-h3-weight-semibold,.semi-typography-h3.semi-typography.semi-typography-h3-weight-semibold{font-weight:600}h3.semi-typography.semi-typography-h3-weight-bold,.semi-typography-h3.semi-typography.semi-typography-h3-weight-bold{font-weight:700}h4.semi-typography,.semi-typography-h4.semi-typography{font-size:20px;line-height:28px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h4.semi-typography.semi-typography-h4-weight-light,.semi-typography-h4.semi-typography.semi-typography-h4-weight-light{font-weight:200}h4.semi-typography.semi-typography-h4-weight-regular,.semi-typography-h4.semi-typography.semi-typography-h4-weight-regular{font-weight:400}h4.semi-typography.semi-typography-h4-weight-medium,.semi-typography-h4.semi-typography.semi-typography-h4-weight-medium{font-weight:500}h4.semi-typography.semi-typography-h4-weight-semibold,.semi-typography-h4.semi-typography.semi-typography-h4-weight-semibold{font-weight:600}h4.semi-typography.semi-typography-h4-weight-bold,.semi-typography-h4.semi-typography.semi-typography-h4-weight-bold{font-weight:700}h5.semi-typography,.semi-typography-h5.semi-typography{font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h5.semi-typography.semi-typography-h5-weight-light,.semi-typography-h5.semi-typography.semi-typography-h5-weight-light{font-weight:200}h5.semi-typography.semi-typography-h5-weight-regular,.semi-typography-h5.semi-typography.semi-typography-h5-weight-regular{font-weight:400}h5.semi-typography.semi-typography-h5-weight-medium,.semi-typography-h5.semi-typography.semi-typography-h5-weight-medium{font-weight:500}h5.semi-typography.semi-typography-h5-weight-semibold,.semi-typography-h5.semi-typography.semi-typography-h5-weight-semibold{font-weight:600}h5.semi-typography.semi-typography-h5-weight-bold,.semi-typography-h5.semi-typography.semi-typography-h5-weight-bold{font-weight:700}h6.semi-typography,.semi-typography-h6.semi-typography{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h6.semi-typography.semi-typography-h6-weight-light,.semi-typography-h6.semi-typography.semi-typography-h6-weight-light{font-weight:200}h6.semi-typography.semi-typography-h6-weight-regular,.semi-typography-h6.semi-typography.semi-typography-h6-weight-regular{font-weight:400}h6.semi-typography.semi-typography-h6-weight-medium,.semi-typography-h6.semi-typography.semi-typography-h6-weight-medium{font-weight:500}h6.semi-typography.semi-typography-h6-weight-semibold,.semi-typography-h6.semi-typography.semi-typography-h6-weight-semibold{font-weight:600}h6.semi-typography.semi-typography-h6-weight-bold,.semi-typography-h6.semi-typography.semi-typography-h6-weight-bold{font-weight:700}p.semi-typography-extended,.semi-typography-paragraph.semi-typography-extended{line-height:24px;font-weight:400}.semi-rtl .semi-typography,.semi-portal-rtl .semi-typography{direction:rtl}.semi-rtl .semi-typography-link a,.semi-rtl .semi-typography a,.semi-portal-rtl .semi-typography-link a,.semi-portal-rtl .semi-typography a{display:inline-block}.semi-rtl .semi-typography-icon,.semi-portal-rtl .semi-typography-icon{margin-right:auto;margin-left:4px}.semi-rtl .semi-typography-ellipsis-expand,.semi-portal-rtl .semi-typography-ellipsis-expand{margin-left:auto}.semi-rtl .semi-typography-action-copy,.semi-portal-rtl .semi-typography-action-copy,.semi-rtl .semi-typography-action-copied,.semi-portal-rtl .semi-typography-action-copied{margin-left:auto;margin-right:4px}@keyframes semi-tooltip-zoomIn{0%{opacity:0;transform:scale(.8)}50%{opacity:1}}@keyframes semi-tooltip-bounceIn{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.01)}to{opacity:1;transform:scale(1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}}@keyframes semi-tooltip-zoomOut{0%{opacity:1}60%{opacity:0;transform:scale(.8)}to{opacity:0}}.semi-tooltip-wrapper{position:relative;background-color:rgba(var(--semi-grey-7),1);color:var(--semi-color-bg-0);border-radius:var(--semi-border-radius-medium);padding:8px 12px;left:0;top:0;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;opacity:0;max-width:240px}.semi-tooltip-wrapper-show{opacity:1}.semi-tooltip-content{min-width:0}.semi-tooltip-trigger{display:inline-block;width:auto;height:auto}.semi-tooltip-with-arrow{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.semi-tooltip-animation-show{animation:semi-tooltip-zoomIn .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-tooltip-animation-hide{animation:semi-tooltip-zoomOut .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-tooltip-wrapper .semi-tooltip-icon-arrow{height:7px;width:24px;position:absolute;color:rgba(var(--semi-grey-7),1)}.semi-tooltip-wrapper[x-placement=top] .semi-tooltip-icon-arrow{left:50%;transform:translate(-50%);bottom:-6px}.semi-tooltip-wrapper[x-placement=top].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=top] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=topLeft] .semi-tooltip-icon-arrow{bottom:-6px;left:6px}.semi-tooltip-wrapper[x-placement=topLeft].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=topLeft] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=topRight] .semi-tooltip-icon-arrow{bottom:-6px;right:6px}.semi-tooltip-wrapper[x-placement=topRight].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=topRight] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=leftTop] .semi-tooltip-icon-arrow{width:7px;height:24px;right:-6px;top:5px}.semi-tooltip-wrapper[x-placement=leftTop].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=leftTop] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=left] .semi-tooltip-icon-arrow{width:7px;height:24px;right:-6px;top:50%;transform:translateY(-50%)}.semi-tooltip-wrapper[x-placement=left].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=left] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=leftBottom] .semi-tooltip-icon-arrow{width:7px;height:24px;right:-6px;bottom:5px}.semi-tooltip-wrapper[x-placement=leftBottom].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=leftBottom] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=rightTop] .semi-tooltip-icon-arrow{width:7px;height:24px;left:-6px;top:5px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=rightTop].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=rightTop] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=right] .semi-tooltip-icon-arrow{width:7px;height:24px;left:-6px;top:50%;transform:translateY(-50%) rotate(180deg)}.semi-tooltip-wrapper[x-placement=right].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=right] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=rightBottom] .semi-tooltip-icon-arrow{width:7px;height:24px;left:-6px;bottom:5px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=rightBottom].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=rightBottom] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=bottomLeft] .semi-tooltip-icon-arrow{top:-6px;left:6px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=bottomLeft].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=bottomLeft] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=bottom] .semi-tooltip-icon-arrow{top:-6px;left:50%;transform:translate(-50%) rotate(180deg)}.semi-tooltip-wrapper[x-placement=bottom].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=bottom] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=bottomRight] .semi-tooltip-icon-arrow{right:6px;top:-6px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=bottomRight].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=bottomRight] .semi-tooltip-with-arrow{min-width:36px}.semi-rtl .semi-tooltip-wrapper,.semi-portal-rtl .semi-tooltip-wrapper{direction:rtl;padding-right:12px;padding-left:12px;left:auto;right:0}.semi-portal{position:absolute;top:0;left:0;width:100%;z-index:1}.semi-portal-inner{position:absolute;background-color:transparent;min-width:max-content}.semi-icon{display:inline-block;font-style:normal;line-height:0;text-align:center;text-transform:none;text-rendering:optimizeLegibility;fill:currentColor}.semi-icon-extra-small{font-size:8px}.semi-icon-small{font-size:12px}.semi-icon-default{font-size:16px}.semi-icon-large{font-size:20px}.semi-icon-extra-large{font-size:24px}.semi-icon-spinning{animation:.6s linear infinite semi-icon-animation-rotate;animation-fill-mode:forwards}@keyframes semi-icon-animation-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes semi-popover-zoomIn{0%{opacity:0;transform:scale(.8)}50%{opacity:1}}@keyframes semi-popover-zoomOut{0%{opacity:1}60%{opacity:0;transform:scale(.8)}to{opacity:0}}.semi-popover-wrapper{position:relative;background-color:var(--semi-color-bg-3);box-shadow:var(--semi-shadow-elevated);z-index:1030;border-radius:var(--semi-border-radius-medium);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;opacity:0}.semi-popover-wrapper-show{opacity:1}.semi-popover-trigger{display:inline-block;width:auto;height:auto}.semi-popover-title{padding:8px;border-bottom:1px solid var(--semi-color-border)}.semi-popover-confirm{position:absolute}.semi-popover-with-arrow{padding:12px;box-sizing:border-box}.semi-popover-animation-show{animation:semi-popover-zoomIn .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-popover-animation-hide{animation:semi-popover-zoomOut .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-popover-wrapper .semi-popover-icon-arrow{height:8px;width:24px;position:absolute;color:unset}.semi-popover-wrapper[x-placement=top] .semi-popover-icon-arrow{left:50%;transform:translate(-50%);bottom:-7px}.semi-popover-wrapper[x-placement=top].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=top] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=topLeft] .semi-popover-icon-arrow{bottom:-7px;left:6px}.semi-popover-wrapper[x-placement=topLeft].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=topLeft] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=topRight] .semi-popover-icon-arrow{bottom:-7px;right:6px}.semi-popover-wrapper[x-placement=topRight].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=topRight] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=leftTop] .semi-popover-icon-arrow{width:8px;height:24px;right:-7px;top:6px}.semi-popover-wrapper[x-placement=leftTop].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=leftTop] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=left] .semi-popover-icon-arrow{width:8px;height:24px;right:-7px;top:50%;transform:translateY(-50%)}.semi-popover-wrapper[x-placement=left].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=left] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=leftBottom] .semi-popover-icon-arrow{width:8px;height:24px;right:-7px;bottom:6px}.semi-popover-wrapper[x-placement=leftBottom].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=leftBottom] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=rightTop] .semi-popover-icon-arrow{width:8px;height:24px;left:-7px;top:6px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=rightTop].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=rightTop] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=right] .semi-popover-icon-arrow{width:8px;height:24px;left:-7px;top:50%;transform:translateY(-50%) rotate(180deg)}.semi-popover-wrapper[x-placement=right].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=right] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=rightBottom] .semi-popover-icon-arrow{width:8px;height:24px;left:-7px;bottom:6px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=rightBottom].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=rightBottom] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=bottomLeft] .semi-popover-icon-arrow{top:-7px;left:6px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=bottomLeft].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=bottomLeft] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=bottom] .semi-popover-icon-arrow{top:-7px;left:50%;transform:translate(-50%) rotate(180deg)}.semi-popover-wrapper[x-placement=bottom].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=bottom] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=bottomRight] .semi-popover-icon-arrow{right:6px;top:-7px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=bottomRight].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=bottomRight] .semi-popover-with-arrow{min-width:36px}.semi-popover.semi-popover-rtl{direction:rtl}.semi-spin{position:relative;display:inline-block;width:20px;height:20px}@keyframes semi-animation-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.semi-spin-wrapper{text-align:center;position:absolute;width:100%;transform:translateY(-50%);top:50%;color:var(--semi-color-primary)}.semi-spin-wrapper>svg{animation:.6s linear infinite semi-animation-rotate;animation-fill-mode:forwards;vertical-align:top;width:20px;height:20px}.semi-spin-animate{display:inline-flex;animation:1.6s linear infinite semi-animation-rotate;animation-fill-mode:forwards}.semi-spin-children{opacity:.5;-webkit-user-select:none;user-select:none}.semi-spin-block{display:block}.semi-spin-block:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.semi-spin-block .semi-spin-wrapper{display:block}.semi-spin-block.semi-spin{height:auto;width:auto}.semi-spin-hidden:after{content:none}.semi-spin-hidden>.semi-spin-children{opacity:1;-webkit-user-select:auto;user-select:auto}.semi-spin-small{width:14px;height:14px}.semi-spin-small>.semi-spin-wrapper svg{width:14px;height:14px}.semi-spin-middle{width:20px;height:20px}.semi-spin-middle>.semi-spin-wrapper svg{width:20px;height:20px}.semi-spin-large{width:32px;height:32px}.semi-spin-large>.semi-spin-wrapper svg{width:32px;height:32px}.semi-spin-container{overflow:hidden}.semi-rtl .semi-spin,.semi-portal-rtl .semi-spin,.semi-rtl .semi-spin-container,.semi-portal-rtl .semi-spin-container{direction:rtl}@keyframes semi-input-active{0%{transform:scale(1)}to{transform:scale(.97)}}@keyframes semi-input-inactive{0%{transform:scale(.97)}to{transform:scale(1)}}.semi-input{transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-input-wrapper{display:inline-block;position:relative;vertical-align:middle;box-shadow:none;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:var(--semi-color-fill-0);border:1px transparent solid;border-radius:var(--semi-border-radius-small);width:100%;outline:none;cursor:text;box-sizing:border-box;color:var(--semi-color-text-0);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-input-wrapper-default{height:32px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:30px}.semi-input-wrapper-small{height:24px;font-size:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:22px}.semi-input-wrapper-large{height:40px;font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:38px}.semi-input-wrapper:hover{background-color:var(--semi-color-fill-1);border-color:transparent}.semi-input-wrapper-focus{background-color:var(--semi-color-fill-0);border:var(--semi-color-focus-border) solid 1px}.semi-input-wrapper-focus:hover{background-color:var(--semi-color-fill-0);border-color:var(--semi-color-focus-border)}.semi-input-wrapper-focus:active{background-color:var(--semi-color-fill-2);border-color:var(--semi-color-focus-border)}.semi-input-wrapper.semi-input-readonly{cursor:default}.semi-input-wrapper-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-input-wrapper-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-input-wrapper-error.semi-input-wrapper-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-wrapper-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger)}.semi-input-wrapper-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-input-wrapper-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-input-wrapper-warning.semi-input-wrapper-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-wrapper-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning)}.semi-input-wrapper__with-prefix{display:inline-flex;align-items:center}.semi-input-wrapper__with-prefix .semi-input{padding-left:0}.semi-input-wrapper__with-suffix{display:inline-flex;align-items:center}.semi-input-wrapper__with-suffix .semi-input{padding-right:0}.semi-input-wrapper-clearable,.semi-input-wrapper-modebtn{display:inline-flex;align-items:center}.semi-input-wrapper-hidden{border:none}.semi-input-wrapper .semi-icon{color:var(--semi-color-text-2)}.semi-input-wrapper .semi-input-clearbtn,.semi-input-wrapper .semi-input-modebtn{color:var(--semi-color-primary-hover)}.semi-input-wrapper .semi-input-clearbtn>svg,.semi-input-wrapper .semi-input-modebtn>svg{pointer-events:none}.semi-input-wrapper .semi-input-clearbtn:hover,.semi-input-wrapper .semi-input-modebtn:hover{cursor:pointer}.semi-input-wrapper .semi-input-clearbtn:hover .semi-icon,.semi-input-wrapper .semi-input-modebtn:hover .semi-icon{color:var(--semi-color-primary-hover)}.semi-input-wrapper .semi-input-clearbtn:focus-visible,.semi-input-wrapper .semi-input-modebtn:focus-visible{border-radius:var(--semi-border-radius-small);outline:2px solid var(--semi-color-primary-light-active);outline-offset:-1px}.semi-input-wrapper__with-suffix-icon.semi-input-wrapper-clearable:not(.semi-input-wrapper__with-suffix-hidden) .semi-input-clearbtn{min-width:24px;justify-content:flex-end}.semi-input-wrapper-modebtn.semi-input-wrapper-clearable .semi-input-clearbtn{min-width:16px;justify-content:center}.semi-input-wrapper.semi-input-wrapper__with-append-only .semi-input{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper.semi-input-wrapper__with-append-only .semi-input:not(:last-child){border-right-style:none;border-radius:0}.semi-input-wrapper.semi-input-wrapper__with-prepend-only .semi-input{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-input-wrapper.semi-input-wrapper__with-prepend-only .semi-input:not(:last-child){border-right-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend,.semi-input-wrapper.semi-input-wrapper__with-append{display:inline-flex;align-items:center;background-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend:hover,.semi-input-wrapper.semi-input-wrapper__with-append:hover{background-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-focus,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-focus{border:1px transparent solid;background-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input{background-color:var(--semi-color-fill-0);border:1px transparent solid}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:hover,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:hover{background-color:var(--semi-color-fill-1)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:hover~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:hover~.semi-input-modebtn{background-color:var(--semi-color-fill-1)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus{border:1px var(--semi-color-focus-border) solid;background-color:var(--semi-color-fill-0)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus.semi-input-sibling-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus.semi-input-sibling-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus.semi-input-sibling-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus.semi-input-sibling-modebtn{border-right-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus.semi-input-sibling-modebtn+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus.semi-input-sibling-modebtn+.semi-input-clearbtn{border-right-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus~.semi-input-modebtn{box-sizing:border-box;background-color:var(--semi-color-fill-0)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus+.semi-input-clearbtn{border:1px var(--semi-color-focus-border) solid;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;border-left-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus+.semi-input-clearbtn:not(:last-child),.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus+.semi-input-clearbtn:not(:last-child){border-radius:0}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus~.semi-input-modebtn{border:1px var(--semi-color-focus-border) solid;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;border-left-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus~.semi-input-modebtn:not(:last-child),.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus~.semi-input-modebtn:not(:last-child){border-radius:0}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:active,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:active{background-color:var(--semi-color-fill-2)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:active~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:active~.semi-input-modebtn{background-color:var(--semi-color-fill-2)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn:hover{background-color:var(--semi-color-fill-0)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn:hover:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error{border-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:hover+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:hover+.semi-input-modebtn{background-color:var(--semi-color-danger-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:focus,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:focus+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:focus+.semi-input-modebtn{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:active,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:active{background-color:var(--semi-color-danger-light-active)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:active+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:active+.semi-input-modebtn{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn:hover{background-color:var(--semi-color-danger-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn:hover:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning{border-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:hover+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:hover+.semi-input-modebtn{background-color:var(--semi-color-warning-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:focus,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:focus+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:focus+.semi-input-modebtn{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:active,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:active{background-color:var(--semi-color-warning-light-active)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:active+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:active+.semi-input-modebtn{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn:hover{background-color:var(--semi-color-warning-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn:hover:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:var(--semi-color-disabled-fill);-webkit-text-fill-color:var(--semi-color-disabled-text)}.semi-input-wrapper-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-input-wrapper-disabled .semi-input-append,.semi-input-wrapper-disabled .semi-input-prepend,.semi-input-wrapper-disabled .semi-input-suffix,.semi-input-wrapper-disabled .semi-input-prefix,.semi-input-wrapper-disabled .semi-icon{color:var(--semi-color-disabled-text)}.semi-input{border:none;outline:none;width:100%;color:inherit;padding-left:12px;padding-right:12px;background-color:transparent;box-sizing:border-box}.semi-input[type=password]::-ms-reveal,.semi-input[type=password]::-ms-clear{display:none}.semi-input[type=search]::-webkit-search-cancel-button{display:none}.semi-input::placeholder{color:var(--semi-color-text-2)}.semi-input-large{height:38px;font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:38px}.semi-input-small{height:22px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:22px}.semi-input-default{height:30px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:30px}.semi-input-disabled{cursor:not-allowed;color:inherit}.semi-input-inset-label{margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-input-prefix,.semi-input-suffix{display:flex;justify-content:center;align-items:center}.semi-input-prefix-text,.semi-input-suffix-text{margin:0 12px;color:var(--semi-color-text-2);font-weight:600;white-space:nowrap}.semi-input-prefix-icon,.semi-input-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-input-suffix{display:flex;justify-content:center;align-items:center}.semi-input-clearbtn,.semi-input-modebtn{display:flex;align-items:center;height:100%;justify-content:center;min-width:32px}.semi-input-clearbtn+.semi-input-suffix+.semi-input-suffix-text{margin-left:0}.semi-input-clearbtn+.semi-input-suffix+.semi-input-suffix-icon{margin-left:0}.semi-input-suffix-hidden{display:none}.semi-input-prepend,.semi-input-append{height:100%;display:flex;align-items:center;background-color:var(--semi-color-fill-0);color:var(--semi-color-text-2);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;flex-shrink:0}.semi-input-prepend-icon,.semi-input-prepend-text,.semi-input-append-icon,.semi-input-append-text{padding:0 12px}.semi-input-append{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;border-left:1px transparent solid}.semi-input-prepend{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);border-right:1px transparent solid}.semi-input-disabled::placeholder{color:var(--semi-color-disabled-text)}.semi-input-group{display:inline-flex;align-items:center;align-content:center;flex-wrap:wrap}.semi-input-group .semi-select,.semi-input-group .semi-tagInput,.semi-input-group .semi-cascader,.semi-input-group .semi-tree-select,.semi-input-group>.semi-input-wrapper{border-radius:0}.semi-input-group .semi-select:first-child,.semi-input-group .semi-tagInput:first-child,.semi-input-group .semi-cascader:first-child,.semi-input-group .semi-tree-select:first-child,.semi-input-group>.semi-input-wrapper:first-child{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-input-group .semi-select:last-child,.semi-input-group .semi-tagInput:last-child,.semi-input-group .semi-cascader:last-child,.semi-input-group .semi-tree-select:last-child,.semi-input-group>.semi-input-wrapper:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-group .semi-select:not(:last-child),.semi-input-group .semi-tagInput:not(:last-child),.semi-input-group .semi-cascader:not(:last-child),.semi-input-group .semi-tree-select:not(:last-child),.semi-input-group>.semi-input-wrapper:not(:last-child){position:relative}.semi-input-group .semi-select:not(:last-child):after,.semi-input-group .semi-tagInput:not(:last-child):after,.semi-input-group .semi-cascader:not(:last-child):after,.semi-input-group .semi-tree-select:not(:last-child):after,.semi-input-group>.semi-input-wrapper:not(:last-child):after{content:"";background-color:var(--semi-color-border);width:1px;position:absolute;right:-1px;top:1px;bottom:1px}.semi-input-group .semi-select{overflow-y:visible}.semi-input-group .semi-input-number,.semi-input-group .semi-datepicker,.semi-input-group .semi-timepicker,.semi-input-group .semi-autocomplete,.semi-input-group .semi-input-number .semi-datepicker-range-input,.semi-input-group .semi-datepicker .semi-datepicker-range-input,.semi-input-group .semi-timepicker .semi-datepicker-range-input,.semi-input-group .semi-autocomplete .semi-datepicker-range-input{border-radius:0}.semi-input-group .semi-input-number:first-child .semi-input-wrapper,.semi-input-group .semi-input-number:first-child .semi-datepicker-range-input,.semi-input-group .semi-datepicker:first-child .semi-input-wrapper,.semi-input-group .semi-datepicker:first-child .semi-datepicker-range-input,.semi-input-group .semi-timepicker:first-child .semi-input-wrapper,.semi-input-group .semi-timepicker:first-child .semi-datepicker-range-input,.semi-input-group .semi-autocomplete:first-child .semi-input-wrapper,.semi-input-group .semi-autocomplete:first-child .semi-datepicker-range-input{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-input-group .semi-input-number:last-child .semi-input-wrapper,.semi-input-group .semi-input-number:last-child .semi-datepicker-range-input,.semi-input-group .semi-datepicker:last-child .semi-input-wrapper,.semi-input-group .semi-datepicker:last-child .semi-datepicker-range-input,.semi-input-group .semi-timepicker:last-child .semi-input-wrapper,.semi-input-group .semi-timepicker:last-child .semi-datepicker-range-input,.semi-input-group .semi-autocomplete:last-child .semi-input-wrapper,.semi-input-group .semi-autocomplete:last-child .semi-datepicker-range-input{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-group .semi-input-number:not(:last-child),.semi-input-group .semi-datepicker:not(:last-child),.semi-input-group .semi-timepicker:not(:last-child),.semi-input-group .semi-autocomplete:not(:last-child){position:relative}.semi-input-group .semi-input-number:not(:last-child):after,.semi-input-group .semi-datepicker:not(:last-child):after,.semi-input-group .semi-timepicker:not(:last-child):after,.semi-input-group .semi-autocomplete:not(:last-child):after{content:"";background-color:var(--semi-color-border);width:1px;position:absolute;right:-1px;top:1px;bottom:1px}.semi-input-group-wrapper-with-top-label{margin-top:16px;margin-bottom:16px}.semi-input-group-wrapper-with-top-label .semi-input-group{display:flex}.semi-input-group-wrapper-with-top-label .semi-input-group .semi-form-field{margin-top:0;margin-bottom:0}.semi-input-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-input-borderless:focus-within:not(:active){background-color:transparent}.semi-input-borderless.semi-input-wrapper-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-input-borderless.semi-input-wrapper-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-autoComplete-option{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;word-break:break-all;padding:8px 12px;color:var(--semi-color-text-0);border-radius:0;position:relative;display:flex;flex-wrap:nowrap;align-items:center;cursor:pointer;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-autoComplete-option-icon{width:12px;color:transparent;visibility:hidden;margin-right:8px;display:flex;justify-content:center;align-content:center}.semi-autoComplete-option-text{display:flex;flex-wrap:wrap;white-space:pre}.semi-autoComplete-option-keyword{color:var(--semi-color-primary);background-color:inherit;font-weight:600}.semi-autoComplete-option:active{background-color:var(--semi-color-fill-1)}.semi-autoComplete-option-empty{cursor:not-allowed;color:var(--semi-color-disabled-text);justify-content:center}.semi-autoComplete-option-empty:hover,.semi-autoComplete-option-empty:active{background-color:inherit}.semi-autoComplete-option-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-autoComplete-option-disabled:hover{background-color:var(--semi-color-fill-0)}.semi-autoComplete-option-selected{font-weight:600}.semi-autoComplete-option-selected .semi-autoComplete-option-icon{visibility:visible;color:var(--semi-color-text-2)}.semi-autoComplete-option-focused{background-color:var(--semi-color-fill-0)}.semi-autoComplete-option:first-of-type{margin-top:4px}.semi-autoComplete-option:last-of-type{margin-bottom:4px}.semi-autocomplete{cursor:text;display:inline-flex;vertical-align:middle;box-sizing:border-box}.semi-autocomplete-option-list{overflow-x:hidden;overflow-y:auto}.semi-autocomplete-option-list-chosen .semi-autocomplete-option-icon{display:flex}.semi-autocomplete-loading-wrapper{padding-top:8px;padding-bottom:8px;cursor:not-allowed;height:20px}.semi-autocomplete-loading-wrapper .semi-spin{width:100%}.semi-rtl .semi-autocomplete,.semi-portal-rtl .semi-autocomplete{direction:rtl}.semi-avatar{position:relative;display:inline-flex;overflow:hidden;align-items:center;justify-content:center;white-space:nowrap;text-align:center;vertical-align:middle}.semi-avatar:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-avatar-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-avatar-no-focus-visible:focus-visible{outline:none}.semi-avatar .semi-avatar-label{display:flex;align-items:center;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600}.semi-avatar-content{-webkit-user-select:none;user-select:none}.semi-avatar-extra-extra-small{width:20px;height:20px;border-radius:3px}.semi-avatar-extra-extra-small .semi-avatar-content{transform-origin:center;transform:scale(.8)}.semi-avatar-extra-extra-small .semi-avatar-label{font-size:10px;line-height:15px}.semi-avatar-extra-small{width:24px;height:24px;border-radius:3px}.semi-avatar-extra-small .semi-avatar-content{transform-origin:center;transform:scale(.8)}.semi-avatar-extra-small .semi-avatar-label{font-size:10px;line-height:15px}.semi-avatar-small{width:32px;height:32px;border-radius:3px}.semi-avatar-small .semi-avatar-label{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-default{width:40px;height:40px;border-radius:3px}.semi-avatar-default .semi-avatar-label{font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-medium{width:48px;height:48px;border-radius:3px}.semi-avatar-medium .semi-avatar-label{font-size:20px;line-height:28px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-large{width:72px;height:72px;border-radius:6px}.semi-avatar-large .semi-avatar-label{font-size:32px;line-height:44px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-extra-large{width:128px;height:128px;border-radius:12px}.semi-avatar-extra-large .semi-avatar-label{font-size:64px;line-height:77px}.semi-avatar-circle{border-radius:var(--semi-border-radius-circle)}.semi-avatar-image{background-color:transparent}.semi-avatar>img{display:block;width:100%;height:100%;object-fit:cover}.semi-avatar-hover{position:absolute;left:0;top:0;width:100%;height:100%}.semi-avatar:hover{cursor:pointer}.semi-avatar-group{display:inline-block}.semi-avatar-group .semi-avatar{box-sizing:border-box}.semi-avatar-group .semi-avatar:first-child{margin-left:0}.semi-avatar-group .semi-avatar-extra-large{border:3px var(--semi-color-bg-1) solid;margin-left:-32px}.semi-avatar-group .semi-avatar-large{border:3px var(--semi-color-bg-1) solid;margin-left:-18px}.semi-avatar-group .semi-avatar-medium,.semi-avatar-group .semi-avatar-default,.semi-avatar-group .semi-avatar-small{border:2px var(--semi-color-bg-1) solid;margin-left:-12px}.semi-avatar-group .semi-avatar-extra-small{border:1px var(--semi-color-bg-1) solid;margin-left:-10px}.semi-avatar-group .semi-avatar-extra-extra-small{border:1px var(--semi-color-bg-1) solid;margin-left:-4px}.semi-avatar-group .semi-avatar-item-start-0{z-index:100}.semi-avatar-group .semi-avatar-item-end-0{z-index:80}.semi-avatar-group .semi-avatar-item-start-1{z-index:99}.semi-avatar-group .semi-avatar-item-end-1{z-index:81}.semi-avatar-group .semi-avatar-item-start-2{z-index:98}.semi-avatar-group .semi-avatar-item-end-2{z-index:82}.semi-avatar-group .semi-avatar-item-start-3{z-index:97}.semi-avatar-group .semi-avatar-item-end-3{z-index:83}.semi-avatar-group .semi-avatar-item-start-4{z-index:96}.semi-avatar-group .semi-avatar-item-end-4{z-index:84}.semi-avatar-group .semi-avatar-item-start-5{z-index:95}.semi-avatar-group .semi-avatar-item-end-5{z-index:85}.semi-avatar-group .semi-avatar-item-start-6{z-index:94}.semi-avatar-group .semi-avatar-item-end-6{z-index:86}.semi-avatar-group .semi-avatar-item-start-7{z-index:93}.semi-avatar-group .semi-avatar-item-end-7{z-index:87}.semi-avatar-group .semi-avatar-item-start-8{z-index:92}.semi-avatar-group .semi-avatar-item-end-8{z-index:88}.semi-avatar-group .semi-avatar-item-start-9{z-index:91}.semi-avatar-group .semi-avatar-item-end-9{z-index:89}.semi-avatar-group .semi-avatar-item-start-10,.semi-avatar-group .semi-avatar-item-end-10{z-index:90}.semi-avatar-group .semi-avatar-item-start-11{z-index:89}.semi-avatar-group .semi-avatar-item-end-11{z-index:91}.semi-avatar-group .semi-avatar-item-start-12{z-index:88}.semi-avatar-group .semi-avatar-item-end-12{z-index:92}.semi-avatar-group .semi-avatar-item-start-13{z-index:87}.semi-avatar-group .semi-avatar-item-end-13{z-index:93}.semi-avatar-group .semi-avatar-item-start-14{z-index:86}.semi-avatar-group .semi-avatar-item-end-14{z-index:94}.semi-avatar-group .semi-avatar-item-start-15{z-index:85}.semi-avatar-group .semi-avatar-item-end-15{z-index:95}.semi-avatar-group .semi-avatar-item-start-16{z-index:84}.semi-avatar-group .semi-avatar-item-end-16{z-index:96}.semi-avatar-group .semi-avatar-item-start-17{z-index:83}.semi-avatar-group .semi-avatar-item-end-17{z-index:97}.semi-avatar-group .semi-avatar-item-start-18{z-index:82}.semi-avatar-group .semi-avatar-item-end-18{z-index:98}.semi-avatar-group .semi-avatar-item-start-19{z-index:81}.semi-avatar-group .semi-avatar-item-end-19{z-index:99}.semi-avatar-group .semi-avatar-item-start-20{z-index:80}.semi-avatar-group .semi-avatar-item-end-20{z-index:100}.semi-avatar-group .semi-avatar-item-more{background-color:rgba(var(--semi-grey-5),1)}.semi-avatar-amber{background-color:rgba(var(--semi-amber-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-blue{background-color:rgba(var(--semi-blue-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-cyan{background-color:rgba(var(--semi-cyan-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-green{background-color:rgba(var(--semi-green-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-grey{background-color:rgba(var(--semi-grey-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-indigo{background-color:rgba(var(--semi-indigo-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-light-blue{background-color:rgba(var(--semi-light-blue-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-light-green{background-color:rgba(var(--semi-light-green-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-lime{background-color:rgba(var(--semi-lime-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-orange{background-color:rgba(var(--semi-orange-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-pink{background-color:rgba(var(--semi-pink-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-purple{background-color:rgba(var(--semi-purple-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-red{background-color:rgba(var(--semi-red-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-teal{background-color:rgba(var(--semi-teal-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-violet{background-color:rgba(var(--semi-violet-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-yellow{background-color:rgba(var(--semi-yellow-3),1);color:rgba(var(--semi-white),1)}.semi-rtl .semi-avatar,.semi-portal-rtl .semi-avatar{direction:rtl}.semi-rtl .semi-avatar-extra-extra-small .semi-avatar-content,.semi-portal-rtl .semi-avatar-extra-extra-small .semi-avatar-content,.semi-rtl .semi-avatar-extra-small .semi-avatar-content,.semi-portal-rtl .semi-avatar-extra-small .semi-avatar-content{transform:scale(.8)}.semi-rtl .semi-avatar-hover,.semi-portal-rtl .semi-avatar-hover{left:auto;right:0}.semi-rtl .semi-avatar-group,.semi-portal-rtl .semi-avatar-group{direction:rtl}.semi-rtl .semi-avatar-group .semi-avatar:first-child,.semi-portal-rtl .semi-avatar-group .semi-avatar:first-child{margin-left:auto;margin-right:0}.semi-rtl .semi-avatar-group .semi-avatar-extra-large,.semi-portal-rtl .semi-avatar-group .semi-avatar-extra-large{margin-left:auto;margin-right:-32px}.semi-rtl .semi-avatar-group .semi-avatar-large,.semi-portal-rtl .semi-avatar-group .semi-avatar-large{margin-left:auto;margin-right:-18px}.semi-rtl .semi-avatar-group .semi-avatar-medium,.semi-rtl .semi-avatar-group .semi-avatar-small,.semi-portal-rtl .semi-avatar-group .semi-avatar-medium,.semi-portal-rtl .semi-avatar-group .semi-avatar-small{margin-left:auto;margin-right:-12px}.semi-rtl .semi-avatar-group .semi-avatar-extra-small,.semi-portal-rtl .semi-avatar-group .semi-avatar-extra-small{margin-left:auto;margin-right:-10px}.semi-rtl .semi-avatar-group .semi-avatar-extra-extra-small,.semi-portal-rtl .semi-avatar-group .semi-avatar-extra-extra-small{margin-left:auto;margin-right:-4px}.semi-button-split{display:inline-block}.semi-button-split .semi-button{border-radius:0;margin-right:1px}.semi-button-split .semi-button-first{border-top-left-radius:var(--semi-border-radius-small);border-bottom-left-radius:var(--semi-border-radius-small)}.semi-button-split .semi-button-last{border-top-right-radius:var(--semi-border-radius-small);border-bottom-right-radius:var(--semi-border-radius-small);margin-right:unset}.semi-button-split:hover .semi-button-borderless:active{background-color:var(--semi-color-fill-1)}.semi-button{box-shadow:none;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;border:0 transparent solid;border-radius:var(--semi-border-radius-small);padding:6px 12px;font-weight:600;outline:none;vertical-align:middle;white-space:nowrap}.semi-button.semi-button-primary:focus-visible,.semi-button.semi-button-secondary:focus-visible,.semi-button.semi-button-tertiary:focus-visible,.semi-button.semi-button-warning:focus-visible,.semi-button.semi-button-danger:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-button-danger{background-color:var(--semi-color-danger);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-danger-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-danger-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-danger:hover{background-color:var(--semi-color-danger-hover)}.semi-button-danger:active{background-color:var(--semi-color-danger-active)}.semi-button-danger.semi-button-light,.semi-button-danger.semi-button-borderless{color:var(--semi-color-danger)}.semi-button-danger:not(.semi-button-borderless):not(.semi-button-light):focus-visible{outline:2px solid var(--semi-color-danger-light-active)}.semi-button-warning{background-color:var(--semi-color-warning);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-warning-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-warning-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-warning:hover{background-color:var(--semi-color-warning-hover)}.semi-button-warning:active{background-color:var(--semi-color-warning-active)}.semi-button-warning.semi-button-light,.semi-button-warning.semi-button-borderless{color:var(--semi-color-warning)}.semi-button-warning:not(.semi-button-borderless):not(.semi-button-light):focus-visible{outline:2px solid var(--semi-color-warning-light-active)}.semi-button-tertiary{background-color:var(--semi-color-tertiary);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-tertiary-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-tertiary-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-tertiary:hover{background-color:var(--semi-color-tertiary-hover)}.semi-button-tertiary:active{background-color:var(--semi-color-tertiary-active)}.semi-button-tertiary.semi-button-light,.semi-button-tertiary.semi-button-borderless{color:var(--semi-color-text-1)}.semi-button-primary{background-color:var(--semi-color-primary);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-primary-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-primary-disabled.semi-button-light{background:var(--semi-color-fill-0)}.semi-button-primary:not(.semi-button-borderless):not(.semi-button-light):hover{background-color:var(--semi-color-primary-hover)}.semi-button-primary:not(.semi-button-borderless):not(.semi-button-light):active{background-color:var(--semi-color-primary-active)}.semi-button-primary.semi-button-light,.semi-button-primary.semi-button-borderless{color:var(--semi-color-primary)}.semi-button-secondary{background-color:var(--semi-color-secondary);outline-color:var(--semi-color-secondary);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-secondary-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-secondary-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-secondary:hover{background-color:var(--semi-color-secondary-hover)}.semi-button-secondary:active{background-color:var(--semi-color-secondary-active)}.semi-button-secondary.semi-button-light,.semi-button-secondary.semi-button-borderless{color:var(--semi-color-secondary)}.semi-button-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-button-disabled:not(.semi-button-borderless):not(.semi-button-light):hover{color:var(--semi-color-disabled-text)}.semi-button-disabled.semi-button-light,.semi-button-disabled.semi-button-borderless{color:var(--semi-color-disabled-text)}.semi-button-borderless{background-color:transparent;border:0 transparent solid;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-borderless:not(.semi-button-disabled):hover{background-color:var(--semi-color-fill-0);border:0 transparent solid}.semi-button-borderless:not(.semi-button-disabled):active{background-color:var(--semi-color-fill-1);border:0 transparent solid}.semi-button-light{background-color:var(--semi-color-fill-0);border:0 transparent solid;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-light:not(.semi-button-disabled):hover{background-color:var(--semi-color-fill-1);border:0 transparent solid}.semi-button-light:not(.semi-button-disabled):active{background-color:var(--semi-color-fill-2);border:0 transparent solid}.semi-button-size-small{height:24px;padding:2px 12px}.semi-button-size-large{height:40px;padding:10px 16px}.semi-button-block{width:100%}.semi-button-group{display:flex;flex-wrap:wrap}.semi-button-group>.semi-button{margin:0;padding-left:0;padding-right:0;border-radius:0}.semi-button-group>.semi-button .semi-button-content{padding-left:12px;padding-right:12px}.semi-button-group>.semi-button-size-large .semi-button-content{padding-left:16px;padding-right:16px}.semi-button-group>.semi-button-size-small .semi-button-content{padding-left:12px;padding-right:12px}.semi-button-group>.semi-button.semi-button-with-icon-only{padding-left:0;padding-right:0}.semi-button-group>.semi-button.semi-button-with-icon-only .semi-button-content{padding-left:8px;padding-right:8px}.semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-small .semi-button-content{padding-left:4px;padding-right:4px}.semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-large .semi-button-content{padding-left:12px;padding-right:12px}.semi-button-group>.semi-button:first-child{border-top-left-radius:var(--semi-border-radius-small);border-bottom-left-radius:var(--semi-border-radius-small)}.semi-button-group>.semi-button:last-child{border-top-right-radius:var(--semi-border-radius-small);border-bottom-right-radius:var(--semi-border-radius-small)}.semi-button-group-line{display:inline-flex;align-items:center;background-color:var(--semi-color-border)}.semi-button-group-line-primary{background-color:var(--semi-color-primary)}.semi-button-group-line-secondary{background-color:var(--semi-color-secondary)}.semi-button-group-line-tertiary{background-color:var(--semi-color-tertiary)}.semi-button-group-line-warning{background-color:var(--semi-color-warning)}.semi-button-group-line-danger{background-color:var(--semi-color-danger)}.semi-button-group-line-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-group-line-light{background-color:var(--semi-color-fill-0)}.semi-button-group-line-borderless{background-color:transparent}.semi-button-group-line:before{display:block;content:"";width:1px;height:20px;background-color:var(--semi-color-border)}.semi-button.semi-button-with-icon{display:inline-flex;align-items:center}.semi-button.semi-button-with-icon .semi-button-content{display:flex;align-items:center;justify-content:center}.semi-button.semi-button-loading{pointer-events:none;cursor:not-allowed}.semi-button.semi-button-loading .semi-button-content>svg{width:16px;height:16px;animation:.6s linear infinite semi-animation-rotate;animation-fill-mode:forwards}.semi-button.semi-button-with-icon-only{padding:8px;justify-content:center;align-items:center}.semi-button.semi-button-with-icon-only.semi-button-size-small{padding:4px}.semi-button.semi-button-with-icon-only.semi-button-size-large{padding:12px}.semi-button-content-left{margin-right:8px}.semi-button-content-right{margin-left:8px}.semi-rtl .semi-button,.semi-portal-rtl .semi-button{direction:rtl;padding-left:12px;padding-right:12px}.semi-rtl .semi-button-size-small,.semi-portal-rtl .semi-button-size-small{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-size-large,.semi-portal-rtl .semi-button-size-large{padding-left:16px;padding-right:16px}.semi-rtl .semi-button-group,.semi-portal-rtl .semi-button-group{direction:rtl}.semi-rtl .semi-button-group>.semi-button,.semi-portal-rtl .semi-button-group>.semi-button{padding-left:0;padding-right:0}.semi-rtl .semi-button-group>.semi-button .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button .semi-button-content{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-group>.semi-button-size-large .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button-size-large .semi-button-content{padding-left:16px;padding-right:16px}.semi-rtl .semi-button-group>.semi-button-size-small .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button-size-small .semi-button-content{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only{padding-left:0;padding-right:0}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only .semi-button-content{padding-left:8px;padding-right:8px}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-small .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-small .semi-button-content{padding-left:4px;padding-right:4px}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-large .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-large .semi-button-content{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-group>.semi-button:first-child,.semi-portal-rtl .semi-button-group>.semi-button:first-child{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--semi-border-radius-small);border-bottom-right-radius:var(--semi-border-radius-small)}.semi-rtl .semi-button-group>.semi-button:not(:last-child) .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button:not(:last-child) .semi-button-content{border-left:1px var(--semi-color-border) solid;border-right:0}.semi-rtl .semi-button-group>.semi-button:last-child,.semi-portal-rtl .semi-button-group>.semi-button:last-child{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--semi-border-radius-small);border-bottom-left-radius:var(--semi-border-radius-small)}.semi-rtl .semi-button.semi-button-with-icon-only,.semi-portal-rtl .semi-button.semi-button-with-icon-only{padding-left:8px;padding-right:8px}.semi-rtl .semi-button.semi-button-with-icon-only.semi-button-size-small,.semi-portal-rtl .semi-button.semi-button-with-icon-only.semi-button-size-small{padding-left:4px;padding-right:4px}.semi-rtl .semi-button.semi-button-with-icon-only.semi-button-size-large,.semi-portal-rtl .semi-button.semi-button-with-icon-only.semi-button-size-large{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-content-left,.semi-portal-rtl .semi-button-content-left{margin-left:8px;margin-right:0}.semi-rtl .semi-button-content-right,.semi-portal-rtl .semi-button-content-right{margin-right:8px;margin-left:0}.semi-card{box-sizing:border-box;margin:0;padding:0;border-radius:var(--semi-border-radius-medium);overflow:hidden;background-color:var(--semi-color-bg-0);font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em}.semi-card-shadows{cursor:pointer;transition:box-shadow .3s}.semi-card-shadows-hover:hover{box-shadow:var(--semi-shadow-elevated);z-index:1}.semi-card-shadows-always{box-shadow:var(--semi-shadow-elevated)}.semi-card-bordered{border:1px solid var(--semi-color-border)}.semi-card-header{padding:20px}.semi-card-header-bordered{border-bottom:1px solid var(--semi-color-border)}.semi-card-header-wrapper{display:flex;align-items:flex-start;flex-direction:row-reverse;justify-content:space-between}.semi-card-header-wrapper-spacing{margin-right:20px}.semi-card-header-wrapper-title{width:100%;overflow:hidden}.semi-card-header-wrapper-extra{flex-shrink:0;font-size:16px;font-style:normal;font-weight:700;letter-spacing:0em;color:var(--semi-color-text-0)}.semi-card-cover>*{display:block;width:100%}.semi-card-body{padding:20px;font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em;color:var(--semi-color-text-1)}.semi-card-body-actions{margin-top:20px;padding-top:20px;border-top:1px solid var(--semi-color-border)}.semi-card-footer{padding:20px}.semi-card-footer-bordered{border-top:1px solid var(--semi-color-border)}.semi-card-meta{display:flex;align-items:center;justify-content:flex-start}.semi-card-meta-avatar{margin-right:12px}.semi-card-meta-wrapper-title{font-size:16px;font-style:normal;font-weight:700;line-height:22px;letter-spacing:0em;color:var(--semi-color-text-0)}.semi-card-meta-wrapper-description{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em;color:var(--semi-color-text-2)}.semi-card-group-grid .semi-card{border-radius:0}.semi-card-group-grid .semi-card{margin-left:-1px;margin-top:-1px}.semi-rtl .semi-card,.semi-portal-rtl .semi-card{direction:rtl}.semi-rtl .semi-card-header-wrapper,.semi-portal-rtl .semi-card-header-wrapper{align-items:flex-end}.semi-rtl .semi-card-header-wrapper-title,.semi-portal-rtl .semi-card-header-wrapper-title{display:flex;align-items:flex-end}.semi-rtl .semi-card-header-wrapper-spacing,.semi-portal-rtl .semi-card-header-wrapper-spacing{margin-left:20px;margin-right:0}.semi-rtl .semi-card-meta-avatar,.semi-portal-rtl .semi-card-meta-avatar{margin-left:12px;margin-right:0}.semi-rtl .semi-card-group,.semi-portal-rtl .semi-card-group{direction:rtl}.semi-rtl .semi-card-group-grid .semi-card,.semi-portal-rtl .semi-card-group-grid .semi-card{margin:0 -1px -1px 0}.semi-skeleton-avatar,.semi-skeleton-image,.semi-skeleton-title,.semi-skeleton-button{background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small)}.semi-skeleton-avatar-circle{border-radius:50%}.semi-skeleton-avatar-extra-extra-small{width:20px;height:20px}.semi-skeleton-avatar-extra-small{width:24px;height:24px}.semi-skeleton-avatar-medium{width:48px;height:48px}.semi-skeleton-avatar-small{width:32px;height:32px}.semi-skeleton-avatar-large{width:72px;height:72px}.semi-skeleton-avatar-extra-large{width:128px;height:128px}.semi-skeleton-paragraph{margin:0;padding:0;list-style-type:none}.semi-skeleton-paragraph li{background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small);width:100%;height:16px;margin-bottom:10px}.semi-skeleton-paragraph li:last-child{width:60%;margin-bottom:0}.semi-skeleton-paragraph li:first-child{width:100%}.semi-skeleton-title{width:100%;height:24px}.semi-skeleton-button{width:115px;height:32px}.semi-skeleton-image{width:100%;height:100%}.semi-skeleton-active .semi-skeleton-avatar,.semi-skeleton-active .semi-skeleton-image,.semi-skeleton-active .semi-skeleton-title,.semi-skeleton-active .semi-skeleton-button,.semi-skeleton-active .semi-skeleton-paragraph li{background:linear-gradient(90deg,var(--semi-color-fill-0) 25%,var(--semi-color-fill-1) 44%,var(--semi-color-fill-0) 88%);background-size:400% 100%;animation:1.4s skeleton-loading ease infinite;animation-fill-mode:forwards}@keyframes skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.semi-rtl .semi-skeleton,.semi-portal-rtl .semi-skeleton{direction:rtl}.semi-space{display:inline-flex}.semi-space-vertical{flex-direction:column}.semi-space-horizontal{flex-direction:row}.semi-space-align-center{align-items:center}.semi-space-align-end{align-items:flex-end}.semi-space-align-start{align-items:flex-start}.semi-space-align-baseline{align-items:baseline}.semi-space-wrap{flex-wrap:wrap}.semi-space-tight-horizontal{column-gap:8px}.semi-space-tight-vertical{row-gap:8px}.semi-space-medium-horizontal{column-gap:16px}.semi-space-medium-vertical{row-gap:16px}.semi-space-loose-horizontal{column-gap:24px}.semi-space-loose-vertical{row-gap:24px}.semi-rtl .semi-space,.semi-portal-rtl .semi-space{direction:rtl}.semi-cascader{box-sizing:border-box;border-radius:var(--semi-border-radius-small);border:1px solid transparent;min-width:80px;min-height:32px;height:auto;line-height:32px;font-weight:400;background-color:var(--semi-color-fill-0);display:inline-flex;align-items:center;vertical-align:middle;position:relative;cursor:pointer}.semi-cascader:hover{background-color:var(--semi-color-fill-1);border:1px transparent solid}.semi-cascader:focus:not(.semi-cascader-disabled){border:1px solid var(--semi-color-focus-border);background-color:var(--semi-color-fill-0);outline:0}.semi-cascader:active{background-color:var(--semi-color-fill-2)}.semi-cascader-small{min-height:24px;line-height:24px}.semi-cascader-large{min-height:40px;line-height:40px}.semi-cascader-large .semi-cascader-selection{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-cascader-focus{border:1px solid var(--semi-color-focus-border);outline:0}.semi-cascader-focus:hover{background-color:var(--semi-color-fill-0);border:1px solid var(--semi-color-focus-border)}.semi-cascader-focus:active{background-color:var(--semi-color-fill-2)}.semi-cascader-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-cascader-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-cascader-warning.semi-cascader-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-cascader-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning-light-active)}.semi-cascader-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-cascader-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-cascader-error.semi-cascader-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-cascader-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger-light-active)}.semi-cascader-selection{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;display:inline-flex;align-items:center;flex-wrap:wrap;flex-grow:1;overflow:hidden;padding-left:12px;padding-right:12px;cursor:pointer;color:var(--semi-color-text-0)}.semi-cascader-selection-multiple{padding-left:4px;padding-right:4px}.semi-cascader-selection-placeholder{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--semi-color-text-2)}.semi-cascader-selection-tag{margin:1px 2px 1px 0}.semi-cascader-selection-tag:first-child{margin-left:0}.semi-cascader-selection-tag-disabled.semi-tag{color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-cascader-selection-tag-disabled.semi-tag .semi-tag-close{color:var(--semi-color-disabled-text);cursor:not-allowed;pointer-events:none}.semi-cascader-selection-n{cursor:pointer;font-size:12px;margin-right:4px;color:var(--semi-color-text-0);padding-left:8px;padding-right:8px}.semi-cascader-selection-n-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-cascader-selection span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.semi-cascader-selection .semi-cascader-tagInput-wrapper{border:hidden;background:transparent;margin-left:-4px}.semi-cascader-selection .semi-tagInput{min-height:30px}.semi-cascader-selection .semi-tagInput-small{min-height:22px}.semi-cascader-selection .semi-tagInput-large{min-height:38px}.semi-cascader-selection .semi-tagInput .semi-input-wrapper{margin-left:4px}.semi-cascader-selection .semi-tagInput .semi-input-wrapper .semi-input{padding-left:0}.semi-cascader-selection .semi-tagInput .semi-input-wrapper-default,.semi-cascader-selection .semi-tagInput .semi-input-wrapper-large{margin-top:1px;margin-bottom:1px}.semi-cascader-selection-text-inactive{color:var(--semi-color-text-2)}.semi-cascader-selection-text-hide{display:none}.semi-cascader-arrow,.semi-cascader-clearbtn{display:inline-flex;align-items:center;height:100%;justify-content:center;width:16px;color:var(--semi-color-text-2);margin-right:12px}.semi-cascader-clearbtn:hover{color:var(--semi-color-primary-hover)}.semi-cascader-clearbtn:active{color:var(--semi-color-primary-active)}.semi-cascader-prefix,.semi-cascader-suffix{display:inline;display:flex;justify-content:center;align-items:center}.semi-cascader-prefix-text,.semi-cascader-suffix-text{margin:0 12px}.semi-cascader-prefix-icon,.semi-cascader-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-cascader-inset-label{display:inline;margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-cascader.semi-cascader-with-prefix{display:inline-flex;align-items:center}.semi-cascader.semi-cascader-with-prefix .semi-cascader-selection{padding-left:0}.semi-cascader.semi-cascader-with-suffix .semi-cascader-selection{padding-right:0}.semi-cascader-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;background-color:var(--semi-color-disabled-fill)}.semi-cascader-disabled .semi-cascader-selection{cursor:not-allowed}.semi-cascader-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-cascader-disabled .semi-cascader-selection,.semi-cascader-disabled .semi-cascader-selection-placeholder,.semi-cascader-disabled .semi-cascader-prefix,.semi-cascader-disabled .semi-cascader-suffix{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-cascader-disabled .semi-cascader-arrow{color:var(--semi-color-disabled-text)}.semi-cascader-popover .semi-cascader-search-wrapper{padding:8px 12px;border-bottom:1px solid var(--semi-color-fill-0)}.semi-cascader-popover .semi-cascader-option-empty{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-width:150px;color:var(--semi-color-disabled-text);margin:0;padding:8px 12px;-webkit-user-select:none;user-select:none;text-align:center;cursor:not-allowed}.semi-cascader-single.semi-cascader-filterable{display:inline-flex}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper{width:100%;height:30px;display:flex;align-items:center;position:relative}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper-small{height:22px}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper-large{height:38px}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper .semi-input-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;border:none;background-color:transparent}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper .semi-input-wrapper-focus{border:none}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper .semi-input{padding-left:0;padding-right:0}.semi-cascader-option-lists{display:flex;overflow:hidden;padding:0;margin:0;height:180px}.semi-cascader-option-lists-empty{height:auto}.semi-cascader-option-lists ul,.semi-cascader-option-lists li{list-style-type:none;padding:0;margin:0}.semi-cascader-option-lists ul>li{padding:8px 16px 8px 12px}.semi-cascader-option-lists .semi-cascader-option-list{box-sizing:border-box;display:inline-block;min-width:150px;height:100%;margin:0;padding:4px 0;overflow:auto;list-style:none;border-left:1px solid var(--semi-color-fill-0)}.semi-cascader-option-lists .semi-cascader-option-list:first-child{border-left:none}.semi-cascader-option-lists .semi-cascader-option{display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-width:min-content;word-break:break-all;color:var(--semi-color-text-0);position:relative}.semi-cascader-option-lists .semi-cascader-option:hover{background-color:var(--semi-color-fill-0)}.semi-cascader-option-lists .semi-cascader-option:active{background-color:var(--semi-color-fill-1)}.semi-cascader-option-lists .semi-cascader-option-icon{display:inline-flex;flex-shrink:0;width:16px;color:var(--semi-color-text-2)}.semi-cascader-option-lists .semi-cascader-option-icon-active,.semi-cascader-option-lists .semi-cascader-option-icon-empty{margin-right:8px}.semi-cascader-option-lists .semi-cascader-option-icon-left{margin-left:8px}.semi-cascader-option-lists .semi-cascader-option-spin-icon{width:16px;height:16px;line-height:0}.semi-cascader-option-lists .semi-cascader-option-spin-icon svg{width:16px;height:16px}.semi-cascader-option-lists .semi-cascader-option-label{display:flex;align-items:center;white-space:pre}.semi-cascader-option-lists .semi-cascader-option-label-checkbox{margin-right:8px}.semi-cascader-option-lists .semi-cascader-option-hidden{display:none}.semi-cascader-option-lists .semi-cascader-option-active,.semi-cascader-option-lists .semi-cascader-option-active:hover{background-color:var(--semi-color-primary-light-default)}.semi-cascader-option-lists .semi-cascader-option-select,.semi-cascader-option-lists .semi-cascader-option-label-highlight{font-weight:600;color:var(--semi-color-primary)}.semi-cascader-option-lists .semi-cascader-option-disabled{cursor:not-allowed}.semi-cascader-option-lists .semi-cascader-option-disabled:hover,.semi-cascader-option-lists .semi-cascader-option-disabled:active{background-color:transparent}.semi-cascader-option-lists .semi-cascader-option-disabled .semi-cascader-option-label{color:var(--semi-color-disabled-text)}.semi-cascader-option-lists .semi-cascader-option-flatten{padding-right:64px}.semi-cascader-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-cascader-borderless:not(:focus-within):not(:hover) .semi-cascader-arrow{opacity:0}.semi-cascader-borderless:focus-within:not(:active){background-color:transparent}.semi-cascader-borderless.semi-cascader-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-cascader-borderless.semi-cascader-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-cascader-borderless.semi-cascader-error:focus-within{border-color:var(--semi-color-danger)}.semi-cascader-borderless.semi-cascader-warning:focus-within{border-color:var(--semi-color-warning)}.semi-rtl .semi-cascader,.semi-portal-rtl .semi-cascader{direction:rtl}.semi-rtl .semi-cascader-arrow,.semi-rtl .semi-cascader-clearbtn,.semi-portal-rtl .semi-cascader-arrow,.semi-portal-rtl .semi-cascader-clearbtn{margin-right:0;margin-left:12px}.semi-rtl .semi-cascader-inset-label,.semi-portal-rtl .semi-cascader-inset-label{margin-right:12px;margin-left:12px}.semi-rtl .semi-cascader.semi-cascader-with-prefix .semi-cascader-selection,.semi-portal-rtl .semi-cascader.semi-cascader-with-prefix .semi-cascader-selection{padding-left:auto;padding-right:0}.semi-rtl .semi-cascader.semi-cascader-with-suffix .semi-cascader-selection,.semi-portal-rtl .semi-cascader.semi-cascader-with-suffix .semi-cascader-selection{padding-right:auto;padding-left:0}.semi-rtl .semi-cascader-selection-multiple,.semi-portal-rtl .semi-cascader-selection-multiple{padding-right:4px;padding-left:4px}.semi-rtl .semi-cascader-selection-tag:first-child,.semi-portal-rtl .semi-cascader-selection-tag:first-child{margin-right:0}.semi-rtl .semi-cascader-selection-n,.semi-portal-rtl .semi-cascader-selection-n{margin-right:0;margin-left:4px}.semi-rtl .semi-cascader-selection .semi-cascader-tagInput-wrapper,.semi-portal-rtl .semi-cascader-selection .semi-cascader-tagInput-wrapper{margin-left:0;margin-right:-4px}.semi-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper,.semi-portal-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper{margin-left:0;margin-right:4px}.semi-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper .semi-input,.semi-portal-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper .semi-input{padding-right:0}.semi-cascader-option-label-checkbox{margin-right:0;margin-left:8px}.semi-cascader-option-lists-rtl{direction:rtl}.semi-cascader-option-lists .semi-cascader-option-lists-rtl ul>li{padding-right:12px;padding-left:auto}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-list{border-left:0;border-right:1px solid var(--semi-color-fill-0)}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-list:first-child{border-right:none}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-icon-active,.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-icon-empty{margin-right:0;margin-left:8px}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-flatten{padding-right:0;padding-left:64px}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option .semi-icon-chevron_right{transform:scaleX(-1)}.semi-checkbox{box-sizing:border-box;position:relative;display:flex;align-items:flex-start;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none));column-gap:8px}.semi-checkbox input[type=checkbox]{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;opacity:0}.semi-checkbox-content{flex:1;display:flex;flex-direction:column;row-gap:4px}.semi-checkbox-addon{display:flex;flex:1;align-items:center;color:var(--semi-color-text-0);line-height:20px;-webkit-user-select:none;user-select:none}.semi-checkbox:hover .semi-checkbox-inner-display{background:var(--semi-color-fill-0);box-shadow:inset 0 0 0 1px var(--semi-color-focus-border)}.semi-checkbox:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-hover);box-shadow:none}.semi-checkbox:active .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-active);box-shadow:none}.semi-checkbox.semi-checkbox-disabled:hover .semi-checkbox-inner-display,.semi-checkbox.semi-checkbox-disabled:active .semi-checkbox-inner-display{background:var(--semi-color-disabled-fill);box-shadow:inset 0 0 0 1px var(--semi-color-border)}.semi-checkbox.semi-checkbox-disabled:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display,.semi-checkbox.semi-checkbox-disabled:active .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-disabled);box-shadow:none}.semi-checkbox-inner{position:relative;display:flex;align-items:center;width:16px;height:20px;-webkit-user-select:none;user-select:none;cursor:pointer}.semi-checkbox-inner-display{box-sizing:border-box;position:relative;width:16px;height:16px;margin:0;background:transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);box-shadow:inset 0 0 0 1px var(--semi-color-text-3);border-radius:var(--semi-border-radius-extra-small)}.semi-checkbox-inner-display .semi-icon{font-size:16px}.semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary);color:var(--semi-color-white);box-shadow:inset 0 0 0 1px var(--semi-color-primary);border-radius:var(--semi-border-radius-extra-small)}.semi-checkbox-inner-checked>.semi-checkbox-addon{color:var(--semi-color-text-0)}.semi-checkbox:hover .semi-checkbox-inner-display{background:var(--semi-color-fill-0)}.semi-checkbox:hover.semi-checkbox-indeterminate .semi-checkbox-inner-display{background:var(--semi-color-primary-hover);box-shadow:none;color:var(--semi-color-white)}.semi-checkbox:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-hover);border-color:var(--semi-color-primary-hover);color:var(--semi-color-white)}.semi-checkbox:hover.semi-checkbox-cardType.semi-checkbox-unChecked.semi-checkbox-cardType_unDisabled .semi-checkbox-inner-display{background:var(--semi-color-white)}.semi-checkbox:active .semi-checkbox-inner-display{background:var(--semi-color-fill-1)}.semi-checkbox:active.semi-checkbox-indeterminate .semi-checkbox-inner-display{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active);color:var(--semi-color-white);box-shadow:none}.semi-checkbox:active .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active);color:var(--semi-color-white)}.semi-checkbox:active.semi-checkbox-cardType.semi-checkbox-unChecked.semi-checkbox-cardType_unDisabled .semi-checkbox-inner-display{background:var(--semi-color-white)}.semi-checkbox-cardType{flex-wrap:nowrap;align-items:flex-start;border-radius:3px;padding:12px 16px;background:transparent;border:1px solid transparent}.semi-checkbox-cardType .semi-checkbox-inner{position:relative;flex-shrink:0}.semi-checkbox-cardType .semi-checkbox-inner-display{background:var(--semi-color-white)}.semi-checkbox-cardType .semi-checkbox-inner-pureCardType{opacity:0;width:0}.semi-checkbox-cardType .semi-checkbox-addon{font-weight:600;font-size:14px;line-height:20px;color:var(--semi-color-text-0)}.semi-checkbox-cardType .semi-checkbox-extra{font-weight:400;font-size:14px;line-height:20px;color:var(--semi-color-text-2)}.semi-checkbox-cardType .semi-checkbox-extra.semi-checkbox-cardType_extra_noChildren{margin-top:0}.semi-checkbox-cardType:hover{background:var(--semi-color-fill-0)}.semi-checkbox-cardType:active{background:var(--semi-color-fill-1)}.semi-checkbox-cardType_checked{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary)}.semi-checkbox-cardType_checked:hover{background:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary-hover)}.semi-checkbox-cardType_checked:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{box-shadow:none}.semi-checkbox-cardType_checked:active{background:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary-active)}.semi-checkbox-cardType_disabled:active,.semi-checkbox-cardType_disabled:hover{background:transparent}.semi-checkbox-cardType_checked_disabled.semi-checkbox-cardType{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary-disabled)}.semi-checkbox-cardType_checked_disabled.semi-checkbox-cardType:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{box-shadow:none}.semi-checkbox-indeterminate .semi-checkbox-inner-display,.semi-checkbox-checked .semi-checkbox-inner-display{background:var(--semi-color-primary);color:var(--semi-color-white);box-shadow:inset 0 0 0 1px var(--semi-color-primary);border-radius:var(--semi-border-radius-extra-small)}.semi-checkbox-indeterminate .semi-checkbox-inner-display:hover,.semi-checkbox-checked .semi-checkbox-inner-display:hover{background:var(--semi-color-primary-hover);border-color:var(--semi-color-primary-hover);color:var(--semi-color-white)}.semi-checkbox-indeterminate .semi-checkbox-inner-display:active,.semi-checkbox-checked .semi-checkbox-inner-display:active{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active);color:var(--semi-color-white)}.semi-checkbox-indeterminate .semi-checkbox-inner-addon,.semi-checkbox-checked .semi-checkbox-inner-addon{color:var(--semi-color-text-0)}.semi-checkbox-disabled,.semi-checkbox-disabled .semi-checkbox-inner{cursor:not-allowed}.semi-checkbox-disabled .semi-checkbox-inner-display{color:var(--semi-color-white);background:var(--semi-color-disabled-fill);box-shadow:inset 0 0 0 1px var(--semi-color-border)}.semi-checkbox-disabled .semi-checkbox-inner-display:hover{color:var(--semi-color-white);background:transparent}.semi-checkbox-disabled .semi-checkbox-inner-checked{color:var(--semi-color-white)}.semi-checkbox-disabled .semi-checkbox-inner-checked .semi-checkbox-inner-display{opacity:.75;background:var(--semi-color-primary-disabled);box-shadow:inset 0 0 0 1px var(--semi-color-primary-disabled)}.semi-checkbox-disabled .semi-checkbox-inner-checked .semi-checkbox-inner-display:hover{color:var(--semi-color-white);background:var(--semi-color-primary-disabled)}.semi-checkbox-disabled .semi-checkbox-addon,.semi-checkbox-disabled .semi-checkbox-extra{color:var(--semi-color-disabled-text)}.semi-checkbox.semi-checkbox-disabled.semi-checkbox-indeterminate .semi-checkbox-inner-display{opacity:.75;background:var(--semi-color-primary-disabled);box-shadow:inset 0 0 0 1px var(--semi-color-primary-disabled);color:var(--semi-color-white)}.semi-checkbox-extra{flex-shrink:0;flex-grow:1;flex-basis:100%;box-sizing:border-box;color:var(--semi-color-text-2)}.semi-checkbox-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-checkbox-focus-border{box-shadow:inset 0 0 0 1px var(--semi-color-focus-border)}.semi-checkboxGroup{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:14px}.semi-checkboxGroup .semi-checkbox.semi-checkbox-vertical{margin-bottom:16px}.semi-checkboxGroup-horizontal{display:flex;flex-wrap:wrap;gap:16px}.semi-checkboxGroup-horizontal .semi-checkbox{display:inline-flex}.semi-checkboxGroup-vertical{display:flex;flex-direction:column;row-gap:12px}.semi-checkboxGroup-vertical-cardType{row-gap:16px}.semi-checkboxGroup-vertical-pureCardType .semi-checkbox{column-gap:0}.semi-rtl .semi-checkbox,.semi-portal-rtl .semi-checkbox{direction:rtl}.semi-rtl .semi-checkbox input[type=checkbox],.semi-portal-rtl .semi-checkbox input[type=checkbox]{left:auto;right:0}.semi-rtl .semi-checkboxGroup,.semi-portal-rtl .semi-checkboxGroup{direction:rtl}.semi-tag{box-sizing:border-box;border-radius:var(--semi-border-radius-small);background-color:transparent;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:flex;justify-content:center;align-items:center;display:inline-flex}.semi-tag-default,.semi-tag-small{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:20px;padding:2px 8px}.semi-tag-default:focus-visible,.semi-tag-small:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-tag-square{border-radius:var(--semi-border-radius-small)}.semi-tag-circle{border-radius:var(--semi-border-radius-full)}.semi-tag-large{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;padding:4px 8px;height:24px}.semi-tag-large:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-tag-invisible{display:none}.semi-tag-prefix-icon{display:flex;padding-right:4px}.semi-tag-suffix-icon{display:flex;padding-left:4px}.semi-tag-content{flex:1}.semi-tag-content-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.semi-tag-content-center{display:flex;justify-content:center;align-items:center;height:100%;min-width:0}.semi-tag-close{display:flex;justify-content:center;align-items:center;color:var(--semi-color-text-2);padding-left:4px;cursor:pointer}.semi-tag-close:hover{color:var(--semi-color-text-1)}.semi-tag-close:active{color:var(--semi-color-text-0)}.semi-tag-closable{padding:4px 4px 4px 8px}.semi-tag-avatar-square .semi-avatar,.semi-tag-avatar-circle .semi-avatar{margin-right:4px}.semi-tag-avatar-square{padding:0 4px 0 0}.semi-tag-avatar-square .semi-avatar>img{background-color:var(--semi-color-default)}.semi-tag-avatar-circle{padding:2px 4px 2px 2px}.semi-tag-avatar-square.semi-tag-default .semi-avatar,.semi-tag-avatar-square.semi-tag-small .semi-avatar{width:20px;height:20px}.semi-tag-avatar-square.semi-tag-large .semi-avatar{width:24px;height:24px}.semi-tag-avatar-circle.semi-tag-small,.semi-tag-avatar-circle.semi-tag-default{border-radius:11px}.semi-tag-avatar-circle.semi-tag-small .semi-avatar,.semi-tag-avatar-circle.semi-tag-default .semi-avatar{width:16px;height:16px}.semi-tag-avatar-circle.semi-tag-large{border-radius:13px}.semi-tag-avatar-circle.semi-tag-large .semi-avatar{width:20px;height:20px}.semi-tag-group{display:block;height:auto}.semi-tag-group .semi-tag{margin-bottom:0;margin-right:8px}.semi-tag-group-max.semi-tag-group-small{height:22px}.semi-tag-group-max.semi-tag-group-large{height:26px}.semi-tag-rest-group-popover .semi-tag{margin-right:8px;margin-bottom:0}.semi-tag-rest-group-popover .semi-tag:last-of-type{margin-right:0}.semi-tag-amber-ghost{background-color:transparent;border:1px solid rgba(var(--semi-amber-4),1);color:rgba(var(--semi-amber-5),1)}.semi-tag-amber-solid{background-color:rgba(var(--semi-amber-5),1);color:rgba(var(--semi-white),1)}.semi-tag-amber-light{background-color:rgba(var(--semi-amber-5),.15);color:rgba(var(--semi-amber-8),1)}.semi-tag-blue-ghost{background-color:transparent;border:1px solid rgba(var(--semi-blue-4),1);color:rgba(var(--semi-blue-5),1)}.semi-tag-blue-solid{background-color:rgba(var(--semi-blue-5),1);color:rgba(var(--semi-white),1)}.semi-tag-blue-light{background-color:rgba(var(--semi-blue-5),.15);color:rgba(var(--semi-blue-8),1)}.semi-tag-cyan-ghost{background-color:transparent;border:1px solid rgba(var(--semi-cyan-4),1);color:rgba(var(--semi-cyan-5),1)}.semi-tag-cyan-solid{background-color:rgba(var(--semi-cyan-5),1);color:rgba(var(--semi-white),1)}.semi-tag-cyan-light{background-color:rgba(var(--semi-cyan-5),.15);color:rgba(var(--semi-cyan-8),1)}.semi-tag-green-ghost{background-color:transparent;border:1px solid rgba(var(--semi-green-4),1);color:rgba(var(--semi-green-5),1)}.semi-tag-green-solid{background-color:rgba(var(--semi-green-5),1);color:rgba(var(--semi-white),1)}.semi-tag-green-light{background-color:rgba(var(--semi-green-5),.15);color:rgba(var(--semi-green-8),1)}.semi-tag-grey-ghost{background-color:transparent;border:1px solid rgba(var(--semi-grey-4),1);color:rgba(var(--semi-grey-5),1)}.semi-tag-grey-solid{background-color:rgba(var(--semi-grey-5),1);color:rgba(var(--semi-white),1)}.semi-tag-grey-light{background-color:rgba(var(--semi-grey-5),.15);color:rgba(var(--semi-grey-8),1)}.semi-tag-indigo-ghost{background-color:transparent;border:1px solid rgba(var(--semi-indigo-4),1);color:rgba(var(--semi-indigo-5),1)}.semi-tag-indigo-solid{background-color:rgba(var(--semi-indigo-5),1);color:rgba(var(--semi-white),1)}.semi-tag-indigo-light{background-color:rgba(var(--semi-indigo-5),.15);color:rgba(var(--semi-indigo-8),1)}.semi-tag-light-blue-ghost{background-color:transparent;border:1px solid rgba(var(--semi-light-blue-4),1);color:rgba(var(--semi-light-blue-5),1)}.semi-tag-light-blue-solid{background-color:rgba(var(--semi-light-blue-5),1);color:rgba(var(--semi-white),1)}.semi-tag-light-blue-light{background-color:rgba(var(--semi-light-blue-5),.15);color:rgba(var(--semi-light-blue-8),1)}.semi-tag-light-green-ghost{background-color:transparent;border:1px solid rgba(var(--semi-light-green-4),1);color:rgba(var(--semi-light-green-5),1)}.semi-tag-light-green-solid{background-color:rgba(var(--semi-light-green-5),1);color:rgba(var(--semi-white),1)}.semi-tag-light-green-light{background-color:rgba(var(--semi-light-green-5),.15);color:rgba(var(--semi-light-green-8),1)}.semi-tag-lime-ghost{background-color:transparent;border:1px solid rgba(var(--semi-lime-4),1);color:rgba(var(--semi-lime-5),1)}.semi-tag-lime-solid{background-color:rgba(var(--semi-lime-5),1);color:rgba(var(--semi-white),1)}.semi-tag-lime-light{background-color:rgba(var(--semi-lime-5),.15);color:rgba(var(--semi-lime-8),1)}.semi-tag-orange-ghost{background-color:transparent;border:1px solid rgba(var(--semi-orange-4),1);color:rgba(var(--semi-orange-5),1)}.semi-tag-orange-solid{background-color:rgba(var(--semi-orange-5),1);color:rgba(var(--semi-white),1)}.semi-tag-orange-light{background-color:rgba(var(--semi-orange-5),.15);color:rgba(var(--semi-orange-8),1)}.semi-tag-pink-ghost{background-color:transparent;border:1px solid rgba(var(--semi-pink-4),1);color:rgba(var(--semi-pink-5),1)}.semi-tag-pink-solid{background-color:rgba(var(--semi-pink-5),1);color:rgba(var(--semi-white),1)}.semi-tag-pink-light{background-color:rgba(var(--semi-pink-5),.15);color:rgba(var(--semi-pink-8),1)}.semi-tag-purple-ghost{background-color:transparent;border:1px solid rgba(var(--semi-purple-4),1);color:rgba(var(--semi-purple-5),1)}.semi-tag-purple-solid{background-color:rgba(var(--semi-purple-5),1);color:rgba(var(--semi-white),1)}.semi-tag-purple-light{background-color:rgba(var(--semi-purple-5),.15);color:rgba(var(--semi-purple-8),1)}.semi-tag-red-ghost{background-color:transparent;border:1px solid rgba(var(--semi-red-4),1);color:rgba(var(--semi-red-5),1)}.semi-tag-red-solid{background-color:rgba(var(--semi-red-5),1);color:rgba(var(--semi-white),1)}.semi-tag-red-light{background-color:rgba(var(--semi-red-5),.15);color:rgba(var(--semi-red-8),1)}.semi-tag-teal-ghost{background-color:transparent;border:1px solid rgba(var(--semi-teal-4),1);color:rgba(var(--semi-teal-5),1)}.semi-tag-teal-solid{background-color:rgba(var(--semi-teal-5),1);color:rgba(var(--semi-white),1)}.semi-tag-teal-light{background-color:rgba(var(--semi-teal-5),.15);color:rgba(var(--semi-teal-8),1)}.semi-tag-violet-ghost{background-color:transparent;border:1px solid rgba(var(--semi-violet-4),1);color:rgba(var(--semi-violet-5),1)}.semi-tag-violet-solid{background-color:rgba(var(--semi-violet-5),1);color:rgba(var(--semi-white),1)}.semi-tag-violet-light{background-color:rgba(var(--semi-violet-5),.15);color:rgba(var(--semi-violet-8),1)}.semi-tag-yellow-ghost{background-color:transparent;border:1px solid rgba(var(--semi-yellow-4),1);color:rgba(var(--semi-yellow-5),1)}.semi-tag-yellow-solid{background-color:rgba(var(--semi-yellow-5),1);color:rgba(var(--semi-white),1)}.semi-tag-yellow-light{background-color:rgba(var(--semi-yellow-5),.15);color:rgba(var(--semi-yellow-8),1)}.semi-tag-white-ghost,.semi-tag-white-solid,.semi-tag-white-light{background-color:var(--semi-color-bg-4);border:1px solid rgba(var(--semi-grey-2),.7);color:var(--semi-color-text-0)}.semi-tag-white-ghost .semi-tag-close,.semi-tag-white-light .semi-tag-close,.semi-tag-white-solid .semi-tag-close{color:var(--semi-color-text-2)}.semi-tag-avatar-square,.semi-tag-avatar-circle{background-color:var(--semi-color-bg-4);border:1px solid var(--semi-color-border);color:var(--semi-color-text-0)}.semi-tag-solid .semi-tag-close{color:var(--semi-color-white);opacity:.8}.semi-tag-solid .semi-tag-close:hover{opacity:1}.semi-tag-solid .semi-tag-close:active{opacity:.9}.semi-rtl .semi-tag,.semi-portal-rtl .semi-tag{direction:rtl}.semi-rtl .semi-tag-close,.semi-portal-rtl .semi-tag-close{padding-left:auto;padding-right:4px}.semi-rtl .semi-tag-closable,.semi-portal-rtl .semi-tag-closable{padding:4px 8px 4px 4px}.semi-rtl .semi-tag-avatar-square .semi-avatar,.semi-rtl .semi-tag-avatar-circle .semi-avatar,.semi-portal-rtl .semi-tag-avatar-square .semi-avatar,.semi-portal-rtl .semi-tag-avatar-circle .semi-avatar{margin-right:auto;margin-left:4px}.semi-rtl .semi-tag-avatar-square,.semi-portal-rtl .semi-tag-avatar-square{padding-right:auto;padding-left:4px}.semi-rtl .semi-tag-avatar-circle,.semi-portal-rtl .semi-tag-avatar-circle{padding:2px 2px 2px 4px}.semi-rtl .semi-tag-group,.semi-portal-rtl .semi-tag-group{direction:rtl}.semi-rtl .semi-tag-group .semi-tag,.semi-portal-rtl .semi-tag-group .semi-tag{margin-right:auto;margin-left:8px}.semi-rtl .semi-tag-rest-group-popover,.semi-portal-rtl .semi-tag-rest-group-popover{direction:rtl}.semi-rtl .semi-tag-rest-group-popover .semi-tag,.semi-portal-rtl .semi-tag-rest-group-popover .semi-tag{margin-right:0;margin-left:8px}.semi-rtl .semi-tag-rest-group-popover .semi-tag:last-of-type,.semi-portal-rtl .semi-tag-rest-group-popover .semi-tag:last-of-type{margin-right:auto;margin-left:0}.semi-tagInput{background-color:var(--semi-color-fill-0);border:1px transparent solid;border-radius:var(--semi-border-radius-small);display:inline-flex;font-weight:400;width:100%;min-height:32px;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-tagInput-small{min-height:24px}.semi-tagInput-large{min-height:40px}.semi-tagInput-drag-item{display:flex;align-items:center}.semi-tagInput-drag-item-move{z-index:2000}.semi-tagInput-drag-handler{color:var(--semi-color-text-2);margin-right:4px;cursor:move}.semi-tagInput-sortable-item{position:relative}.semi-tagInput-sortable-item-over{overflow:visible}.semi-tagInput-sortable-item-over:before{content:"";display:block;height:100%;width:2px;background-color:var(--semi-color-primary);position:absolute;left:-2px;top:0}.semi-tagInput-sortable-item-active{opacity:.5}.semi-tagInput-hover{background-color:var(--semi-color-fill-1);border:1px transparent solid}.semi-tagInput-focus{background-color:var(--semi-color-fill-0);border:1px var(--semi-color-focus-border) solid}.semi-tagInput-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-tagInput-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-tagInput-warning.semi-tagInput-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-tagInput-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-tagInput-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-tagInput-error.semi-tagInput-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-tagInput-disabled{cursor:not-allowed}.semi-tagInput-disabled .semi-tagInput-clearBtn,.semi-tagInput-disabled .semi-tagInput-prefix,.semi-tagInput-disabled .semi-tagInput-suffix{color:var(--semi-color-disabled-text)}.semi-tagInput-disabled .semi-tagInput-wrapper{cursor:not-allowed}.semi-tagInput-disabled .semi-tagInput-wrapper-tag{color:var(--semi-color-disabled-text);background-color:transparent}.semi-tagInput-disabled .semi-tagInput-wrapper-input{cursor:not-allowed}.semi-tagInput-disabled .semi-tagInput-wrapper-input::placeholder{color:var(--semi-color-disabled-text)}.semi-tagInput-wrapper{display:flex;flex-wrap:wrap;flex-grow:1;align-items:center;padding-left:4px;padding-right:4px;overflow:hidden}.semi-tagInput-wrapper-tag{margin-right:4px;white-space:pre}.semi-tagInput-wrapper-tag-size-small{margin-top:1px;margin-bottom:1px}.semi-tagInput-wrapper-tag-size-default{margin-top:2px;margin-bottom:2px}.semi-tagInput-wrapper-tag-size-large{margin-top:3px;margin-bottom:3px}.semi-tagInput-wrapper-tag-icon{padding-left:4px}.semi-tagInput-wrapper-typo{font-size:12px}.semi-tagInput-wrapper-typo-disabled{color:var(--semi-color-disabled-text)}.semi-tagInput-wrapper-n{cursor:pointer;font-size:12px;margin-right:4px;color:var(--semi-color-text-0);padding-left:8px;padding-right:8px}.semi-tagInput-wrapper-n-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-tagInput-wrapper .semi-tagInput-wrapper-input{flex-grow:1;width:min-content;border:none;outline:none;background-color:transparent;font-size:14px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input:hover{background-color:transparent}.semi-tagInput-wrapper .semi-tagInput-wrapper-input:not(:first-child)>input{padding-left:0}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-small{height:20px;margin-top:1px;margin-bottom:1px;line-height:20px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-small .semi-input-small{height:20px;line-height:20px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-default{height:24px;margin-top:2px;margin-bottom:2px;line-height:24px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-default .semi-input-default{height:24px;line-height:24px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-large{height:24px;margin-top:3px;margin-bottom:3px;line-height:24px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-large .semi-input-large{height:24px;line-height:24px}.semi-tagInput-clearBtn{display:flex;justify-content:center;align-items:center;width:32px;flex-shrink:0;color:var(--semi-color-text-2)}.semi-tagInput-clearBtn:hover{cursor:pointer;color:var(--semi-color-primary-hover)}.semi-tagInput-clearBtn-invisible{visibility:hidden}.semi-tagInput-prefix,.semi-tagInput-suffix{display:flex;justify-content:center;align-items:center}.semi-tagInput-prefix-text,.semi-tagInput-suffix-text{margin:0 12px;font-weight:600;white-space:nowrap}.semi-tagInput-prefix-icon,.semi-tagInput-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-tagInput-prefix-text,.semi-tagInput-suffix-text{color:var(--semi-color-text-2)}.semi-tagInput-tag-content-wrapper{display:flex;align-items:center}.semi-tagInput-sortable-list{display:flex;flex-flow:row wrap;width:100%}.semi-rtl .semi-tagInput,.semi-portal-rtl .semi-tagInput{direction:rtl}.semi-rtl .semi-tagInput-wrapper-tag,.semi-portal-rtl .semi-tagInput-wrapper-tag{margin-left:4px;margin-right:0}.semi-rtl .semi-tagInput-wrapper-input:not(:first-child)>input,.semi-portal-rtl .semi-tagInput-wrapper-input:not(:first-child)>input{padding-right:0}.semi-collapsible-transition{transition:height .25s cubic-bezier(.25,.1,.25,1) var(--semi-transition_delay-none),opacity .25s var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-scrolllist{width:100%;height:100%;background:var(--semi-color-bg-3);box-shadow:0 0 1px #0000004d,0 4px 14px #0000001a;border-radius:var(--semi-border-radius-medium);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column}.semi-scrolllist-header{text-align:center;padding:0 16px}.semi-scrolllist-header-title{padding:16px 0;font-weight:600;color:var(--semi-color-text-0);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-scrolllist-body{display:flex;height:300px;padding:0 16px;overflow:hidden}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle>ul:before,.semi-scrolllist-body .semi-scrolllist-item>ul:before{content:"";display:block;width:100%;height:132px}.semi-scrolllist-body .semi-scrolllist-item{position:relative;flex:1;overflow-x:hidden;overflow-y:auto}.semi-scrolllist-body .semi-scrolllist-item:not(:last-child){border-right:1px solid var(--semi-color-border)}.semi-scrolllist-body .semi-scrolllist-item>ul,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul{box-sizing:border-box;width:100%;margin:0;padding:0 0 132px;list-style:none}.semi-scrolllist-body .semi-scrolllist-item>ul>li,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li{list-style:none;height:36px;box-sizing:border-box;color:var(--semi-color-text-0);text-align:center;display:flex;align-items:center;justify-content:center;cursor:pointer;background-color:transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel{background:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel>svg,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel>svg{color:var(--semi-color-text-2);width:16px;height:16px;margin-right:12px}.semi-scrolllist-body .semi-scrolllist-item>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected),.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected){cursor:pointer}.semi-scrolllist-body .semi-scrolllist-item>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):hover,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):hover{background-color:var(--semi-color-fill-1)}.semi-scrolllist-body .semi-scrolllist-item>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):active,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):active{background-color:var(--semi-color-fill-2)}.semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-disabled,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-scrolllist-body .semi-scrolllist-item-wheel{position:relative;flex:1;overflow:hidden}.semi-scrolllist-body .semi-scrolllist-item-wheel:not(:last-child){border-right:1px solid var(--semi-color-border)}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-item-selected{font-weight:600;color:var(--semi-color-primary)!important}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer{overflow-x:hidden;overflow-y:auto;height:100%;width:100%;padding-right:18px}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-shade{width:100%;height:50%;pointer-events:none;position:absolute}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-shade-pre{top:0;margin-top:-19px;background:var(--semi-color-bg-3);opacity:.5}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-shade-post{top:50%;margin-top:19px;background:var(--semi-color-bg-3);opacity:.5}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-selector{pointer-events:none;position:absolute;top:50%;border-top:1px solid var(--semi-color-border);border-bottom:1px solid var(--semi-color-border);height:36px;width:100%;transform:translateY(-50%)}.semi-scrolllist .semi-scrolllist-footer{border-top:1px solid var(--semi-color-border);padding:10px}.semi-scrolllist .semi-scrolllist-line{background:var(--semi-color-border);height:1px}.semi-rtl .semi-scrolllist,.semi-portal-rtl .semi-scrolllist{direction:rtl}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item:not(:last-child),.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item:not(:last-child){border-right:0;border-left:1px solid var(--semi-color-border)}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel>svg,.semi-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel>svg,.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel>svg,.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel>svg{margin-right:0;margin-left:12px}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel:not(:last-child),.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel:not(:last-child){border-right:0;border-left:1px solid var(--semi-color-border)}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer,.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer{padding-right:0;padding-left:18px}.semi-datepicker{box-sizing:border-box;display:inline-block}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-item{-ms-overflow-style:none;scrollbar-width:none}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-item::-webkit-scrollbar{display:none;width:0;height:0}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-list-outer{-ms-overflow-style:none;scrollbar-width:none}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-list-outer::-webkit-scrollbar{display:none;width:0;height:0}.semi-datepicker-month-grid{-webkit-user-select:none;user-select:none;display:flex}.semi-datepicker-month-grid-left,.semi-datepicker-month-grid-right{position:relative;padding:0;display:inline-flex;flex-direction:column;justify-content:flex-start}.semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam,.semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-yam{height:100%}.semi-datepicker-month-grid[x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-yam{height:calc(100% - 54px)}.semi-datepicker-month-grid .semi-datepicker-yam-showing{min-height:378px;min-width:284px}.semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam-showing{min-height:325px}.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year],.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time]{min-height:317px}.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-navigation{padding-top:8px;padding-bottom:8px}.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-tpk{min-height:100%}.semi-datepicker-month-grid[x-insetinput=true][x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-month-grid[x-insetinput=true][x-type=dateTimeRange] .semi-datepicker-yam{height:100%}.semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month,.semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month{height:253px}.semi-datepicker-month-grid .semi-datepicker-yearmonth-header{background:var(--semi-color-bg-3);padding:12px 16px;border-bottom:1px solid var(--semi-color-border);border-radius:var(--semi-border-radius-medium) var(--semi-border-radius-medium) 0 0;display:flex;align-items:center}.semi-datepicker-month-grid .semi-scrolllist{background:var(--semi-color-bg-3);position:relative;box-shadow:none;height:auto;width:100%;height:100%;overflow:hidden;flex:1}.semi-datepicker-month-grid .semi-scrolllist-header,.semi-datepicker-month-grid .semi-scrolllist-body{box-sizing:border-box;width:100%}.semi-datepicker-month-grid .semi-scrolllist-header{border-bottom:1px solid var(--semi-color-border);padding:16px}.semi-datepicker-month-grid .semi-scrolllist-body{height:100%;overflow:hidden;padding:0;flex:1}.semi-datepicker-month-grid .semi-scrolllist-line{display:none}.semi-datepicker-month-grid .semi-scrolllist-header-title{padding:0;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-height:24px;line-height:24px}.semi-datepicker-month-grid[x-panel-yearandmonth-open-type=left] .semi-datepicker-weeks,.semi-datepicker-month-grid[x-panel-yearandmonth-open-type=right] .semi-datepicker-weeks{min-height:216px}.semi-datepicker-panel-yam{max-width:484px}.semi-datepicker-panel-yam[x-type=monthRange]{max-width:584px}.semi-datepicker-panel-yam .semi-datepicker-yearmonth-body{display:flex}.semi-datepicker-panel-yam .semi-datepicker-yearmonth-body .semi-scrolllist:nth-child(2){border-left:1px solid var(--semi-color-border)}.semi-datepicker-panel-yam .semi-scrolllist{box-shadow:none;height:266px}.semi-datepicker-panel-yam .semi-scrolllist-list-outer>ul>li{min-width:64px}.semi-datepicker-panel-yam .semi-scrolllist-item>ul>li{min-width:82px}.semi-datepicker-panel-yam .semi-scrolllist-body{padding:0;overflow:hidden}.semi-datepicker-panel-yam .semi-scrolllist-body .semi-scrolllist-item-wheel:not(#neverExistElement){border:none}.semi-datepicker-footer{padding-top:10px;padding-right:8px;padding-bottom:10px;text-align:right;background-color:var(--semi-color-fill-0)}.semi-datepicker-footer .semi-button:first-of-type{margin-right:12px}.semi-datepicker-footer .semi-button:nth-of-type(2){margin-right:8px}.semi-datepicker-yam{position:absolute;top:0;width:100%;display:flex;flex-direction:column;box-sizing:border-box}.semi-datepicker-tpk{position:absolute;top:0;height:calc(100% - 54px);width:100%;display:flex;flex-direction:column}.semi-datepicker-tpk .semi-datepicker-time{height:100%}.semi-datepicker-navigation{display:flex;align-items:center;box-sizing:content-box;height:32px;padding:12px 16px}.semi-datepicker-navigation-left,.semi-datepicker-navigation-right{width:32px;height:32px;display:flex;justify-content:center;align-items:center}.semi-datepicker-navigation .semi-button{color:var(--semi-color-text-2);min-width:32px}.semi-datepicker-navigation-month{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;flex-grow:1;text-align:center;font-weight:600;color:var(--semi-color-text-0)}.semi-datepicker-navigation-month .semi-button{color:var(--semi-color-text-0)}.semi-datepicker-month{width:252px;box-sizing:content-box;padding:0 16px 16px}.semi-datepicker-weekday{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;color:var(--semi-color-text-2);border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-weekday-item{width:36px;height:36px;line-height:36px;text-align:center;display:inline-block}.semi-datepicker-weeks{color:var(--semi-color-text-0)}.semi-datepicker-week{display:flex;align-items:center}.semi-datepicker-day{box-sizing:border-box;display:inline-block;width:36px;height:36px;display:flex;justify-content:center;align-items:center;cursor:pointer}.semi-datepicker-day-main{display:flex;justify-content:center;align-items:center;width:32px;height:32px;margin:0 auto;box-sizing:border-box;border-radius:var(--semi-border-radius-small)}.semi-datepicker-day-main:hover{background-color:var(--semi-color-fill-0)}.semi-datepicker-day-main:active{background-color:var(--semi-color-fill-1)}.semi-datepicker-day-today .semi-datepicker-day-main{color:var(--semi-color-primary);background-color:var(--semi-color-fill-0);font-weight:600}.semi-datepicker-day-today.semi-datepicker-day-disabled .semi-datepicker-day-main{color:var(--semi-color-primary-disabled)}.semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-day-inhover .semi-datepicker-day-main,.semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main,.semi-datepicker-day-hoverday-around-singleselected .semi-datepicker-day-main{border-radius:0;margin-left:0;margin-right:0;width:36px}.semi-datepicker-day-selected .semi-datepicker-day-main,.semi-datepicker-day-selected-start.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-start.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small)}.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-datepicker-day-hoverday-beforerange .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-datepicker-day-hoverday-afterrange .semi-datepicker-day-main{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{width:34px;margin-left:2px;margin-right:0;border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{width:34px;margin-right:2px;margin-left:0;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-datepicker-day-hoverday-inrange .semi-datepicker-day-main{border-radius:0}.semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{background-color:var(--semi-color-fill-0)}.semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-day-hoverday-offset .semi-datepicker-day-main{background-color:var(--semi-color-fill-1)}.semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-day-inhover .semi-datepicker-day-main{background-color:var(--semi-color-primary-light-default)}.semi-datepicker-day-hoverday-inrange .semi-datepicker-day-main,.semi-datepicker-day-hoverday-beforerange .semi-datepicker-day-main,.semi-datepicker-day-hoverday-afterrange .semi-datepicker-day-main,.semi-datepicker-day-hoverday-around-singleselected .semi-datepicker-day-main{background-color:var(--semi-color-primary-light-active)}.semi-datepicker-day-selected .semi-datepicker-day-main,.semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-day-selected-end .semi-datepicker-day-main{background-color:var(--semi-color-primary);color:var(--semi-color-white)}.semi-datepicker-day-selected .semi-datepicker-day-main:hover,.semi-datepicker-day-selected-start .semi-datepicker-day-main:hover,.semi-datepicker-day-selected-end .semi-datepicker-day-main:hover{background-color:var(--semi-color-primary)}.semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main{background-color:var(--semi-color-primary-light-hover)}.semi-datepicker-day-selected-start-afterhover .semi-datepicker-day-main,.semi-datepicker-day-selected-end-beforehover .semi-datepicker-day-main{border:1px solid var(--semi-color-primary-active)}.semi-datepicker-day-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-datepicker-day-disabled .semi-datepicker-day-main:hover,.semi-datepicker-day-disabled .semi-datepicker-day-main:active{background-color:transparent}.semi-datepicker-day-disabled.semi-datepicker-day-selected .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-inhover .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-hoverday-offset .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main{background-color:var(--semi-color-disabled-fill);color:var(--semi-color-disabled-text)}.semi-datepicker-switch{text-align:center;display:flex;border-top:1px solid var(--semi-color-border);margin-top:auto}.semi-datepicker-switch-date,.semi-datepicker-switch-time{width:50%;cursor:pointer;padding-top:16px;padding-bottom:16px;display:flex;justify-content:center;align-items:center;color:var(--semi-color-text-2)}.semi-datepicker-switch-date:not(.semi-datepicker-switch-time-disabled):hover,.semi-datepicker-switch-time:not(.semi-datepicker-switch-time-disabled):hover{background-color:var(--semi-color-fill-0)}.semi-datepicker-switch-date-active,.semi-datepicker-switch-time-active{color:var(--semi-color-text-0);font-weight:600;cursor:auto}.semi-datepicker-switch-date-active:hover,.semi-datepicker-switch-time-active:hover{background-color:inherit}.semi-datepicker-switch-date-disabled,.semi-datepicker-switch-time-disabled{cursor:not-allowed}.semi-datepicker-switch-text{padding-left:8px}.semi-datepicker-time .semi-jumperlist{box-shadow:none;border-radius:0}.semi-datepicker-quick-control{box-sizing:border-box;background-color:transparent}.semi-datepicker-quick-control-header{padding:18px 12px 0;font-weight:600}.semi-datepicker-quick-control-left{border-right:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-right{border-left:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-top{border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-bottom{border-top:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-left-content-wrapper,.semi-datepicker-quick-control-right-content-wrapper{max-width:200px;margin-top:14px;overflow-y:auto}.semi-datepicker-quick-control-top-content-wrapper,.semi-datepicker-quick-control-bottom-content-wrapper{overflow-y:auto;max-height:100px}.semi-datepicker-quick-control-left-content,.semi-datepicker-quick-control-right-content{box-sizing:border-box;display:grid;align-content:flex-start;grid-gap:8px;grid-template-columns:repeat(2,minmax(76.5px,84px));padding:0 12px 12px}.semi-datepicker-quick-control-left-content-item,.semi-datepicker-quick-control-right-content-item{max-width:84px}.semi-datepicker-quick-control-left-content-item-ellipsis,.semi-datepicker-quick-control-right-content-item-ellipsis{width:68px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-top-content,.semi-datepicker-quick-control-bottom-content{display:grid;grid-gap:8px;grid-template-columns:repeat(3,minmax(70.924px,75.924px));align-content:flex-start;padding:8px 20px}.semi-datepicker-quick-control-top-content-item,.semi-datepicker-quick-control-bottom-content-item{max-width:75.924px}.semi-datepicker-quick-control-top-content-item-ellipsis,.semi-datepicker-quick-control-bottom-content-item-ellipsis{width:59.924px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-top-range-content,.semi-datepicker-quick-control-bottom-range-content{box-sizing:border-box;display:grid;align-content:flex-start;grid-template-columns:repeat(5,minmax(96.2px,99.2px));grid-gap:8px;padding:8px 20px}.semi-datepicker-quick-control-top-range-content-item,.semi-datepicker-quick-control-bottom-range-content-item{max-width:99.2px}.semi-datepicker-quick-control-top-range-content-item-ellipsis,.semi-datepicker-quick-control-bottom-range-content-item-ellipsis{width:83.2px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-top-month-content,.semi-datepicker-quick-control-bottom-month-content{box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(51px,58.5px));grid-gap:8px;align-content:flex-start;padding:8px 20px}.semi-datepicker-quick-control-top-month-content-item,.semi-datepicker-quick-control-bottom-month-content-item{max-width:58.5px}.semi-datepicker-quick-control-top-month-content-item-ellipsis,.semi-datepicker-quick-control-bottom-month-content-item-ellipsis{max-width:42.5px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-month{max-width:284px}.semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:258px}.semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper{max-height:214px}.semi-datepicker-quick-control-date{max-width:284px}.semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper{max-height:273px}.semi-datepicker-quick-control-dateTime{max-width:284px}.semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper{max-height:326px}.semi-datepicker-quick-control-dateRange{max-width:568px}.semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper{max-height:273px}.semi-datepicker-quick-control-dateTimeRange{max-width:568px}.semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper{max-height:326px}.semi-datepicker-topSlot{border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-bottomSlot{border-top:1px solid var(--semi-color-border)}.semi-datepicker .semi-popover-trigger{width:100%}.semi-datepicker .semi-popover-trigger .semi-input-wrapper{font-size:13px}.semi-datepicker .semi-popover-trigger .semi-input-suffix{color:var(--semi-color-primary)}.semi-datepicker .semi-datepicker-input-readonly{cursor:pointer}.semi-datepicker-inset-input-wrapper{display:flex;flex-wrap:nowrap;justify-content:space-between;box-sizing:border-box;column-gap:8px;padding:12px 16px 0;width:284px}.semi-datepicker-inset-input-wrapper[x-type=dateRange],.semi-datepicker-inset-input-wrapper[x-type=dateTimeRange]{width:568px}.semi-datepicker-inset-input-wrapper[x-type=month]{width:165px}.semi-datepicker-inset-input-wrapper[x-type=monthRange]{width:331px}.semi-datepicker-inset-input-wrapper .semi-input-wrapper{flex:1;flex-shrink:0}.semi-datepicker-inset-input-separator{flex-grow:0;flex-shrink:0;height:32px;line-height:32px;padding:0 4px;color:var(--semi-color-text-3)}.semi-datepicker-range-input{display:flex;align-items:center;box-sizing:border-box;border-radius:var(--semi-border-radius-small);height:32px;color:var(--semi-color-text-2);background-color:var(--semi-color-fill-0);border:0px solid transparent}.semi-datepicker-range-input:hover,.semi-datepicker-range-input:active{border-color:transparent}.semi-datepicker-range-input:focus-within{border-color:transparent}.semi-datepicker-range-input .semi-datepicker-monthRange-input{background-color:transparent}.semi-datepicker-range-input-wrapper{box-sizing:border-box;background-color:transparent;padding:0 8px;height:100%;width:100%;border:1px solid transparent;border-radius:var(--semi-border-radius-small);display:flex;align-items:center}.semi-datepicker-range-input-wrapper .semi-input-wrapper{background-color:transparent;border:none}.semi-datepicker-range-input-wrapper-focus{border-color:transparent;background-color:var(--semi-color-fill-1);border-radius:var(--semi-border-radius-small);transition:background-color .16s ease-in-out}.semi-datepicker-range-input-wrapper-focus~.semi-datepicker-range-input-clearbtn{display:flex}.semi-datepicker-range-input-wrapper-focus~.semi-datepicker-range-input-clearbtn~.semi-datepicker-range-input-suffix{display:none}.semi-datepicker-range-input-wrapper .semi-input{padding:2px 4px}.semi-datepicker-range-input-wrapper-icon{flex-shrink:0}.semi-datepicker-range-input-wrapper:hover{background-color:var(--semi-color-fill-1)}.semi-datepicker-range-input-wrapper-start{border-top-right-radius:0;border-bottom-right-radius:0}.semi-datepicker-range-input-wrapper-start-with-prefix,.semi-datepicker-range-input-wrapper-end{border-radius:0}.semi-datepicker-range-input-wrapper-active{border-color:var(--semi-color-focus-border);background-color:var(--semi-color-fill-1)}.semi-datepicker-range-input-separator{display:flex;align-items:center}.semi-datepicker-range-input-separator-active{color:var(--semi-color-text-0)}.semi-datepicker-range-input-small{height:24px}.semi-datepicker-range-input-large{height:40px}.semi-datepicker-range-input-large .semi-input-default{font-size:16px}.semi-datepicker-range-input:hover .semi-datepicker-range-input-clearbtn{display:flex;cursor:pointer}.semi-datepicker-range-input:hover .semi-datepicker-range-input-clearbtn~.semi-datepicker-range-input-suffix{display:none}.semi-datepicker-range-input:hover .semi-datepicker-range-input-clearbtn:hover{color:var(--semi-color-primary-hover)}.semi-datepicker-range-input-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:var(--semi-color-disabled-fill)}.semi-datepicker-range-input-disabled .semi-datepicker-range-input-wrapper:hover{background-color:transparent}.semi-datepicker-range-input-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-datepicker-range-input-disabled .semi-datepicker-range-input-prefix,.semi-datepicker-range-input-disabled .semi-datepicker-range-input-suffix,.semi-datepicker-range-input-disabled .semi-datepicker-range-input-clearbtn{color:var(--semi-color-disabled-text)}.semi-datepicker-range-input-warning{background-color:var(--semi-color-warning-light-default)}.semi-datepicker-range-input-warning .semi-datepicker-range-input-wrapper:hover{background-color:var(--semi-color-warning-light-hover)}.semi-datepicker-range-input-warning .semi-datepicker-range-input-wrapper-active{border-color:var(--semi-color-warning);background-color:var(--semi-color-warning-light-hover)}.semi-datepicker-range-input-error{background-color:var(--semi-color-danger-light-default)}.semi-datepicker-range-input-error .semi-datepicker-range-input-wrapper:hover{background-color:var(--semi-color-danger-light-hover)}.semi-datepicker-range-input-error .semi-datepicker-range-input-wrapper-active{border-color:var(--semi-color-danger);background-color:var(--semi-color-danger-light-hover)}.semi-datepicker-range-input .semi-datepicker-range-input-clearbtn{display:none}.semi-datepicker-range-input-prefix,.semi-datepicker-range-input-suffix,.semi-datepicker-range-input-clearbtn{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;white-space:nowrap;color:var(--semi-color-text-2)}.semi-datepicker-range-input-prefix{padding-left:12px;padding-right:8px}.semi-datepicker-range-input-suffix{padding-left:8px;padding-right:12px}.semi-datepicker-range-input-suffix-hidden{display:none}.semi-datepicker-range-input-clearbtn{padding-left:8px;padding-right:12px}.semi-datepicker-compact{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-yam{height:calc(100% - 32px)}.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left,.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left{border-right:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yam-showing{min-height:288px;min-width:216px}.semi-datepicker-compact .semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam-showing{min-height:256px}.semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month,.semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month{height:220px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-header{box-sizing:border-box;height:48px;padding:12px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-body{display:flex}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-body .semi-scrolllist:nth-child(2){border:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-header{display:none}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-list-outer>ul>li{height:32px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel{border-right:0}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel .semi-scrolllist-selector{height:32px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel .semi-scrolllist-shade-pre{margin-top:-17px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel .semi-scrolllist-shade-post{margin-top:17px}.semi-datepicker-compact .semi-datepicker-month-grid[x-panel-yearandmonth-open-type=left] .semi-datepicker-weeks,.semi-datepicker-compact .semi-datepicker-month-grid[x-panel-yearandmonth-open-type=right] .semi-datepicker-weeks{min-height:168px}.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-yam-showing{min-height:256px}.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-tpk{min-height:100%}.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTimeRange] .semi-datepicker-yam{height:100%}.semi-datepicker-compact.semi-datepicker-panel-yam .semi-scrolllist{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-tpk{height:calc(100% - 32px)}.semi-datepicker-compact .semi-datepicker-navigation{height:24px;padding:12px 12px 0}.semi-datepicker-compact .semi-datepicker-navigation-left,.semi-datepicker-compact .semi-datepicker-navigation-right{width:24px;height:24px}.semi-datepicker-compact .semi-datepicker-navigation .semi-button{min-width:24px;min-height:24px}.semi-datepicker-compact .semi-datepicker-navigation-month .semi-button{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-month{width:216px;padding:0}.semi-datepicker-compact .semi-datepicker-weeks{padding:6px 10px 10px}.semi-datepicker-compact .semi-datepicker-weekday{box-sizing:border-box;height:36px;padding-left:10px;padding-right:10px;padding-bottom:8px;border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-weekday-item{width:28px;height:28px;line-height:28px}.semi-datepicker-compact .semi-datepicker-day{width:28px;height:28px}.semi-datepicker-compact .semi-datepicker-day-main{width:24px;height:24px}.semi-datepicker-compact .semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-inhover .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main{width:28px}.semi-datepicker-compact .semi-datepicker-day-selected-start.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-offsetrange-start.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:4px}.semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:4px 0 0 4px}.semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:0 4px 4px 0}.semi-datepicker-compact .semi-datepicker-day-hoverday-beforerange .semi-datepicker-day-main{border-radius:4px 0 0 4px}.semi-datepicker-compact .semi-datepicker-day-hoverday-afterrange .semi-datepicker-day-main{border-radius:0 4px 4px 0}.semi-datepicker-compact .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{width:34px;margin-left:2px;margin-right:0;border-radius:4px 0 0 4px}.semi-datepicker-compact .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{width:34px;margin-right:2px;margin-left:0;border-radius:0 4px 4px 0}.semi-datepicker-compact .semi-datepicker-switch{box-sizing:border-box;height:32px}.semi-datepicker-compact .semi-datepicker-switch-date,.semi-datepicker-compact .semi-datepicker-switch-time{padding-top:6px;padding-bottom:6px}.semi-datepicker-compact .semi-datepicker-switch-date{border-right:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-switch-text{padding-left:0}.semi-datepicker-compact .semi-datepicker-quick-control-header{padding:16px 12px 0;font-weight:600}.semi-datepicker-compact .semi-datepicker-quick-control-left-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-right-content-wrapper{margin-top:12px}.semi-datepicker-compact .semi-datepicker-quick-control-left-content,.semi-datepicker-compact .semi-datepicker-quick-control-right-content{box-sizing:border-box;display:grid;align-content:flex-start;grid-gap:8px;grid-template-columns:repeat(2,minmax(76.5px,84px));padding:0 12px 12px}.semi-datepicker-compact .semi-datepicker-quick-control-left-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-right-content-item{max-width:84px}.semi-datepicker-compact .semi-datepicker-quick-control-left-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-right-content-item-ellipsis{width:68px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-top-content,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-content{box-sizing:border-box;display:grid;grid-gap:8px;grid-template-columns:repeat(3,minmax(54.94px,59.94px));align-content:flex-start;padding:8px 10px}.semi-datepicker-compact .semi-datepicker-quick-control-top-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item{max-width:59.94px}.semi-datepicker-compact .semi-datepicker-quick-control-top-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item-ellipsis{width:43.94px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content{display:grid;grid-template-columns:repeat(5,minmax(73px,76px));grid-gap:8px;align-content:flex-start;padding:8px 10px}.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item{max-width:76px}.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item-ellipsis{width:60px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content{display:grid;grid-template-columns:repeat(2,minmax(61px,68.5px));grid-gap:8px;align-content:flex-start;padding:8px 10px}.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item{max-width:68.5px}.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item-ellipsis{max-width:52.5px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-month{max-width:216px}.semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:254px}.semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper{max-height:218px}.semi-datepicker-compact .semi-datepicker-quick-control-date{max-width:216px}.semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper{max-height:208px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTime{max-width:216px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper{max-height:240px}.semi-datepicker-compact .semi-datepicker-quick-control-dateRange{max-width:432px}.semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper{max-height:208px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange{max-width:432px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper{max-height:240px}.semi-datepicker-compact .semi-datepicker-footer{padding-top:10px;padding-right:8px;padding-bottom:10px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper{column-gap:4px;padding:8px 8px 0;width:216px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateRange],.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateTimeRange]{width:432px;padding-top:0}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateRange] .semi-input-wrapper,.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateTimeRange] .semi-input-wrapper{margin-top:8px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=month]{width:195px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper .semi-input-wrapper{height:28px;box-sizing:border-box}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper .semi-input-wrapper .semi-input{font-size:12px;line-height:26px;height:26px;vertical-align:top}.semi-datepicker-compact .semi-datepicker-inset-input-separator{border-left:1px solid var(--semi-color-border);transform:translate(50%);height:auto}.semi-popover-wrapper[x-placement^=top] .semi-datepicker .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=leftTop] .semi-datepicker .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=rightTop] .semi-datepicker .semi-datepicker-weeks,.semi-popover-wrapper[x-placement*=BottomOver] .semi-datepicker .semi-datepicker-weeks{min-height:216px}.semi-popover-wrapper[x-placement^=top] .semi-datepicker-compact .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=leftTop] .semi-datepicker-compact .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=rightTop] .semi-datepicker-compact .semi-datepicker-weeks,.semi-popover-wrapper[x-placement*=BottomOver] .semi-datepicker-compact .semi-datepicker-weeks{min-height:168px}.semi-datepicker-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-datepicker-borderless:not(:focus-within):not(:hover) .semi-input-suffix,.semi-datepicker-borderless:not(:focus-within):not(:hover) .semi-datepicker-range-input-suffix{opacity:0}.semi-datepicker-borderless:focus-within:not(:active){background-color:transparent}.semi-datepicker-borderless.semi-datepicker-range-input-error .semi-datepicker-range-input-wrapper-active{border-color:transparent}.semi-datepicker-borderless.semi-datepicker-range-input-error:hover{background-color:var(--semi-color-danger-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-error:focus-within{background-color:var(--semi-color-danger-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-error:not(:focus-within){border-width:1px;border-color:var(--semi-color-danger)}.semi-datepicker-borderless.semi-datepicker-range-input-error:focus-within{border-width:1px;border-color:var(--semi-color-danger)}.semi-datepicker-borderless.semi-datepicker-range-input-warning .semi-datepicker-range-input-wrapper-active{border-color:transparent}.semi-datepicker-borderless.semi-datepicker-range-input-warning:hover{background-color:var(--semi-color-warning-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-warning:focus-within{background-color:var(--semi-color-warning-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-warning:not(:focus-within){border-width:1px;border-color:var(--semi-color-warning)}.semi-datepicker-borderless.semi-datepicker-range-input-warning:focus-within{border-width:1px;border-color:var(--semi-color-warning)}.semi-rtl .semi-datepicker,.semi-portal-rtl .semi-datepicker{direction:rtl}.semi-rtl .semi-datepicker-footer,.semi-portal-rtl .semi-datepicker-footer{padding-right:0;padding-left:8px;text-align:left}.semi-rtl .semi-datepicker-footer .semi-button:first-of-type,.semi-portal-rtl .semi-datepicker-footer .semi-button:first-of-type{margin-left:0;margin-right:0}.semi-rtl .semi-datepicker-footer .semi-button:nth-of-type(2),.semi-portal-rtl .semi-datepicker-footer .semi-button:nth-of-type(2){margin-right:12px;margin-left:0}.semi-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-rtl .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-hoverday-before-selectedrange .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-hoverday-before-selectedrange .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{margin-right:2px;margin-left:auto;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-rtl .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-hoverday-after-selectedrange .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-hoverday-after-selectedrange .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{margin-left:2px;margin-right:auto;border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-rtl .semi-datepicker-switch-text,.semi-portal-rtl .semi-datepicker-switch-text{padding-left:0;padding-right:8px}.semi-rtl .semi-datepicker-navigation .semi-icon-chevron_left,.semi-rtl .semi-datepicker-navigation .semi-icon-chevron_right,.semi-rtl .semi-datepicker-navigation .semi-icon-double_chevron_left,.semi-rtl .semi-datepicker-navigation .semi-icon-double_chevron_right,.semi-rtl .semi-datepicker-yam .semi-icon-chevron_left,.semi-rtl .semi-datepicker-yam .semi-icon-chevron_right,.semi-rtl .semi-datepicker-yam .semi-icon-double_chevron_left,.semi-rtl .semi-datepicker-yam .semi-icon-double_chevron_right,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-chevron_left,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-chevron_right,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-double_chevron_left,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-double_chevron_right,.semi-portal-rtl .semi-datepicker-yam .semi-icon-chevron_left,.semi-portal-rtl .semi-datepicker-yam .semi-icon-chevron_right,.semi-portal-rtl .semi-datepicker-yam .semi-icon-double_chevron_left,.semi-portal-rtl .semi-datepicker-yam .semi-icon-double_chevron_right{transform:scaleX(-1)}.semi-rtl .semi-datepicker-range-input-prefix,.semi-portal-rtl .semi-datepicker-range-input-prefix{padding-left:8px;padding-right:12px}.semi-rtl .semi-datepicker-range-input-suffix,.semi-portal-rtl .semi-datepicker-range-input-suffix{padding-left:12px;padding-right:8px}.semi-rtl .semi-datepicker-range-input-suffix-hidden,.semi-portal-rtl .semi-datepicker-range-input-suffix-hidden{display:none}.semi-rtl .semi-datepicker-range-input-clearbtn,.semi-portal-rtl .semi-datepicker-range-input-clearbtn{padding-left:12px;padding-right:8px}.semi-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left,.semi-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left{border-left:1px solid var(--semi-color-border);border-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel{border-left:0;border-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:0 4px 4px 0}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:4px 0 0 4px}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-selected-start .semi-datepicker-day-main{margin-left:0;margin-right:2px;border-radius:0 4px 4px 0}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-selected-end .semi-datepicker-day-main{margin-right:0;margin-left:2px;border-radius:4px 0 0 4px}.semi-rtl .semi-datepicker-compact .semi-datepicker-switch-date,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-switch-date{border-left:1px solid var(--semi-color-border);border-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-switch-text,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-switch-text{padding-left:auto;padding-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-footer,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-footer{padding-left:8px;padding-right:auto}.semi-rtl .semi-datepicker-compact .semi-datepicker-inset-input-separator,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-inset-input-separator{border-right:1px solid var(--semi-color-border);border-left:0;transform:translate(-50%)}.semi-descriptions{line-height:20px}.semi-descriptions table,.semi-descriptions tr,.semi-descriptions th,.semi-descriptions td{margin:0;padding:0;border:0}.semi-descriptions th{padding-right:24px}.semi-descriptions .semi-descriptions-item{margin:0;padding-bottom:12px;text-align:left;vertical-align:top}.semi-descriptions-key{font-weight:400;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-height:14px;white-space:nowrap;color:var(--semi-color-text-2)}.semi-descriptions-value{font-weight:400;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-0)}.semi-descriptions-center .semi-descriptions-item-th{text-align:right}.semi-descriptions-center .semi-descriptions-item-td,.semi-descriptions-left .semi-descriptions-item-th,.semi-descriptions-left .semi-descriptions-item-td,.semi-descriptions-justify .semi-descriptions-item-th{text-align:left}.semi-descriptions-justify .semi-descriptions-item-td{text-align:right}.semi-descriptions-plain .semi-descriptions-key,.semi-descriptions-plain .semi-descriptions-value{display:inline-block}.semi-descriptions-plain .semi-descriptions-value{padding-left:8px}.semi-descriptions-plain .semi-descriptions-value .semi-tag{vertical-align:middle}.semi-descriptions-double tbody{display:flex;flex-wrap:wrap}.semi-descriptions-double tr{display:inline-flex;flex-direction:column}.semi-descriptions-double .semi-descriptions-item{padding:0;flex:1}.semi-descriptions-double .semi-descriptions-value{font-weight:600}.semi-descriptions-double-small .semi-descriptions-item{padding-right:48px}.semi-descriptions-double-small .semi-descriptions-key{line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;padding-bottom:0;font-size:12px}.semi-descriptions-double-small .semi-descriptions-value{line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px}.semi-descriptions-double-medium .semi-descriptions-item{padding-right:60px}.semi-descriptions-double-medium .semi-descriptions-key{padding-bottom:4px;font-size:14px}.semi-descriptions-double-medium .semi-descriptions-value{line-height:28px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}.semi-descriptions-double-large .semi-descriptions-item{padding-right:80px}.semi-descriptions-double-large .semi-descriptions-key{padding-bottom:4px;font-size:14px}.semi-descriptions-double-large .semi-descriptions-value{line-height:40px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:28px}.semi-rtl .semi-descriptions,.semi-portal-rtl .semi-descriptions{direction:rtl}.semi-rtl .semi-descriptions th,.semi-portal-rtl .semi-descriptions th{direction:rtl;padding-right:0;padding-left:24px}.semi-rtl .semi-descriptions .semi-descriptions-item,.semi-portal-rtl .semi-descriptions .semi-descriptions-item{text-align:right}.semi-rtl .semi-descriptions-center .semi-descriptions-item-th,.semi-portal-rtl .semi-descriptions-center .semi-descriptions-item-th{text-align:left}.semi-rtl .semi-descriptions-center .semi-descriptions-item-td,.semi-portal-rtl .semi-descriptions-center .semi-descriptions-item-td{text-align:right}.semi-rtl .semi-descriptions-left .semi-descriptions-item-th,.semi-rtl .semi-descriptions-left .semi-descriptions-item-td,.semi-portal-rtl .semi-descriptions-left .semi-descriptions-item-th,.semi-portal-rtl .semi-descriptions-left .semi-descriptions-item-td{text-align:left}.semi-rtl .semi-descriptions-justify .semi-descriptions-item-th,.semi-portal-rtl .semi-descriptions-justify .semi-descriptions-item-th{text-align:right}.semi-rtl .semi-descriptions-justify .semi-descriptions-item-td,.semi-portal-rtl .semi-descriptions-justify .semi-descriptions-item-td{text-align:left}.semi-rtl .semi-descriptions-plain .semi-descriptions-key,.semi-rtl .semi-descriptions-plain .semi-descriptions-value,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-key,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-value{display:inline-block}.semi-rtl .semi-descriptions-plain .semi-descriptions-value,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-value{padding-left:0;padding-right:8px}.semi-rtl .semi-descriptions-plain .semi-descriptions-value .semi-tag,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-value .semi-tag{vertical-align:middle}.semi-rtl .semi-descriptions-double,.semi-portal-rtl .semi-descriptions-double{direction:rtl}.semi-rtl .semi-descriptions-double .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double .semi-descriptions-item{text-align:right}.semi-rtl .semi-descriptions-double-small .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double-small .semi-descriptions-item{padding-right:0;padding-left:48px}.semi-rtl .semi-descriptions-double-medium .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double-medium .semi-descriptions-item{padding-right:0;padding-left:60px}.semi-rtl .semi-descriptions-double-large .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double-large .semi-descriptions-item{padding-right:0;padding-left:80px}.semi-empty{display:flex}.semi-empty-image{display:flex;justify-content:center;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;pointer-events:none}.semi-empty-vertical{align-items:center;flex-direction:column}.semi-empty-vertical .semi-empty-content{margin-top:24px}.semi-empty-vertical .semi-empty-title,.semi-empty-vertical .semi-empty-description{text-align:center}.semi-empty-horizontal .semi-empty-content{margin-left:32px}.semi-empty-title.semi-typography{display:block;font-weight:600}.semi-empty-title+.semi-empty-description{margin-top:16px}.semi-empty-description{color:var(--semi-color-text-1)}.semi-empty-footer{margin-top:24px}.semi-rtl .semi-empty,.semi-portal-rtl .semi-empty{direction:rtl}.semi-rtl .semi-empty-horizontal .semi-empty-content,.semi-portal-rtl .semi-empty-horizontal .semi-empty-content{margin-left:auto;margin-right:32px}.semi-modal{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;position:relative;margin:80px auto;color:var(--semi-color-text-0)}.semi-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;background-color:var(--semi-color-overlay-bg);height:100%;z-index:1000}.semi-modal-mask-hidden{display:none}.semi-modal-icon-wrapper{display:inline-flex;margin-right:12px;width:24px}.semi-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1000;-webkit-overflow-scrolling:touch;outline:0}.semi-modal-wrap-center{display:flex;align-items:center}.semi-modal-title{display:inline-flex;align-items:flex-start;justify-content:flex-start;width:100%;margin:0}.semi-modal-content{position:relative;display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:column;background-color:var(--semi-color-bg-2);border:1px solid var(--semi-color-border);border-radius:var(--semi-border-radius-large);padding:0 24px;background-clip:padding-box;overflow:hidden;box-shadow:var(--semi-shadow-elevated)}.semi-modal-content-fullScreen{border-radius:0;border:none;top:0}.semi-modal-header{display:flex;align-items:flex-start;margin:24px 0;padding:0;font-size:14px;font-weight:600;background-color:transparent;color:var(--semi-color-text-0);border-bottom:0 solid transparent}.semi-modal-body-wrapper{display:flex;align-items:flex-start;margin:24px 0}.semi-modal-body{flex:1 1 auto;margin:0;padding:0}.semi-modal-withIcon{margin-left:36px}.semi-modal-footer{margin:24px 0;padding:0;text-align:right;border-radius:0 0 5px 5px;border-top:0 solid transparent;background-color:transparent}.semi-modal-footer .semi-button{margin-left:12px;margin-right:0}.semi-modal-confirm .semi-modal-header{margin-bottom:8px}.semi-modal-confirm-icon-wrapper{display:inline-flex;margin-right:12px;width:24px}.semi-modal-confirm-icon{display:inline-flex;color:var(--semi-color-primary)}.semi-modal-info-icon{color:var(--semi-color-info)}.semi-modal-success-icon{color:var(--semi-color-success)}.semi-modal-error-icon{color:var(--semi-color-danger)}.semi-modal-warning-icon{color:var(--semi-color-warning)}.semi-modal-small{width:448px}.semi-modal-medium{width:684px}.semi-modal-large{width:920px}.semi-modal-full-width{width:calc(100vw - 64px)}.semi-modal-centered{margin:0 auto}.semi-modal-popup .semi-modal-mask,.semi-modal-popup .semi-modal-wrap{position:absolute;overflow:hidden}.semi-modal-fixed .semi-modal-mask,.semi-modal-fixed .semi-modal-wrap{position:fixed;overflow:hidden}.semi-modal-displayNone{display:none}.semi-modal-content-animate-show{animation:.12s semi-modal-content-keyframe-show cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}.semi-modal-content-animate-hide{animation:.12s semi-modal-content-keyframe-hide cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}.semi-modal-mask-animate-show{animation:90ms semi-modal-mask-keyframe-show cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}.semi-modal-mask-animate-hide{animation:90ms semi-modal-mask-keyframe-hide cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}@keyframes semi-modal-content-keyframe-show{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes semi-modal-content-keyframe-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.7)}}@keyframes semi-modal-mask-keyframe-show{0%{opacity:0}to{opacity:1}}@keyframes semi-modal-mask-keyframe-hide{0%{opacity:1}to{opacity:0}}.semi-modal-rtl{direction:rtl}.semi-modal-rtl .semi-modal-icon-wrapper,.semi-modal-confirm-rtl .semi-modal-icon-wrapper{margin-right:0;margin-left:12px}.semi-modal-rtl .semi-modal-withIcon,.semi-modal-confirm-rtl .semi-modal-withIcon{margin-left:0;margin-right:36px}.semi-modal-rtl .semi-modal-footer,.semi-modal-confirm-rtl .semi-modal-footer{text-align:left}.semi-modal-rtl .semi-modal-footer .semi-button,.semi-modal-confirm-rtl .semi-modal-footer .semi-button{margin-left:0;margin-right:12px}.semi-modal-confirm-rtl{direction:rtl}.semi-modal-confirm .semi-modal-confirm-rtl .semi-button{margin-left:0;margin-right:12px}.semi-dropdown{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-dropdown-wrapper{box-shadow:var(--semi-shadow-elevated);position:relative;z-index:1050;border-radius:var(--semi-border-radius-medium);background:var(--semi-color-bg-3);opacity:0}.semi-dropdown-wrapper-show{opacity:1}.semi-dropdown-trigger{display:inline-block}.semi-dropdown-menu{list-style:none;padding:4px 0;margin:0}.semi-dropdown-title{color:var(--semi-color-text-2);padding:8px 16px 4px;font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:default}.semi-dropdown-title-withTick{padding-left:31px}.semi-dropdown-item{padding:8px 16px;color:var(--semi-color-text-0);max-width:280px;display:flex;align-items:center;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-dropdown-item-hover{background-color:var(--semi-color-fill-0)}.semi-dropdown-item:not(.semi-dropdown-item-active):hover{background-color:var(--semi-color-fill-0);cursor:pointer}.semi-dropdown-item:not(.semi-dropdown-item-active):active{background-color:var(--semi-color-fill-1)}.semi-dropdown-item:focus-visible{background-color:var(--semi-color-fill-0);outline:0}.semi-dropdown-item-icon{display:inline-flex;align-items:center;margin-right:8px}.semi-dropdown-item-danger{color:var(--semi-color-danger)}.semi-dropdown-item-secondary{color:var(--semi-color-secondary)}.semi-dropdown-item-warning{color:var(--semi-color-warning)}.semi-dropdown-item-tertiary{color:var(--semi-color-tertiary)}.semi-dropdown-item-primary{color:var(--semi-color-primary)}.semi-dropdown-item-withTick{padding-left:12px}.semi-dropdown-item>.semi-icon{flex-shrink:0;margin-right:9px;font-size:12px}.semi-dropdown-item-active{font-weight:600}.semi-dropdown-item.semi-dropdown-item-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-dropdown-item.semi-dropdown-item-disabled:hover,.semi-dropdown-item.semi-dropdown-item-disabled:active{cursor:not-allowed;background-color:transparent}.semi-dropdown-divider{display:block;height:1px;width:100%;min-width:100%;clear:both;background:var(--semi-color-border);margin:4px 0}.semi-rtl .semi-dropdown-wrapper,.semi-portal-rtl .semi-dropdown-wrapper{direction:rtl}.semi-rtl .semi-dropdown-title-withTick,.semi-portal-rtl .semi-dropdown-title-withTick{padding-left:0;padding-right:31px}.semi-rtl .semi-dropdown-item-withTick,.semi-portal-rtl .semi-dropdown-item-withTick{padding-left:auto;padding-right:12px}.semi-rtl .semi-dropdown-item>.semi-icon,.semi-portal-rtl .semi-dropdown-item>.semi-icon{margin-right:0;margin-left:9px}.semi-row{position:relative;height:auto;margin-right:0;margin-left:0;zoom:1;display:block;box-sizing:border-box}.semi-row:before,.semi-row:after{display:table;content:""}.semi-row:after{clear:both}.semi-row-flex{display:flex;flex-flow:row wrap}.semi-row-flex:before,.semi-row-flex:after{display:flex}.semi-col-0,.semi-col-xs-0,.semi-col-sm-0,.semi-col-md-0,.semi-col-lg-0,.semi-col-xl-0,.semi-col-xxl-0{display:none}.semi-row-flex-start{justify-content:flex-start}.semi-row-flex-center{justify-content:center}.semi-row-flex-end{justify-content:flex-end}.semi-row-flex-space-between{justify-content:space-between}.semi-row-flex-space-around{justify-content:space-around}.semi-row-flex-top{align-items:flex-start}.semi-row-flex-middle{align-items:center}.semi-row-flex-bottom{align-items:flex-end}.semi-col{position:relative}.semi-col-1,.semi-col-xs-1,.semi-col-sm-1,.semi-col-md-1,.semi-col-lg-1,.semi-col-2,.semi-col-xs-2,.semi-col-sm-2,.semi-col-md-2,.semi-col-lg-2,.semi-col-3,.semi-col-xs-3,.semi-col-sm-3,.semi-col-md-3,.semi-col-lg-3,.semi-col-4,.semi-col-xs-4,.semi-col-sm-4,.semi-col-md-4,.semi-col-lg-4,.semi-col-5,.semi-col-xs-5,.semi-col-sm-5,.semi-col-md-5,.semi-col-lg-5,.semi-col-6,.semi-col-xs-6,.semi-col-sm-6,.semi-col-md-6,.semi-col-lg-6,.semi-col-7,.semi-col-xs-7,.semi-col-sm-7,.semi-col-md-7,.semi-col-lg-7,.semi-col-8,.semi-col-xs-8,.semi-col-sm-8,.semi-col-md-8,.semi-col-lg-8,.semi-col-9,.semi-col-xs-9,.semi-col-sm-9,.semi-col-md-9,.semi-col-lg-9,.semi-col-10,.semi-col-xs-10,.semi-col-sm-10,.semi-col-md-10,.semi-col-lg-10,.semi-col-11,.semi-col-xs-11,.semi-col-sm-11,.semi-col-md-11,.semi-col-lg-11,.semi-col-12,.semi-col-xs-12,.semi-col-sm-12,.semi-col-md-12,.semi-col-lg-12,.semi-col-13,.semi-col-xs-13,.semi-col-sm-13,.semi-col-md-13,.semi-col-lg-13,.semi-col-14,.semi-col-xs-14,.semi-col-sm-14,.semi-col-md-14,.semi-col-lg-14,.semi-col-15,.semi-col-xs-15,.semi-col-sm-15,.semi-col-md-15,.semi-col-lg-15,.semi-col-16,.semi-col-xs-16,.semi-col-sm-16,.semi-col-md-16,.semi-col-lg-16,.semi-col-17,.semi-col-xs-17,.semi-col-sm-17,.semi-col-md-17,.semi-col-lg-17,.semi-col-18,.semi-col-xs-18,.semi-col-sm-18,.semi-col-md-18,.semi-col-lg-18,.semi-col-19,.semi-col-xs-19,.semi-col-sm-19,.semi-col-md-19,.semi-col-lg-19,.semi-col-20,.semi-col-xs-20,.semi-col-sm-20,.semi-col-md-20,.semi-col-lg-20,.semi-col-21,.semi-col-xs-21,.semi-col-sm-21,.semi-col-md-21,.semi-col-lg-21,.semi-col-22,.semi-col-xs-22,.semi-col-sm-22,.semi-col-md-22,.semi-col-lg-22,.semi-col-23,.semi-col-xs-23,.semi-col-sm-23,.semi-col-md-23,.semi-col-lg-23,.semi-col-24,.semi-col-xs-24,.semi-col-sm-24,.semi-col-md-24,.semi-col-lg-24{position:relative;min-height:1px;padding-right:0;padding-left:0}.semi-col-1,.semi-col-2,.semi-col-3,.semi-col-4,.semi-col-5,.semi-col-6,.semi-col-7,.semi-col-8,.semi-col-9,.semi-col-10,.semi-col-11,.semi-col-12,.semi-col-13,.semi-col-14,.semi-col-15,.semi-col-16,.semi-col-17,.semi-col-18,.semi-col-19,.semi-col-20,.semi-col-21,.semi-col-22,.semi-col-23,.semi-col-24{flex:0 0 auto;float:left}.semi-col-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-push-1{left:4.1666666667%}.semi-col-pull-1{right:4.1666666667%}.semi-col-offset-1{margin-left:4.1666666667%}.semi-col-order-1{order:1}.semi-col-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-push-2{left:8.3333333333%}.semi-col-pull-2{right:8.3333333333%}.semi-col-offset-2{margin-left:8.3333333333%}.semi-col-order-2{order:2}.semi-col-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-push-3{left:12.5%}.semi-col-pull-3{right:12.5%}.semi-col-offset-3{margin-left:12.5%}.semi-col-order-3{order:3}.semi-col-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-push-4{left:16.6666666667%}.semi-col-pull-4{right:16.6666666667%}.semi-col-offset-4{margin-left:16.6666666667%}.semi-col-order-4{order:4}.semi-col-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-push-5{left:20.8333333333%}.semi-col-pull-5{right:20.8333333333%}.semi-col-offset-5{margin-left:20.8333333333%}.semi-col-order-5{order:5}.semi-col-6{display:block;box-sizing:border-box;width:25%}.semi-col-push-6{left:25%}.semi-col-pull-6{right:25%}.semi-col-offset-6{margin-left:25%}.semi-col-order-6{order:6}.semi-col-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-push-7{left:29.1666666667%}.semi-col-pull-7{right:29.1666666667%}.semi-col-offset-7{margin-left:29.1666666667%}.semi-col-order-7{order:7}.semi-col-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-push-8{left:33.3333333333%}.semi-col-pull-8{right:33.3333333333%}.semi-col-offset-8{margin-left:33.3333333333%}.semi-col-order-8{order:8}.semi-col-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-push-9{left:37.5%}.semi-col-pull-9{right:37.5%}.semi-col-offset-9{margin-left:37.5%}.semi-col-order-9{order:9}.semi-col-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-push-10{left:41.6666666667%}.semi-col-pull-10{right:41.6666666667%}.semi-col-offset-10{margin-left:41.6666666667%}.semi-col-order-10{order:10}.semi-col-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-push-11{left:45.8333333333%}.semi-col-pull-11{right:45.8333333333%}.semi-col-offset-11{margin-left:45.8333333333%}.semi-col-order-11{order:11}.semi-col-12{display:block;box-sizing:border-box;width:50%}.semi-col-push-12{left:50%}.semi-col-pull-12{right:50%}.semi-col-offset-12{margin-left:50%}.semi-col-order-12{order:12}.semi-col-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-push-13{left:54.1666666667%}.semi-col-pull-13{right:54.1666666667%}.semi-col-offset-13{margin-left:54.1666666667%}.semi-col-order-13{order:13}.semi-col-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-push-14{left:58.3333333333%}.semi-col-pull-14{right:58.3333333333%}.semi-col-offset-14{margin-left:58.3333333333%}.semi-col-order-14{order:14}.semi-col-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-push-15{left:62.5%}.semi-col-pull-15{right:62.5%}.semi-col-offset-15{margin-left:62.5%}.semi-col-order-15{order:15}.semi-col-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-push-16{left:66.6666666667%}.semi-col-pull-16{right:66.6666666667%}.semi-col-offset-16{margin-left:66.6666666667%}.semi-col-order-16{order:16}.semi-col-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-push-17{left:70.8333333333%}.semi-col-pull-17{right:70.8333333333%}.semi-col-offset-17{margin-left:70.8333333333%}.semi-col-order-17{order:17}.semi-col-18{display:block;box-sizing:border-box;width:75%}.semi-col-push-18{left:75%}.semi-col-pull-18{right:75%}.semi-col-offset-18{margin-left:75%}.semi-col-order-18{order:18}.semi-col-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-push-19{left:79.1666666667%}.semi-col-pull-19{right:79.1666666667%}.semi-col-offset-19{margin-left:79.1666666667%}.semi-col-order-19{order:19}.semi-col-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-push-20{left:83.3333333333%}.semi-col-pull-20{right:83.3333333333%}.semi-col-offset-20{margin-left:83.3333333333%}.semi-col-order-20{order:20}.semi-col-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-push-21{left:87.5%}.semi-col-pull-21{right:87.5%}.semi-col-offset-21{margin-left:87.5%}.semi-col-order-21{order:21}.semi-col-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-push-22{left:91.6666666667%}.semi-col-pull-22{right:91.6666666667%}.semi-col-offset-22{margin-left:91.6666666667%}.semi-col-order-22{order:22}.semi-col-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-push-23{left:95.8333333333%}.semi-col-pull-23{right:95.8333333333%}.semi-col-offset-23{margin-left:95.8333333333%}.semi-col-order-23{order:23}.semi-col-24{display:block;box-sizing:border-box;width:100%}.semi-col-push-24{left:100%}.semi-col-pull-24{right:100%}.semi-col-offset-24{margin-left:100%}.semi-col-order-24{order:24}.semi-rtl .semi-col-1,.semi-rtl .semi-col-2,.semi-rtl .semi-col-3,.semi-rtl .semi-col-4,.semi-rtl .semi-col-5,.semi-rtl .semi-col-6,.semi-rtl .semi-col-7,.semi-rtl .semi-col-8,.semi-rtl .semi-col-9,.semi-rtl .semi-col-10,.semi-rtl .semi-col-11,.semi-rtl .semi-col-12,.semi-rtl .semi-col-13,.semi-rtl .semi-col-14,.semi-rtl .semi-col-15,.semi-rtl .semi-col-16,.semi-rtl .semi-col-17,.semi-rtl .semi-col-18,.semi-rtl .semi-col-19,.semi-rtl .semi-col-20,.semi-rtl .semi-col-21,.semi-rtl .semi-col-22,.semi-rtl .semi-col-23,.semi-rtl .semi-col-24{float:right}.semi-rtl .semi-col-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-offset-24{margin-left:auto;margin-right:100%}.semi-col-xs-1,.semi-col-xs-2,.semi-col-xs-3,.semi-col-xs-4,.semi-col-xs-5,.semi-col-xs-6,.semi-col-xs-7,.semi-col-xs-8,.semi-col-xs-9,.semi-col-xs-10,.semi-col-xs-11,.semi-col-xs-12,.semi-col-xs-13,.semi-col-xs-14,.semi-col-xs-15,.semi-col-xs-16,.semi-col-xs-17,.semi-col-xs-18,.semi-col-xs-19,.semi-col-xs-20,.semi-col-xs-21,.semi-col-xs-22,.semi-col-xs-23,.semi-col-xs-24{flex:0 0 auto;float:left}.semi-col-xs-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-xs-push-1{left:4.1666666667%}.semi-col-xs-pull-1{right:4.1666666667%}.semi-col-xs-offset-1{margin-left:4.1666666667%}.semi-col-xs-order-1{order:1}.semi-col-xs-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-xs-push-2{left:8.3333333333%}.semi-col-xs-pull-2{right:8.3333333333%}.semi-col-xs-offset-2{margin-left:8.3333333333%}.semi-col-xs-order-2{order:2}.semi-col-xs-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-xs-push-3{left:12.5%}.semi-col-xs-pull-3{right:12.5%}.semi-col-xs-offset-3{margin-left:12.5%}.semi-col-xs-order-3{order:3}.semi-col-xs-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-xs-push-4{left:16.6666666667%}.semi-col-xs-pull-4{right:16.6666666667%}.semi-col-xs-offset-4{margin-left:16.6666666667%}.semi-col-xs-order-4{order:4}.semi-col-xs-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-xs-push-5{left:20.8333333333%}.semi-col-xs-pull-5{right:20.8333333333%}.semi-col-xs-offset-5{margin-left:20.8333333333%}.semi-col-xs-order-5{order:5}.semi-col-xs-6{display:block;box-sizing:border-box;width:25%}.semi-col-xs-push-6{left:25%}.semi-col-xs-pull-6{right:25%}.semi-col-xs-offset-6{margin-left:25%}.semi-col-xs-order-6{order:6}.semi-col-xs-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-xs-push-7{left:29.1666666667%}.semi-col-xs-pull-7{right:29.1666666667%}.semi-col-xs-offset-7{margin-left:29.1666666667%}.semi-col-xs-order-7{order:7}.semi-col-xs-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-xs-push-8{left:33.3333333333%}.semi-col-xs-pull-8{right:33.3333333333%}.semi-col-xs-offset-8{margin-left:33.3333333333%}.semi-col-xs-order-8{order:8}.semi-col-xs-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-xs-push-9{left:37.5%}.semi-col-xs-pull-9{right:37.5%}.semi-col-xs-offset-9{margin-left:37.5%}.semi-col-xs-order-9{order:9}.semi-col-xs-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-xs-push-10{left:41.6666666667%}.semi-col-xs-pull-10{right:41.6666666667%}.semi-col-xs-offset-10{margin-left:41.6666666667%}.semi-col-xs-order-10{order:10}.semi-col-xs-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-xs-push-11{left:45.8333333333%}.semi-col-xs-pull-11{right:45.8333333333%}.semi-col-xs-offset-11{margin-left:45.8333333333%}.semi-col-xs-order-11{order:11}.semi-col-xs-12{display:block;box-sizing:border-box;width:50%}.semi-col-xs-push-12{left:50%}.semi-col-xs-pull-12{right:50%}.semi-col-xs-offset-12{margin-left:50%}.semi-col-xs-order-12{order:12}.semi-col-xs-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-xs-push-13{left:54.1666666667%}.semi-col-xs-pull-13{right:54.1666666667%}.semi-col-xs-offset-13{margin-left:54.1666666667%}.semi-col-xs-order-13{order:13}.semi-col-xs-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-xs-push-14{left:58.3333333333%}.semi-col-xs-pull-14{right:58.3333333333%}.semi-col-xs-offset-14{margin-left:58.3333333333%}.semi-col-xs-order-14{order:14}.semi-col-xs-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-xs-push-15{left:62.5%}.semi-col-xs-pull-15{right:62.5%}.semi-col-xs-offset-15{margin-left:62.5%}.semi-col-xs-order-15{order:15}.semi-col-xs-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-xs-push-16{left:66.6666666667%}.semi-col-xs-pull-16{right:66.6666666667%}.semi-col-xs-offset-16{margin-left:66.6666666667%}.semi-col-xs-order-16{order:16}.semi-col-xs-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-xs-push-17{left:70.8333333333%}.semi-col-xs-pull-17{right:70.8333333333%}.semi-col-xs-offset-17{margin-left:70.8333333333%}.semi-col-xs-order-17{order:17}.semi-col-xs-18{display:block;box-sizing:border-box;width:75%}.semi-col-xs-push-18{left:75%}.semi-col-xs-pull-18{right:75%}.semi-col-xs-offset-18{margin-left:75%}.semi-col-xs-order-18{order:18}.semi-col-xs-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-xs-push-19{left:79.1666666667%}.semi-col-xs-pull-19{right:79.1666666667%}.semi-col-xs-offset-19{margin-left:79.1666666667%}.semi-col-xs-order-19{order:19}.semi-col-xs-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-xs-push-20{left:83.3333333333%}.semi-col-xs-pull-20{right:83.3333333333%}.semi-col-xs-offset-20{margin-left:83.3333333333%}.semi-col-xs-order-20{order:20}.semi-col-xs-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-xs-push-21{left:87.5%}.semi-col-xs-pull-21{right:87.5%}.semi-col-xs-offset-21{margin-left:87.5%}.semi-col-xs-order-21{order:21}.semi-col-xs-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-xs-push-22{left:91.6666666667%}.semi-col-xs-pull-22{right:91.6666666667%}.semi-col-xs-offset-22{margin-left:91.6666666667%}.semi-col-xs-order-22{order:22}.semi-col-xs-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-xs-push-23{left:95.8333333333%}.semi-col-xs-pull-23{right:95.8333333333%}.semi-col-xs-offset-23{margin-left:95.8333333333%}.semi-col-xs-order-23{order:23}.semi-col-xs-24{display:block;box-sizing:border-box;width:100%}.semi-col-xs-push-24{left:100%}.semi-col-xs-pull-24{right:100%}.semi-col-xs-offset-24{margin-left:100%}.semi-col-xs-order-24{order:24}.semi-rtl .semi-col-xs-1,.semi-rtl .semi-col-xs-2,.semi-rtl .semi-col-xs-3,.semi-rtl .semi-col-xs-4,.semi-rtl .semi-col-xs-5,.semi-rtl .semi-col-xs-6,.semi-rtl .semi-col-xs-7,.semi-rtl .semi-col-xs-8,.semi-rtl .semi-col-xs-9,.semi-rtl .semi-col-xs-10,.semi-rtl .semi-col-xs-11,.semi-rtl .semi-col-xs-12,.semi-rtl .semi-col-xs-13,.semi-rtl .semi-col-xs-14,.semi-rtl .semi-col-xs-15,.semi-rtl .semi-col-xs-16,.semi-rtl .semi-col-xs-17,.semi-rtl .semi-col-xs-18,.semi-rtl .semi-col-xs-19,.semi-rtl .semi-col-xs-20,.semi-rtl .semi-col-xs-21,.semi-rtl .semi-col-xs-22,.semi-rtl .semi-col-xs-23,.semi-rtl .semi-col-xs-24{float:right}.semi-rtl .semi-col-xs-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-xs-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-xs-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-xs-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-xs-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-xs-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-xs-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-xs-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-xs-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-xs-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-xs-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-xs-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-xs-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-xs-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-xs-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-xs-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-xs-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-xs-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-xs-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-xs-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-xs-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-xs-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-xs-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-xs-offset-24{margin-left:auto;margin-right:100%}@media (min-width: 576px){.semi-col-sm-1,.semi-col-sm-2,.semi-col-sm-3,.semi-col-sm-4,.semi-col-sm-5,.semi-col-sm-6,.semi-col-sm-7,.semi-col-sm-8,.semi-col-sm-9,.semi-col-sm-10,.semi-col-sm-11,.semi-col-sm-12,.semi-col-sm-13,.semi-col-sm-14,.semi-col-sm-15,.semi-col-sm-16,.semi-col-sm-17,.semi-col-sm-18,.semi-col-sm-19,.semi-col-sm-20,.semi-col-sm-21,.semi-col-sm-22,.semi-col-sm-23,.semi-col-sm-24{flex:0 0 auto;float:left}.semi-col-sm-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-sm-push-1{left:4.1666666667%}.semi-col-sm-pull-1{right:4.1666666667%}.semi-col-sm-offset-1{margin-left:4.1666666667%}.semi-col-sm-order-1{order:1}.semi-col-sm-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-sm-push-2{left:8.3333333333%}.semi-col-sm-pull-2{right:8.3333333333%}.semi-col-sm-offset-2{margin-left:8.3333333333%}.semi-col-sm-order-2{order:2}.semi-col-sm-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-sm-push-3{left:12.5%}.semi-col-sm-pull-3{right:12.5%}.semi-col-sm-offset-3{margin-left:12.5%}.semi-col-sm-order-3{order:3}.semi-col-sm-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-sm-push-4{left:16.6666666667%}.semi-col-sm-pull-4{right:16.6666666667%}.semi-col-sm-offset-4{margin-left:16.6666666667%}.semi-col-sm-order-4{order:4}.semi-col-sm-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-sm-push-5{left:20.8333333333%}.semi-col-sm-pull-5{right:20.8333333333%}.semi-col-sm-offset-5{margin-left:20.8333333333%}.semi-col-sm-order-5{order:5}.semi-col-sm-6{display:block;box-sizing:border-box;width:25%}.semi-col-sm-push-6{left:25%}.semi-col-sm-pull-6{right:25%}.semi-col-sm-offset-6{margin-left:25%}.semi-col-sm-order-6{order:6}.semi-col-sm-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-sm-push-7{left:29.1666666667%}.semi-col-sm-pull-7{right:29.1666666667%}.semi-col-sm-offset-7{margin-left:29.1666666667%}.semi-col-sm-order-7{order:7}.semi-col-sm-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-sm-push-8{left:33.3333333333%}.semi-col-sm-pull-8{right:33.3333333333%}.semi-col-sm-offset-8{margin-left:33.3333333333%}.semi-col-sm-order-8{order:8}.semi-col-sm-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-sm-push-9{left:37.5%}.semi-col-sm-pull-9{right:37.5%}.semi-col-sm-offset-9{margin-left:37.5%}.semi-col-sm-order-9{order:9}.semi-col-sm-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-sm-push-10{left:41.6666666667%}.semi-col-sm-pull-10{right:41.6666666667%}.semi-col-sm-offset-10{margin-left:41.6666666667%}.semi-col-sm-order-10{order:10}.semi-col-sm-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-sm-push-11{left:45.8333333333%}.semi-col-sm-pull-11{right:45.8333333333%}.semi-col-sm-offset-11{margin-left:45.8333333333%}.semi-col-sm-order-11{order:11}.semi-col-sm-12{display:block;box-sizing:border-box;width:50%}.semi-col-sm-push-12{left:50%}.semi-col-sm-pull-12{right:50%}.semi-col-sm-offset-12{margin-left:50%}.semi-col-sm-order-12{order:12}.semi-col-sm-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-sm-push-13{left:54.1666666667%}.semi-col-sm-pull-13{right:54.1666666667%}.semi-col-sm-offset-13{margin-left:54.1666666667%}.semi-col-sm-order-13{order:13}.semi-col-sm-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-sm-push-14{left:58.3333333333%}.semi-col-sm-pull-14{right:58.3333333333%}.semi-col-sm-offset-14{margin-left:58.3333333333%}.semi-col-sm-order-14{order:14}.semi-col-sm-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-sm-push-15{left:62.5%}.semi-col-sm-pull-15{right:62.5%}.semi-col-sm-offset-15{margin-left:62.5%}.semi-col-sm-order-15{order:15}.semi-col-sm-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-sm-push-16{left:66.6666666667%}.semi-col-sm-pull-16{right:66.6666666667%}.semi-col-sm-offset-16{margin-left:66.6666666667%}.semi-col-sm-order-16{order:16}.semi-col-sm-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-sm-push-17{left:70.8333333333%}.semi-col-sm-pull-17{right:70.8333333333%}.semi-col-sm-offset-17{margin-left:70.8333333333%}.semi-col-sm-order-17{order:17}.semi-col-sm-18{display:block;box-sizing:border-box;width:75%}.semi-col-sm-push-18{left:75%}.semi-col-sm-pull-18{right:75%}.semi-col-sm-offset-18{margin-left:75%}.semi-col-sm-order-18{order:18}.semi-col-sm-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-sm-push-19{left:79.1666666667%}.semi-col-sm-pull-19{right:79.1666666667%}.semi-col-sm-offset-19{margin-left:79.1666666667%}.semi-col-sm-order-19{order:19}.semi-col-sm-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-sm-push-20{left:83.3333333333%}.semi-col-sm-pull-20{right:83.3333333333%}.semi-col-sm-offset-20{margin-left:83.3333333333%}.semi-col-sm-order-20{order:20}.semi-col-sm-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-sm-push-21{left:87.5%}.semi-col-sm-pull-21{right:87.5%}.semi-col-sm-offset-21{margin-left:87.5%}.semi-col-sm-order-21{order:21}.semi-col-sm-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-sm-push-22{left:91.6666666667%}.semi-col-sm-pull-22{right:91.6666666667%}.semi-col-sm-offset-22{margin-left:91.6666666667%}.semi-col-sm-order-22{order:22}.semi-col-sm-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-sm-push-23{left:95.8333333333%}.semi-col-sm-pull-23{right:95.8333333333%}.semi-col-sm-offset-23{margin-left:95.8333333333%}.semi-col-sm-order-23{order:23}.semi-col-sm-24{display:block;box-sizing:border-box;width:100%}.semi-col-sm-push-24{left:100%}.semi-col-sm-pull-24{right:100%}.semi-col-sm-offset-24{margin-left:100%}.semi-col-sm-order-24{order:24}.semi-rtl .semi-col-sm-1,.semi-rtl .semi-col-sm-2,.semi-rtl .semi-col-sm-3,.semi-rtl .semi-col-sm-4,.semi-rtl .semi-col-sm-5,.semi-rtl .semi-col-sm-6,.semi-rtl .semi-col-sm-7,.semi-rtl .semi-col-sm-8,.semi-rtl .semi-col-sm-9,.semi-rtl .semi-col-sm-10,.semi-rtl .semi-col-sm-11,.semi-rtl .semi-col-sm-12,.semi-rtl .semi-col-sm-13,.semi-rtl .semi-col-sm-14,.semi-rtl .semi-col-sm-15,.semi-rtl .semi-col-sm-16,.semi-rtl .semi-col-sm-17,.semi-rtl .semi-col-sm-18,.semi-rtl .semi-col-sm-19,.semi-rtl .semi-col-sm-20,.semi-rtl .semi-col-sm-21,.semi-rtl .semi-col-sm-22,.semi-rtl .semi-col-sm-23,.semi-rtl .semi-col-sm-24{float:right}.semi-rtl .semi-col-sm-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-sm-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-sm-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-sm-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-sm-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-sm-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-sm-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-sm-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-sm-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-sm-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-sm-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-sm-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-sm-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-sm-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-sm-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-sm-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-sm-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-sm-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-sm-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-sm-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-sm-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-sm-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-sm-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-sm-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 768px){.semi-col-md-1,.semi-col-md-2,.semi-col-md-3,.semi-col-md-4,.semi-col-md-5,.semi-col-md-6,.semi-col-md-7,.semi-col-md-8,.semi-col-md-9,.semi-col-md-10,.semi-col-md-11,.semi-col-md-12,.semi-col-md-13,.semi-col-md-14,.semi-col-md-15,.semi-col-md-16,.semi-col-md-17,.semi-col-md-18,.semi-col-md-19,.semi-col-md-20,.semi-col-md-21,.semi-col-md-22,.semi-col-md-23,.semi-col-md-24{flex:0 0 auto;float:left}.semi-col-md-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-md-push-1{left:4.1666666667%}.semi-col-md-pull-1{right:4.1666666667%}.semi-col-md-offset-1{margin-left:4.1666666667%}.semi-col-md-order-1{order:1}.semi-col-md-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-md-push-2{left:8.3333333333%}.semi-col-md-pull-2{right:8.3333333333%}.semi-col-md-offset-2{margin-left:8.3333333333%}.semi-col-md-order-2{order:2}.semi-col-md-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-md-push-3{left:12.5%}.semi-col-md-pull-3{right:12.5%}.semi-col-md-offset-3{margin-left:12.5%}.semi-col-md-order-3{order:3}.semi-col-md-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-md-push-4{left:16.6666666667%}.semi-col-md-pull-4{right:16.6666666667%}.semi-col-md-offset-4{margin-left:16.6666666667%}.semi-col-md-order-4{order:4}.semi-col-md-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-md-push-5{left:20.8333333333%}.semi-col-md-pull-5{right:20.8333333333%}.semi-col-md-offset-5{margin-left:20.8333333333%}.semi-col-md-order-5{order:5}.semi-col-md-6{display:block;box-sizing:border-box;width:25%}.semi-col-md-push-6{left:25%}.semi-col-md-pull-6{right:25%}.semi-col-md-offset-6{margin-left:25%}.semi-col-md-order-6{order:6}.semi-col-md-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-md-push-7{left:29.1666666667%}.semi-col-md-pull-7{right:29.1666666667%}.semi-col-md-offset-7{margin-left:29.1666666667%}.semi-col-md-order-7{order:7}.semi-col-md-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-md-push-8{left:33.3333333333%}.semi-col-md-pull-8{right:33.3333333333%}.semi-col-md-offset-8{margin-left:33.3333333333%}.semi-col-md-order-8{order:8}.semi-col-md-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-md-push-9{left:37.5%}.semi-col-md-pull-9{right:37.5%}.semi-col-md-offset-9{margin-left:37.5%}.semi-col-md-order-9{order:9}.semi-col-md-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-md-push-10{left:41.6666666667%}.semi-col-md-pull-10{right:41.6666666667%}.semi-col-md-offset-10{margin-left:41.6666666667%}.semi-col-md-order-10{order:10}.semi-col-md-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-md-push-11{left:45.8333333333%}.semi-col-md-pull-11{right:45.8333333333%}.semi-col-md-offset-11{margin-left:45.8333333333%}.semi-col-md-order-11{order:11}.semi-col-md-12{display:block;box-sizing:border-box;width:50%}.semi-col-md-push-12{left:50%}.semi-col-md-pull-12{right:50%}.semi-col-md-offset-12{margin-left:50%}.semi-col-md-order-12{order:12}.semi-col-md-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-md-push-13{left:54.1666666667%}.semi-col-md-pull-13{right:54.1666666667%}.semi-col-md-offset-13{margin-left:54.1666666667%}.semi-col-md-order-13{order:13}.semi-col-md-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-md-push-14{left:58.3333333333%}.semi-col-md-pull-14{right:58.3333333333%}.semi-col-md-offset-14{margin-left:58.3333333333%}.semi-col-md-order-14{order:14}.semi-col-md-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-md-push-15{left:62.5%}.semi-col-md-pull-15{right:62.5%}.semi-col-md-offset-15{margin-left:62.5%}.semi-col-md-order-15{order:15}.semi-col-md-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-md-push-16{left:66.6666666667%}.semi-col-md-pull-16{right:66.6666666667%}.semi-col-md-offset-16{margin-left:66.6666666667%}.semi-col-md-order-16{order:16}.semi-col-md-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-md-push-17{left:70.8333333333%}.semi-col-md-pull-17{right:70.8333333333%}.semi-col-md-offset-17{margin-left:70.8333333333%}.semi-col-md-order-17{order:17}.semi-col-md-18{display:block;box-sizing:border-box;width:75%}.semi-col-md-push-18{left:75%}.semi-col-md-pull-18{right:75%}.semi-col-md-offset-18{margin-left:75%}.semi-col-md-order-18{order:18}.semi-col-md-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-md-push-19{left:79.1666666667%}.semi-col-md-pull-19{right:79.1666666667%}.semi-col-md-offset-19{margin-left:79.1666666667%}.semi-col-md-order-19{order:19}.semi-col-md-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-md-push-20{left:83.3333333333%}.semi-col-md-pull-20{right:83.3333333333%}.semi-col-md-offset-20{margin-left:83.3333333333%}.semi-col-md-order-20{order:20}.semi-col-md-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-md-push-21{left:87.5%}.semi-col-md-pull-21{right:87.5%}.semi-col-md-offset-21{margin-left:87.5%}.semi-col-md-order-21{order:21}.semi-col-md-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-md-push-22{left:91.6666666667%}.semi-col-md-pull-22{right:91.6666666667%}.semi-col-md-offset-22{margin-left:91.6666666667%}.semi-col-md-order-22{order:22}.semi-col-md-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-md-push-23{left:95.8333333333%}.semi-col-md-pull-23{right:95.8333333333%}.semi-col-md-offset-23{margin-left:95.8333333333%}.semi-col-md-order-23{order:23}.semi-col-md-24{display:block;box-sizing:border-box;width:100%}.semi-col-md-push-24{left:100%}.semi-col-md-pull-24{right:100%}.semi-col-md-offset-24{margin-left:100%}.semi-col-md-order-24{order:24}.semi-rtl .semi-col-md-1,.semi-rtl .semi-col-md-2,.semi-rtl .semi-col-md-3,.semi-rtl .semi-col-md-4,.semi-rtl .semi-col-md-5,.semi-rtl .semi-col-md-6,.semi-rtl .semi-col-md-7,.semi-rtl .semi-col-md-8,.semi-rtl .semi-col-md-9,.semi-rtl .semi-col-md-10,.semi-rtl .semi-col-md-11,.semi-rtl .semi-col-md-12,.semi-rtl .semi-col-md-13,.semi-rtl .semi-col-md-14,.semi-rtl .semi-col-md-15,.semi-rtl .semi-col-md-16,.semi-rtl .semi-col-md-17,.semi-rtl .semi-col-md-18,.semi-rtl .semi-col-md-19,.semi-rtl .semi-col-md-20,.semi-rtl .semi-col-md-21,.semi-rtl .semi-col-md-22,.semi-rtl .semi-col-md-23,.semi-rtl .semi-col-md-24{float:right}.semi-rtl .semi-col-md-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-md-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-md-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-md-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-md-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-md-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-md-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-md-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-md-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-md-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-md-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-md-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-md-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-md-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-md-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-md-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-md-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-md-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-md-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-md-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-md-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-md-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-md-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-md-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 992px){.semi-col-lg-1,.semi-col-lg-2,.semi-col-lg-3,.semi-col-lg-4,.semi-col-lg-5,.semi-col-lg-6,.semi-col-lg-7,.semi-col-lg-8,.semi-col-lg-9,.semi-col-lg-10,.semi-col-lg-11,.semi-col-lg-12,.semi-col-lg-13,.semi-col-lg-14,.semi-col-lg-15,.semi-col-lg-16,.semi-col-lg-17,.semi-col-lg-18,.semi-col-lg-19,.semi-col-lg-20,.semi-col-lg-21,.semi-col-lg-22,.semi-col-lg-23,.semi-col-lg-24{flex:0 0 auto;float:left}.semi-col-lg-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-lg-push-1{left:4.1666666667%}.semi-col-lg-pull-1{right:4.1666666667%}.semi-col-lg-offset-1{margin-left:4.1666666667%}.semi-col-lg-order-1{order:1}.semi-col-lg-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-lg-push-2{left:8.3333333333%}.semi-col-lg-pull-2{right:8.3333333333%}.semi-col-lg-offset-2{margin-left:8.3333333333%}.semi-col-lg-order-2{order:2}.semi-col-lg-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-lg-push-3{left:12.5%}.semi-col-lg-pull-3{right:12.5%}.semi-col-lg-offset-3{margin-left:12.5%}.semi-col-lg-order-3{order:3}.semi-col-lg-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-lg-push-4{left:16.6666666667%}.semi-col-lg-pull-4{right:16.6666666667%}.semi-col-lg-offset-4{margin-left:16.6666666667%}.semi-col-lg-order-4{order:4}.semi-col-lg-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-lg-push-5{left:20.8333333333%}.semi-col-lg-pull-5{right:20.8333333333%}.semi-col-lg-offset-5{margin-left:20.8333333333%}.semi-col-lg-order-5{order:5}.semi-col-lg-6{display:block;box-sizing:border-box;width:25%}.semi-col-lg-push-6{left:25%}.semi-col-lg-pull-6{right:25%}.semi-col-lg-offset-6{margin-left:25%}.semi-col-lg-order-6{order:6}.semi-col-lg-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-lg-push-7{left:29.1666666667%}.semi-col-lg-pull-7{right:29.1666666667%}.semi-col-lg-offset-7{margin-left:29.1666666667%}.semi-col-lg-order-7{order:7}.semi-col-lg-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-lg-push-8{left:33.3333333333%}.semi-col-lg-pull-8{right:33.3333333333%}.semi-col-lg-offset-8{margin-left:33.3333333333%}.semi-col-lg-order-8{order:8}.semi-col-lg-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-lg-push-9{left:37.5%}.semi-col-lg-pull-9{right:37.5%}.semi-col-lg-offset-9{margin-left:37.5%}.semi-col-lg-order-9{order:9}.semi-col-lg-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-lg-push-10{left:41.6666666667%}.semi-col-lg-pull-10{right:41.6666666667%}.semi-col-lg-offset-10{margin-left:41.6666666667%}.semi-col-lg-order-10{order:10}.semi-col-lg-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-lg-push-11{left:45.8333333333%}.semi-col-lg-pull-11{right:45.8333333333%}.semi-col-lg-offset-11{margin-left:45.8333333333%}.semi-col-lg-order-11{order:11}.semi-col-lg-12{display:block;box-sizing:border-box;width:50%}.semi-col-lg-push-12{left:50%}.semi-col-lg-pull-12{right:50%}.semi-col-lg-offset-12{margin-left:50%}.semi-col-lg-order-12{order:12}.semi-col-lg-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-lg-push-13{left:54.1666666667%}.semi-col-lg-pull-13{right:54.1666666667%}.semi-col-lg-offset-13{margin-left:54.1666666667%}.semi-col-lg-order-13{order:13}.semi-col-lg-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-lg-push-14{left:58.3333333333%}.semi-col-lg-pull-14{right:58.3333333333%}.semi-col-lg-offset-14{margin-left:58.3333333333%}.semi-col-lg-order-14{order:14}.semi-col-lg-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-lg-push-15{left:62.5%}.semi-col-lg-pull-15{right:62.5%}.semi-col-lg-offset-15{margin-left:62.5%}.semi-col-lg-order-15{order:15}.semi-col-lg-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-lg-push-16{left:66.6666666667%}.semi-col-lg-pull-16{right:66.6666666667%}.semi-col-lg-offset-16{margin-left:66.6666666667%}.semi-col-lg-order-16{order:16}.semi-col-lg-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-lg-push-17{left:70.8333333333%}.semi-col-lg-pull-17{right:70.8333333333%}.semi-col-lg-offset-17{margin-left:70.8333333333%}.semi-col-lg-order-17{order:17}.semi-col-lg-18{display:block;box-sizing:border-box;width:75%}.semi-col-lg-push-18{left:75%}.semi-col-lg-pull-18{right:75%}.semi-col-lg-offset-18{margin-left:75%}.semi-col-lg-order-18{order:18}.semi-col-lg-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-lg-push-19{left:79.1666666667%}.semi-col-lg-pull-19{right:79.1666666667%}.semi-col-lg-offset-19{margin-left:79.1666666667%}.semi-col-lg-order-19{order:19}.semi-col-lg-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-lg-push-20{left:83.3333333333%}.semi-col-lg-pull-20{right:83.3333333333%}.semi-col-lg-offset-20{margin-left:83.3333333333%}.semi-col-lg-order-20{order:20}.semi-col-lg-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-lg-push-21{left:87.5%}.semi-col-lg-pull-21{right:87.5%}.semi-col-lg-offset-21{margin-left:87.5%}.semi-col-lg-order-21{order:21}.semi-col-lg-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-lg-push-22{left:91.6666666667%}.semi-col-lg-pull-22{right:91.6666666667%}.semi-col-lg-offset-22{margin-left:91.6666666667%}.semi-col-lg-order-22{order:22}.semi-col-lg-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-lg-push-23{left:95.8333333333%}.semi-col-lg-pull-23{right:95.8333333333%}.semi-col-lg-offset-23{margin-left:95.8333333333%}.semi-col-lg-order-23{order:23}.semi-col-lg-24{display:block;box-sizing:border-box;width:100%}.semi-col-lg-push-24{left:100%}.semi-col-lg-pull-24{right:100%}.semi-col-lg-offset-24{margin-left:100%}.semi-col-lg-order-24{order:24}.semi-rtl .semi-col-lg-1,.semi-rtl .semi-col-lg-2,.semi-rtl .semi-col-lg-3,.semi-rtl .semi-col-lg-4,.semi-rtl .semi-col-lg-5,.semi-rtl .semi-col-lg-6,.semi-rtl .semi-col-lg-7,.semi-rtl .semi-col-lg-8,.semi-rtl .semi-col-lg-9,.semi-rtl .semi-col-lg-10,.semi-rtl .semi-col-lg-11,.semi-rtl .semi-col-lg-12,.semi-rtl .semi-col-lg-13,.semi-rtl .semi-col-lg-14,.semi-rtl .semi-col-lg-15,.semi-rtl .semi-col-lg-16,.semi-rtl .semi-col-lg-17,.semi-rtl .semi-col-lg-18,.semi-rtl .semi-col-lg-19,.semi-rtl .semi-col-lg-20,.semi-rtl .semi-col-lg-21,.semi-rtl .semi-col-lg-22,.semi-rtl .semi-col-lg-23,.semi-rtl .semi-col-lg-24{float:right}.semi-rtl .semi-col-lg-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-lg-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-lg-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-lg-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-lg-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-lg-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-lg-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-lg-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-lg-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-lg-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-lg-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-lg-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-lg-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-lg-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-lg-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-lg-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-lg-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-lg-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-lg-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-lg-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-lg-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-lg-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-lg-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-lg-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 1200px){.semi-col-xl-1,.semi-col-xl-2,.semi-col-xl-3,.semi-col-xl-4,.semi-col-xl-5,.semi-col-xl-6,.semi-col-xl-7,.semi-col-xl-8,.semi-col-xl-9,.semi-col-xl-10,.semi-col-xl-11,.semi-col-xl-12,.semi-col-xl-13,.semi-col-xl-14,.semi-col-xl-15,.semi-col-xl-16,.semi-col-xl-17,.semi-col-xl-18,.semi-col-xl-19,.semi-col-xl-20,.semi-col-xl-21,.semi-col-xl-22,.semi-col-xl-23,.semi-col-xl-24{flex:0 0 auto;float:left}.semi-col-xl-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-xl-push-1{left:4.1666666667%}.semi-col-xl-pull-1{right:4.1666666667%}.semi-col-xl-offset-1{margin-left:4.1666666667%}.semi-col-xl-order-1{order:1}.semi-col-xl-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-xl-push-2{left:8.3333333333%}.semi-col-xl-pull-2{right:8.3333333333%}.semi-col-xl-offset-2{margin-left:8.3333333333%}.semi-col-xl-order-2{order:2}.semi-col-xl-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-xl-push-3{left:12.5%}.semi-col-xl-pull-3{right:12.5%}.semi-col-xl-offset-3{margin-left:12.5%}.semi-col-xl-order-3{order:3}.semi-col-xl-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-xl-push-4{left:16.6666666667%}.semi-col-xl-pull-4{right:16.6666666667%}.semi-col-xl-offset-4{margin-left:16.6666666667%}.semi-col-xl-order-4{order:4}.semi-col-xl-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-xl-push-5{left:20.8333333333%}.semi-col-xl-pull-5{right:20.8333333333%}.semi-col-xl-offset-5{margin-left:20.8333333333%}.semi-col-xl-order-5{order:5}.semi-col-xl-6{display:block;box-sizing:border-box;width:25%}.semi-col-xl-push-6{left:25%}.semi-col-xl-pull-6{right:25%}.semi-col-xl-offset-6{margin-left:25%}.semi-col-xl-order-6{order:6}.semi-col-xl-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-xl-push-7{left:29.1666666667%}.semi-col-xl-pull-7{right:29.1666666667%}.semi-col-xl-offset-7{margin-left:29.1666666667%}.semi-col-xl-order-7{order:7}.semi-col-xl-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-xl-push-8{left:33.3333333333%}.semi-col-xl-pull-8{right:33.3333333333%}.semi-col-xl-offset-8{margin-left:33.3333333333%}.semi-col-xl-order-8{order:8}.semi-col-xl-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-xl-push-9{left:37.5%}.semi-col-xl-pull-9{right:37.5%}.semi-col-xl-offset-9{margin-left:37.5%}.semi-col-xl-order-9{order:9}.semi-col-xl-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-xl-push-10{left:41.6666666667%}.semi-col-xl-pull-10{right:41.6666666667%}.semi-col-xl-offset-10{margin-left:41.6666666667%}.semi-col-xl-order-10{order:10}.semi-col-xl-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-xl-push-11{left:45.8333333333%}.semi-col-xl-pull-11{right:45.8333333333%}.semi-col-xl-offset-11{margin-left:45.8333333333%}.semi-col-xl-order-11{order:11}.semi-col-xl-12{display:block;box-sizing:border-box;width:50%}.semi-col-xl-push-12{left:50%}.semi-col-xl-pull-12{right:50%}.semi-col-xl-offset-12{margin-left:50%}.semi-col-xl-order-12{order:12}.semi-col-xl-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-xl-push-13{left:54.1666666667%}.semi-col-xl-pull-13{right:54.1666666667%}.semi-col-xl-offset-13{margin-left:54.1666666667%}.semi-col-xl-order-13{order:13}.semi-col-xl-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-xl-push-14{left:58.3333333333%}.semi-col-xl-pull-14{right:58.3333333333%}.semi-col-xl-offset-14{margin-left:58.3333333333%}.semi-col-xl-order-14{order:14}.semi-col-xl-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-xl-push-15{left:62.5%}.semi-col-xl-pull-15{right:62.5%}.semi-col-xl-offset-15{margin-left:62.5%}.semi-col-xl-order-15{order:15}.semi-col-xl-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-xl-push-16{left:66.6666666667%}.semi-col-xl-pull-16{right:66.6666666667%}.semi-col-xl-offset-16{margin-left:66.6666666667%}.semi-col-xl-order-16{order:16}.semi-col-xl-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-xl-push-17{left:70.8333333333%}.semi-col-xl-pull-17{right:70.8333333333%}.semi-col-xl-offset-17{margin-left:70.8333333333%}.semi-col-xl-order-17{order:17}.semi-col-xl-18{display:block;box-sizing:border-box;width:75%}.semi-col-xl-push-18{left:75%}.semi-col-xl-pull-18{right:75%}.semi-col-xl-offset-18{margin-left:75%}.semi-col-xl-order-18{order:18}.semi-col-xl-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-xl-push-19{left:79.1666666667%}.semi-col-xl-pull-19{right:79.1666666667%}.semi-col-xl-offset-19{margin-left:79.1666666667%}.semi-col-xl-order-19{order:19}.semi-col-xl-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-xl-push-20{left:83.3333333333%}.semi-col-xl-pull-20{right:83.3333333333%}.semi-col-xl-offset-20{margin-left:83.3333333333%}.semi-col-xl-order-20{order:20}.semi-col-xl-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-xl-push-21{left:87.5%}.semi-col-xl-pull-21{right:87.5%}.semi-col-xl-offset-21{margin-left:87.5%}.semi-col-xl-order-21{order:21}.semi-col-xl-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-xl-push-22{left:91.6666666667%}.semi-col-xl-pull-22{right:91.6666666667%}.semi-col-xl-offset-22{margin-left:91.6666666667%}.semi-col-xl-order-22{order:22}.semi-col-xl-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-xl-push-23{left:95.8333333333%}.semi-col-xl-pull-23{right:95.8333333333%}.semi-col-xl-offset-23{margin-left:95.8333333333%}.semi-col-xl-order-23{order:23}.semi-col-xl-24{display:block;box-sizing:border-box;width:100%}.semi-col-xl-push-24{left:100%}.semi-col-xl-pull-24{right:100%}.semi-col-xl-offset-24{margin-left:100%}.semi-col-xl-order-24{order:24}.semi-rtl .semi-col-xl-1,.semi-rtl .semi-col-xl-2,.semi-rtl .semi-col-xl-3,.semi-rtl .semi-col-xl-4,.semi-rtl .semi-col-xl-5,.semi-rtl .semi-col-xl-6,.semi-rtl .semi-col-xl-7,.semi-rtl .semi-col-xl-8,.semi-rtl .semi-col-xl-9,.semi-rtl .semi-col-xl-10,.semi-rtl .semi-col-xl-11,.semi-rtl .semi-col-xl-12,.semi-rtl .semi-col-xl-13,.semi-rtl .semi-col-xl-14,.semi-rtl .semi-col-xl-15,.semi-rtl .semi-col-xl-16,.semi-rtl .semi-col-xl-17,.semi-rtl .semi-col-xl-18,.semi-rtl .semi-col-xl-19,.semi-rtl .semi-col-xl-20,.semi-rtl .semi-col-xl-21,.semi-rtl .semi-col-xl-22,.semi-rtl .semi-col-xl-23,.semi-rtl .semi-col-xl-24{float:right}.semi-rtl .semi-col-xl-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-xl-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-xl-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-xl-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-xl-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-xl-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-xl-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-xl-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-xl-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-xl-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-xl-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-xl-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-xl-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-xl-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-xl-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-xl-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-xl-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-xl-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-xl-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-xl-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-xl-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-xl-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-xl-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-xl-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 1600px){.semi-col-xxl-1,.semi-col-xxl-2,.semi-col-xxl-3,.semi-col-xxl-4,.semi-col-xxl-5,.semi-col-xxl-6,.semi-col-xxl-7,.semi-col-xxl-8,.semi-col-xxl-9,.semi-col-xxl-10,.semi-col-xxl-11,.semi-col-xxl-12,.semi-col-xxl-13,.semi-col-xxl-14,.semi-col-xxl-15,.semi-col-xxl-16,.semi-col-xxl-17,.semi-col-xxl-18,.semi-col-xxl-19,.semi-col-xxl-20,.semi-col-xxl-21,.semi-col-xxl-22,.semi-col-xxl-23,.semi-col-xxl-24{flex:0 0 auto;float:left}.semi-col-xxl-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-xxl-push-1{left:4.1666666667%}.semi-col-xxl-pull-1{right:4.1666666667%}.semi-col-xxl-offset-1{margin-left:4.1666666667%}.semi-col-xxl-order-1{order:1}.semi-col-xxl-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-xxl-push-2{left:8.3333333333%}.semi-col-xxl-pull-2{right:8.3333333333%}.semi-col-xxl-offset-2{margin-left:8.3333333333%}.semi-col-xxl-order-2{order:2}.semi-col-xxl-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-xxl-push-3{left:12.5%}.semi-col-xxl-pull-3{right:12.5%}.semi-col-xxl-offset-3{margin-left:12.5%}.semi-col-xxl-order-3{order:3}.semi-col-xxl-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-xxl-push-4{left:16.6666666667%}.semi-col-xxl-pull-4{right:16.6666666667%}.semi-col-xxl-offset-4{margin-left:16.6666666667%}.semi-col-xxl-order-4{order:4}.semi-col-xxl-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-xxl-push-5{left:20.8333333333%}.semi-col-xxl-pull-5{right:20.8333333333%}.semi-col-xxl-offset-5{margin-left:20.8333333333%}.semi-col-xxl-order-5{order:5}.semi-col-xxl-6{display:block;box-sizing:border-box;width:25%}.semi-col-xxl-push-6{left:25%}.semi-col-xxl-pull-6{right:25%}.semi-col-xxl-offset-6{margin-left:25%}.semi-col-xxl-order-6{order:6}.semi-col-xxl-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-xxl-push-7{left:29.1666666667%}.semi-col-xxl-pull-7{right:29.1666666667%}.semi-col-xxl-offset-7{margin-left:29.1666666667%}.semi-col-xxl-order-7{order:7}.semi-col-xxl-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-xxl-push-8{left:33.3333333333%}.semi-col-xxl-pull-8{right:33.3333333333%}.semi-col-xxl-offset-8{margin-left:33.3333333333%}.semi-col-xxl-order-8{order:8}.semi-col-xxl-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-xxl-push-9{left:37.5%}.semi-col-xxl-pull-9{right:37.5%}.semi-col-xxl-offset-9{margin-left:37.5%}.semi-col-xxl-order-9{order:9}.semi-col-xxl-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-xxl-push-10{left:41.6666666667%}.semi-col-xxl-pull-10{right:41.6666666667%}.semi-col-xxl-offset-10{margin-left:41.6666666667%}.semi-col-xxl-order-10{order:10}.semi-col-xxl-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-xxl-push-11{left:45.8333333333%}.semi-col-xxl-pull-11{right:45.8333333333%}.semi-col-xxl-offset-11{margin-left:45.8333333333%}.semi-col-xxl-order-11{order:11}.semi-col-xxl-12{display:block;box-sizing:border-box;width:50%}.semi-col-xxl-push-12{left:50%}.semi-col-xxl-pull-12{right:50%}.semi-col-xxl-offset-12{margin-left:50%}.semi-col-xxl-order-12{order:12}.semi-col-xxl-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-xxl-push-13{left:54.1666666667%}.semi-col-xxl-pull-13{right:54.1666666667%}.semi-col-xxl-offset-13{margin-left:54.1666666667%}.semi-col-xxl-order-13{order:13}.semi-col-xxl-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-xxl-push-14{left:58.3333333333%}.semi-col-xxl-pull-14{right:58.3333333333%}.semi-col-xxl-offset-14{margin-left:58.3333333333%}.semi-col-xxl-order-14{order:14}.semi-col-xxl-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-xxl-push-15{left:62.5%}.semi-col-xxl-pull-15{right:62.5%}.semi-col-xxl-offset-15{margin-left:62.5%}.semi-col-xxl-order-15{order:15}.semi-col-xxl-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-xxl-push-16{left:66.6666666667%}.semi-col-xxl-pull-16{right:66.6666666667%}.semi-col-xxl-offset-16{margin-left:66.6666666667%}.semi-col-xxl-order-16{order:16}.semi-col-xxl-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-xxl-push-17{left:70.8333333333%}.semi-col-xxl-pull-17{right:70.8333333333%}.semi-col-xxl-offset-17{margin-left:70.8333333333%}.semi-col-xxl-order-17{order:17}.semi-col-xxl-18{display:block;box-sizing:border-box;width:75%}.semi-col-xxl-push-18{left:75%}.semi-col-xxl-pull-18{right:75%}.semi-col-xxl-offset-18{margin-left:75%}.semi-col-xxl-order-18{order:18}.semi-col-xxl-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-xxl-push-19{left:79.1666666667%}.semi-col-xxl-pull-19{right:79.1666666667%}.semi-col-xxl-offset-19{margin-left:79.1666666667%}.semi-col-xxl-order-19{order:19}.semi-col-xxl-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-xxl-push-20{left:83.3333333333%}.semi-col-xxl-pull-20{right:83.3333333333%}.semi-col-xxl-offset-20{margin-left:83.3333333333%}.semi-col-xxl-order-20{order:20}.semi-col-xxl-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-xxl-push-21{left:87.5%}.semi-col-xxl-pull-21{right:87.5%}.semi-col-xxl-offset-21{margin-left:87.5%}.semi-col-xxl-order-21{order:21}.semi-col-xxl-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-xxl-push-22{left:91.6666666667%}.semi-col-xxl-pull-22{right:91.6666666667%}.semi-col-xxl-offset-22{margin-left:91.6666666667%}.semi-col-xxl-order-22{order:22}.semi-col-xxl-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-xxl-push-23{left:95.8333333333%}.semi-col-xxl-pull-23{right:95.8333333333%}.semi-col-xxl-offset-23{margin-left:95.8333333333%}.semi-col-xxl-order-23{order:23}.semi-col-xxl-24{display:block;box-sizing:border-box;width:100%}.semi-col-xxl-push-24{left:100%}.semi-col-xxl-pull-24{right:100%}.semi-col-xxl-offset-24{margin-left:100%}.semi-col-xxl-order-24{order:24}.semi-rtl .semi-col-xxl-1,.semi-rtl .semi-col-xxl-2,.semi-rtl .semi-col-xxl-3,.semi-rtl .semi-col-xxl-4,.semi-rtl .semi-col-xxl-5,.semi-rtl .semi-col-xxl-6,.semi-rtl .semi-col-xxl-7,.semi-rtl .semi-col-xxl-8,.semi-rtl .semi-col-xxl-9,.semi-rtl .semi-col-xxl-10,.semi-rtl .semi-col-xxl-11,.semi-rtl .semi-col-xxl-12,.semi-rtl .semi-col-xxl-13,.semi-rtl .semi-col-xxl-14,.semi-rtl .semi-col-xxl-15,.semi-rtl .semi-col-xxl-16,.semi-rtl .semi-col-xxl-17,.semi-rtl .semi-col-xxl-18,.semi-rtl .semi-col-xxl-19,.semi-rtl .semi-col-xxl-20,.semi-rtl .semi-col-xxl-21,.semi-rtl .semi-col-xxl-22,.semi-rtl .semi-col-xxl-23,.semi-rtl .semi-col-xxl-24{float:right}.semi-rtl .semi-col-xxl-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-xxl-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-xxl-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-xxl-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-xxl-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-xxl-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-xxl-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-xxl-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-xxl-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-xxl-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-xxl-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-xxl-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-xxl-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-xxl-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-xxl-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-xxl-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-xxl-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-xxl-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-xxl-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-xxl-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-xxl-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-xxl-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-xxl-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-xxl-offset-24{margin-left:auto;margin-right:100%}}.semi-rtl .semi-row,.semi-rtl .semi-row-flex,.semi-portal-rtl .semi-row,.semi-portal-rtl .semi-row-flex{direction:rtl}.semi-layout{display:flex;flex:auto;flex-direction:column;min-height:auto}.semi-layout,.semi-layout-header,.semi-layout-footer,.semi-layout-content,.semi-layout-sider,.semi-layout-sider-children{box-sizing:border-box}.semi-layout-header,.semi-layout-footer{flex:0 0 auto}.semi-layout-content{flex:auto;min-height:auto}.semi-layout-sider{position:relative;min-width:auto}.semi-layout-sider-children{height:100%;margin-top:-.1px;padding-top:.1px}.semi-layout-has-sider{flex-direction:row}.semi-layout-has-sider>.semi-layout,.semi-layout-has-sider>.semi-layout-content{overflow-x:hidden}.semi-rtl .semi-layout,.semi-portal-rtl .semi-layout{direction:rtl}.semi-input-textarea-wrapper{box-sizing:border-box;display:inline-block;position:relative;width:100%;border:1px transparent solid;border-radius:var(--semi-border-radius-small);vertical-align:bottom;background-color:var(--semi-color-fill-0);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-input-textarea-wrapper:hover{background-color:var(--semi-color-fill-1)}.semi-input-textarea-wrapper-focus{background-color:var(--semi-color-fill-0);border:1px var(--semi-color-focus-border) solid}.semi-input-textarea-wrapper-focus:hover,.semi-input-textarea-wrapper-focus:active{background-color:var(--semi-color-fill-0)}.semi-input-textarea-wrapper:active{background-color:var(--semi-color-fill-2)}.semi-input-textarea-wrapper .semi-input-clearbtn{position:absolute;top:0;min-width:24px;color:var(--semi-color-text-2);right:4px;height:32px}.semi-input-textarea-wrapper .semi-input-clearbtn>svg{pointer-events:none}.semi-input-textarea-wrapper .semi-input-clearbtn:hover{cursor:pointer}.semi-input-textarea-wrapper .semi-input-clearbtn:hover .semi-icon{color:var(--semi-color-primary-hover)}.semi-input-textarea-wrapper .semi-input-clearbtn-hidden{visibility:hidden}.semi-input-textarea-wrapper-disabled,.semi-input-textarea-wrapper-readonly{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:var(--semi-color-disabled-fill)}.semi-input-textarea-wrapper-disabled:hover,.semi-input-textarea-wrapper-readonly:hover{background-color:var(--semi-color-disabled-fill)}.semi-input-textarea-wrapper-disabled::placeholder,.semi-input-textarea-wrapper-readonly::placeholder{color:var(--semi-color-disabled-text)}.semi-input-textarea-wrapper-readonly{cursor:text}.semi-input-textarea-wrapper-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-input-textarea-wrapper-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-input-textarea-wrapper-error.semi-input-textarea-wrapper-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-textarea-wrapper-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger)}.semi-input-textarea-wrapper-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-input-textarea-wrapper-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-input-textarea-wrapper-warning.semi-input-textarea-wrapper-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-textarea-wrapper-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning)}.semi-input-textarea{position:relative;resize:none;padding:5px 12px;box-shadow:none;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:transparent;border:0 solid transparent;vertical-align:bottom;width:100%;outline:none;cursor:text;box-sizing:border-box;color:var(--semi-color-text-0)}.semi-input-textarea:hover{border-color:transparent}.semi-input-textarea::placeholder{color:var(--semi-color-text-2)}.semi-input-textarea-showClear{padding-right:36px}.semi-input-textarea-disabled,.semi-input-textarea-readonly{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:transparent}.semi-input-textarea-disabled:hover,.semi-input-textarea-readonly:hover{background-color:transparent}.semi-input-textarea-disabled::placeholder,.semi-input-textarea-readonly::placeholder{color:var(--semi-color-disabled-text)}.semi-input-textarea-readonly{cursor:text}.semi-input-textarea-autosize{overflow:hidden}.semi-input-textarea-counter{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;justify-content:center;padding:3px 12px 5px;min-height:24px;text-align:right;color:var(--semi-color-text-2)}.semi-input-textarea-counter-exceed{color:var(--semi-color-danger)}.semi-input-textarea-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-input-textarea-borderless:focus-within:not(:active){background-color:transparent}.semi-input-textarea-borderless.semi-input-textarea-wrapper-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-input-textarea-borderless.semi-input-textarea-wrapper-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-input-textarea-borderless.semi-input-textarea-wrapper-error .semi-input-textarea-counter{color:var(--semi-color-danger)}.semi-input-textarea-borderless.semi-input-textarea-wrapper-warning .semi-input-textarea-counter{color:var(--semi-color-warning)}.semi-rtl .semi-input-wrapper,.semi-portal-rtl .semi-input-wrapper{direction:rtl}.semi-rtl .semi-input-wrapper__with-prefix .semi-input,.semi-portal-rtl .semi-input-wrapper__with-prefix .semi-input{padding-left:auto;padding-right:0}.semi-rtl .semi-input-wrapper__with-suffix .semi-input,.semi-portal-rtl .semi-input-wrapper__with-suffix .semi-input{padding-right:auto;padding-left:0}.semi-rtl .semi-input,.semi-portal-rtl .semi-input{padding-left:12px;padding-right:12px}.semi-rtl .semi-input-inset-label,.semi-portal-rtl .semi-input-inset-label{margin-right:auto;margin-left:12px}.semi-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-text,.semi-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-text,.semi-portal-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-text,.semi-portal-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-text{margin-left:auto;margin-right:0}.semi-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-icon,.semi-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-icon,.semi-portal-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-icon,.semi-portal-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-icon{margin-left:auto;margin-right:0}.semi-rtl .semi-input-append,.semi-portal-rtl .semi-input-append{border-left:0;border-right:1px transparent solid}.semi-rtl .semi-input-prepend,.semi-portal-rtl .semi-input-prepend{border-right:0;border-left:1px transparent solid}.semi-rtl .semi-input-group .semi-select:not(:last-child):after,.semi-rtl .semi-input-group .semi-cascader:not(:last-child):after,.semi-rtl .semi-input-group .semi-tree-select:not(:last-child):after,.semi-rtl .semi-input-group>.semi-input-wrapper:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-select:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-cascader:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-tree-select:not(:last-child):after,.semi-portal-rtl .semi-input-group>.semi-input-wrapper:not(:last-child):after{right:auto;left:-1px}.semi-rtl .semi-input-group .semi-input-number:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-input-number:not(:last-child):after{right:auto;left:-1px}.semi-rtl .semi-input-textarea-wrapper,.semi-portal-rtl .semi-input-textarea-wrapper{direction:rtl}.semi-rtl .semi-input-textarea-counter,.semi-portal-rtl .semi-input-textarea-counter{text-align:left}.semi-rtl .semi-input-textarea-showClear,.semi-portal-rtl .semi-input-textarea-showClear{padding-right:0;padding-left:36px}.semi-input-number{display:inline-flex;align-items:center;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-input-number-suffix-btns{display:inline-flex;flex-direction:column;margin-left:4px;border:1px solid var(--semi-color-border);border-radius:var(--semi-border-radius-small);background-color:var(--semi-color-bg-2);box-sizing:border-box}.semi-input-number-suffix-btns>.semi-input-number-button{height:50%;width:14px;padding:0;margin:0;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;border-radius:0;color:var(--semi-color-text-2)}.semi-input-number-suffix-btns>.semi-input-number-button-up:not(.semi-input-number-button-up-not-allowed):hover,.semi-input-number-suffix-btns>.semi-input-number-button-down:not(.semi-input-number-button-down-not-allowed):hover{cursor:pointer;background-color:var(--semi-color-fill-0)}.semi-input-number-suffix-btns>.semi-input-number-button-up:not(.semi-input-number-button-up-not-allowed):active,.semi-input-number-suffix-btns>.semi-input-number-button-down:not(.semi-input-number-button-down-not-allowed):active{cursor:pointer;background-color:var(--semi-color-fill-1)}.semi-input-number-suffix-btns>.semi-input-number-button-up.semi-input-number-button-up-disabled,.semi-input-number-suffix-btns>.semi-input-number-button-down.semi-input-number-button-down-disabled{background-color:var(--semi-color-disabled-fill);color:var(--semi-color-disabled-text)}.semi-input-number-suffix-btns>.semi-input-number-button-up.semi-input-number-button-up-not-allowed,.semi-input-number-suffix-btns>.semi-input-number-button-down.semi-input-number-button-down-not-allowed{cursor:not-allowed}.semi-input-number-suffix-btns-inner-hover{border-color:var(--semi-color-fill-2)}.semi-input-number-suffix-btns-inner{margin-left:8px}.semi-input-number .semi-input-clearbtn+.semi-input-suffix{margin-left:-4px}.semi-input-number .semi-input-clearbtn+.semi-input-suffix .semi-input-number-suffix-btns-inner{margin-left:0}.semi-input-number-size-default .semi-input-number-suffix-btns{height:32px}.semi-input-number-size-default .semi-input-number-suffix-btns-inner{height:30px}.semi-input-number-size-large .semi-input-number-suffix-btns{height:40px}.semi-input-number-size-large .semi-input-number-suffix-btns-inner{height:38px}.semi-input-number-size-small .semi-input-number-suffix-btns{height:24px}.semi-input-number-size-small .semi-input-number-suffix-btns-inner{height:22px}.semi-input-number:not(:focus-within):not(:hover) .semi-input-borderless+.semi-input-number-suffix-btns{opacity:0}.semi-rtl .semi-input-number,.semi-portal-rtl .semi-input-number{direction:rtl}.semi-rtl .semi-input-number-suffix-btns,.semi-portal-rtl .semi-input-number-suffix-btns{margin-left:auto;margin-right:4px}.semi-rtl .semi-input-number-suffix-btns-inner,.semi-portal-rtl .semi-input-number-suffix-btns-inner{margin-left:auto;margin-right:8px}.semi-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix,.semi-portal-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix{margin-left:auto;margin-right:-4px}.semi-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix .semi-input-number-suffix-btns-inner,.semi-portal-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix .semi-input-number-suffix-btns-inner{margin-left:auto;margin-right:0}.semi-navigation{box-sizing:border-box;display:inline-flex;width:240px;outline:none;overflow:hidden;margin:0;padding-left:8px;padding-right:8px;-webkit-user-select:none;user-select:none;transition:padding-left .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95);border-right:1px solid var(--semi-color-border);background-color:var(--semi-color-nav-bg)}.semi-navigation-inner{width:100%;height:100%;display:flex;justify-content:space-between}.semi-navigation-list{margin:0;padding:0;list-style:none}.semi-navigation-list>.semi-navigation-item-normal{height:36px}.semi-navigation-list>.semi-navigation-item{font-weight:600}.semi-navigation-list>.semi-navigation-item>.semi-navigation-sub-title{font-weight:600}.semi-navigation-collapsed{width:60px;padding-left:8px;padding-right:8px;transition:padding-left .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-navigation-collapsed .semi-navigation-item-text{transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:0}.semi-navigation-collapsed .semi-navigation-item-icon:last-child{transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:0}.semi-navigation-sub-wrap .semi-navigation-sub-title,.semi-navigation-item{cursor:pointer;display:flex;border-radius:var(--semi-border-radius-small);padding:8px 12px;box-sizing:border-box;margin-top:0;margin-bottom:8px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;color:var(--semi-color-text-0);width:100%;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-navigation-sub-wrap .semi-navigation-sub-title-text,.semi-navigation-item-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:1}.semi-navigation-sub-wrap .semi-navigation-sub-title-indent,.semi-navigation-item-indent{width:32px}.semi-navigation-sub-wrap .semi-navigation-sub-title:focus-visible,.semi-navigation-item:focus-visible{outline:2px solid var(--semi-color-primary-light-active);outline-offset:-2px}.semi-navigation-header-link,.semi-navigation-item-link{display:flex;width:100%;color:inherit;text-decoration:none;align-items:center;justify-content:flex-start}.semi-navigation-item-has-link{padding:0}.semi-navigation-item-has-link .semi-navigation-item-link{padding:8px 12px}.semi-navigation-item-sub{padding:0}.semi-navigation-sub-wrap>.semi-navigation-item-inner{width:100%}.semi-navigation-sub-wrap .semi-navigation-sub-title>.semi-navigation-item-inner{display:flex}.semi-navigation-item-inner{display:flex;align-items:center;width:100%;flex:0 0 auto}.semi-navigation-item-title{opacity:1;transition:opacity .1s 100s ease-out}.semi-navigation .semi-navigation-sub-title{margin-bottom:0}.semi-navigation-item-icon-info{display:inline-flex;color:var(--semi-color-text-2);margin-right:12px;min-width:20px;margin-left:0}.semi-navigation-item-icon-toggle-left{display:inline-flex;color:var(--semi-color-text-2);margin-right:12px;min-width:20px}.semi-navigation-item-icon-toggle-right{display:inline-flex;color:var(--semi-color-text-2);margin-left:auto;transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:1}.semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-item-selected.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-item-selected.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-inner>.semi-navigation-item{color:var(--semi-color-text-0)}.semi-navigation-item-normal:hover:not(.semi-navigation-item-selected){background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-navigation-item-normal:hover:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-item-normal:hover.semi-navigation-item-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-0)}.semi-navigation-item-normal:hover.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-item-normal:hover.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-item-normal:hover.semi-navigation-item-selected.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-item-normal:hover.semi-navigation-item-selected.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-item-normal:active:not(.semi-navigation-item-selected),.semi-navigation-inner>.semi-navigation-item-normal:active:not(.semi-navigation-item-selected){background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-navigation-item-normal:active:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child,.semi-navigation-inner>.semi-navigation-item-normal:active:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-item-normal:active.semi-navigation-item-selected,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-1)}.semi-navigation-item-normal:active.semi-navigation-item-selected .semi-navigation-item-icon:first-child,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-item-normal:active.semi-navigation-item-disabled,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub-wrap .semi-navigation-item-inner{display:block}.semi-navigation-sub-wrap{display:block;padding:0;margin-top:0;height:inherit}.semi-navigation-sub-wrap .semi-navigation-sub-title{display:flex;justify-content:flex-start;height:36px;align-items:center}.semi-navigation-sub{font-weight:400;font-size:14px;list-style:none;outline:none;padding:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.semi-navigation-sub .semi-navigation-item{color:var(--semi-color-text-0);background-color:transparent;height:36px;font-weight:400;width:100%}.semi-navigation-sub .semi-navigation-item:first-child{margin-top:8px}.semi-navigation-sub .semi-navigation-item>.semi-navigation-sub .semi-navigation-item-text:first-child{margin-left:44px}.semi-navigation-sub .semi-navigation-item:hover:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled){background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:hover:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-sub .semi-navigation-item:active:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled){background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:active:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-sub .semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-sub .semi-navigation-item-selected.semi-navigation-item-disabled{cursor:not-allowed;background-color:var(--semi-color-primary-light-default);color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-sub .semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-sub .semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-sub-wrap{height:inherit}.semi-navigation-icon-rotate-0{transition:transform .2s ease-in-out;transform:rotate(0)}.semi-navigation-icon-rotate-180{transition:transform .2s ease-in-out;transform:rotate(-180deg)}.semi-navigation-header{display:inline-flex;align-items:center;box-sizing:border-box}.semi-navigation-header-logo{margin-left:0;margin-right:8px;display:inline-flex}.semi-navigation-header-logo>.semi-icon,.semi-navigation-header-logo>img{width:36px;height:36px;object-fit:scale-down}.semi-navigation-header-text{font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;display:inline-flex;color:var(--semi-color-text-0);white-space:nowrap;text-overflow:ellipsis;transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:1}.semi-navigation-footer{box-sizing:border-box;padding:16px 24px;display:inline-flex;align-items:center}.semi-navigation-footer .semi-navigation-collapse-btn{text-overflow:ellipsis;white-space:nowrap}.semi-navigation-collapsed .semi-navigation-header{justify-content:center}.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo{margin-right:0;width:100%}.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo>.semi-icon,.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo>img{width:36px;max-width:100%;max-height:100%}.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-text{transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:0}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-item-selected:not(.semi-navigation-item-disabled).semi-navigation-item-normal:hover .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title{color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected{font-weight:600;background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected.semi-navigation-sub-title-disabled{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected.semi-navigation-sub-title-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-disabled{font-weight:600;background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-disabled .semi-navigation-item-icon,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover:not(.semi-navigation-sub-title-selected){background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-0)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active:not(.semi-navigation-sub-title-selected){background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-1)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected),.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected){background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-vertical .semi-navigation-item:last-of-type{margin-bottom:0}.semi-navigation-vertical .semi-navigation-inner{flex-direction:column}.semi-navigation-vertical .semi-navigation-header-list-outer{height:100%}.semi-navigation-vertical .semi-navigation-list-wrapper{padding-top:12px;overflow-y:auto;overflow-x:hidden}.semi-navigation-vertical .semi-navigation-header{padding:32px 8px 36px 5.5px;width:100%}.semi-navigation-vertical .semi-navigation-header-collapsed{padding-left:5.5px;padding-right:0;transition:padding-left .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-navigation-vertical .semi-navigation-footer{color:var(--semi-color-text-2);padding-left:8px;padding-right:8px}.semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn .semi-button-content-right{margin-left:12px;opacity:1;transition:opacity .2s cubic-bezier(.5,-.1,1,.4)}.semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn>.semi-button{padding-left:8px;padding-right:8px}.semi-navigation-vertical .semi-navigation-footer-collapsed{justify-content:center}.semi-navigation-vertical .semi-navigation-footer-collapsed .semi-navigation-collapse-btn{width:100%}.semi-navigation-vertical .semi-navigation-footer-collapsed .semi-navigation-collapse-btn .semi-button-content-right{opacity:0;transition:opacity .2s cubic-bezier(.5,-.1,1,.4)}.semi-navigation-horizontal{width:100%;height:60px;border-right:none;border-bottom:1px solid var(--semi-color-border);padding-left:24px;padding-right:24px}.semi-navigation-horizontal .semi-navigation-inner{flex-direction:row}.semi-navigation-horizontal .semi-navigation-header-list-outer{display:inline-flex;align-items:center}.semi-navigation-horizontal .semi-navigation-header-list-outer-collapsed{align-items:baseline}.semi-navigation-horizontal .semi-navigation-header{width:inherit;margin-right:24px}.semi-navigation-horizontal .semi-navigation-list{display:inline-flex;align-items:center}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item{margin-bottom:0;color:var(--semi-color-text-2);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-selected{color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-text-0)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-disabled{color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover:not(.semi-navigation-item-selected){color:var(--semi-color-text-1);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-1)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover:not(.semi-navigation-item-selected) .semi-navigation-item-text{color:var(--semi-color-text-1);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active:not(.semi-navigation-item-selected){color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-0)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled{color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon:first-child,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-text,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-text{color:var(--semi-color-disabled-text);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item:not(:last-of-type){margin-right:8px}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title .semi-navigation-item-text{color:var(--semi-color-text-2);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-selected .semi-navigation-item-text{color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-disabled{cursor:not-allowed}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-disabled .semi-navigation-item-icon:first-child,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-disabled .semi-navigation-item-text{color:var(--semi-color-disabled-text);background-color:transparent}.semi-navigation-horizontal .semi-navigation-item-inner{width:auto}.semi-navigation-horizontal .semi-navigation-item-icon:last-child{margin-left:8px}.semi-navigation-horizontal .semi-navigation-item-icon:first-child{margin-right:8px}.semi-navigation-horizontal .semi-navigation-item{width:auto}.semi-navigation-horizontal .semi-navigation-item-collapsed{word-wrap:none;text-overflow:ellipsis}.semi-navigation-horizontal .semi-navigation-footer{border-top:none;padding-right:0}.semi-navigation-horizontal .semi-navigation-footer-collapsed{justify-content:center;flex-direction:row;align-items:center}.semi-navigation-popover .semi-navigation-sub-title{width:100%}.semi-navigation-popover .semi-navigation-item-selected{font-weight:400}.semi-dropdown-item .semi-navigation-sub-title{box-sizing:border-box;padding:8px 12px;width:100%}.semi-dropdown-item.semi-navigation-item{margin-top:0;margin-bottom:0;min-width:150px}.semi-dropdown-menu .semi-navigation-item-sub{padding:0}.semi-rtl .semi-navigation,.semi-portal-rtl .semi-navigation{direction:rtl;border-right:0;border-left:1px solid var(--semi-color-border);transition:padding-right .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-rtl .semi-navigation-collapsed,.semi-portal-rtl .semi-navigation-collapsed{transition:padding-right .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-rtl .semi-navigation-item-icon:first-child,.semi-portal-rtl .semi-navigation-item-icon:first-child{margin-right:0;margin-left:12px}.semi-rtl .semi-navigation-item-icon:last-child,.semi-portal-rtl .semi-navigation-item-icon:last-child{margin-left:0;margin-right:auto}.semi-rtl .semi-navigation-sub .semi-navigation-item>.semi-rtl .semi-navigation-sub .semi-navigation-item-text:first-child,.semi-rtl .semi-navigation-sub .semi-navigation-item>.semi-portal-rtl .semi-navigation-sub .semi-navigation-item-text:first-child,.semi-portal-rtl .semi-navigation-sub .semi-navigation-item>.semi-rtl .semi-navigation-sub .semi-navigation-item-text:first-child,.semi-portal-rtl .semi-navigation-sub .semi-navigation-item>.semi-portal-rtl .semi-navigation-sub .semi-navigation-item-text:first-child{margin-left:auto;margin-right:44px}.semi-rtl .semi-navigation-sub .semi-navigation-item>.semi-navigation-item-icon:first-child,.semi-portal-rtl .semi-navigation-sub .semi-navigation-item>.semi-navigation-item-icon:first-child{margin-right:12px}.semi-rtl .semi-navigation-header,.semi-portal-rtl .semi-navigation-header{display:inline-flex;align-items:center;box-sizing:border-box}.semi-rtl .semi-navigation-header-logo,.semi-portal-rtl .semi-navigation-header-logo{margin-left:8px;margin-right:0;display:inline-flex}.semi-rtl .semi-navigation-collapsed,.semi-portal-rtl .semi-navigation-collapsed{direction:rtl}.semi-rtl .semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo,.semi-portal-rtl .semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo{margin-right:auto;margin-left:0}.semi-rtl .semi-navigation-vertical,.semi-portal-rtl .semi-navigation-vertical{direction:rtl}.semi-rtl .semi-navigation-vertical .semi-navigation-header,.semi-portal-rtl .semi-navigation-vertical .semi-navigation-header{padding-right:5.5px;padding-left:8px}.semi-rtl .semi-navigation-vertical .semi-navigation-header-collapsed,.semi-portal-rtl .semi-navigation-vertical .semi-navigation-header-collapsed{padding-right:5.5px;padding-left:0;transition:padding-right .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-rtl .semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn .semi-button-content-right,.semi-portal-rtl .semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn .semi-button-content-right{margin-left:auto;margin-right:12px;transition:opacity .2s cubic-bezier(.5,-.1,1,.4)}.semi-rtl .semi-navigation-horizontal,.semi-portal-rtl .semi-navigation-horizontal{direction:rtl;border-right:auto;border-left:none;padding-left:24px;padding-right:24px}.semi-rtl .semi-navigation-horizontal .semi-navigation-header,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-header{margin-right:auto;margin-left:24px}.semi-rtl .semi-navigation-horizontal .semi-navigation-list .semi-navigation-item:not(:last-of-type),.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-list .semi-navigation-item:not(:last-of-type){margin-right:auto;margin-left:8px}.semi-rtl .semi-navigation-horizontal .semi-navigation-item-icon:last-child,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-item-icon:last-child{margin-left:auto;margin-right:8px}.semi-rtl .semi-navigation-horizontal .semi-navigation-item-icon:first-child,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-item-icon:first-child{margin-right:auto;margin-left:8px}.semi-rtl .semi-navigation-horizontal .semi-navigation-footer,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-footer{padding-right:auto;padding-left:0}.semi-overflow-list{display:flex;flex-wrap:nowrap;min-width:0}.semi-overflow-list-spacer{flex-shrink:1;width:1px}.semi-overflow-list-scroll-wrapper{display:flex;flex:1;flex-wrap:nowrap;overflow-x:scroll}.semi-rtl .semi-overflow-list,.semi-portal-rtl .semi-overflow-list{direction:rtl}.semi-page{display:flex;list-style:none;padding:0;align-items:center;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;margin-block-start:0;margin-block-end:0}.semi-page-small{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;color:var(--semi-color-text-2);padding:0}.semi-page-disabled{cursor:not-allowed}.semi-page-disabled .semi-page-total{color:var(--semi-color-disabled-text)}.semi-page-item{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-width:32px;border:0px solid transparent;cursor:pointer;-webkit-user-select:none;user-select:none;height:32px;margin-left:4px;margin-right:4px;font-weight:400;color:var(--semi-color-text-0);border-radius:var(--semi-border-radius-small);text-align:center;line-height:32px;display:flex;align-items:center;justify-content:center;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-page-item:hover{border-color:transparent;background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-page-item-rest-opening{background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-page-item:active{border-color:transparent;background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-page-item-active{border-color:transparent;color:var(--semi-color-primary);font-weight:600;background-color:var(--semi-color-primary-light-default)}.semi-page-item-active:hover{border-color:transparent;color:var(--semi-color-primary);background-color:var(--semi-color-primary-light-default)}.semi-page-item-disabled{border-color:transparent;color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-page-item-disabled:hover{background-color:transparent}.semi-page-item-small{min-width:44px;margin:0}.semi-page-item-all-disabled{border-color:transparent;color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-page-item-all-disabled:hover{background-color:transparent;color:var(--semi-color-disabled-text)}.semi-page-item-all-disabled-active{background-color:var(--semi-color-disabled-fill);font-weight:600}.semi-page-item-all-disabled-active:hover{background-color:var(--semi-color-disabled-fill)}.semi-page-total{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2)}.semi-page-prev,.semi-page-next{color:var(--semi-color-tertiary);cursor:pointer}.semi-page-prev.semi-page-item-disabled,.semi-page-next.semi-page-item-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-page-quickjump{margin-left:24px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;justify-content:center;align-items:center;flex-shrink:0;color:var(--semi-color-text-0)}.semi-page-quickjump-input-number{max-width:50px;margin-left:4px;margin-right:4px}.semi-page-quickjump-disabled{color:var(--semi-color-disabled-text)}.semi-page .semi-select,.semi-select-dropdown{-webkit-user-select:none;user-select:none}.semi-page-rest-list{padding-top:4px;padding-bottom:4px}.semi-page-rest-list>div{position:relative}.semi-page-rest-item{height:32px;line-height:32px;display:flex;justify-content:center;box-sizing:border-box;cursor:pointer}.semi-page-rest-item:hover{background-color:var(--semi-color-fill-0)}.semi-page-rest-item:active{background-color:var(--semi-color-fill-1)}.semi-rtl .semi-page,.semi-portal-rtl .semi-page{direction:rtl}.semi-rtl .semi-page-item,.semi-portal-rtl .semi-page-item{margin-right:4px;margin-left:4px}.semi-rtl .semi-page-prev,.semi-rtl .semi-page-next,.semi-portal-rtl .semi-page-prev,.semi-portal-rtl .semi-page-next{transform:scaleX(-1)}.semi-select-option{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;word-break:break-all;padding:8px 12px;color:var(--semi-color-text-0);border-radius:0;position:relative;display:flex;flex-wrap:nowrap;align-items:center;cursor:pointer;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-select-option-icon{width:12px;color:transparent;margin-right:8px;display:flex;justify-content:center;align-content:center}.semi-select-option-text{display:flex;flex-wrap:wrap;white-space:pre}.semi-select-option-keyword{color:var(--semi-color-primary);background-color:inherit;font-weight:600}.semi-select-option:active{background-color:var(--semi-color-fill-1)}.semi-select-option-empty{cursor:not-allowed;color:var(--semi-color-disabled-text);justify-content:center}.semi-select-option-empty:hover,.semi-select-option-empty:active{background-color:inherit}.semi-select-option-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-select-option-disabled:hover{background-color:var(--semi-color-fill-0)}.semi-select-option-selected{font-weight:600;background:transparent}.semi-select-option-selected .semi-select-option-icon{color:var(--semi-color-text-2)}.semi-select-option-focused{background-color:var(--semi-color-fill-0)}.semi-select{box-sizing:border-box;border-radius:var(--semi-border-radius-small);border:1px solid transparent;height:32px;font-weight:400;background-color:var(--semi-color-fill-0);display:inline-flex;vertical-align:middle;position:relative;outline:none;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none));max-height:300px;overflow-y:auto}.semi-select:hover{background-color:var(--semi-color-fill-1);border:1px solid transparent}.semi-select:focus{border:1px solid var(--semi-color-focus-border);background-color:var(--semi-color-fill-0);outline:0}.semi-select:active{background-color:var(--semi-color-fill-2)}.semi-select-small{height:24px;line-height:24px}.semi-select-large{min-height:40px;line-height:40px}.semi-select-large .semi-select-selection{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-select-open,.semi-select-focus{border:1px solid var(--semi-color-focus-border);outline:0}.semi-select-open:hover,.semi-select-focus:hover{background-color:var(--semi-color-fill-0);border:1px solid var(--semi-color-focus-border)}.semi-select-open:active,.semi-select-focus:active{background-color:var(--semi-color-fill-2);border:1px solid var(--semi-color-focus-border)}.semi-select-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-select-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-select-warning:focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-select-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning-light-active)}.semi-select-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-select-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-select-error:focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-select-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger-light-active)}.semi-select-disabled{cursor:not-allowed;background-color:var(--semi-color-disabled-fill)}.semi-select-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-select-disabled:focus{border:1px solid transparent}.semi-select-disabled .semi-select-selection,.semi-select-disabled .semi-select-selection-placeholder{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-select-disabled .semi-select-arrow,.semi-select-disabled .semi-select-prefix,.semi-select-disabled .semi-select-suffix{color:var(--semi-color-disabled-text)}.semi-select-disabled .semi-tag{color:var(--semi-color-disabled-text);background-color:transparent}.semi-select-selection{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;display:flex;align-items:center;flex-grow:1;overflow:hidden;margin-left:12px;cursor:pointer;color:var(--semi-color-text-0)}.semi-select-selection-text{width:100%;overflow:hidden;text-overflow:ellipsis}.semi-select-selection-text-inactive{display:flex;opacity:.4}.semi-select-selection-text-hide{display:none}.semi-select-selection-placeholder{color:var(--semi-color-text-2)}.semi-select-selection .semi-tag{margin-top:1px;margin-right:4px;margin-bottom:1px}.semi-select-selection .semi-tag:nth-of-type(1){margin-left:0}.semi-select-selection .semi-tag-group{height:inherit}.semi-select-selection .semi-tag-group .semi-tag{margin-top:1px;margin-right:4px;margin-bottom:1px}.semi-select-content-wrapper{white-space:nowrap;overflow:hidden;display:flex;align-items:center;height:100%}.semi-select-content-wrapper-collapse{display:inline-flex;flex-shrink:0;width:100%}.semi-select-content-wrapper-collapse .semi-overflow-list-overflow{max-width:100%;min-width:50px}.semi-select-content-wrapper-collapse>.semi-select-content-wrapper-collapse-tag{background-color:transparent}.semi-select-content-wrapper-collapse>.semi-select-content-wrapper-collapse-N{background-color:transparent;padding:4px;color:var(--semi-color-text-0);font-size:12px}.semi-select-multiple{height:auto}.semi-select-multiple .semi-select-selection{margin-left:4px}.semi-select-multiple .semi-select-content-wrapper{width:100%;min-height:30px;flex-wrap:wrap}.semi-select-multiple .semi-select-content-wrapper-empty{margin-left:8px}.semi-select-multiple .semi-select-content-wrapper .semi-tag-group{display:flex;align-items:center}.semi-select-multiple .semi-select-content-wrapper-one-line{flex-wrap:nowrap}.semi-select-multiple .semi-select-content-wrapper-one-line .semi-tag-group{flex-wrap:nowrap;justify-content:flex-start;overflow:hidden;flex-shrink:0}.semi-select-multiple .semi-select-inline-label-wrapper{flex-shrink:0}.semi-select-multiple.semi-select-large .semi-select-content-wrapper{min-height:38px}.semi-select-multiple.semi-select-small .semi-select-content-wrapper{min-height:22px}.semi-select-arrow{display:flex;align-items:center;justify-content:center;width:32px;color:var(--semi-color-text-2);flex-shrink:0;transform:rotate(var(--semi-transform-rotate-none))}.semi-select-arrow-empty{display:flex;width:12px}.semi-select-prefix,.semi-select-suffix{display:flex;justify-content:center;align-items:center}.semi-select-prefix-text,.semi-select-suffix-text{margin:0 12px}.semi-select-prefix-icon,.semi-select-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-select-suffix{display:flex;justify-content:center;align-items:center}.semi-select-clear{display:flex;justify-content:center;align-items:center;width:32px;color:var(--semi-color-text-2);flex-shrink:0}.semi-select-clear:hover{color:var(--semi-color-primary)}.semi-select-inset-label-wrapper{display:inline}.semi-select-inset-label{margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-select-create-tips{color:var(--semi-color-text-2);margin-right:4px}.semi-select-with-prefix .semi-select-selection{margin-left:0}.semi-select-single.semi-select-filterable .semi-select-content-wrapper{flex-grow:1;height:100%;overflow:hidden;position:relative}.semi-select-single.semi-select-filterable .semi-input-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;border:none;background-color:transparent}.semi-select-single.semi-select-filterable .semi-input-wrapper-focus{border:none}.semi-select-single.semi-select-filterable .semi-input{padding-left:0;padding-right:0;height:100%}.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper{flex-grow:1;height:100%;overflow:hidden;position:relative}.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper-empty .semi-input-wrapper{position:absolute;top:0;left:0;height:100%;width:100%}.semi-select-multiple.semi-select-filterable .semi-input-wrapper{height:100%;width:100%;border:none;background-color:transparent}.semi-select-multiple.semi-select-filterable .semi-input-wrapper-focus{border:none}.semi-select-multiple.semi-select-filterable .semi-input{padding-left:0;padding-right:0}.semi-select-option-list-wrapper{padding:4px 0}.semi-select-option-list{overflow-x:hidden;overflow-y:auto}.semi-select-option-list-chosen .semi-select-option-icon{display:flex}.semi-select-group{color:var(--semi-color-text-2);margin-top:4px;padding:12px 16px 4px 32px;font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:default}.semi-select-group:not(:nth-of-type(1)){border-top:1px solid var(--semi-color-border)}.semi-select-loading-wrapper{padding:8px 16px;cursor:not-allowed;height:20px;box-sizing:content-box}.semi-select-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-select-borderless:not(:focus-within):not(:hover) .semi-select-arrow{opacity:0}.semi-select-borderless:focus-within:not(:active){background-color:transparent}.semi-select-borderless.semi-select-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-select-borderless.semi-select-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-select-borderless.semi-select-error:focus-within{border-color:var(--semi-color-danger)}.semi-select-borderless.semi-select-warning:focus-within{border-color:var(--semi-color-warning)}.semi-rtl .semi-select,.semi-portal-rtl .semi-select{direction:rtl}.semi-rtl .semi-select-selection,.semi-portal-rtl .semi-select-selection{margin-left:0;margin-right:12px}.semi-rtl .semi-select-selection .semi-tag:nth-of-type(1),.semi-portal-rtl .semi-select-selection .semi-tag:nth-of-type(1){margin-right:0}.semi-rtl .semi-select-selection .semi-tag-group .semi-tag,.semi-portal-rtl .semi-select-selection .semi-tag-group .semi-tag{margin-left:4px;margin-right:0}.semi-rtl .semi-select-multiple .semi-select-selection,.semi-portal-rtl .semi-select-multiple .semi-select-selection{margin-left:0;margin-right:4px}.semi-rtl .semi-select-multiple .semi-select-content-wrapper-empty,.semi-portal-rtl .semi-select-multiple .semi-select-content-wrapper-empty{margin-left:0;margin-right:8px}.semi-rtl .semi-select-inset-label,.semi-portal-rtl .semi-select-inset-label{margin-left:12px}.semi-rtl .semi-select-create-tips,.semi-portal-rtl .semi-select-create-tips{margin-right:0;margin-left:4px}.semi-rtl .semi-select-with-prefix .semi-select-selection,.semi-portal-rtl .semi-select-with-prefix .semi-select-selection{margin-left:auto;margin-right:0}.semi-rtl .semi-select-single.semi-select-filterable .semi-input-wrapper,.semi-portal-rtl .semi-select-single.semi-select-filterable .semi-input-wrapper,.semi-rtl .semi-select-multiple.semi-select-filterable .semi-select-content-wrapper-empty .semi-input-wrapper,.semi-portal-rtl .semi-select-multiple.semi-select-filterable .semi-select-content-wrapper-empty .semi-input-wrapper{left:auto;right:0}.semi-rtl .semi-select-group,.semi-portal-rtl .semi-select-group{padding-left:32px;padding-right:16px}.semi-rtl .semi-select-option-icon,.semi-portal-rtl .semi-select-option-icon{margin-right:0;margin-left:8px}.semi-popconfirm{box-sizing:border-box;max-width:400px}.semi-popconfirm-inner{display:flex;flex-direction:column;padding:24px 24px 24px 20px;position:relative}.semi-popconfirm-header{display:flex;justify-content:flex-start}.semi-popconfirm-header-title{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin-bottom:8px;color:var(--semi-color-text-0)}.semi-popconfirm-header-icon{width:24px;height:24px;margin-right:12px}.semi-popconfirm-header .semi-icon-alert_triangle{color:var(--semi-color-warning)}.semi-popconfirm-header-body{display:inline-flex;flex-grow:1;flex-direction:column}.semi-popconfirm-body{color:var(--semi-color-text-2)}.semi-popconfirm-body-withIcon{margin-left:36px}.semi-popconfirm-body>p{margin:0;padding:0}.semi-popconfirm-footer{margin-top:25px;display:flex;justify-content:flex-end}.semi-popconfirm-footer>.semi-button:first-child:not(:last-child){margin-right:8px}.semi-popconfirm-popover{border-radius:var(--semi-border-radius-medium)}.semi-popover-with-arrow .semi-popconfirm-inner{padding:12px 12px 12px 8px}.semi-popconfirm-rtl{direction:rtl}.semi-popconfirm-rtl .semi-popconfirm-inner{padding:24px 20px 24px 24px}.semi-popconfirm-rtl .semi-popconfirm-header{margin-right:0}.semi-popconfirm-rtl .semi-popconfirm-header-icon{margin-right:0;margin-left:12px}.semi-popconfirm-rtl .semi-popconfirm-footer{justify-content:flex-end}.semi-popconfirm-rtl .semi-popconfirm-footer>.semi-button:first-child:not(:last-child){margin-right:0;margin-left:8px}.semi-popover-with-arrow.semi-popconfirm-rtl{direction:rtl}.semi-popover-with-arrow.semi-popconfirm-rtl .semi-popconfirm-inner{padding:12px 8px 12px 12px}.semi-progress{display:flex;align-items:center}.semi-progress-track{background-color:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small)}.semi-progress-horizontal{height:4px;margin-top:4px;margin-bottom:4px}.semi-progress-horizontal.semi-progress-large{height:6px}.semi-progress-horizontal .semi-progress-track{height:100%;width:100%}.semi-progress-horizontal .semi-progress-track-inner{height:100%;background-color:var(--semi-color-success);border-radius:var(--semi-border-radius-small);transition:width .3s;transition-timing-function:cubic-bezier(.62,.05,.36,.95)}.semi-progress-horizontal .semi-progress-line-text{min-width:45px;font-weight:600;margin-left:16px;color:var(--semi-color-text-0)}.semi-progress-vertical{width:4px;display:inline-flex;height:100%;margin-left:4px;margin-right:4px;flex-direction:column}.semi-progress-vertical.semi-progress-large{width:6px}.semi-progress-vertical .semi-progress-track{height:100%;width:100%}.semi-progress-vertical .semi-progress-track-inner{background-color:var(--semi-color-success);border-radius:var(--semi-border-radius-small);width:100%;transition:height .3s;transition-timing-function:cubic-bezier(.62,.05,.36,.95)}.semi-progress-vertical .semi-progress-line-text{font-weight:600;margin-top:8px}.semi-progress-circle{position:relative;display:inline-block}.semi-progress-circle-ring{display:block}.semi-progress-circle-ring-inner{transition:stroke-dashoffset .3s;transition-timing-function:cubic-bezier(.62,.05,.36,.95);transform:rotate(-90deg);transform-origin:50% 50%}.semi-progress-circle-text{position:absolute;top:50%;left:50%;width:100%;text-align:center;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none;color:var(--semi-color-mode-minor-text)}.semi-rtl .semi-progress,.semi-portal-rtl .semi-progress{direction:rtl}.semi-rtl .semi-progress-horizontal .semi-progress-line-text,.semi-portal-rtl .semi-progress-horizontal .semi-progress-line-text{margin-left:0;margin-right:16px}.semi-rtl .semi-progress-circle-ring-inner,.semi-portal-rtl .semi-progress-circle-ring-inner{transform:rotate(-90deg);transform-origin:50% 50%}.semi-rtl .semi-progress-circle-text,.semi-portal-rtl .semi-progress-circle-text{left:auto;right:50%;transform:translate(50%,-50%)}.semi-radio{box-sizing:border-box;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:inline-flex;column-gap:8px;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);min-height:20px;min-width:16px;cursor:pointer;vertical-align:bottom;text-align:left}.semi-radio.semi-radio-vertical{display:block}.semi-radio input[type=checkbox],.semi-radio input[type=radio]{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.semi-radio:hover .semi-radio-inner-display{background:var(--semi-color-fill-0);border:solid 1px var(--semi-color-focus-border)}.semi-radio:hover.semi-radio-cardRadioGroup .semi-radio-inner-display{background:var(--semi-color-white)}.semi-radio:hover .semi-radio-inner-checked .semi-radio-inner-display{background:var(--semi-color-primary-hover);border-color:var(--semi-color-primary-hover)}.semi-radio:active.semi-radio-cardRadioGroup .semi-radio-inner-display{background:var(--semi-color-white)}.semi-radio:active .semi-radio-inner-checked .semi-radio-inner-display{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active)}.semi-radio-buttonRadioComponent{padding:4px;background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small)}.semi-radio-buttonRadioGroup{position:relative;padding:4px;border-radius:var(--semi-border-radius-small);line-height:16px}.semi-radio-buttonRadioGroup:not(:last-child){padding-right:0}.semi-radio-buttonRadioGroup-small{padding:2px 4px;line-height:16px}.semi-radio-buttonRadioGroup-large{padding:4px;line-height:20px}.semi-radio-cardRadioGroup{flex-wrap:nowrap;border-radius:var(--semi-border-radius-small);padding:12px 16px;background:transparent;border:1px solid transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-radio-cardRadioGroup .semi-radio-inner{flex-shrink:0}.semi-radio-cardRadioGroup .semi-radio-inner-display{background:var(--semi-color-white)}.semi-radio-cardRadioGroup .semi-radio-addon{font-weight:600;font-size:14px;line-height:20px;color:var(--semi-color-text-0)}.semi-radio-cardRadioGroup .semi-radio-extra{font-weight:400;font-size:14px;line-height:20px;color:var(--semi-color-text-2);padding-left:0}.semi-radio-cardRadioGroup:active{background:var(--semi-color-fill-1)}.semi-radio-cardRadioGroup_checked{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary)}.semi-radio-cardRadioGroup_checked:hover{border:1px solid var(--semi-color-primary-hover)}.semi-radio-cardRadioGroup_checked:hover .semi-radio-inner-checked .semi-radio-inner-display{border-color:var(--semi-color-primary-hover)}.semi-radio-cardRadioGroup_checked:active{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary-active)}.semi-radio-cardRadioGroup_checked:active .semi-radio-inner-checked .semi-radio-inner-display{border-color:var(--semi-color-primary-active)}.semi-radio-cardRadioGroup_checked:active .semi-radio-inner-checked:hover .semi-radio-inner-display{background:var(--semi-color-primary-active)}.semi-radio-cardRadioGroup_hover{background:var(--semi-color-fill-0)}.semi-radio-cardRadioGroup_disabled:active{background:transparent}.semi-radio-cardRadioGroup_checked_disabled.semi-radio-cardRadioGroup{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary-disabled)}.semi-radio-cardRadioGroup_checked_disabled.semi-radio-cardRadioGroup .semi-radio-inner-checked .semi-radio-inner-display,.semi-radio-cardRadioGroup_checked_disabled.semi-radio-cardRadioGroup:hover .semi-radio-inner-checked .semi-radio-inner-display{border-color:var(--semi-color-primary-disabled)}.semi-radio.semi-radio-disabled:hover .semi-radio-inner-display,.semi-radio.semi-radio-disabled:active .semi-radio-inner-display{background:var(--semi-color-disabled-fill);border:solid 1px var(--semi-color-border)}.semi-radio.semi-radio-disabled:hover .semi-radio-inner-checked .semi-radio-inner-display,.semi-radio.semi-radio-disabled:active .semi-radio-inner-checked .semi-radio-inner-display{background:var(--semi-color-primary-disabled);border-color:var(--semi-color-primary-disabled)}.semi-radio-inner{display:inline-flex;margin-top:2px;position:relative;width:16px;height:16px;vertical-align:sub;-webkit-user-select:none;user-select:none}.semi-radio-inner-display{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:16px;height:16px;border:solid 1px var(--semi-color-text-3);border-radius:16px;background:transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-radio-inner-display .semi-icon{width:100%;height:100%;font-size:14px}.semi-radio-content{display:flex;flex-direction:column;row-gap:4px}.semi-radio:hover .semi-radio-inner-display{background:var(--semi-color-fill-0)}.semi-radio:active .semi-radio-inner-display{background:var(--semi-color-fill-1)}.semi-radio-addon{-webkit-user-select:none;user-select:none;color:var(--semi-color-text-0);display:inline-flex;align-items:center}.semi-radio-addon-buttonRadio{text-align:center;border-radius:var(--semi-border-radius-small);font-weight:600;color:var(--semi-color-text-1);font-size:12px;padding:4px 16px;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-radio-addon-buttonRadio-hover{font-weight:600;background:var(--semi-color-fill-1)}.semi-radio-addon-buttonRadio-checked{font-weight:600;background:var(--semi-color-bg-3);color:var(--semi-color-primary)}.semi-radio-addon-buttonRadio-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-radio-addon-buttonRadio-small{font-size:12px;padding:2px 16px}.semi-radio-addon-buttonRadio-large{font-size:14px;padding:6px 24px}.semi-radio .semi-radio-inner-checked:hover .semi-radio-inner-display{background:var(--semi-color-primary-hover)}.semi-radio .semi-radio-inner-checked:active .semi-radio-inner-display{background:var(--semi-color-primary-active)}.semi-radio .semi-radio-inner-checked .semi-radio-inner-display{border:solid 1px var(--semi-color-primary);background:var(--semi-color-primary);color:rgba(var(--semi-white),1);border-radius:16px}.semi-radio .semi-radio-inner-checked>.semi-radio-addon{color:var(--semi-color-text-0)}.semi-radio .semi-radio-inner-buttonRadio,.semi-radio .semi-radio-inner-pureCardRadio{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;opacity:0}.semi-radio-disabled,.semi-radio-disabled:hover,.semi-radio-disabled .semi-radio-inner{cursor:not-allowed}.semi-radio-disabled .semi-radio-inner-display{opacity:.75;background:var(--semi-color-disabled-fill);border-color:var(--semi-color-border)}.semi-radio-disabled .semi-radio-inner-display:hover{background:transparent}.semi-radio-disabled .semi-radio-inner-checked .semi-radio-inner-display,.semi-radio-disabled .semi-radio-inner-checked .semi-radio-inner-display:hover{background:var(--semi-color-primary-disabled);border-color:var(--semi-color-primary-disabled)}.semi-radio-disabled .semi-radio-addon,.semi-radio-disabled .semi-radio-extra{color:var(--semi-color-disabled-text)}.semi-radio-extra{color:var(--semi-color-text-2);box-sizing:border-box}.semi-radio-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-radio-focus-border{border:solid 1px var(--semi-color-focus-border)}.semi-radioGroup{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-radioGroup-vertical{display:flex;flex-direction:column;row-gap:12px}.semi-radioGroup-vertical-default .semi-radio,.semi-radioGroup-vertical-card .semi-radio{display:flex}.semi-radioGroup-horizontal{display:inline-flex;flex-wrap:wrap;vertical-align:bottom;gap:16px}.semi-radioGroup-buttonRadio{display:inline-block;background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small);vertical-align:middle}.semi-rtl .semi-radio,.semi-portal-rtl .semi-radio{direction:rtl}.semi-rtl .semi-radio input[type=checkbox],.semi-rtl .semi-radio input[type=radio],.semi-portal-rtl .semi-radio input[type=checkbox],.semi-portal-rtl .semi-radio input[type=radio]{left:auto;right:0}.semi-rtl .semi-radio-buttonRadioGroup:not(:last-child),.semi-portal-rtl .semi-radio-buttonRadioGroup:not(:last-child){padding-left:0}.semi-rtl .semi-radioGroup,.semi-portal-rtl .semi-radioGroup{direction:rtl}.semi-rating{display:inline-block;margin:0;padding:0;color:rgba(var(--semi-yellow-5),1);list-style:none;outline:none;border-radius:3px}.semi-rating-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-rating-no-focus{outline:none}.semi-rating-disabled .semi-rating-star{cursor:default}.semi-rating-disabled .semi-rating-star:hover{transform:scale(1)}.semi-rating-star{position:relative;display:inline-block;margin:0;padding:0;color:inherit;cursor:pointer;transition:all .5s;transform:scale(var(--semi-transform_scale-none))}.semi-rating-star:not(:last-child){margin-right:6px}.semi-rating-star>div:hover,.semi-rating-star>div:focus{transform:scale(1.1)}.semi-rating-star>div.semi-rating-star-disabled{transform:none}.semi-rating-star-small{width:16px;height:16px;font-size:16px}.semi-rating-star-default{width:24px;height:24px;font-size:24px}.semi-rating-star-wrapper{position:relative;overflow:hidden;border-radius:3px;width:100%;height:100%}.semi-rating-star-first,.semi-rating-star-second{transition:color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);color:var(--semi-color-fill-0);-webkit-user-select:none;user-select:none}.semi-rating-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.semi-rating-star-half .semi-rating-star-first,.semi-rating-star-half .semi-rating-star-second{opacity:1}.semi-rating-star-half .semi-rating-star-first,.semi-rating-star-full .semi-rating-star-second{color:inherit}.semi-rtl .semi-rating,.semi-portal-rtl .semi-rating{direction:rtl}.semi-rtl .semi-rating-star:not(:last-child),.semi-portal-rtl .semi-rating-star:not(:last-child){margin-right:0;margin-left:6px}.semi-rtl .semi-rating-star-first,.semi-portal-rtl .semi-rating-star-first{left:auto;right:0}.semi-slider{padding:0 13px;margin:0}.semi-slider-wrapper{box-sizing:border-box;position:relative;height:32px;width:100%;display:inline-block;vertical-align:bottom}.semi-slider-rail{box-sizing:border-box;margin:0;padding:0;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:"tnum";position:absolute;height:4px;cursor:pointer;touch-action:none;background-color:var(--semi-color-fill-0);width:100%;border-radius:var(--semi-border-radius-small);top:14px}.semi-slider-handle{box-shadow:0 4px 6px #0000001a,0 0 1px #0000004d;box-sizing:border-box;touch-action:none;position:absolute;width:24px;height:24px;margin-top:4px;background-color:var(--semi-color-white);border:none;border-radius:50%;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:var(--semi-transform_scale-small) translate(-50%) translateY(0)}.semi-slider-handle:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-slider-handle:hover{background-color:var(--semi-color-white)}.semi-slider-handle-clicked{border:solid 1px var(--semi-color-focus-border);cursor:grabbing}.semi-slider-track{height:4px;background:var(--semi-color-primary);border-radius:var(--semi-border-radius-small);position:absolute;cursor:pointer;top:14px}.semi-slider-tooltip{position:absolute;top:-40px}.semi-slider-dots{width:100%;background:transparent}.semi-slider-dot{position:absolute;top:14px;width:4px;height:4px;background-color:var(--semi-color-white);border-radius:50%;cursor:pointer;transform:translate(0)}.semi-slider-dot-active{background-color:var(--semi-color-white)}.semi-slider-marks{position:absolute;top:23px;left:0;width:100%;font-size:14px}.semi-slider-mark{position:absolute;display:inline-block;color:var(--semi-color-text-2);text-align:center;cursor:pointer;transform:translate(-50%)}.semi-slider-marks-reverse{position:absolute;top:23px;left:0;width:100%;font-size:14px}.semi-slider-mark-reverse{position:absolute;display:inline-block;color:var(--semi-color-text-2);text-align:center;cursor:pointer;transform:translate(-50%) rotate(-180deg)}.semi-slider-boundary{position:relative;font-size:12px;color:var(--semi-color-text-0);visibility:hidden;top:30px}.semi-slider-boundary span{position:absolute;display:inline-block}.semi-slider-boundary-min{left:0}.semi-slider-boundary-max{right:0}.semi-slider-boundary-show{visibility:visible}.semi-slider-vertical-wrapper{width:4px;height:100%}.semi-slider-vertical-wrapper .semi-slider-track{width:4px}.semi-slider-vertical-wrapper .semi-slider-marks{height:100%;margin-top:-30px;margin-left:29px}.semi-slider-vertical-wrapper .semi-slider-marks-reverse{height:100%;margin-top:-30px;margin-left:-26px}.semi-slider-vertical-wrapper .semi-slider-rail{width:4px;height:100%;top:0}.semi-slider-vertical-wrapper .semi-slider-handle{margin-top:0;margin-left:-10px;transform:var(--semi-transform_scale-small) translateY(-50%) translate(0)}.semi-slider-vertical-wrapper .semi-slider-dot{transform:translateY(0)}.semi-slider-disabled{cursor:not-allowed}.semi-slider-disabled .semi-slider-handle{cursor:not-allowed;box-shadow:none;border:1px var(--semi-color-border) solid}.semi-slider-disabled .semi-slider-handle:hover{background-color:var(--semi-color-white)}.semi-slider-disabled .semi-slider-rail{cursor:not-allowed}.semi-slider-disabled .semi-slider-track{cursor:not-allowed;background-color:var(--semi-color-primary-disabled)}.semi-slider-disabled .semi-slider-dot{cursor:not-allowed;background-color:var(--semi-color-white);border-color:var(--semi-color-white);box-shadow:none}.semi-slider-handle-tooltip{text-align:center}.semi-slider-reverse{transform:rotate(180deg)}.semi-switch{box-sizing:border-box;display:inline-block;border-radius:12px;border:1px transparent solid;position:relative;cursor:pointer;background-color:var(--semi-color-fill-0);transition:background-color .2s var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);width:40px;height:24px}.semi-switch:hover{background-color:var(--semi-color-fill-1)}.semi-switch:active{border:1px var(--semi-color-fill-2) solid}.semi-switch:active .semi-switch-knob{width:24px}.semi-switch-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-switch-checked{background-color:var(--semi-color-success)}.semi-switch-checked:hover{background-color:var(--semi-color-success-hover)}.semi-switch-checked .semi-switch-knob{transform:translate(18px)}.semi-switch-checked:active .semi-switch-knob{transform:translate(12px)}.semi-switch-active{background-color:var(--semi-color-success-active)}.semi-switch-disabled{cursor:not-allowed;background-color:transparent;border:1px var(--semi-color-border) solid}.semi-switch-disabled:hover,.semi-switch-disabled:active{background-color:transparent}.semi-switch-disabled:active .semi-switch-knob{width:18px}.semi-switch-disabled .semi-switch-knob{cursor:not-allowed;box-shadow:none;border:1px var(--semi-color-border) solid}.semi-switch-disabled .semi-switch-native-control{pointer-events:none;cursor:not-allowed}.semi-switch-disabled.semi-switch-checked{border-color:transparent;background-color:var(--semi-color-success-disabled)}.semi-switch-disabled.semi-switch-checked:active .semi-switch-knob{transform:translate(18px)}.semi-switch-disabled.semi-switch-checked .semi-switch-knob{box-shadow:none;border:none}.semi-switch-knob{box-shadow:0 4px 6px #0000001a,0 0 1px #0000004d;cursor:pointer;border-radius:9px;background-color:rgba(var(--semi-white),1);box-sizing:border-box;position:absolute;left:0;right:auto;transition:transform .2s ease-in-out,width .2s ease-in-out;width:18px;height:18px;top:2px;transform:translate(2px)}.semi-switch-native-control{width:100%;height:100%;opacity:0;cursor:inherit;pointer-events:auto;margin:0;position:absolute;top:0;left:0}.semi-switch-native-control[type=checkbox]{width:inherit;height:inherit}.semi-switch-checked-text,.semi-switch-unchecked-text{position:absolute;font-size:12px;height:100%;width:20px;display:flex;justify-content:center;align-items:center}.semi-switch-checked-text{color:var(--semi-color-white)}.semi-switch-unchecked-text{color:var(--semi-color-text-2);right:0}.semi-switch-loading{display:inline-flex;align-items:center;background-color:var(--semi-color-fill-1)}.semi-switch-loading-spin .semi-spin-wrapper{display:inline-flex;align-items:center;color:var(--semi-color-white)}.semi-switch-loading .semi-switch-loading-spin{transform:translate(2px)}.semi-switch-loading .semi-switch-loading-spin>.semi-spin-wrapper>svg{width:18px;height:18px}.semi-switch-loading.semi-switch-checked{background-color:var(--semi-color-success-hover)}.semi-switch-loading.semi-switch-checked .semi-switch-loading-spin{transform:translate(16px)}.semi-switch-loading.semi-switch-small .semi-switch-loading-spin{transform:translate(2px)}.semi-switch-loading.semi-switch-small .semi-switch-loading-spin>.semi-spin-wrapper>svg{width:10px;height:10px}.semi-switch-loading.semi-switch-small.semi-switch-checked .semi-switch-loading-spin{transform:translate(10px)}.semi-switch-loading.semi-switch-large .semi-switch-loading-spin{transform:translate(2px)}.semi-switch-loading.semi-switch-large .semi-switch-loading-spin>.semi-spin-wrapper>svg{width:28px;height:28px}.semi-switch-loading.semi-switch-large.semi-switch-checked .semi-switch-loading-spin{transform:translate(22px)}.semi-switch-disabled.semi-switch-checked{background-color:var(--semi-color-success-disabled)}.semi-switch-large{width:54px;height:32px;border-radius:16px}.semi-switch-large .semi-switch-knob{width:24px;height:24px;top:3px;border-radius:12px;transform:translate(3px)}.semi-switch-large.semi-switch-checked .semi-switch-knob{transform:translate(26px)}.semi-switch-large.semi-switch-checked:active .semi-switch-knob{transform:translate(16px)}.semi-switch-large:active .semi-switch-knob{width:34px}.semi-switch-large .semi-switch-checked-text,.semi-switch-large .semi-switch-unchecked-text{width:26px;font-size:14px}.semi-switch-small{width:26px;height:16px;border-radius:8px}.semi-switch-small .semi-switch-knob{width:12px;height:12px;top:1px;border-radius:6px;transform:translate(1px)}.semi-switch-small.semi-switch-checked .semi-switch-knob{transform:translate(11px)}.semi-switch-small.semi-switch-checked:active .semi-switch-knob{transform:translate(9px)}.semi-switch-small:active .semi-switch-knob{width:14px}.semi-form .semi-switch-native-control{width:100%;height:100%}.semi-rtl .semi-switch,.semi-portal-rtl .semi-switch{direction:rtl}.semi-rtl .semi-switch-checked .semi-switch-knob,.semi-portal-rtl .semi-switch-checked .semi-switch-knob{transform:translate(-18px)}.semi-rtl .semi-switch-checked:active .semi-switch-knob,.semi-portal-rtl .semi-switch-checked:active .semi-switch-knob{transform:translate(-12px)}.semi-rtl .semi-switch-knob,.semi-portal-rtl .semi-switch-knob{right:0;left:auto;transform:translate(-2px)}.semi-rtl .semi-switch-native-control,.semi-portal-rtl .semi-switch-native-control{right:0}.semi-rtl .semi-switch-unchecked-text,.semi-portal-rtl .semi-switch-unchecked-text{left:0}.semi-rtl .semi-switch-loading .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading .semi-switch-loading-spin{transform:translate(-2px)}.semi-rtl .semi-switch-loading.semi-switch-checked .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-checked .semi-switch-loading-spin{transform:translate(-16px)}.semi-rtl .semi-switch-loading.semi-switch-small .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-small .semi-switch-loading-spin{transform:translate(-2px)}.semi-rtl .semi-switch-loading.semi-switch-small.semi-switch-checked .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-small.semi-switch-checked .semi-switch-loading-spin{transform:translate(-10px)}.semi-rtl .semi-switch-loading.semi-switch-large .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-large .semi-switch-loading-spin{transform:translate(-2px)}.semi-rtl .semi-switch-loading.semi-switch-large.semi-switch-checked .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-large.semi-switch-checked .semi-switch-loading-spin{transform:translate(-22px)}.semi-rtl .semi-switch-large .semi-switch-knob,.semi-portal-rtl .semi-switch-large .semi-switch-knob{transform:translate(-3px)}.semi-rtl .semi-switch-large.semi-switch-checked .semi-switch-knob,.semi-portal-rtl .semi-switch-large.semi-switch-checked .semi-switch-knob{transform:translate(-26px)}.semi-rtl .semi-switch-large.semi-switch-checked:active .semi-switch-knob,.semi-portal-rtl .semi-switch-large.semi-switch-checked:active .semi-switch-knob{transform:translate(-16px)}.semi-rtl .semi-switch-small .semi-switch-knob,.semi-portal-rtl .semi-switch-small .semi-switch-knob{transform:translate(-1px)}.semi-rtl .semi-switch-small.semi-switch-checked .semi-switch-knob,.semi-portal-rtl .semi-switch-small.semi-switch-checked .semi-switch-knob{transform:translate(-11px)}.semi-rtl .semi-switch-small.semi-switch-checked:active .semi-switch-knob,.semi-portal-rtl .semi-switch-small.semi-switch-checked:active .semi-switch-knob{transform:translate(-9px)}.semi-table-panel-operation{background-color:var(--semi-color-primary);padding:8px 16px;display:flex;justify-content:space-between;color:var(--semi-color-text-2)}.semi-table-panel-operation-right,.semi-table-panel-operation-left{display:flex;justify-content:space-between}.semi-table-panel-operation-selected{color:var(--semi-color-primary-light-active)}.semi-table-pagination-info{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.semi-table-pagination-outer{display:flex;justify-content:space-between;align-items:center}.semi-table{width:100%;text-align:left;border-collapse:separate;border-spacing:0;font-size:inherit;display:table}.semi-table-wrapper{zoom:1;position:relative;clear:both;box-sizing:border-box;margin:0;padding:0;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-0);width:100%}.semi-table-wrapper[data-column-fixed=true]{z-index:1}.semi-table-wrapper-ltr,.semi-table-wrapper-ltr .semi-spin{direction:ltr}.semi-table-middle .semi-table-tbody>.semi-table-row>.semi-table-row-cell{padding-top:12px;padding-bottom:12px}.semi-table-small .semi-table-tbody>.semi-table-row>.semi-table-row-cell{padding-top:8px;padding-bottom:8px}.semi-table-title{position:relative;padding:16px 0}.semi-table-container{position:relative}.semi-table-header{overflow:hidden;scrollbar-base-color:transparent}.semi-table-header::-webkit-scrollbar{background-color:transparent;border-bottom:2px solid var(--semi-color-border)}.semi-table-header-sticky{position:sticky;z-index:102}.semi-table-header-sticky .semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:var(--semi-color-bg-1)}.semi-table-header-hidden{height:0}.semi-table-align-center .semi-table-operate-wrapper{justify-content:center}.semi-table-align-right .semi-table-operate-wrapper{justify-content:flex-end}.semi-table-operate-wrapper{display:flex;justify-content:flex-start}.semi-table-body{overflow:auto;width:100%;box-sizing:border-box}.semi-table-colgroup{display:table-column-group}.semi-table-colgroup .semi-table-col{display:table-column}.semi-table-colgroup .semi-table-column-expand,.semi-table-colgroup .semi-table-column-selection{width:48px}.semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:var(--semi-color-bg-1);color:var(--semi-color-text-2);font-weight:600;text-align:left;border-bottom:2px solid var(--semi-color-border);padding:8px 16px;vertical-align:middle;overflow-wrap:break-word;position:relative}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left,.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right{z-index:101;position:sticky;background-color:var(--semi-color-bg-1)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before,.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right:before{background-color:var(--semi-color-bg-1);content:"";position:absolute;left:0;top:0;right:0;bottom:0;display:block;z-index:-1}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last{border-right:1px solid var(--semi-color-border);box-shadow:3px 0 0 0 var(--semi-color-shadow)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last.resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last.resizing .react-resizable-handle:hover{background-color:unset}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first{border-left:1px solid var(--semi-color-border);box-shadow:-3px 0 0 0 var(--semi-color-shadow)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first.resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first.resizing .react-resizable-handle:hover{background-color:unset}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first[x-type=column-scrollbar]{box-shadow:none;border-left:transparent}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-column-selection{text-align:center}.semi-table-thead>.semi-table-row>.semi-table-row-head[colspan]:not([colspan="1"]){text-align:center}.semi-table-thead>.semi-table-row>.semi-table-row-head .semi-table-header-column{display:inline-flex;align-items:center}.semi-table-thead>.semi-table-row>.semi-table-row-head-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.semi-table-thead>.semi-table-row>.semi-table-row-head-ellipsis .semi-table-row-head-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.semi-table-thead>.semi-table-row .react-resizable{position:relative;background-clip:padding-box}.semi-table-thead>.semi-table-row .resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-thead>.semi-table-row .resizing .react-resizable-handle:hover{background-color:unset}.semi-table-thead>.semi-table-row .react-resizable-handle{position:absolute;width:9px;height:calc(100% - 8px);background-color:var(--semi-color-border);bottom:4px;right:-1px;cursor:col-resize;z-index:0}.semi-table-thead>.semi-table-row .react-resizable-handle:hover{background-color:var(--semi-color-primary)}.semi-table-tbody{display:table-row-group}.semi-table-tbody>.semi-table-row{display:table-row;background-color:var(--semi-color-bg-1)}.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell{background-image:linear-gradient(0deg,var(--semi-color-fill-0),var(--semi-color-fill-0));background-color:var(--semi-color-bg-0)}.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-left,.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-right{background-image:linear-gradient(0deg,var(--semi-color-bg-1),var(--semi-color-bg-1))}.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-left:before,.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-right:before{background-color:var(--semi-color-fill-0);content:"";position:absolute;left:0;top:0;right:0;bottom:0;display:block;z-index:-1}.semi-table-tbody>.semi-table-row>.semi-table-row-cell{display:table-cell;overflow-wrap:break-word;border-left:none;border-right:none;border-bottom:1px solid var(--semi-color-border);padding:16px;box-sizing:border-box;position:relative;vertical-align:middle}.semi-table-tbody>.semi-table-row>.semi-table-row-cell.resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-tbody>.semi-table-row>.semi-table-row-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.semi-table-tbody>.semi-table-row.semi-table-row-expand>.semi-table-row-cell{background-color:var(--semi-color-fill-0)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left,.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right{z-index:101;position:sticky;background-color:var(--semi-color-bg-1)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last{border-right:1px solid var(--semi-color-border);box-shadow:3px 0 0 0 var(--semi-color-shadow)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first{border-left:1px solid var(--semi-color-border);box-shadow:-3px 0 0 0 var(--semi-color-shadow)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed>*{transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-table-tbody>.semi-table-row>*{transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-table-tbody>.semi-table-row-section{display:table-row}.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell{background-color:rgba(var(--semi-grey-0),1);border-bottom:1px solid var(--semi-color-border)}.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell:not(.semi-table-column-selection){padding:10px 16px}.semi-table-tbody>.semi-table-row-section .semi-table-section-inner{display:inline-flex;align-items:center}.semi-table-virtualized .semi-table-tbody{display:block}.semi-table-virtualized .semi-table-tbody>.semi-table-row{display:flex}.semi-table-virtualized .semi-table-tbody>.semi-table-row>.semi-table-row-cell{word-wrap:unset;word-break:unset;white-space:nowrap;display:inline-flex;align-items:center;overflow:hidden}.semi-table-virtualized .semi-table-tbody>.semi-table-row-section>.semi-table-row-cell{padding-top:16px;padding-bottom:16px;display:flex}.semi-table-virtualized .semi-table-tbody>.semi-table-row-expand>.semi-table-row-cell{padding:0;overflow:unset}.semi-table-footer{background-color:var(--semi-color-fill-0);padding:16px;margin:0;position:relative}.semi-table .semi-table-selection-wrap{display:inline-flex;vertical-align:bottom}.semi-table .semi-table-selection-disabled{cursor:not-allowed}.semi-table .semi-table-selection-disabled>.semi-checkbox{pointer-events:none}.semi-table .semi-table-column-hidden{display:none}.semi-table .semi-table-column-selection{text-align:center}.semi-table .semi-table-column-selection .semi-checkbox-inner-display .semi-icon{left:0;top:0}.semi-table .semi-table-column-expand .semi-table-expand-icon{transform:translateY(2px)}.semi-table .semi-table-column-expand .semi-table-expand-icon:last-child{margin-right:0}.semi-table .semi-table-column-sorter{margin-left:4px;display:inline-block;width:16px;height:16px;vertical-align:middle;text-align:center}.semi-table .semi-table-column-sorter-wrapper{display:flex;align-items:center;cursor:pointer;overflow:hidden}.semi-table .semi-table-column-sorter-up,.semi-table .semi-table-column-sorter-down{height:0;display:block;color:var(--semi-color-text-2)}.semi-table .semi-table-column-sorter-up:hover .anticon,.semi-table .semi-table-column-sorter-down:hover .anticon{color:var(--semi-color-text-2)}.semi-table .semi-table-column-sorter-up svg,.semi-table .semi-table-column-sorter-down svg{width:16px;height:16px}.semi-table .semi-table-column-sorter-up.on .semi-icon-caretup,.semi-table .semi-table-column-sorter-up.on .semi-icon-caretdown,.semi-table .semi-table-column-sorter-down.on .semi-icon-caretup,.semi-table .semi-table-column-sorter-down.on .semi-icon-caretdown{color:var(--semi-color-primary)}.semi-table .semi-table-column-filter{margin-left:4px;display:inline-flex;cursor:pointer;color:var(--semi-color-text-2);align-items:center}.semi-table .semi-table-column-filter svg{width:16px;height:16px}.semi-table .semi-table-column-filter.on{color:var(--semi-color-primary)}.semi-table-bordered .semi-table-title{padding-left:16px;padding-right:16px;border-top:1px solid var(--semi-color-border);border-right:1px solid var(--semi-color-border);border-left:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-container{border:1px solid var(--semi-color-border);border-right:0;border-bottom:0}.semi-table-bordered .semi-table-header::-webkit-scrollbar{border-right:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-footer{border-left:1px solid var(--semi-color-border);border-right:1px solid var(--semi-color-border);border-bottom:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-thead>.semi-table-row>.semi-table-row-head .react-resizable-handle{background-color:transparent}.semi-table-bordered .semi-table-thead>.semi-table-row>.semi-table-row-head,.semi-table-bordered .semi-table-tbody>.semi-table-row>.semi-table-row-cell{border-right:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-placeholder{border-right:1px solid var(--semi-color-border)}.semi-table-placeholder{position:sticky;left:0;z-index:1;padding:16px 12px;color:var(--semi-color-text-2);font-size:14px;text-align:center;background:transparent;border-bottom:1px solid var(--semi-color-border);border-radius:0 0 4px 4px}.semi-table-fixed{table-layout:fixed;min-width:100%}.semi-table-fixed>.semi-table-tbody>.semi-table-row-expand>.semi-table-row-cell>.semi-table-expand-inner,.semi-table-fixed>.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell>.semi-table-section-inner{position:sticky;overflow:auto;left:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;height:100%;display:flex;align-items:center}.semi-table-fixed-header table{table-layout:fixed}.semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last,.semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first,.semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.semi-table-pagination-outer{color:var(--semi-color-text-2);min-height:60px}.semi-table-expand-icon{color:var(--semi-color-text-2);cursor:pointer;display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;background:transparent;position:relative;margin-right:8px}.semi-table-expand-icon-cell{display:inline-flex;align-items:center;justify-content:center}.semi-table-expand-icon .semi-table-expandedIcon-show{transition:transform .15s cubic-bezier(.62,.05,.36,.95);transform:rotate(90deg)}.semi-table-expand-icon .semi-table-expandedIcon-hide{transition:transform .15s cubic-bezier(.62,.05,.36,.95);transform:rotate(0)}.semi-table-column-filter-dropdown .semi-dropdown-menu{max-height:290px;overflow-y:auto}.semi-table-wrapper-rtl .semi-table{direction:rtl;text-align:right}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head{text-align:right}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last.resizing{border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first{border-left:0;border-right:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first.resizing{border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first[x-type=column-scrollbar]{box-shadow:none;border-right:transparent}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row .resizing{border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row .react-resizable-handle{right:auto;left:-1px}.semi-table-wrapper-rtl .semi-table-tbody{display:table-row-group}.semi-table-wrapper-rtl .semi-table-tbody>.semi-table-row>.semi-table-row-cell.resizing{border-right:0;border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first{border-left:0;border-right:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table .semi-table-column-selection .semi-checkbox-inner-display .semi-icon{left:auto;right:0}.semi-table-wrapper-rtl .semi-table .semi-table-column-expand .semi-table-expand-icon{transform:scaleX(-1) translateY(2px)}.semi-table-wrapper-rtl .semi-table .semi-table-column-expand .semi-table-expand-icon:last-child{margin-right:auto;margin-left:0}.semi-table-wrapper-rtl .semi-table .semi-table-column-sorter,.semi-table-wrapper-rtl .semi-table .semi-table-column-filter{margin-left:auto;margin-right:4px}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-container{border-left:0;border-right:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-thead>.semi-table-row>.semi-table-row-head,.semi-table-wrapper-rtl .semi-table-bordered .semi-table-tbody>.semi-table-row>.semi-table-row-cell{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-placeholder{border-left:1px solid var(--semi-color-border);border-right:0}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-header::-webkit-scrollbar{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-fixed>.semi-table-tbody>.semi-table-row-expand>.semi-table-row-cell>.semi-table-expand-inner,.semi-table-wrapper-rtl .semi-table-fixed>.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell>.semi-table-section-inner{left:auto;right:0;margin-right:-16px;margin-left:-16px;padding-right:16px;padding-left:16px}.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last,.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:3px 0 0 0 var(--semi-color-shadow)}.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first,.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last,.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first,.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:-3px 0 0 0 var(--semi-color-shadow)}.semi-table-wrapper-rtl .semi-table-expand-icon{margin-right:auto;margin-left:8px;transform:scaleX(-1) translateY(2px)}.semi-table-wrapper-rtl .semi-spin{direction:rtl}.semi-timepicker{display:inline-block}.semi-timepicker-panel .semi-scrolllist-body{height:252px}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle>ul:before,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item>ul:before{height:108px}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer{-ms-overflow-style:none;scrollbar-width:none}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item::-webkit-scrollbar,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer::-webkit-scrollbar{display:none;width:0;height:0}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item>ul,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul{padding-bottom:108px}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item{-ms-overflow-style:none;scrollbar-width:none}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item::-webkit-scrollbar{display:none;width:0;height:0}.semi-timepicker-panel .semi-scrolllist-item,.semi-timepicker-panel .semi-scrolllist-item-wheel{flex:none}.semi-timepicker-panel .semi-scrolllist-item-wheel,.semi-timepicker-panel .semi-scrolllist-item-wheel:not(:last-child){border:none}.semi-timepicker-panel-list-ampm{width:72px}.semi-timepicker-panel-list-hour,.semi-timepicker-panel-list-minute,.semi-timepicker-panel-list-second{width:64px}.semi-timepicker-range-panel .semi-timepicker-lists{display:flex;box-shadow:0 4px 14px #0000001a;border:1px solid rgba(0,0,0,.1);border-radius:var(--semi-border-radius-medium)}.semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:first-of-type{border-radius:var(--semi-border-radius-medium) 0 0 var(--semi-border-radius-medium)}.semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:last-of-type{border-radius:0 var(--semi-border-radius-medium) var(--semi-border-radius-medium) 0}.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist:not(:last-child) .semi-scrolllist-body{border-right:2px solid var(--semi-color-border)}.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist{box-shadow:none}.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist .semi-scrolllist-body,.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist .semi-scrolllist-header{padding:0}.semi-timepicker .semi-timepicker-input{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;border-radius:var(--semi-border-radius-small);align-items:center}.semi-timepicker .semi-input-readonly{cursor:pointer}.semi-timepicker .semi-input-borderless:not(:focus-within):not(:hover) .semi-input-suffix{opacity:0}.semi-rtl .semi-timepicker,.semi-portal-rtl .semi-timepicker,.semi-rtl .semi-timepicker-panel,.semi-portal-rtl .semi-timepicker-panel,.semi-rtl .semi-timepicker-range,.semi-portal-rtl .semi-timepicker-range{direction:rtl}.semi-rtl .semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist:not(:last-child) .semi-scrolllist-body,.semi-portal-rtl .semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist:not(:last-child) .semi-scrolllist-body{border-right:0;border-left:2px solid var(--semi-color-border)}.semi-toast{pointer-events:none}.semi-toast-wrapper{position:fixed;height:0;top:0;width:100%;display:flex;justify-content:center;z-index:1010}.semi-toast-wrapper .semi-toast-innerWrapper{width:fit-content;height:fit-content}.semi-toast-wrapper .semi-toast-innerWrapper-hover .semi-toast-zero-height-wrapper{perspective:unset;perspective-origin:center center}.semi-toast-zero-height-wrapper{transition:all .3s cubic-bezier(.22,.57,.02,1.2);perspective-origin:center 280px;perspective:280px;height:0;overflow:visible}.semi-toast-content{pointer-events:all;box-shadow:var(--semi-shadow-elevated);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:var(--semi-color-bg-3);border-radius:var(--semi-border-radius-medium);padding:12px 8px;display:inline-flex;align-items:flex-start;justify-content:center;margin:12px;font-weight:600;color:var(--semi-color-text-0)}.semi-toast-content .semi-toast-close-button{margin-top:-2px;height:20px}.semi-toast-content .semi-toast-content-text{margin-left:12px;margin-right:12px;text-align:left;word-wrap:break-word;overflow-wrap:break-word}.semi-toast-light.semi-toast-warning .semi-toast-content{background-color:var(--semi-color-warning-light-default);border:1px solid var(--semi-color-warning)}.semi-toast-light.semi-toast-warning .semi-toast-icon-warning{color:var(--semi-color-warning)}.semi-toast-light.semi-toast-success .semi-toast-content{background-color:var(--semi-color-success-light-default);border:1px solid var(--semi-color-success)}.semi-toast-light.semi-toast-success .semi-toast-icon-success{color:var(--semi-color-success)}.semi-toast-light.semi-toast-info .semi-toast-content{background-color:var(--semi-color-info-light-default);border:1px solid var(--semi-color-info)}.semi-toast-light.semi-toast-info .semi-toast-icon-info{color:var(--semi-color-info)}.semi-toast-light.semi-toast-error .semi-toast-content{background-color:var(--semi-color-danger-light-default);border:1px solid var(--semi-color-danger)}.semi-toast-light.semi-toast-error .semi-toast-icon-error{color:var(--semi-color-danger)}.semi-toast .semi-toast-icon-warning{color:var(--semi-color-warning)}.semi-toast .semi-toast-icon-success{color:var(--semi-color-success)}.semi-toast .semi-toast-icon-info{color:var(--semi-color-info)}.semi-toast .semi-toast-icon-error{color:var(--semi-color-danger)}.semi-toast-animation-show{animation:.3s semi-toast-keyframe-toast-show cubic-bezier(.22,.57,.02,1.2) 0s;animation-fill-mode:forwards}.semi-toast-animation-hide{animation:.3s semi-toast-keyframe-toast-hide cubic-bezier(.22,.57,.02,1.2) 0s;animation-fill-mode:forwards}@keyframes semi-toast-keyframe-toast-show{0%{opacity:0;transform:translateY(-100%)}to{opacity:1}}@keyframes semi-toast-keyframe-toast-hide{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}.semi-toast-rtl{direction:rtl}.semi-toast-rtl .semi-toast-content .semi-toast-content-text{text-align:right;margin-left:12px;margin-right:12px}.semi-tree-search-wrapper{padding:8px 12px}.semi-tree-wrapper{display:flex;flex-direction:column}.semi-tree-option-list{overflow-x:hidden;overflow-y:auto;box-sizing:border-box;flex:1;padding:8px 0}.semi-tree-option-list ul,.semi-tree-option-list li{list-style-type:none;padding:0;margin:0}.semi-tree-option-list li.semi-tree-option{box-sizing:border-box;padding-top:4px;padding-bottom:4px}.semi-tree-option-list li>.semi-tree-option-label{list-style-type:none;padding:0}.semi-tree-option-list .semi-tree-option-expand-icon,.semi-tree-option-list .semi-tree-option-empty-icon{box-sizing:border-box;width:12px;color:var(--semi-color-text-2);margin-right:8px;display:flex;flex-shrink:0}.semi-tree-option-list .semi-tree-option{display:flex;align-items:center;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none));font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;word-break:break-word;color:var(--semi-color-text-0);position:relative}.semi-tree-option-list .semi-tree-option-label{display:flex;align-items:center}.semi-tree-option-list .semi-tree-option-label>.semi-icon{margin-right:8px}.semi-tree-option-list .semi-tree-option-label .semi-checkbox{margin-right:8px}.semi-tree-option-list .semi-tree-option-label-text{display:block;flex:1}.semi-tree-option-list .semi-tree-option-ellipsis .semi-tree-option-label-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.semi-tree-option-list .semi-tree-option-label-text,.semi-tree-option-list .semi-tree-option .semi-checkbox-addon{border-radius:var(--semi-border-radius-small)}.semi-tree-option-list .semi-tree-option-label-text:hover,.semi-tree-option-list .semi-tree-option .semi-checkbox-addon:hover{background-color:var(--semi-color-fill-0)}.semi-tree-option-list .semi-tree-option-label-text:active,.semi-tree-option-list .semi-tree-option .semi-checkbox-addon:active{background-color:var(--semi-color-fill-1)}.semi-tree-option-list .semi-tree-option-item-icon{color:var(--semi-color-text-2)}.semi-tree-option-list .semi-tree-option-active .semi-tree-option-label-text{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list .semi-tree-option-active:hover,.semi-tree-option-list .semi-tree-option-active:active{background-color:transparent}.semi-tree-option-list .semi-tree-option-selected .semi-tree-option-label,.semi-tree-option-list .semi-tree-option-selected .semi-tree-option-label:hover,.semi-tree-option-list .semi-tree-option-selected .semi-tree-option-label:active{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list .semi-tree-option-collapsed .semi-tree-option-expand-icon{transform:rotate(270deg)}.semi-tree-option-list .semi-tree-option-highlight{font-weight:600;color:var(--semi-color-primary)}.semi-tree-option-list .semi-tree-option-hidden{display:none}.semi-tree-option-list .semi-tree-option-disabled .semi-tree-option-label{color:var(--semi-color-disabled-text)}.semi-tree-option-list .semi-tree-option-fullLabel-draggable,.semi-tree-option-list .semi-tree-option-draggable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;-khtml-user-drag:element;-webkit-user-drag:element}.semi-tree-option-list .semi-tree-option-draggable{box-sizing:border-box;border-left:2px solid transparent;margin-top:-2px}.semi-tree-option-list .semi-tree-option-draggable .semi-tree-option-label{border-top:2px transparent solid;border-bottom:2px transparent solid}.semi-tree-option-list .semi-tree-option-draggable .semi-tree-option-drag-over-gap-top{border-top:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-draggable .semi-tree-option-drag-over-gap-bottom{border-bottom:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-fullLabel-draggable.semi-tree-option-fullLabel-drag-over-gap-top{border-top:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-fullLabel-draggable.semi-tree-option-fullLabel-drag-over-gap-bottom{border-bottom:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-draggable,.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-fullLabel-draggable{border:2px solid var(--semi-color-primary)}.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-draggable .semi-tree-option-label,.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-fullLabel-draggable .semi-tree-option-label{border-top:0;border-bottom:0}.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-draggable+.semi-tree-option-selected:after,.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-fullLabel-draggable+.semi-tree-option-selected:after{content:"";position:absolute;top:0;left:-2px;bottom:0;right:-1px;border-top:2px solid var(--semi-color-primary)}.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option{padding-top:0;padding-bottom:0}.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-label{padding:3px 0}.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-selected,.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-selected:hover,.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-selected:active{background-color:transparent}.semi-tree-option-list .semi-tree-option-level-1{padding-left:8px}.semi-tree-option-list .semi-tree-option-level-2{padding-left:28px}.semi-tree-option-list .semi-tree-option-level-3{padding-left:48px}.semi-tree-option-list .semi-tree-option-level-4{padding-left:68px}.semi-tree-option-list .semi-tree-option-level-5{padding-left:88px}.semi-tree-option-list .semi-tree-option-level-6{padding-left:108px}.semi-tree-option-list .semi-tree-option-level-7{padding-left:128px}.semi-tree-option-list .semi-tree-option-level-8{padding-left:148px}.semi-tree-option-list .semi-tree-option-level-9{padding-left:168px}.semi-tree-option-list .semi-tree-option-level-10{padding-left:188px}.semi-tree-option-list .semi-tree-option-level-11{padding-left:208px}.semi-tree-option-list .semi-tree-option-level-12{padding-left:228px}.semi-tree-option-list .semi-tree-option-level-13{padding-left:248px}.semi-tree-option-list .semi-tree-option-level-14{padding-left:268px}.semi-tree-option-list .semi-tree-option-level-15{padding-left:288px}.semi-tree-option-list .semi-tree-option-level-16{padding-left:308px}.semi-tree-option-list .semi-tree-option-level-17{padding-left:328px}.semi-tree-option-list .semi-tree-option-level-18{padding-left:348px}.semi-tree-option-list .semi-tree-option-level-19{padding-left:368px}.semi-tree-option-list .semi-tree-option-level-20{padding-left:388px}.semi-tree-option-list .semi-tree-option-empty:hover,.semi-tree-option-list .semi-tree-option-empty:active{background-color:transparent}.semi-tree-option-list .semi-tree-option-label-empty{padding-left:0;justify-content:center;color:var(--semi-color-disabled-text);-webkit-user-select:none;user-select:none;cursor:not-allowed}.semi-tree-option-list .semi-checkboxGroup-vertical{row-gap:0}.semi-tree-option-list-block .semi-tree-option:hover{background-color:var(--semi-color-fill-0)}.semi-tree-option-list-block .semi-tree-option:active{background-color:var(--semi-color-fill-1)}.semi-tree-option-list-block .semi-tree-option-label{flex:1}.semi-tree-option-list-block .semi-tree-option-active,.semi-tree-option-list-block .semi-tree-option-active:hover,.semi-tree-option-list-block .semi-tree-option-active:active{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list-block .semi-tree-option-active .semi-tree-option-label-text{background-color:transparent}.semi-tree-option-list-block .semi-tree-option-expand-icon{flex-shrink:0;box-sizing:content-box}.semi-tree-option-list-block .semi-tree-option-expand-icon:hover{color:var(--semi-color-text-0)}.semi-tree-option-list-block .semi-tree-option-expand-icon:active{color:var(--semi-color-black)}.semi-tree-option-list-block .semi-tree-option-spin-icon{display:flex;line-height:0;color:var(--semi-color-primary)}.semi-tree-option-list-block .semi-tree-option-spin-icon svg{width:12px;height:12px}.semi-tree-option-list-block .semi-tree-option-selected{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list-block .semi-tree-option-selected .semi-tree-option-label,.semi-tree-option-list-block .semi-tree-option-selected .semi-tree-option-label:hover,.semi-tree-option-list-block .semi-tree-option-selected .semi-tree-option-label:active,.semi-tree-option-list-block .semi-tree-option-selected .semi-checkbox-addon{background-color:transparent}.semi-tree-option-list-block .semi-tree-option-selected:hover,.semi-tree-option-list-block .semi-tree-option-selected:active{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list-block .semi-tree-option-label-text,.semi-tree-option-list-block .semi-tree-option .semi-checkbox-addon{padding:0;border-radius:var(--semi-border-radius-small)}.semi-tree-option-list-block .semi-tree-option-label-text:hover,.semi-tree-option-list-block .semi-tree-option .semi-checkbox-addon:hover,.semi-tree-option-list-block .semi-tree-option-label-text:active,.semi-tree-option-list-block .semi-tree-option .semi-checkbox-addon:active{background-color:transparent}.semi-tree-option-list-block .semi-tree-option-label-text{width:0}.semi-tree-option-list-block .semi-tree-option-empty:hover,.semi-tree-option-list-block .semi-tree-option-empty:active{background-color:transparent}.semi-rtl .semi-tree,.semi-popover-rtl .semi-tree,.semi-rtl .semi-tree-wrapper,.semi-popover-rtl .semi-tree-wrapper,.semi-rtl .semi-tree-option-list,.semi-popover-rtl .semi-tree-option-list{direction:rtl}.semi-rtl .semi-tree-option-list .semi-tree-option-expand-icon,.semi-rtl .semi-tree-option-list .semi-tree-option-empty-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-expand-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-empty-icon{margin-right:0;margin-left:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-label>.semi-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-label>.semi-icon{margin-right:0;margin-left:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-label .semi-checkbox,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-label .semi-checkbox{margin-right:0;margin-left:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-collapsed .semi-tree-option-expand-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-collapsed .semi-tree-option-expand-icon{transform:rotate(90deg)}.semi-rtl .semi-tree-option-list .semi-tree-option-level-1,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-1{padding-left:0;padding-right:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-2,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-2{padding-left:0;padding-right:28px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-3,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-3{padding-left:0;padding-right:48px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-4,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-4{padding-left:0;padding-right:68px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-5,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-5{padding-left:0;padding-right:88px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-6,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-6{padding-left:0;padding-right:108px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-7,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-7{padding-left:0;padding-right:128px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-8,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-8{padding-left:0;padding-right:148px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-9,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-9{padding-left:0;padding-right:168px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-10,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-10{padding-left:0;padding-right:188px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-11,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-11{padding-left:0;padding-right:208px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-12,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-12{padding-left:0;padding-right:228px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-13,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-13{padding-left:0;padding-right:248px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-14,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-14{padding-left:0;padding-right:268px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-15,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-15{padding-left:0;padding-right:288px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-16,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-16{padding-left:0;padding-right:308px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-17,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-17{padding-left:0;padding-right:328px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-18,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-18{padding-left:0;padding-right:348px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-19,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-19{padding-left:0;padding-right:368px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-20,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-20{padding-left:0;padding-right:388px}.semi-rtl .semi-tree-option-list .semi-tree-option-label-empty,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-label-empty{padding-left:auto;padding-right:0}.semi-rtl .semi-tree-option-list-block,.semi-popover-rtl .semi-tree-option-list-block{direction:rtl}.semi-tree-select{box-sizing:border-box;border-radius:var(--semi-border-radius-small);border:1px solid transparent;min-width:80px;min-height:32px;line-height:32px;font-weight:400;background-color:var(--semi-color-fill-0);display:inline-flex;align-items:center;position:relative;cursor:pointer}.semi-tree-select:hover{background-color:var(--semi-color-fill-1);border:1px solid transparent}.semi-tree-select:focus{border:1px solid var(--semi-color-focus-border);background-color:var(--semi-color-fill-0);outline:0}.semi-tree-select:active{background-color:var(--semi-color-fill-2)}.semi-tree-select-focus,.semi-tree-select-focus:hover{background-color:var(--semi-color-fill-0);border:1px solid var(--semi-color-focus-border);outline:0}.semi-tree-select-focus:active{background-color:var(--semi-color-fill-2)}.semi-tree-select-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-tree-select-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-tree-select-warning.semi-tree-select-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-tree-select-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning-light-active)}.semi-tree-select-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-tree-select-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-tree-select-error.semi-tree-select-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-tree-select-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger-light-active)}.semi-tree-select-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;background-color:var(--semi-color-disabled-fill)}.semi-tree-select-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-tree-select-disabled .semi-tree-select-selection,.semi-tree-select-disabled .semi-tree-select-selection-placeholder{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-tree-select-disabled .semi-tree-select-arrow,.semi-tree-select-disabled .semi-tree-select-prefix,.semi-tree-select-disabled .semi-tree-select-suffix{color:var(--semi-color-disabled-text)}.semi-tree-select-disabled .semi-tag{color:var(--semi-color-disabled-text);background-color:transparent}.semi-tree-select-selection{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;display:inline-flex;align-items:center;flex-wrap:wrap;flex-grow:1;overflow:hidden;padding-left:12px;padding-right:0;cursor:pointer;color:var(--semi-color-text-0);position:relative}.semi-tree-select-selection-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.semi-tree-select-selection-placeholder{color:var(--semi-color-text-2)}.semi-tree-select-selection .semi-tag-group{height:inherit;display:inline-flex;align-items:center;flex-wrap:wrap}.semi-tree-select-selection .semi-tag{margin:1px 2px}.semi-tree-select-selection-TriggerSearchItem{position:absolute;max-width:calc(100% - 12px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.semi-tree-select-selection-TriggerSearchItem-placeholder{opacity:.6}.semi-tree-select-selection-TriggerSearchItem-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper{width:100%}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-tree-select-inputTrigger .semi-input-wrapper{background:transparent}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-input-wrapper{height:100%;width:100%;border:none;background-color:transparent}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-input-wrapper-focus{border:none}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-input{padding-left:0;padding-right:0}.semi-tree-select-selection .semi-tagInput{border:hidden;background:transparent;min-height:30px}.semi-tree-select-selection .semi-tagInput-small{min-height:22px}.semi-tree-select-selection .semi-tagInput-large{min-height:38px}.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper{padding-left:4px;padding-right:4px}.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper .semi-input-wrapper .semi-input{padding-left:0}.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper .semi-input-wrapper-default,.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper .semi-input-wrapper-large{margin-top:1px;margin-bottom:1px}.semi-tree-select-multiple-tagInput-notEmpty .semi-tagInput{margin-left:-4px}.semi-tree-select-multiple-tagInput-empty .semi-tagInput{margin-left:4px}.semi-tree-select-multiple{display:inline-flex}.semi-tree-select-multiple .semi-tree-select-selection{padding-left:4px;padding-right:0}.semi-tree-select-multiple .semi-tree-select-selection-placeholder{padding-left:8px}.semi-tree-select-small{min-height:24px;line-height:24px}.semi-tree-select-large{min-height:40px;line-height:40px}.semi-tree-select-large .semi-tree-select-selection{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-tree-select-arrow{display:inline-flex;align-items:center;flex-shrink:0;height:100%;justify-content:center;width:32px;color:var(--semi-color-text-2)}.semi-tree-select-inset-label{display:inline;margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-tree-select.semi-tree-select-with-prefix{display:inline-flex;align-items:center}.semi-tree-select-arrow,.semi-tree-select-clearbtn{display:inline-flex;align-items:center;height:100%;flex-shrink:0;justify-content:center;width:32px;color:var(--semi-color-text-2)}.semi-tree-select-clearbtn:hover{color:var(--semi-color-primary-hover)}.semi-tree-select-clearbtn:active{color:var(--semi-color-primary-active)}.semi-tree-select-prefix,.semi-tree-select-suffix{display:inline;display:flex;justify-content:center;align-items:center}.semi-tree-select-prefix-text,.semi-tree-select-suffix-text{margin:0 12px}.semi-tree-select-prefix-icon,.semi-tree-select-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-tree-select-prefix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-tree-select-suffix.semi-tree-select-with-suffix .semi-tree-select-selection{padding-right:0}.semi-tree-select-prefix-search-wrapper,.semi-tree-select-suffix-search-wrapper{padding:8px 12px;border-bottom:1px solid var(--semi-color-fill-0)}.semi-tree-select-prefix-maxTagCount,.semi-tree-select-suffix-maxTagCount{color:var(--semi-color-text-2);font-size:14px}.semi-tree-select-prefix-popover,.semi-tree-select-suffix-popover{max-height:300px;overflow:auto}.semi-tree-select-popover .semi-tree-wrapper{height:100%;display:flex;flex-direction:column}.semi-tree-select-popover .semi-tree-wrapper .semi-tree-option-list{flex:1;min-width:230px}.semi-tree-select-popover .semi-tree-wrapper .semi-tree-search-wrapper{border-bottom:1px var(--semi-color-fill-0) solid}.semi-tree-select-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-tree-select-borderless:not(:focus-within):not(:hover) .semi-tree-select-arrow{opacity:0}.semi-tree-select-borderless:focus-within:not(:active){background-color:transparent}.semi-tree-select-borderless.semi-tree-select-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-tree-select-borderless.semi-tree-select-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-tree-select-borderless.semi-tree-select-error:focus-within{border-color:var(--semi-color-danger)}.semi-tree-select-borderless.semi-tree-select-warning:focus-within{border-color:var(--semi-color-warning)}.semi-rtl .semi-tree-select,.semi-portal-rtl .semi-tree-select{direction:rtl}.semi-rtl .semi-tree-select .semi-tagInput .semi-input,.semi-portal-rtl .semi-tree-select .semi-tagInput .semi-input{padding-right:0}.semi-rtl .semi-tree-select-multiple-tagInput-notEmpty .semi-tagInput,.semi-portal-rtl .semi-tree-select-multiple-tagInput-notEmpty .semi-tagInput{margin-left:0;margin-right:-4px}.semi-rtl .semi-tree-select-multiple-tagInput-empty .semi-tagInput,.semi-portal-rtl .semi-tree-select-multiple-tagInput-empty .semi-tagInput{margin-left:0;margin-right:4px}.semi-rtl .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-selection{padding-right:12px;padding-left:0}.semi-rtl .semi-tree-select-multiple .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-multiple .semi-tree-select-selection{padding-left:0;padding-right:4px}.semi-rtl .semi-tree-select-multiple .semi-tree-select-selection-placeholder,.semi-portal-rtl .semi-tree-select-multiple .semi-tree-select-selection-placeholder{padding-left:0;padding-right:8px}.semi-rtl .semi-tree-select-inset-label,.semi-portal-rtl .semi-tree-select-inset-label{margin-right:0;margin-left:12px}.semi-rtl .semi-tree-select-prefix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-rtl .semi-tree-select-suffix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-prefix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-suffix.semi-tree-select-with-suffix .semi-tree-select-selection{padding-right:auto;padding-left:0}.semi-rtl .semi-tree-select-popover,.semi-portal-rtl .semi-tree-select-popover{direction:rtl}.semi-upload{display:flex;flex-wrap:wrap}.semi-upload-disabled,.semi-upload-disabled .semi-upload-file-card,.semi-upload-disabled .semi-upload-file-card-close{cursor:not-allowed}.semi-upload-disabled .semi-upload-drag-area{border:none;cursor:not-allowed}.semi-upload-disabled .semi-upload-drag-area:hover{background-color:var(--semi-color-tertiary-light-default)}.semi-upload-disabled .semi-upload-drag-area-main-text,.semi-upload-disabled .semi-upload-drag-area-sub-text,.semi-upload-disabled .semi-upload-drag-area-icon{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-upload-hidden-input,.semi-upload-hidden-input-replace{display:none}.semi-upload-add{display:flex;align-items:center}.semi-upload[x-prompt-pos=right] .semi-upload-add,.semi-upload[x-prompt-pos=right] .semi-upload-prompt{display:inline-flex}.semi-upload[x-prompt-pos=bottom] .semi-upload-add{display:flex}.semi-upload[x-prompt-pos=bottom] .semi-upload-prompt{display:flex;flex-basis:100%}.semi-upload[x-prompt-pos=bottom] .semi-upload-file-list{flex-basis:100%}.semi-upload[x-prompt-pos=left] .semi-upload-add{display:inline-flex}.semi-upload[x-prompt-pos=left] .semi-upload-prompt{display:inline-flex;order:-1}.semi-upload[x-prompt-pos=left] .semi-upload-file-list{order:2}.semi-upload-file-list{flex-basis:100%;flex-shrink:0;display:block;margin-top:8px;margin-bottom:8px}.semi-upload-file-list-main{display:flex;flex-wrap:wrap;flex-shrink:0;gap:8px;margin-bottom:8px}.semi-upload-file-list-main p{display:flex;align-items:center}.semi-upload-file-list-title{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);margin-bottom:4px}.semi-upload-file-list-title-choosen{margin-right:8px}.semi-upload-file-list-title-clear{cursor:pointer;color:var(--semi-color-primary)}.semi-upload-file-card{border-radius:var(--semi-border-radius-medium);display:inline-flex;align-items:center;justify-content:space-between;height:52px;width:250px;background-color:var(--semi-color-fill-0);cursor:pointer}.semi-upload-file-card:hover{background-color:var(--semi-color-fill-1)}.semi-upload-file-card a{text-decoration:none}.semi-upload-file-card-preview{height:36px;width:36px;color:var(--semi-color-text-2);margin:8px;display:flex;justify-content:center;align-items:center;border-radius:var(--semi-border-radius-small);flex-shrink:0}.semi-upload-file-card-preview img{width:36px;height:36px;object-fit:cover}.semi-upload-file-card-preview-placeholder{background-color:rgba(var(--semi-grey-3),1);color:rgba(var(--semi-white),1)}.semi-upload-file-card-show-pointer{cursor:pointer}.semi-upload-file-card-info{display:flex;align-items:center}.semi-upload-file-card-info-main{display:flex;flex-wrap:wrap;flex:1}.semi-upload-file-card-info-main-text{display:flex;align-items:center;flex-basis:100%}.semi-upload-file-card-info-main-control{display:flex}.semi-upload-file-card-info-name{width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;color:var(--semi-color-text-0)}.semi-upload-file-card-info-size{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;margin-left:8px;color:var(--semi-color-text-2);margin-top:1px}.semi-upload-file-card-info-replace{display:inline-flex;margin-left:8px;color:var(--semi-color-text-2)}.semi-upload-file-card-info-validate-message{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;align-items:center;color:var(--semi-color-text-0)}.semi-upload-file-card-info-retry{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-primary);cursor:pointer;margin-left:8px}.semi-upload-file-card-info .semi-progress{flex-basis:100%;margin-top:4px}.semi-upload-file-card-close{margin-left:8px;margin-right:8px;flex-shrink:0}.semi-upload-file-card-replace{margin-left:8px;width:24px;flex-shrink:0}.semi-upload-file-card-icon-loading,.semi-upload-file-card-icon-error{font-size:11px;margin-right:2px}.semi-upload-file-card-icon-error{position:relative;top:-1px}.semi-upload-file-card-icon-loading{line-height:0}.semi-upload-file-card-icon-loading .semi-spin-wrapper svg{height:11px;width:11px}.semi-upload-file-card-fail{background-color:var(--semi-color-danger-light-default)}.semi-upload-file-card-fail:hover{background-color:var(--semi-color-danger-light-hover)}.semi-upload-file-card-fail .semi-upload-file-card-info-validate-message{color:var(--semi-color-danger)}.semi-upload-picture{display:flex}.semi-upload-picture[x-prompt-pos=bottom]{flex-direction:column}.semi-upload-picture[x-prompt-pos=bottom] .semi-upload-prompt,.semi-upload-picture[x-prompt-pos=right] .semi-upload-prompt{order:1}.semi-upload-picture-add{background-color:var(--semi-color-fill-0);height:96px;width:96px;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;border:2px dashed var(--semi-color-border);color:var(--semi-color-tertiary);border-radius:var(--semi-border-radius-small);cursor:pointer}.semi-upload-picture-add:hover{background-color:var(--semi-color-fill-1)}.semi-upload-picture-add:active{background-color:var(--semi-color-fill-2)}.semi-upload-picture-add-disabled{cursor:not-allowed}.semi-upload-picture-add-disabled:hover,.semi-upload-picture-add-disabled:active{background-color:var(--semi-color-fill-0)}.semi-upload-picture-file-list{flex-basis:inherit;margin-top:0;margin-bottom:0}.semi-upload-picture-file-card{display:flex;align-items:center;justify-content:center;height:96px;width:96px;border-radius:var(--semi-border-radius-small);position:relative;overflow:hidden}.semi-upload-picture-file-card img{height:96px;width:96px;object-fit:cover;border-radius:var(--semi-border-radius-small)}.semi-upload-picture-file-card-close{visibility:hidden;display:inline-flex;position:absolute;top:8px;right:8px;border-radius:var(--semi-border-radius-circle);cursor:pointer;transition:all 0s}.semi-upload-picture-file-card-icon-close{font-size:16px;color:var(--semi-color-white)}.semi-upload-picture-file-card:before{visibility:hidden;background-color:var(--semi-color-overlay-bg);content:"";position:absolute;left:0;right:0;top:0;bottom:0}.semi-upload-picture-file-card-retry{visibility:hidden;background-color:var(--semi-color-white);width:24px;height:24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--semi-color-primary);border-radius:var(--semi-border-radius-circle);display:flex;align-items:center;justify-content:center;cursor:pointer}.semi-upload-picture-file-card-icon-retry{transform:scaleX(-1);font-size:13px}.semi-upload-picture-file-card-replace{visibility:hidden;display:inline-flex;position:absolute;cursor:pointer;top:50%;left:50%;color:var(--semi-color-white);transform:translate3D(-50%,-50%,0)}.semi-upload-picture-file-card-preview{visibility:hidden;display:inline-flex;position:absolute;cursor:pointer;top:50%;left:50%;transform:translate3D(-50%,-50%,0)}.semi-upload-picture-file-card-preview-fallback{background-color:var(--semi-color-fill-0);border:2px var(--semi-color-border);color:var(--semi-color-tertiary);border-radius:var(--semi-border-radius-small)}.semi-upload-picture-file-card-pic-info{display:inline-flex;box-sizing:border-box;justify-content:space-between;align-items:center;position:absolute;width:100%;height:24px;padding:0 10px;bottom:0;left:0;color:var(--semi-color-white);font-size:12px;font-weight:600;background:linear-gradient(0deg,rgba(22,22,26,.3) 0%,rgba(22,22,26,0) 77.08%)}.semi-upload-picture-file-card-icon-loading,.semi-upload-picture-file-card-icon-error{position:absolute;bottom:6px;right:6px;color:var(--semi-color-danger)}.semi-upload-picture-file-card-icon-loading{font-size:14px}.semi-upload-picture-file-card-show-pointer{cursor:pointer}.semi-upload-picture-file-card-error{outline:1px solid var(--semi-color-danger)}.semi-upload-picture-file-card:hover:before{visibility:visible}.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-close,.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-replace,.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-retry,.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-preview{visibility:visible}.semi-upload-picture-file-card-uploading:before{visibility:visible}.semi-upload-picture-file-card .semi-progress-circle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.semi-upload-drag-area{border-radius:var(--semi-border-radius-small);border:2px dashed var(--semi-color-border);width:100%;padding:12px;background-color:var(--semi-color-tertiary-light-default);display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer}.semi-upload-drag-area:hover{background-color:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary)}.semi-upload-drag-area-custom{border:none;padding:0;background-color:inherit}.semi-upload-drag-area-custom:hover{background-color:inherit}.semi-upload-drag-area-legal{background-color:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary)}.semi-upload-drag-area-legal .semi-upload-drag-area-sub-text{display:none}.semi-upload-drag-area-icon{color:var(--semi-color-primary)}.semi-upload-drag-area-text{text-align:center}.semi-upload-drag-area-main-text{cursor:pointer;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;margin-bottom:4px;color:var(--semi-color-text-0)}.semi-upload-drag-area-main-text:hover,.semi-upload-drag-area-main-text:active{color:var(--semi-color-text-0)}.semi-upload-drag-area-sub-text{cursor:pointer;font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-0)}.semi-upload-drag-area-sub-text:hover,.semi-upload-drag-area-sub-text:active{color:var(--semi-color-text-0)}.semi-upload-drag-area-tips{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600}.semi-upload-drag-area-tips-legal{color:var(--semi-color-primary)}.semi-upload-validate-message{flex-basis:100%;flex-shrink:0;display:block;color:var(--semi-color-danger)}.semi-rtl .semi-upload,.semi-portal-rtl .semi-upload{direction:rtl}.semi-rtl .semi-upload-file-list-title-choosen,.semi-portal-rtl .semi-upload-file-list-title-choosen{margin-right:0;margin-left:8px}.semi-rtl .semi-upload-file-list-title-choosen,.semi-rtl .semi-upload-file-list-title-clear,.semi-portal-rtl .semi-upload-file-list-title-choosen,.semi-portal-rtl .semi-upload-file-list-title-clear{display:inline-block}.semi-rtl .semi-upload-file-card-info-size,.semi-portal-rtl .semi-upload-file-card-info-size,.semi-rtl .semi-upload-file-card-info-retry,.semi-portal-rtl .semi-upload-file-card-info-retry{margin-left:0;margin-right:8px}.semi-rtl .semi-upload-file-card-icon-loading,.semi-rtl .semi-upload-file-card-icon-error,.semi-portal-rtl .semi-upload-file-card-icon-loading,.semi-portal-rtl .semi-upload-file-card-icon-error{margin-right:0;margin-left:2px}.semi-rtl .semi-upload-picture-file-card-close,.semi-portal-rtl .semi-upload-picture-file-card-close{right:auto;left:8px}.semi-rtl .semi-upload-picture-file-card .semi-progress-circle,.semi-portal-rtl .semi-upload-picture-file-card .semi-progress-circle,.semi-rtl .semi-upload-picture-file-card-retry,.semi-portal-rtl .semi-upload-picture-file-card-retry{left:auto;right:50%;transform:translate(50%,-50%)}.semi-rtl .semi-upload-picture-file-card-icon-loading,.semi-rtl .semi-upload-picture-file-card-icon-error,.semi-portal-rtl .semi-upload-picture-file-card-icon-loading,.semi-portal-rtl .semi-upload-picture-file-card-icon-error{right:0;left:6px}.semi-form .semi-form-field{box-sizing:border-box}.semi-form-horizontal{display:flex;flex-wrap:wrap}.semi-form-horizontal .semi-form-field{margin-left:0;padding-right:16px}.semi-form-horizontal .semi-form-field:last-child{margin-right:16px}.semi-form-horizontal .semi-form-field-group{padding-right:16px}.semi-form-horizontal .semi-row{display:block}.semi-form-vertical .semi-form-field{margin:0;padding-top:12px;padding-bottom:12px;overflow:hidden}.semi-form-vertical .semi-form-field .semi-form-col-right{display:flex;justify-content:flex-end}.semi-form-vertical .semi-form-field .semi-form-col-left{display:flex;justify-content:flex-start}.semi-form-vertical .semi-form-field-group .semi-form-col-right{display:flex;justify-content:flex-end}.semi-form-vertical .semi-form-field-group .semi-form-col-left{display:flex;justify-content:flex-start}.semi-form-field-label{box-sizing:border-box;font-weight:600;color:var(--semi-color-text-0);margin-bottom:4px;margin-top:0;padding-right:16px;display:inline-block;vertical-align:middle;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;flex-shrink:0}.semi-form-field-label-disabled{color:var(--semi-color-disabled-text)}.semi-form-field-label-with-extra .semi-form-field-label-text{display:inline-block}.semi-form-field-label-with-extra .semi-form-field-label-extra{display:flex;align-items:center;margin-left:4px}.semi-form-field-label-required .semi-form-field-label-text:after{content:"*";margin-left:4px;color:var(--semi-color-danger);font-weight:600}.semi-form-field-label-required-disabled{color:var(--semi-color-danger)}.semi-form-field-label-optional-text{color:var(--semi-color-tertiary)}.semi-form-field-label-left{text-align:left}.semi-form-field-label-right{text-align:right}.semi-form-field-error-message,.semi-form-field-help-text{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;align-items:center;margin-top:4px}.semi-form-field-error-message .semi-icon-alert_triangle,.semi-form-field-help-text .semi-icon-alert_triangle{color:var(--semi-color-warning)}.semi-form-field-error-message{color:var(--semi-color-danger)}.semi-form-field[x-label-pos=top] .semi-form-field-label{display:block}.semi-form-field[x-label-pos=top] .semi-checkboxGroup,.semi-form-field[x-label-pos=top] .semi-radioGroup{padding-top:4px;padding-bottom:4px}.semi-form-field[x-label-pos=top] .semi-form-field-label-with-extra{display:flex;align-items:center}.semi-form-field[x-label-pos=left]{display:flex}.semi-form-field[x-label-pos=left] .semi-form-field-label{margin-bottom:0;margin-right:0;padding-top:6px;padding-bottom:6px}.semi-form-field[x-label-pos=left] .semi-form-field-label-with-extra{display:flex;align-items:center}.semi-form-field[x-label-pos=left] .semi-checkboxGroup,.semi-form-field[x-label-pos=left] .semi-radioGroup{padding-top:6px;padding-bottom:6px}.semi-form-field[x-label-pos=left] .semi-radioGroup-buttonRadio{padding-top:0;padding-bottom:0}.semi-form-field[x-label-pos=left] .semi-switch,.semi-form-field[x-label-pos=left] .semi-rating{vertical-align:middle;margin-top:4px;margin-bottom:4px}.semi-form-field[x-extra-pos=middle] .semi-form-field-extra{margin-top:4px;margin-bottom:4px}.semi-form-field[x-extra-pos=bottom] .semi-form-field-extra{margin-top:4px}.semi-form-field-main{width:100%}.semi-form-field-validate-status-icon{margin-right:4px;flex-shrink:0;align-self:flex-start;position:relative;top:2px}.semi-form-field-extra{color:var(--semi-color-tertiary)}.semi-form-field-extra-string{color:var(--semi-color-tertiary);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-form-vertical .semi-form-field-group{margin-top:0;margin-bottom:0;padding-top:12px;padding-bottom:12px;overflow:hidden}.semi-form-vertical .semi-form-field-group .semi-form-field{margin-top:0;margin-bottom:0}.semi-form-field-group[x-label-pos=left]{display:flex}.semi-form-field-group[x-label-pos=left] .semi-form-field-label{margin-bottom:0;margin-right:0;padding-top:6px;padding-bottom:6px}.semi-form-section{width:100%;margin-top:28px}.semi-form-section-text{margin-block-start:0;margin-block-end:0;font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;width:100%;padding-bottom:8px;padding-top:0;border-bottom:1px solid var(--semi-color-border);margin-bottom:4px;margin-top:0;color:var(--semi-color-text-0)}.semi-form-section:nth-of-type(1){margin-top:0}.semi-rtl .semi-form,.semi-portal-rtl .semi-form{direction:rtl}.semi-rtl .semi-form-horizontal .semi-form-field,.semi-portal-rtl .semi-form-horizontal .semi-form-field{margin-left:0;margin-right:0;padding-right:0;padding-left:16px}.semi-rtl .semi-form-horizontal .semi-form-field:last-child,.semi-portal-rtl .semi-form-horizontal .semi-form-field:last-child{margin-left:16px}.semi-rtl .semi-form-horizontal .semi-form-field-group,.semi-portal-rtl .semi-form-horizontal .semi-form-field-group,.semi-rtl .semi-form-field-label,.semi-portal-rtl .semi-form-field-label{padding-right:0;padding-left:16px}.semi-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra,.semi-portal-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra{margin-left:0;margin-right:4px}.semi-rtl .semi-form-field-label-required .semi-form-field-label-text:after,.semi-portal-rtl .semi-form-field-label-required .semi-form-field-label-text:after{content:"*";margin-left:0;margin-right:4px}.semi-rtl .semi-form-field-label-left,.semi-portal-rtl .semi-form-field-label-left{text-align:right}.semi-rtl .semi-form-field-label-right,.semi-portal-rtl .semi-form-field-label-right{text-align:left}.semi-rtl .semi-form-field,.semi-portal-rtl .semi-form-field{direction:rtl}.semi-rtl .semi-form-field[x-label-pos=left] .semi-form-field-label,.semi-portal-rtl .semi-form-field[x-label-pos=left] .semi-form-field-label{margin-right:0;margin-left:0}.semi-rtl .semi-form-field-validate-status-icon,.semi-portal-rtl .semi-form-field-validate-status-icon{margin-right:0;margin-left:4px}.semi-rtl .semi-form-section,.semi-portal-rtl .semi-form-section{direction:rtl}._main_1w0iy_1{width:100vw;height:100vh;align-items:center;display:flex;justify-content:center}._main_1w0iy_1 ._login_1w0iy_8{align-items:center;background:var(--semi-color-bg-0);border-radius:8px;box-shadow:var(--login-shadow);display:flex;flex-direction:column;padding:48px 56px;row-gap:30px;width:440px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20{align-items:center;border-radius:8px;display:inline-flex;flex-direction:column;row-gap:24px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._logo_1w0iy_28{height:200px;width:200px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._header_1w0iy_33{align-items:center;display:inline-flex;flex-direction:column;justify-content:center;row-gap:6px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._header_1w0iy_33 ._title_1w0iy_41{color:var(--semi-color-text-0);font-size:32px;font-weight:600;line-height:44px;min-width:128px;vertical-align:middle;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._header_1w0iy_33>._text_1w0iy_50{color:var(--semi-color-text-2);font-size:16px;font-weight:400;line-height:22px;min-width:163px;vertical-align:middle;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._form_1w0iy_59{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;row-gap:28px;align-self:stretch}._main_1w0iy_1 ._login_1w0iy_8 ._form_1w0iy_59 ._inputs_1w0iy_67{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;row-gap:24px;align-self:stretch}._main_1w0iy_1 ._login_1w0iy_8 ._form_1w0iy_59 ._button_1w0iy_75{height:40px;width:440px}._main_1w0iy_1 ._login_1w0iy_8 ._oauth_1w0iy_79{align-items:center;justify-content:center;display:flex}._main_1w0iy_1 ._login_1w0iy_8 ._oauth_1w0iy_79 ._button_1w0iy_75{height:40px;width:440px}._main_1w0iy_1 ._login_1w0iy_8 ._undefined_1w0iy_88{align-items:center;justify-content:center;display:flex}._header_k9z2y_1{align-self:stretch;height:60px;width:100%;position:fixed;top:0;left:0;z-index:99}._header_k9z2y_1 ._navigationHeaderLogo_k9z2y_10{height:50px;width:50px}._header_k9z2y_1 ._dIV_k9z2y_14{align-items:center;column-gap:16px;display:inline-flex;flex-shrink:0}._header_k9z2y_1 ._dIV_k9z2y_14 ._semiIconsBell_k9z2y_20{font-size:20px;color:var(--semi-color-text-2)}._header_k9z2y_1 ._dIV_k9z2y_14 ._avatar_k9z2y_24{height:32px;width:32px}._sider_k9z2y_29{position:fixed;top:0;left:0}._sider_k9z2y_29 ._collapsed_k9z2y_34{display:flex;width:calc(100% - 16px);cursor:pointer;background-color:var(--semi-color-nav-bg);position:absolute;bottom:0;height:40px;align-items:center}._sider_k9z2y_29 ._nav_k9z2y_10::-webkit-scrollbar{display:none}._sider_k9z2y_29 ._nav_k9z2y_10{height:100vh;padding-top:60px;overflow-y:auto}._sider_k9z2y_29 ._nav_k9z2y_10 ._icon_k9z2y_52{height:20px;width:20px}._content_k9z2y_57{margin-top:60px;align-items:flex-start;display:flex;flex-basis:0;flex-direction:column;padding:20px;row-gap:24px;flex-grow:1;transition:margin-left .3s ease}._userProfile_k9z2y_69{align-items:center;display:flex;flex-direction:column;row-gap:22px;flex-shrink:0;padding-top:40px}._userProfile_k9z2y_69 ._banner_k9z2y_77{align-items:center;display:flex;flex-direction:column}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._frame4159_k9z2y_82{align-items:center;display:flex;row-gap:0}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._frame4159_k9z2y_82 ._avatar_k9z2y_24{height:72px;width:72px}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._name_k9z2y_91{align-items:center;display:inline-flex;flex-direction:column;text-align:center}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._name_k9z2y_91 ._richardHendricks_k9z2y_97{color:var(--semi-color-text-0);font-size:20px;font-weight:600;vertical-align:top;flex-shrink:0}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._name_k9z2y_91 ._aRichardHendricks_k9z2y_104{color:var(--semi-color-text-2);font-size:12px;font-weight:400;line-height:16px;vertical-align:top;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:0 38px 0 24px;row-gap:12px;align-self:stretch;text-align:left;letter-spacing:-.14px}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123{align-items:flex-start;display:inline-flex;flex-direction:column;row-gap:16px;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123 ._frame4152_k9z2y_130{align-items:center;column-gap:12px;display:inline-flex;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123 ._frame4152_k9z2y_130 ._semiIconsMapPin_k9z2y_136{font-size:24px;color:var(--semi-color-disabled-text)}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123 ._frame4152_k9z2y_130 ._value_k9z2y_140{color:var(--semi-color-text-0);font-size:14px;min-width:61px;vertical-align:top;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147{align-items:flex-start;column-gap:8px;display:inline-flex;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147 ._tag_k9z2y_147,._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147 ._tag1_k9z2y_154,._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147 ._tag2_k9z2y_155{height:24px;margin-right:5px}._description_1j0rm_1{padding:10px}._description_1j0rm_1 ._tip_1j0rm_4{display:flex}._description_1j0rm_1 ._tip_1j0rm_4 ._title_1j0rm_7{margin-right:5px}._description_1j0rm_1 ._tip_1j0rm_4 ._help_1j0rm_10{display:flex;align-items:center;justify-content:center}._description_1j0rm_1 ._linkText_1j0rm_15:hover{cursor:pointer;text-decoration:underline}._card_1j0rm_20{background-color:var(--semi-color-bg-1)}._description_1a8jp_1{padding:10px}._card_1a8jp_5{background-color:var(--semi-color-bg-1);width:100%} diff --git a/gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js b/gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js new file mode 100644 index 000000000..ad2303e36 --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js @@ -0,0 +1,169 @@ +var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|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,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/index.html b/gateway-ha/src/main/resources/static/index.html new file mode 100644 index 000000000..0aeab3374 --- /dev/null +++ b/gateway-ha/src/main/resources/static/index.html @@ -0,0 +1,14 @@ + + + + + + + Trino Gateway + + + + +
+ + diff --git a/gateway-ha/src/main/resources/static/logo.svg b/gateway-ha/src/main/resources/static/logo.svg new file mode 100644 index 000000000..a562a957a --- /dev/null +++ b/gateway-ha/src/main/resources/static/logo.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java index 3b8a2d375..d8d173161 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java +++ b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java @@ -13,9 +13,9 @@ */ package io.trino.gateway; +import io.airlift.log.Logger; +import io.airlift.log.Logging; import io.trino.gateway.ha.HaGatewayLauncher; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.testcontainers.containers.MySQLContainer; import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.containers.TrinoContainer; @@ -31,6 +31,9 @@ private TrinoGatewayRunner() {} public static void main(String[] args) throws Exception { + Logging.initialize(); + Logger log = Logger.get(TrinoGatewayRunner.class); + TrinoContainer trino1 = new TrinoContainer("trinodb/trino:395"); trino1.setPortBindings(List.of("8081:8080")); trino1.start(); @@ -58,7 +61,6 @@ public static void main(String[] args) HaGatewayLauncher.main(new String[]{"server", "gateway-ha/gateway-ha-config.yml"}); - Logger log = LoggerFactory.getLogger(TrinoGatewayRunner.class); log.info("======== SERVER STARTED ========"); } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java index 9daa55053..126130388 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java @@ -15,6 +15,7 @@ import com.github.tomakehurst.wiremock.WireMockServer; import com.github.tomakehurst.wiremock.client.WireMock; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.DataStoreConfiguration; import io.trino.gateway.ha.persistence.JdbcConnectionManager; import okhttp3.MediaType; @@ -24,8 +25,6 @@ import okhttp3.Response; import org.javalite.activejdbc.Base; import org.jdbi.v3.core.Jdbi; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.io.File; import java.io.FileWriter; @@ -40,7 +39,7 @@ public class HaGatewayTestUtils { - private static final Logger log = LoggerFactory.getLogger(HaGatewayTestUtils.class); + private static final Logger log = Logger.get(HaGatewayTestUtils.class); private static final OkHttpClient httpClient = new OkHttpClient(); private static final Random RANDOM = new Random(); @@ -90,7 +89,7 @@ public static TestConfig buildGatewayConfigAndSeedDb(int routerPort, String conf FileWriter fw = new FileWriter(target, UTF_8); fw.append(configStr); fw.flush(); - log.info("Test Gateway Config \n[{}]", configStr); + log.info("Test Gateway Config \n[%s]", configStr); TestConfig testConfig = new TestConfig(target.getAbsolutePath(), tempH2DbDir.getAbsolutePath()); seedRequiredData(testConfig); return testConfig; diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java index de42b3f48..47c93a3ec 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.security; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.LdapConfiguration; import org.apache.directory.api.ldap.model.message.SearchScope; import org.apache.directory.ldap.client.template.LdapConnectionTemplate; @@ -26,8 +27,6 @@ import org.mockito.Mockito; import org.mockito.Spy; import org.mockito.junit.jupiter.MockitoExtension; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.any; @@ -36,7 +35,7 @@ @ExtendWith(MockitoExtension.class) public class LbLdapClientTest { - private static final Logger log = LoggerFactory.getLogger(LbLdapClientTest.class); + private static final Logger log = Logger.get(LbLdapClientTest.class); @Mock LdapConnectionTemplate ldapConnectionTemplate; @Spy @@ -135,7 +134,7 @@ public void testMemberof() //Success case String ret = lbLdapClient.getMemberOf(user); - log.info("ret is {}", ret); + log.info("ret is %s", ret); assertThat(ret).isEqualTo("Admin,User"); org.mockito.Mockito diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java index 2662d32d8..f4a0553d2 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java @@ -16,6 +16,7 @@ import com.auth0.jwt.JWT; import com.auth0.jwt.interfaces.Claim; import com.google.common.collect.ImmutableMap; +import io.airlift.log.Logger; import io.dropwizard.auth.basic.BasicCredentials; import io.trino.gateway.ha.config.FormAuthConfiguration; import io.trino.gateway.ha.config.SelfSignKeyPairConfiguration; @@ -28,8 +29,6 @@ import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.TestInstance.Lifecycle; import org.mockito.Mockito; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.HashMap; import java.util.Map; @@ -42,7 +41,7 @@ @TestInstance(Lifecycle.PER_CLASS) public class TestLbAuthenticator { - private static final Logger log = LoggerFactory.getLogger(TestLbAuthenticator.class); + private static final Logger log = Logger.get(TestLbAuthenticator.class); private static final String USER = "username"; private static final Optional MEMBER_OF = Optional.of("PVFX_DATA_31"); @@ -140,7 +139,7 @@ public void testLogout() { Response response = logOut(); NewCookie cookie = response.getCookies().get(OAUTH_ID_TOKEN); - log.info("value {}", cookie.getValue()); + log.info("value %s", cookie.getValue()); assertThat(cookie.getValue()).isEqualTo("logout"); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthorizer.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthorizer.java index 2f9658cbd..7c9859a3e 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthorizer.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthorizer.java @@ -13,11 +13,10 @@ */ package io.trino.gateway.ha.security; +import io.airlift.log.Logger; import io.trino.gateway.ha.config.AuthorizationConfiguration; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import java.util.Optional; import java.util.regex.PatternSyntaxException; @@ -26,7 +25,7 @@ public class TestLbAuthorizer { - private static final Logger log = LoggerFactory.getLogger(TestLbAuthorizer.class); + private static final Logger log = Logger.get(TestLbAuthorizer.class); private static final String USER = "username"; private static final String ADMIN_ROLE = "ADMIN"; @@ -73,7 +72,7 @@ static void assertNotMatch(String role) static void assertBadPattern(String role) { - log.info("Configured bad regex pattern for role [{}]", role); + log.info("Configured bad regex pattern for role [%s]", role); try { assertNotMatch(role); } diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index 1dae38d27..8983890ed 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -25,3 +25,6 @@ managedApps: extraWhitelistPaths: - "/v1/custom" + +logging: + type: external From 0b64b05cb30054396bdaea3321072cd5465b1d5c Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Wed, 6 Mar 2024 16:01:01 -0800 Subject: [PATCH 016/148] Add template for pull request details --- .github/pull_request_template.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 000000000..0f3ed7334 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,21 @@ + + +## Description + + + + +## Additional context and related issues + + + + +## Release notes + +( ) This is not user-visible or is docs only, and no release notes are required. +( ) Release notes are required. Please propose a release note for me. +( ) Release notes are required, with the following suggested text: + +```markdown +* +``` From 4943cfc949427828819af7ac06c69e840b6b4670 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Thu, 7 Mar 2024 22:17:02 +0900 Subject: [PATCH 017/148] Remove unused code --- .../io/trino/gateway/baseapp/BaseApp.java | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 21ece88d8..2bd7fb1e5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -51,9 +51,7 @@ * #addModules} method. * *

Packages supplied in the constructor will be scanned for Resources, Tasks, Providers, - * Healthchecks and Managed classes, and added to the environment. If you need to add anything to - * the environment, or access the Injector at run time, you can use the {@link #applicationAtRun} - * method. + * Healthchecks and Managed classes, and added to the environment. * *

GuiceApplication also makes {@link com.codahale.metrics.MetricRegistry} available for * injection. @@ -65,7 +63,6 @@ public abstract class BaseApp private final Reflections reflections; private final ImmutableList.Builder appModules = ImmutableList.builder(); - private Injector injector; protected BaseApp(String... basePackages) { @@ -107,10 +104,6 @@ public void initialize(Bootstrap bootstrap) /** * When the application runs, this is called after the bundles are run. * - *

You generally don't want to override this but if you do, make sure to call up into super to - * allow the app to configure its Guice wiring correctly and apply anything you set up in {@link - * #applicationAtRun}. - * * @param configuration the parsed {@link Configuration} object * @param environment the application's {@link Environment} * @throws Exception if something goes wrong @@ -120,34 +113,16 @@ public void run(T configuration, Environment environment) throws Exception { ((DefaultServerFactory) configuration.getServerFactory()).setRequestLogFactory(new GatewayRequestLogFactory()); - this.injector = configureGuice(configuration, environment); - logger.info("op=configure_guice injector=%s", injector); - applicationAtRun(configuration, environment, injector); - logger.info("op=configure_app_custom completed"); + configureGuice(configuration, environment); } - /** - * Access the Dropwizard {@link Environment} and/or the Guice {@link Injector} when the - * application is run. Override it to add providers, resources, etc. for your application as an - * alternative to accessing {@link #run} . - * - * @param configuration the app configuration - * @param environment the Dropwizard {@link Environment} - * @param injector the Guice {@link Injector} - */ - protected void applicationAtRun(T configuration, Environment environment, Injector injector) - { - } - - private Injector configureGuice(T configuration, Environment environment) - throws Exception + private void configureGuice(T configuration, Environment environment) { appModules.add(new MetricRegistryModule(environment.metrics())); appModules.addAll(addModules(configuration, environment)); Injector injector = Guice.createInjector(appModules.build()); injector.injectMembers(this); registerWithInjector(configuration, environment, injector); - return injector; } private void registerWithInjector(T configuration, Environment environment, Injector injector) From 4811ab6055f8dbe92bf16ab6c690a7325d7dd13c Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Sat, 9 Mar 2024 14:49:20 +0900 Subject: [PATCH 018/148] Remove redundant code --- .../java/io/trino/gateway/baseapp/AppModule.java | 3 --- .../main/java/io/trino/gateway/baseapp/BaseApp.java | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java index 55947f8d1..95192284e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java @@ -33,9 +33,6 @@ public AppModule(T config, E env) this.environment = env; } - @Override - protected void configure() {} - protected int getApplicationPort() { Stream connectors = diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 2bd7fb1e5..d30c766dd 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -24,7 +24,6 @@ import io.dropwizard.core.Application; import io.dropwizard.core.Configuration; import io.dropwizard.core.server.DefaultServerFactory; -import io.dropwizard.core.setup.Bootstrap; import io.dropwizard.core.setup.Environment; import io.dropwizard.lifecycle.Managed; import io.dropwizard.lifecycle.setup.LifecycleEnvironment; @@ -90,17 +89,6 @@ protected BaseApp(String... basePackages) @Override // Using Airlift logger protected void bootstrapLogging() {} - /** - * Initializes the application bootstrap. - * - * @param bootstrap the application bootstrap - */ - @Override - public void initialize(Bootstrap bootstrap) - { - super.initialize(bootstrap); - } - /** * When the application runs, this is called after the bundles are run. * From 0c632f5c3a6062557120985aa82f44f9b9e2a803 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Tue, 5 Mar 2024 22:29:30 +0900 Subject: [PATCH 019/148] Update airbase to 151 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9f577e84d..501a756f2 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.airlift airbase - 149 + 151 io.trino.gateway From ebde27ec66fb3c0e9b0e36e32edea52a5d056f78 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Sat, 9 Mar 2024 22:27:15 +0900 Subject: [PATCH 020/148] Cleanup pom.xml --- gateway-ha/pom.xml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 5421039f5..a46b7d945 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -28,7 +28,6 @@ - com.auth0 java-jwt @@ -504,6 +503,7 @@ test + @@ -542,21 +542,6 @@ - - org.apache.maven.plugins - maven-dependency-plugin - - - - - joda-time:joda-time - - - - - - - maven-shade-plugin From f481959eb93a6af73b7ab97321aed07e3830e17a Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Thu, 14 Mar 2024 16:33:16 +0900 Subject: [PATCH 021/148] Add .editorconfig --- .editorconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..dcd467ab5 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# top-most EditorConfig file +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = space +indent_size = 4 +ij_continuation_indent_size = 8 + +[*.md] +trim_trailing_whitespace = false + +[*.java] +ij_java_doc_align_exception_comments = false +ij_java_doc_align_param_comments = false + +[*.yml] +indent_size = 2 From 2386938eb2cb6052491e4d133dcd75ac4f22aab8 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Fri, 15 Mar 2024 07:23:12 +0900 Subject: [PATCH 022/148] Fix format and add missing final --- .../gateway/ha/config/LdapConfiguration.java | 20 +++++++++++++++---- .../ha/resource/GatewayWebAppResource.java | 10 ++++++---- .../ha/security/LbFormAuthManager.java | 4 ++-- .../gateway/ha/security/LbTokenUtil.java | 8 ++------ .../wrapper/MultiReadHttpServletRequest.java | 2 +- .../io/trino/gateway/TrinoGatewayRunner.java | 2 +- .../gateway/ha/security/TestLbTokenUtil.java | 14 ++++++------- 7 files changed, 35 insertions(+), 25 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java index 2e1b644b5..2201616e6 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java @@ -37,10 +37,22 @@ public class LdapConfiguration private Integer poolMinIdle; private boolean poolTestOnBorrow; - public LdapConfiguration(String ldapHost, Integer ldapPort, boolean useTls, boolean useSsl, String ldapAdminBindDn, - String ldapUserBaseDn, String ldapUserSearch, String ldapGroupMemberAttribute, - String ldapAdminPassword, String ldapTrustStorePath, String ldapTrustStorePassword, - Integer poolMaxIdle, Integer poolMaxTotal, Integer poolMinIdle, boolean poolTestOnBorrow) + public LdapConfiguration( + String ldapHost, + Integer ldapPort, + boolean useTls, + boolean useSsl, + String ldapAdminBindDn, + String ldapUserBaseDn, + String ldapUserSearch, + String ldapGroupMemberAttribute, + String ldapAdminPassword, + String ldapTrustStorePath, + String ldapTrustStorePassword, + Integer poolMaxIdle, + Integer poolMaxTotal, + Integer poolMinIdle, + boolean poolTestOnBorrow) { this.ldapHost = ldapHost; this.ldapPort = ldapPort; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java index a89f68765..e3befd3b0 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java @@ -67,8 +67,11 @@ public class GatewayWebAppResource private final ResourceGroupsManager resourceGroupsManager; @Inject - public GatewayWebAppResource(GatewayBackendManager gatewayBackendManager, QueryHistoryManager queryHistoryManager, - BackendStateManager backendStateManager, ResourceGroupsManager resourceGroupsManager) + public GatewayWebAppResource( + GatewayBackendManager gatewayBackendManager, + QueryHistoryManager queryHistoryManager, + BackendStateManager backendStateManager, + ResourceGroupsManager resourceGroupsManager) { this.gatewayBackendManager = requireNonNull(gatewayBackendManager, "gatewayBackendManager is null"); this.queryHistoryManager = requireNonNull(queryHistoryManager, "queryHistoryManager is null"); @@ -105,8 +108,7 @@ public Response getAllBackends() @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("/findQueryHistory") - public Response findQueryHistory(QueryHistoryRequest query, - @Context SecurityContext securityContext) + public Response findQueryHistory(QueryHistoryRequest query, @Context SecurityContext securityContext) { LbPrincipal principal = (LbPrincipal) securityContext.getUserPrincipal(); String[] roles = principal.getMemberOf().orElse("").split("_"); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java index 53ee4ed34..8846cd675 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java @@ -160,7 +160,7 @@ public List processPagePermissions(List roles) } } return roles.stream() - .flatMap(role -> Stream.of(pagePermissions.get(role).split("_"))) - .distinct().toList(); + .flatMap(role -> Stream.of(pagePermissions.get(role).split("_"))) + .distinct().toList(); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java index a23b2849a..b753fadb4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbTokenUtil.java @@ -31,9 +31,7 @@ public final class LbTokenUtil * Cookie key to pass the token. */ - private LbTokenUtil() - { - } + private LbTokenUtil() {} public static boolean validateToken(String idToken, RSAPublicKey publicKey, String issuer, Optional> audiences) { @@ -45,9 +43,7 @@ public static boolean validateToken(String idToken, RSAPublicKey publicKey, Stri } Algorithm algorithm = Algorithm.RSA256(publicKey, null); - Verification verification = - JWT.require(algorithm) - .withIssuer(issuer); + Verification verification = JWT.require(algorithm).withIssuer(issuer); audiences.ifPresent(auds -> verification.withAnyOfAudience(auds.toArray(new String[0]))); diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java index 8ea1772c3..33f94788e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java @@ -34,7 +34,7 @@ public class MultiReadHttpServletRequest extends HttpServletRequestWrapper { - private byte[] content; + private final byte[] content; private final Map headerMap = new HashMap<>(); public static void copy(InputStream in, OutputStream out) diff --git a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java index d8d173161..7e0c69298 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java +++ b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java @@ -59,7 +59,7 @@ public static void main(String[] args) mysql.setPortBindings(List.of("3306:3306")); mysql.start(); - HaGatewayLauncher.main(new String[]{"server", "gateway-ha/gateway-ha-config.yml"}); + HaGatewayLauncher.main(new String[] {"server", "gateway-ha/gateway-ha-config.yml"}); log.info("======== SERVER STARTED ========"); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbTokenUtil.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbTokenUtil.java index 730313d51..db0d427c1 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbTokenUtil.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbTokenUtil.java @@ -42,17 +42,17 @@ public class TestLbTokenUtil public void setup() { lbKeyProvider = new LbKeyProvider(new SelfSignKeyPairConfiguration( - requireNonNull(getClass().getClassLoader().getResource(rsaPrivateKey)).getFile(), - requireNonNull(getClass().getClassLoader().getResource(rsaPublicKey)).getFile())); + requireNonNull(getClass().getClassLoader().getResource(rsaPrivateKey)).getFile(), + requireNonNull(getClass().getClassLoader().getResource(rsaPublicKey)).getFile())); Map headers = java.util.Map.of("alg", "RS256"); Algorithm algorithm = Algorithm.RSA256(lbKeyProvider.getRsaPublicKey(), lbKeyProvider.getRsaPrivateKey()); idToken = JWT.create() - .withHeader(headers) - .withIssuer(SessionCookie.SELF_ISSUER_ID) - .withSubject("test") - .withAudience("test.com") - .sign(algorithm); + .withHeader(headers) + .withIssuer(SessionCookie.SELF_ISSUER_ID) + .withSubject("test") + .withAudience("test.com") + .sign(algorithm); jwt = JWT.decode(idToken); } From 93c694b75f00dd4dc81576e8c34bbd910043ade9 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Sun, 17 Mar 2024 10:57:51 +0900 Subject: [PATCH 023/148] Use JDBI for ExactMatchSourceSelectors --- .../dao/ExactMatchSourceSelectors.java | 69 ++++--------------- .../dao/ExactMatchSourceSelectorsDao.java | 48 +++++++++++++ .../ha/router/HaResourceGroupsManager.java | 64 ++++++----------- 3 files changed, 82 insertions(+), 99 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectorsDao.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java index 772626797..cee365b1c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java @@ -13,66 +13,21 @@ */ package io.trino.gateway.ha.persistence.dao; -import org.javalite.activejdbc.Model; -import org.javalite.activejdbc.annotations.Cached; -import org.javalite.activejdbc.annotations.CompositePK; -import org.javalite.activejdbc.annotations.Table; +import org.jdbi.v3.core.mapper.reflect.ColumnName; -import java.util.ArrayList; -import java.util.List; +import static java.util.Objects.requireNonNull; -import static io.trino.gateway.ha.router.ResourceGroupsManager.ExactSelectorsDetail; - -@CompositePK({"environment", "source", "query_type"}) -@Table("exact_match_source_selectors") // located in gateway-ha-persistence-*.sql -@Cached -public class ExactMatchSourceSelectors - extends Model +public record ExactMatchSourceSelectors( + @ColumnName("resource_group_id") String resourceGroupId, + @ColumnName("update_time") String updateTime, + @ColumnName("source") String source, + @ColumnName("environment") String environment, + @ColumnName("query_type") String queryType) { - private static final String resourceGroupId = "resource_group_id"; - private static final String updateTime = "update_time"; - - private static final String source = "source"; - private static final String environment = "environment"; - private static final String queryType = "query_type"; - - /** - * Returns the most specific exact-match selector for a given environment, source and query type. - * NULL values in the environment and query type fields signify wildcards. - * - * @return List of ExactMatchSourceSelectors - */ - public static List upcast( - List exactMatchSourceSelectorsList) - { - List exactSelectors = new ArrayList<>(); - for (ExactMatchSourceSelectors dao : exactMatchSourceSelectorsList) { - ExactSelectorsDetail exactSelectorDetail = new ExactSelectorsDetail(); - exactSelectorDetail.setResourceGroupId(dao.getString(resourceGroupId)); - exactSelectorDetail.setUpdateTime(dao.getString(updateTime)); - - exactSelectorDetail.setSource(dao.getString(source)); - exactSelectorDetail.setEnvironment(dao.getString(environment)); - exactSelectorDetail.setQueryType(dao.getString(queryType)); - - exactSelectors.add(exactSelectorDetail); - } - return exactSelectors; - } - - /** - * Create a new exactMatchSourceSelector. - */ - public static void create( - ExactMatchSourceSelectors model, ExactSelectorsDetail exactSelectorsDetail) + public ExactMatchSourceSelectors { - model.set(resourceGroupId, exactSelectorsDetail.getResourceGroupId()); - model.set(updateTime, exactSelectorsDetail.getUpdateTime()); - - model.set(source, exactSelectorsDetail.getSource()); - model.set(environment, exactSelectorsDetail.getEnvironment()); - model.set(queryType, exactSelectorsDetail.getQueryType()); - - model.insert(); + requireNonNull(resourceGroupId); + requireNonNull(updateTime); + requireNonNull(source); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectorsDao.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectorsDao.java new file mode 100644 index 000000000..145a62168 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectorsDao.java @@ -0,0 +1,48 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.persistence.dao; + +import io.trino.gateway.ha.router.ResourceGroupsManager; +import org.jdbi.v3.sqlobject.customizer.BindBean; +import org.jdbi.v3.sqlobject.statement.SqlQuery; +import org.jdbi.v3.sqlobject.statement.SqlUpdate; + +import java.util.List; + +public interface ExactMatchSourceSelectorsDao +{ + @SqlQuery(""" + SELECT * FROM exact_match_source_selectors + """) + List findAll(); + + @SqlQuery(""" + SELECT * FROM exact_match_source_selectors + WHERE + resource_group_id = :resourceGroupId + AND update_time = :updateTime + AND source = :source + AND environment = :environment + AND query_type = :queryType + LIMIT 1 + """) + ExactMatchSourceSelectors findFirst(@BindBean ResourceGroupsManager.ExactSelectorsDetail exactSelectors); + + @SqlUpdate(""" + INSERT INTO exact_match_source_selectors + (resource_group_id, update_time, source, environment, query_type) + VALUES (:resourceGroupId, :updateTime, :source, :environment, :queryType) + """) + void insert(@BindBean ResourceGroupsManager.ExactSelectorsDetail exactSelectors); +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java index 9e71217f2..0d6727d74 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java @@ -15,6 +15,7 @@ import io.trino.gateway.ha.persistence.JdbcConnectionManager; import io.trino.gateway.ha.persistence.dao.ExactMatchSourceSelectors; +import io.trino.gateway.ha.persistence.dao.ExactMatchSourceSelectorsDao; import io.trino.gateway.ha.persistence.dao.ResourceGroups; import io.trino.gateway.ha.persistence.dao.ResourceGroupsGlobalProperties; import io.trino.gateway.ha.persistence.dao.ResourceGroupsGlobalPropertiesDao; @@ -24,16 +25,19 @@ import java.util.ArrayList; import java.util.List; +import static com.google.common.collect.ImmutableList.toImmutableList; import static java.lang.String.format; public class HaResourceGroupsManager implements ResourceGroupsManager { private final JdbcConnectionManager connectionManager; + private final ExactMatchSourceSelectorsDao exactMatchSourceSelectorsDao; public HaResourceGroupsManager(JdbcConnectionManager connectionManager) { this.connectionManager = connectionManager; + this.exactMatchSourceSelectorsDao = connectionManager.getJdbi().onDemand(ExactMatchSourceSelectorsDao.class); } /** @@ -324,13 +328,7 @@ public void deleteGlobalProperty(String name, @Nullable String routingGroupDatab public ExactSelectorsDetail createExactMatchSourceSelector( ExactSelectorsDetail exactSelectorDetail) { - try { - connectionManager.open(); - ExactMatchSourceSelectors.create(new ExactMatchSourceSelectors(), exactSelectorDetail); - } - finally { - connectionManager.close(); - } + exactMatchSourceSelectorsDao.insert(exactSelectorDetail); return exactSelectorDetail; } @@ -340,15 +338,10 @@ public ExactSelectorsDetail createExactMatchSourceSelector( @Override public List readExactMatchSourceSelector() { - try { - connectionManager.open(); - List exactMatchSourceSelectorList = - ExactMatchSourceSelectors.findAll(); - return ExactMatchSourceSelectors.upcast(exactMatchSourceSelectorList); - } - finally { - connectionManager.close(); - } + List exactMatchSourceSelectors = exactMatchSourceSelectorsDao.findAll(); + return exactMatchSourceSelectors.stream() + .map(HaResourceGroupsManager::upcastExactSelectors) + .collect(toImmutableList()); } /** @@ -358,32 +351,8 @@ public List readExactMatchSourceSelector() public ExactSelectorsDetail getExactMatchSourceSelector( ExactSelectorsDetail exactSelectorDetail) { - try { - connectionManager.open(); - ExactMatchSourceSelectors model = - ExactMatchSourceSelectors.findFirst( - "resource_group_id = ? and update_time = ? " - + "and source = ? and environment = ? and query_type = ?", - exactSelectorDetail.getResourceGroupId(), - exactSelectorDetail.getUpdateTime(), - exactSelectorDetail.getSource(), - exactSelectorDetail.getEnvironment(), - exactSelectorDetail.getQueryType()); - - List exactMatchSourceSelectorList = new ArrayList(); - exactMatchSourceSelectorList.add(model); - - if (model == null) { - return null; - } - else { - ExactMatchSourceSelectors.upcast(exactMatchSourceSelectorList); - } - } - finally { - connectionManager.close(); - } - return exactSelectorDetail; + ExactMatchSourceSelectors exactSelector = exactMatchSourceSelectorsDao.findFirst(exactSelectorDetail); + return upcastExactSelectors(exactSelector); } public String getMatchingString(Object detail) @@ -414,4 +383,15 @@ private static List upcast(List Date: Thu, 21 Mar 2024 18:28:28 +0900 Subject: [PATCH 024/148] Update logging in quickstart-config.yaml --- docs/quickstart-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index d1ebefcff..eb0f3d11f 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -32,3 +32,6 @@ modules: managedApps: - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor + +logging: + type: external From c7fa06e39fe28237a0bfb4eba708849acdbbc026 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Mon, 18 Mar 2024 14:42:07 -0700 Subject: [PATCH 025/148] Add release notes for Trino Gateway 7 --- docs/installation.md | 3 ++- docs/release-notes.md | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index a12b4d427..8f6e6638b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -105,7 +105,8 @@ configuration YAML file. Find more information in the [routing rules documentation](routing-rules.md). -### Configure logging + +### Configure logging Path to `log.properties` must be set via `log.levels-file` JVM options like `-Dlog.levels-file=etc/log.properties`. diff --git a/docs/release-notes.md b/docs/release-notes.md index 23830b3fb..b9c04da0d 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -33,15 +33,29 @@ # Release notes +## Trino Gateway 7 (21 Mar 2024) + +[JAR file gateway-ha-7-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/7/gateway-ha-7-jar-with-dependencies.jar), +Docker container `trinodb/trino-gateway:7` + +* Replace user interface with a new modern UI. ([#116](https://github.com/trinodb/trino-gateway/pull/116)) +* Improve logging configurability. Users must update to the + [new logging configuration](./installation.md#logging). ([#260](https://github.com/trinodb/trino-gateway/pull/260)) +* Improve Trino cluster health check performance and remove authentication requirement + by using the `v1/info` endpoint. ([#264](https://github.com/trinodb/trino-gateway/pull/264)) +* Fix query id tracking based on request querystring parsing. ([#265](https://github.com/trinodb/trino-gateway/pull/265)) + +[Details about all pull requests and issues](https://github.com/trinodb/trino-gateway/issues?q=milestone%3A7+is%3Aclosed) + ## Trino Gateway 6 (16 Feb 2024) -[gateway-ha-6-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/6/gateway-ha-6-jar-with-dependencies.jar) +[JAR file gateway-ha-6-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/6/gateway-ha-6-jar-with-dependencies.jar), +Docker container `trinodb/trino-gateway:6` * Add Docker container build, publishing, and usage setup and instructions. ([#86](https://github.com/trinodb/trino-gateway/issues/86)) [Details about all pull requests and issues](https://github.com/trinodb/trino-gateway/issues?q=milestone%3A6+is%3Aclosed) - ## Trino Gateway 5 (24 Jan 2024) [gateway-ha-5-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/5/gateway-ha-5-jar-with-dependencies.jar) From ed28e530ef22ff78478a95577d7d8532a1e9a627 Mon Sep 17 00:00:00 2001 From: Martin Traverso Date: Fri, 22 Mar 2024 07:26:48 -0700 Subject: [PATCH 026/148] [maven-release-plugin] prepare release 7 --- gateway-ha/pom.xml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index a46b7d945..f07344184 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -6,7 +6,7 @@ io.trino.gateway trino-gateway-parent - 7-SNAPSHOT + 7 ../ diff --git a/pom.xml b/pom.xml index 501a756f2..8ee973093 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.trino.gateway trino-gateway-parent - 7-SNAPSHOT + 7 pom trino-gateway-parent @@ -32,7 +32,7 @@ scm:git:git://github.com/trinodb/trino-gateway.git - HEAD + 7 https://github.com/trinodb/trino-gateway From db1c8bf7b68a4e396bf6f48d23832f32805a18d9 Mon Sep 17 00:00:00 2001 From: Martin Traverso Date: Fri, 22 Mar 2024 07:26:48 -0700 Subject: [PATCH 027/148] [maven-release-plugin] prepare for next development iteration --- gateway-ha/pom.xml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index f07344184..f665c55da 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -6,7 +6,7 @@ io.trino.gateway trino-gateway-parent - 7 + 8-SNAPSHOT ../ diff --git a/pom.xml b/pom.xml index 8ee973093..787a3554f 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.trino.gateway trino-gateway-parent - 7 + 8-SNAPSHOT pom trino-gateway-parent @@ -32,7 +32,7 @@ scm:git:git://github.com/trinodb/trino-gateway.git - 7 + HEAD https://github.com/trinodb/trino-gateway From fb2a50dbe8a10da263e27419dd226e43b78ec403 Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Wed, 31 Jan 2024 18:29:13 +0100 Subject: [PATCH 028/148] Build, test and ship with JDK 21 --- .github/workflows/ci.yml | 4 ++-- .java-version | 2 +- docs/development.md | 4 ++-- docs/installation.md | 2 +- pom.xml | 5 ++--- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f51e92d02..7132c0b38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,10 @@ jobs: steps: - name: Checkout source uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Install required Java distribution uses: actions/setup-java@v3 with: - java-version: '17' + java-version: '21' distribution: 'temurin' - name: Build with Maven run: $MAVEN clean verify diff --git a/.java-version b/.java-version index e000eb894..5f39e9144 100644 --- a/.java-version +++ b/.java-version @@ -1 +1 @@ -17.0.9 +21.0 diff --git a/docs/development.md b/docs/development.md index c5b830cb4..2a229fcb1 100644 --- a/docs/development.md +++ b/docs/development.md @@ -36,7 +36,7 @@ ## Build requirements * Mac OS X or Linux -* Java 17+, 64-bit +* Java 21+, 64-bit * Docker #### Running Trino Gateway in your IDE @@ -54,7 +54,7 @@ or execute the following command: #### Locally -This project requires Java 17. Note that higher version of Java have not been +This project requires Java 21. Note that higher version of Java have not been verified and may run into unexpected issues. Run `./mvnw clean install` to build `trino-gateway`. VM options required for diff --git a/docs/installation.md b/docs/installation.md index 8f6e6638b..0fee2b91e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -49,7 +49,7 @@ Consider the following requirements for your Trino Gateway installation. ### Java -Trino Gateway requires a Java 17 runtime. Older versions of Java can not be +Trino Gateway requires a Java 21 runtime. Older versions of Java can not be used. Newer versions might work but are not tested. Verify the Java version on your system with `java -version`. diff --git a/pom.xml b/pom.xml index 787a3554f..8e182f931 100644 --- a/pom.xml +++ b/pom.xml @@ -39,9 +39,8 @@ UTF-8 UTF-8 - 17 - - 17 + 21 + 21 true true clean verify -DskipTests From 1c0e961110f2c8c082da9a45b4aff5f5b1fb4add Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 25 Mar 2024 22:52:14 +0900 Subject: [PATCH 029/148] Remove dropwizard metrics and dropwizard servlets --- gateway-ha/pom.xml | 16 ----------- .../io/trino/gateway/baseapp/BaseApp.java | 28 ++----------------- 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index f665c55da..876f9d421 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -210,27 +210,11 @@ dropwizard-request-logging - - io.dropwizard - dropwizard-servlets - - - jakarta.servlet - jakarta.servlet-api - - - - io.dropwizard.metrics metrics-core - - io.dropwizard.metrics - metrics-healthchecks - - jakarta.annotation jakarta.annotation-api diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index d30c766dd..69a9c7868 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -13,7 +13,6 @@ */ package io.trino.gateway.baseapp; -import com.codahale.metrics.health.HealthCheck; import com.google.common.collect.ImmutableList; import com.google.inject.Guice; import com.google.inject.Injector; @@ -27,7 +26,6 @@ import io.dropwizard.core.setup.Environment; import io.dropwizard.lifecycle.Managed; import io.dropwizard.lifecycle.setup.LifecycleEnvironment; -import io.dropwizard.servlets.tasks.Task; import io.trino.gateway.ha.log.GatewayRequestLogFactory; import jakarta.ws.rs.Path; import jakarta.ws.rs.ext.Provider; @@ -49,8 +47,8 @@ *

To use it, create a subclass and provide a list of modules you want to use with the {@link * #addModules} method. * - *

Packages supplied in the constructor will be scanned for Resources, Tasks, Providers, - * Healthchecks and Managed classes, and added to the environment. + *

Packages supplied in the constructor will be scanned for Resources, Providers, and Managed + * classes, and added to the environment. * *

GuiceApplication also makes {@link com.codahale.metrics.MetricRegistry} available for * injection. @@ -117,9 +115,7 @@ private void registerWithInjector(T configuration, Environment environment, Inje { logger.info("op=register_start configuration=%s", configuration.toString()); registerAuthFilters(environment, injector); - registerHealthChecks(environment, injector); registerProviders(environment, injector); - registerTasks(environment, injector); addManagedApps(configuration, environment, injector); registerResources(environment, injector); logger.info("op=register_end configuration=%s", configuration.toString()); @@ -182,26 +178,6 @@ protected List addManagedApps( return managedApps; } - private void registerTasks(Environment environment, Injector injector) - { - final Set> classes = reflections.getSubTypesOf(Task.class); - classes.forEach( - c -> { - environment.admin().addTask(injector.getInstance(c)); - logger.info("op=register type=task item=%s", c); - }); - } - - private void registerHealthChecks(Environment environment, Injector injector) - { - final Set> classes = reflections.getSubTypesOf(HealthCheck.class); - classes.forEach( - c -> { - environment.healthChecks().register(c.getSimpleName(), injector.getInstance(c)); - logger.info("op=register type=healthcheck item=%s", c); - }); - } - private void registerProviders(Environment environment, Injector injector) { final Set> classes = reflections.getTypesAnnotatedWith(Provider.class); From 702aa8e0398c46aa57f4157e516e58213fb8f304 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 27 Mar 2024 22:52:40 +0900 Subject: [PATCH 030/148] Replace WireMock with okhttp3:mockwebserver --- gateway-ha/pom.xml | 17 +++++++------- .../trino/gateway/ha/HaGatewayTestUtils.java | 22 +++++++++---------- .../ha/TestGatewayHaMultipleBackend.java | 12 +++++----- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 876f9d421..d083d09b7 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -24,6 +24,7 @@ 3.44.0 4.1.0 5.8.0 + 3.14.9 8.0.33 @@ -70,7 +71,7 @@ com.squareup.okhttp3 okhttp - 3.14.9 + ${dep.okhttp3.version} @@ -417,6 +418,13 @@ test + + com.squareup.okhttp3 + mockwebserver + ${dep.okhttp3.version} + test + + org.assertj assertj-core @@ -479,13 +487,6 @@ trino test - - - org.wiremock - wiremock - 3.3.1 - test - diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java index 126130388..592e1be80 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java @@ -13,8 +13,6 @@ */ package io.trino.gateway.ha; -import com.github.tomakehurst.wiremock.WireMockServer; -import com.github.tomakehurst.wiremock.client.WireMock; import io.airlift.log.Logger; import io.trino.gateway.ha.config.DataStoreConfiguration; import io.trino.gateway.ha.persistence.JdbcConnectionManager; @@ -23,6 +21,8 @@ import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; import org.javalite.activejdbc.Base; import org.jdbi.v3.core.Jdbi; @@ -33,6 +33,8 @@ import java.util.Random; import java.util.Scanner; +import static com.google.common.net.HttpHeaders.CONTENT_ENCODING; +import static com.google.common.net.MediaType.PLAIN_TEXT_UTF_8; import static java.nio.charset.StandardCharsets.UTF_8; import static java.util.Objects.requireNonNull; import static org.assertj.core.api.Assertions.assertThat; @@ -57,16 +59,14 @@ public static void seedRequiredData(TestConfig testConfig) } public static void prepareMockBackend( - WireMockServer backend, String endPoint, String expectedResonse) + MockWebServer backend, int customBackendPort, String expectedResonse) + throws IOException { - backend.start(); - backend.stubFor( - WireMock.post(endPoint) - .willReturn( - WireMock.aResponse() - .withBody(expectedResonse) - .withHeader("Content-Encoding", "plain") - .withStatus(200))); + backend.start(customBackendPort); + backend.enqueue(new MockResponse() + .setBody(expectedResonse) + .addHeader(CONTENT_ENCODING, PLAIN_TEXT_UTF_8) + .setResponseCode(200)); } public static TestConfig buildGatewayConfigAndSeedDb(int routerPort, String configFile) diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java index 5735f9efd..ba6bcca9e 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java @@ -14,14 +14,14 @@ package io.trino.gateway.ha; import com.fasterxml.jackson.databind.ObjectMapper; -import com.github.tomakehurst.wiremock.WireMockServer; -import com.github.tomakehurst.wiremock.core.WireMockConfiguration; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -43,8 +43,7 @@ public class TestGatewayHaMultipleBackend final int routerPort = 20000 + (int) (Math.random() * 1000); final int customBackendPort = 21000 + (int) (Math.random() * 1000); - private final WireMockServer customBackend = - new WireMockServer(WireMockConfiguration.options().port(customBackendPort)); + private final MockWebServer customBackend = new MockWebServer(); private final OkHttpClient httpClient = new OkHttpClient(); @@ -60,7 +59,7 @@ public void setup() int backend1Port = adhocTrino.getMappedPort(8080); int backend2Port = scheduledTrino.getMappedPort(8080); - HaGatewayTestUtils.prepareMockBackend(customBackend, CUSTOM_PATH, CUSTOM_RESPONSE); + HaGatewayTestUtils.prepareMockBackend(customBackend, customBackendPort, CUSTOM_RESPONSE); // seed database HaGatewayTestUtils.TestConfig testConfig = @@ -94,6 +93,9 @@ public void testCustomPath() .build(); Response response1 = httpClient.newCall(request1).execute(); assertThat(response1.body().string()).isEqualTo(CUSTOM_RESPONSE); + RecordedRequest recordedRequest = customBackend.takeRequest(); + assertThat(recordedRequest.getRequestLine()).contains("POST"); + assertThat(recordedRequest.getPath()).isEqualTo(CUSTOM_PATH); Request request2 = new Request.Builder() From e6962ebf89767bde677ab85d7d6a072ae12faae2 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 29 Mar 2024 22:06:29 +0900 Subject: [PATCH 031/148] Update OkHttp to 4.12.0 --- gateway-ha/pom.xml | 2 +- .../java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index d083d09b7..60c3640c6 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -24,7 +24,7 @@ 3.44.0 4.1.0 5.8.0 - 3.14.9 + 4.12.0 8.0.33 diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java index ba6bcca9e..a213acec5 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java @@ -94,7 +94,7 @@ public void testCustomPath() Response response1 = httpClient.newCall(request1).execute(); assertThat(response1.body().string()).isEqualTo(CUSTOM_RESPONSE); RecordedRequest recordedRequest = customBackend.takeRequest(); - assertThat(recordedRequest.getRequestLine()).contains("POST"); + assertThat(recordedRequest.getMethod()).isEqualTo("POST"); assertThat(recordedRequest.getPath()).isEqualTo(CUSTOM_PATH); Request request2 = From e624e2c1d3c5cc4d45e6cd7d9389d116f21c9817 Mon Sep 17 00:00:00 2001 From: ytwp Date: Tue, 2 Apr 2024 16:33:59 +0800 Subject: [PATCH 032/148] Fix the error caused by the missing 'audiences' configuration --- .../main/java/io/trino/gateway/ha/security/LbOAuthManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index b6867a0cc..7467f81dc 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -139,7 +139,7 @@ public Optional> getClaimsFromIdToken(String idToken) Jwk jwk = provider.get(jwt.getKeyId()); RSAPublicKey publicKey = (RSAPublicKey) jwk.getPublicKey(); - if (LbTokenUtil.validateToken(idToken, publicKey, jwt.getIssuer(), Optional.of(oauthConfig.getAudiences()))) { + if (LbTokenUtil.validateToken(idToken, publicKey, jwt.getIssuer(), Optional.ofNullable(oauthConfig.getAudiences()))) { return Optional.of(jwt.getClaims()); } } From aca7e232e09e807f7b2ca83b53730072e8c0cf72 Mon Sep 17 00:00:00 2001 From: Vishal Jadhav Date: Wed, 3 Apr 2024 09:39:26 -0400 Subject: [PATCH 033/148] Add configurable routers and query count based router --- docs/operation.md | 18 + gateway-ha/gateway-ha-config.yml | 4 + .../io/trino/gateway/baseapp/BaseApp.java | 48 +- .../clustermonitor/ActiveClusterMonitor.java | 12 +- .../ClusterStatsHttpMonitor.java | 3 +- .../ClusterStatsJdbcMonitor.java | 2 +- .../clustermonitor/ClusterStatsMonitor.java | 9 + .../clustermonitor/HealthCheckObserver.java | 5 +- .../TrinoQueueLengthChecker.java | 62 --- .../ha/config/MonitorConfiguration.java | 10 +- .../ha/module/HaGatewayProviderModule.java | 67 +-- .../module/QueryCountBasedRouterProvider.java | 40 ++ .../gateway/ha/module/RouterBaseModule.java | 70 +++ .../StochasticRoutingManagerProvider.java | 46 ++ .../ha/router/QueryCountBasedRouter.java | 234 ++++++++++ .../gateway/ha/router/RoutingManager.java | 10 +- ...ger.java => StochasticRoutingManager.java} | 6 +- .../router/TrinoQueueLengthRoutingTable.java | 403 ---------------- .../ha/router/TestQueryCountBasedRouter.java | 253 ++++++++++ ...java => TestStochasticRoutingManager.java} | 4 +- .../TestTrinoQueueLengthRoutingTable.java | 433 ------------------ 21 files changed, 741 insertions(+), 998 deletions(-) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/TrinoQueueLengthChecker.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java rename gateway-ha/src/main/java/io/trino/gateway/ha/router/{HaRoutingManager.java => StochasticRoutingManager.java} (89%) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java rename gateway-ha/src/test/java/io/trino/gateway/ha/router/{TestHaRoutingManager.java => TestStochasticRoutingManager.java} (95%) delete mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/router/TestTrinoQueueLengthRoutingTable.java diff --git a/docs/operation.md b/docs/operation.md index 655f2ccb1..e0c167f9e 100644 --- a/docs/operation.md +++ b/docs/operation.md @@ -68,3 +68,21 @@ To gracefully shutdown a single worker process, see [this](https://trino.io/docs/current/admin/graceful-shutdown.html) for the operations. +## Query routing options +- The default router selects the backend randomly to route the queries. +- If you want to route the queries to the least loaded backend for a user +i.e. backend with the least number of queries running or queued from a particular user, +then use `QueryCountBasedRouter`, it can be configured by adding the module name +to config file's modules section like below +``` +modules: + - io.trino.gateway.ha.module.HaGatewayProviderModule + - io.trino.gateway.ha.module.ClusterStateListenerModule + - io.trino.gateway.ha.module.ClusterStatsMonitorModule + - io.trino.gateway.ha.module.QueryCountBasedRouterProvider +``` +- The router works on the stats it receives from the clusters about the load i.e number queries queued and running on a cluster at regular intervals which can be configured like below. The default interval is 1 min +``` +monitor: + taskDelaySeconds: 10 +``` diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index 176ac0f0c..e6d593659 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -28,6 +28,10 @@ server: port: 8091 useForwardedHeaders: true +# This can be adjusted based on the coordinator state +monitor: + taskDelaySeconds: 10 + modules: - io.trino.gateway.ha.module.HaGatewayProviderModule - io.trino.gateway.ha.module.ClusterStateListenerModule diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 69a9c7868..2437c126e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -14,6 +14,7 @@ package io.trino.gateway.baseapp; import com.google.common.collect.ImmutableList; +import com.google.common.collect.MoreCollectors; import com.google.inject.Guice; import com.google.inject.Injector; import com.google.inject.Module; @@ -27,6 +28,8 @@ import io.dropwizard.lifecycle.Managed; import io.dropwizard.lifecycle.setup.LifecycleEnvironment; import io.trino.gateway.ha.log.GatewayRequestLogFactory; +import io.trino.gateway.ha.module.RouterBaseModule; +import io.trino.gateway.ha.module.StochasticRoutingManagerProvider; import jakarta.ws.rs.Path; import jakarta.ws.rs.ext.Provider; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; @@ -39,6 +42,7 @@ import java.util.ArrayList; import java.util.List; +import java.util.Optional; import java.util.Set; /** @@ -61,6 +65,35 @@ public abstract class BaseApp private final Reflections reflections; private final ImmutableList.Builder appModules = ImmutableList.builder(); + private AppModule newModule(String clazz, T configuration, Environment environment) + { + try { + logger.info("Trying to load module [%s]", clazz); + Object module = + Class.forName(clazz) + .getConstructor(configuration.getClass(), Environment.class) + .newInstance(configuration, environment); + return ((AppModule) module); + } + catch (Exception e) { + logger.error(e, "Could not instantiate module [%s]", clazz); + onFatalError(e); + } + return null; + } + + private void validateModules(List modules, T configuration, Environment environment) + { + Optional routerProvider = modules.stream() + .filter(module -> module instanceof RouterBaseModule) + .collect(MoreCollectors.toOptional()); + if (routerProvider.isEmpty()) { + logger.warn("Router provider doesn't exist in the config, using the StochasticRoutingManagerProvider"); + String clazz = StochasticRoutingManagerProvider.class.getCanonicalName(); + modules.add(newModule(clazz, configuration, environment)); + } + } + protected BaseApp(String... basePackages) { final ConfigurationBuilder confBuilder = new ConfigurationBuilder(); @@ -135,18 +168,11 @@ protected List addModules(T configuration, Environment environment) return modules; } for (String clazz : configuration.getModules()) { - try { - logger.info("Trying to load module [%s]", clazz); - Object ob = - Class.forName(clazz) - .getConstructor(configuration.getClass(), Environment.class) - .newInstance(configuration, environment); - modules.add((AppModule) ob); - } - catch (Exception e) { - logger.error(e, "Could not instantiate module [%s]", clazz); - } + modules.add(newModule(clazz, configuration, environment)); } + + validateModules(modules, configuration, environment); + return modules; } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java index fb16cb62d..716f69878 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java @@ -30,13 +30,14 @@ public class ActiveClusterMonitor implements Managed { - public static final int MONITOR_TASK_DELAY_MIN = 1; + public static final int MONITOR_TASK_DELAY_SECONDS = 60; public static final int DEFAULT_THREAD_POOL_SIZE = 20; private static final Logger log = Logger.get(ActiveClusterMonitor.class); private final List clusterStatsObservers; private final GatewayBackendManager gatewayBackendManager; - private final int taskDelayMin; + + private final int taskDelaySeconds; private final ClusterStatsMonitor clusterStatsMonitor; private volatile boolean monitorActive = true; private final ExecutorService executorService = Executors.newFixedThreadPool(DEFAULT_THREAD_POOL_SIZE); @@ -51,9 +52,9 @@ public ActiveClusterMonitor( { this.clusterStatsObservers = clusterStatsObservers; this.gatewayBackendManager = gatewayBackendManager; - this.taskDelayMin = monitorConfiguration.getTaskDelayMin(); + this.taskDelaySeconds = monitorConfiguration.getTaskDelaySeconds(); this.clusterStatsMonitor = clusterStatsMonitor; - log.info("Running cluster monitor with task delay of %d", taskDelayMin); + log.info("Running cluster monitor with connection task delay of %d seconds", taskDelaySeconds); } /** @@ -66,6 +67,7 @@ public void start() () -> { while (monitorActive) { try { + log.info("Getting the stats for the active clusters"); List activeClusters = gatewayBackendManager.getAllActiveBackends(); List> futures = new ArrayList<>(); @@ -90,7 +92,7 @@ public void start() log.error(e, "Error performing backend monitor tasks"); } try { - Thread.sleep(TimeUnit.MINUTES.toMillis(taskDelayMin)); + Thread.sleep(TimeUnit.SECONDS.toMillis(taskDelaySeconds)); } catch (Exception e) { log.error(e, "Error with monitor task"); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java index e2433f672..675cebd0f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java @@ -55,8 +55,7 @@ public ClusterStatsHttpMonitor(BackendStateConfiguration backendStateConfigurati @Override public ClusterStats monitor(ProxyBackendConfiguration backend) { - ClusterStats.Builder clusterStats = ClusterStats.builder(backend.getName()); - + ClusterStats.Builder clusterStats = ClusterStatsMonitor.getClusterStatsBuilder(backend); // Fetch Cluster level Stats. String response = queryCluster(backend, UI_API_STATS_PATH); if (Strings.isNullOrEmpty(response)) { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java index 130cd7450..4390f6596 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsJdbcMonitor.java @@ -56,7 +56,7 @@ public ClusterStatsJdbcMonitor(BackendStateConfiguration backendStateConfigurati public ClusterStats monitor(ProxyBackendConfiguration backend) { String url = backend.getProxyTo(); - ClusterStats.Builder clusterStats = ClusterStats.builder(backend.getName()); + ClusterStats.Builder clusterStats = ClusterStatsMonitor.getClusterStatsBuilder(backend); String jdbcUrl; try { URL parsedUrl = new URL(url); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsMonitor.java index 812690dbe..42c412105 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsMonitor.java @@ -18,4 +18,13 @@ public interface ClusterStatsMonitor { ClusterStats monitor(ProxyBackendConfiguration backend); + + static ClusterStats.Builder getClusterStatsBuilder(ProxyBackendConfiguration backend) + { + ClusterStats.Builder builder = ClusterStats.builder(backend.getName()); + builder.proxyTo(backend.getProxyTo()); + builder.externalUrl(backend.getExternalUrl()); + builder.routingGroup(backend.getRoutingGroup()); + return builder; + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java index bebabc751..216d17153 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java @@ -28,9 +28,6 @@ public HealthCheckObserver(RoutingManager routingManager) @Override public void observe(java.util.List clustersStats) { - for (ClusterStats clusterStats : clustersStats) { - routingManager.upateBackEndHealth(clusterStats.clusterId(), clusterStats.healthy()); - routingManager.updateBackEndHealthDB(clusterStats); - } + routingManager.upateBackEndStats(clustersStats); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/TrinoQueueLengthChecker.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/TrinoQueueLengthChecker.java deleted file mode 100644 index 7741e5977..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/TrinoQueueLengthChecker.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.clustermonitor; - -import com.google.common.collect.HashBasedTable; -import com.google.common.collect.Table; -import io.trino.gateway.ha.router.TrinoQueueLengthRoutingTable; - -import java.util.List; -import java.util.Map; - -/** - * Updates the QueueLength Based Routing Manager {@link TrinoQueueLengthRoutingTable} with - * updated queue lengths of active clusters. - */ -public class TrinoQueueLengthChecker - implements TrinoClusterStatsObserver -{ - TrinoQueueLengthRoutingTable routingManager; - - public TrinoQueueLengthChecker(TrinoQueueLengthRoutingTable routingManager) - { - this.routingManager = routingManager; - } - - @Override - public void observe(List stats) - { - Table clusterQueueMap = HashBasedTable.create(); - Table clusterRunningMap = HashBasedTable.create(); - Table userClusterQueuedCount = HashBasedTable.create(); - - for (ClusterStats stat : stats) { - if (!stat.healthy()) { - // Skip if the cluster isn't healthy - continue; - } - clusterQueueMap.put(stat.routingGroup(), stat.clusterId(), stat.queuedQueryCount()); - clusterRunningMap.put(stat.routingGroup(), stat.clusterId(), stat.runningQueryCount()); - - // Create inverse map from user -> {cluster-> count} - if (stat.userQueuedCount() != null && !stat.userQueuedCount().isEmpty()) { - for (Map.Entry queueCount : stat.userQueuedCount().entrySet()) { - userClusterQueuedCount.put(queueCount.getKey(), stat.clusterId(), queueCount.getValue()); - } - } - } - - routingManager.updateRoutingTable(clusterQueueMap, clusterRunningMap, userClusterQueuedCount); - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/MonitorConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/MonitorConfiguration.java index 040827635..f16ce1f7f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/MonitorConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/MonitorConfiguration.java @@ -17,17 +17,17 @@ public class MonitorConfiguration { - private int taskDelayMin = ActiveClusterMonitor.MONITOR_TASK_DELAY_MIN; + private int taskDelaySeconds = ActiveClusterMonitor.MONITOR_TASK_DELAY_SECONDS; public MonitorConfiguration() {} - public int getTaskDelayMin() + public int getTaskDelaySeconds() { - return this.taskDelayMin; + return this.taskDelaySeconds; } - public void setTaskDelayMin(int taskDelayMin) + public void setTaskDelaySeconds(int taskDelaySeconds) { - this.taskDelayMin = taskDelayMin; + this.taskDelaySeconds = taskDelaySeconds; } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 97f5c7ace..fc5f34f09 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -29,15 +29,8 @@ import io.trino.gateway.ha.config.RoutingRulesConfiguration; import io.trino.gateway.ha.config.UserConfiguration; import io.trino.gateway.ha.handler.QueryIdCachingProxyHandler; -import io.trino.gateway.ha.persistence.JdbcConnectionManager; import io.trino.gateway.ha.router.BackendStateManager; -import io.trino.gateway.ha.router.GatewayBackendManager; -import io.trino.gateway.ha.router.HaGatewayManager; -import io.trino.gateway.ha.router.HaQueryHistoryManager; -import io.trino.gateway.ha.router.HaResourceGroupsManager; -import io.trino.gateway.ha.router.HaRoutingManager; import io.trino.gateway.ha.router.QueryHistoryManager; -import io.trino.gateway.ha.router.ResourceGroupsManager; import io.trino.gateway.ha.router.RoutingGroupSelector; import io.trino.gateway.ha.router.RoutingManager; import io.trino.gateway.ha.security.ApiAuthenticator; @@ -56,7 +49,6 @@ import io.trino.gateway.proxyserver.ProxyHandler; import io.trino.gateway.proxyserver.ProxyServer; import io.trino.gateway.proxyserver.ProxyServerConfiguration; -import org.jdbi.v3.core.Jdbi; import java.util.ArrayList; import java.util.List; @@ -65,11 +57,6 @@ public class HaGatewayProviderModule extends AppModule { - private final ResourceGroupsManager resourceGroupsManager; - private final GatewayBackendManager gatewayBackendManager; - private final QueryHistoryManager queryHistoryManager; - private final RoutingManager routingManager; - private final JdbcConnectionManager connectionManager; private final LbOAuthManager oauthManager; private final LbFormAuthManager formAuthManager; private final AuthorizationManager authorizationManager; @@ -80,13 +67,6 @@ public class HaGatewayProviderModule public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment environment) { super(configuration, environment); - Jdbi jdbi = Jdbi.create(configuration.getDataStore().getJdbcUrl(), configuration.getDataStore().getUser(), configuration.getDataStore().getPassword()); - connectionManager = new JdbcConnectionManager(jdbi, configuration.getDataStore()); - resourceGroupsManager = new HaResourceGroupsManager(connectionManager); - gatewayBackendManager = new HaGatewayManager(jdbi); - queryHistoryManager = new HaQueryHistoryManager(jdbi); - routingManager = new HaRoutingManager(gatewayBackendManager, queryHistoryManager); - Map presetUsers = configuration.getPresetUsers(); oauthManager = getOAuthManager(configuration); @@ -150,7 +130,8 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c return new ChainedAuthFilter(authFilters); } - protected ProxyHandler getProxyHandler() + protected ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, + RoutingManager routingManager) { Meter requestMeter = getEnvironment() @@ -167,8 +148,8 @@ protected ProxyHandler getProxyHandler() } return new QueryIdCachingProxyHandler( - getQueryHistoryManager(), - getRoutingManager(), + queryHistoryManager, + routingManager, routingGroupSelector, getApplicationPort(), requestMeter, @@ -195,7 +176,8 @@ protected AuthFilter getAuthFilter(HaGatewayConfiguration configuration) @Provides @Singleton - public ProxyServer provideGateway() + public ProxyServer provideGateway(QueryHistoryManager queryHistoryManager, + RoutingManager routingManager) { ProxyServer gateway = null; if (getConfiguration().getRequestRouter() != null) { @@ -216,47 +198,12 @@ public ProxyServer provideGateway() routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseHeaderSize()); routerProxyConfig.setRequestBufferSize(routerConfiguration.getRequestBufferSize()); routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseBufferSize()); - ProxyHandler proxyHandler = getProxyHandler(); + ProxyHandler proxyHandler = getProxyHandler(queryHistoryManager, routingManager); gateway = new ProxyServer(routerProxyConfig, proxyHandler); } return gateway; } - @Provides - @Singleton - public ResourceGroupsManager getResourceGroupsManager() - { - return this.resourceGroupsManager; - } - - @Provides - @Singleton - public GatewayBackendManager getGatewayBackendManager() - { - return this.gatewayBackendManager; - } - - @Provides - @Singleton - public QueryHistoryManager getQueryHistoryManager() - { - return this.queryHistoryManager; - } - - @Provides - @Singleton - public RoutingManager getRoutingManager() - { - return this.routingManager; - } - - @Provides - @Singleton - public JdbcConnectionManager getConnectionManager() - { - return this.connectionManager; - } - @Provides @Singleton public LbOAuthManager getAuthenticationManager() diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java new file mode 100644 index 000000000..ce4fb8016 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java @@ -0,0 +1,40 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.module; + +import com.google.inject.Provides; +import io.dropwizard.core.setup.Environment; +import io.trino.gateway.ha.config.HaGatewayConfiguration; +import io.trino.gateway.ha.router.HaQueryHistoryManager; +import io.trino.gateway.ha.router.QueryCountBasedRouter; +import io.trino.gateway.ha.router.RoutingManager; + +public class QueryCountBasedRouterProvider + extends RouterBaseModule +{ + private final QueryCountBasedRouter routingManager; + + public QueryCountBasedRouterProvider(HaGatewayConfiguration configuration, Environment environment) + { + super(configuration, environment); + routingManager = new QueryCountBasedRouter(gatewayBackendManager, + (HaQueryHistoryManager) queryHistoryManager); + } + + @Provides + public RoutingManager getRoutingManager() + { + return this.routingManager; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java new file mode 100644 index 000000000..bb8bae8ad --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.module; + +import com.google.inject.Provides; +import io.dropwizard.core.setup.Environment; +import io.trino.gateway.baseapp.AppModule; +import io.trino.gateway.ha.config.HaGatewayConfiguration; +import io.trino.gateway.ha.persistence.JdbcConnectionManager; +import io.trino.gateway.ha.router.GatewayBackendManager; +import io.trino.gateway.ha.router.HaGatewayManager; +import io.trino.gateway.ha.router.HaQueryHistoryManager; +import io.trino.gateway.ha.router.HaResourceGroupsManager; +import io.trino.gateway.ha.router.QueryHistoryManager; +import io.trino.gateway.ha.router.ResourceGroupsManager; +import org.jdbi.v3.core.Jdbi; + +public class RouterBaseModule + extends AppModule +{ + final ResourceGroupsManager resourceGroupsManager; + final GatewayBackendManager gatewayBackendManager; + final QueryHistoryManager queryHistoryManager; + final JdbcConnectionManager connectionManager; + + public RouterBaseModule(HaGatewayConfiguration configuration, Environment environment) + { + super(configuration, environment); + Jdbi jdbi = Jdbi.create(configuration.getDataStore().getJdbcUrl(), configuration.getDataStore().getUser(), configuration.getDataStore().getPassword()); + connectionManager = new JdbcConnectionManager(jdbi, configuration.getDataStore()); + resourceGroupsManager = new HaResourceGroupsManager(connectionManager); + gatewayBackendManager = new HaGatewayManager(jdbi); + queryHistoryManager = new HaQueryHistoryManager(jdbi); + } + + @Provides + public JdbcConnectionManager getConnectionManager() + { + return this.connectionManager; + } + + @Provides + public ResourceGroupsManager getResourceGroupsManager() + { + return this.resourceGroupsManager; + } + + @Provides + public GatewayBackendManager getGatewayBackendManager() + { + return this.gatewayBackendManager; + } + + @Provides + public QueryHistoryManager getQueryHistoryManager() + { + return this.queryHistoryManager; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java new file mode 100644 index 000000000..0e322242e --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.module; + +import com.google.inject.Provides; +import io.dropwizard.core.setup.Environment; +import io.trino.gateway.ha.config.HaGatewayConfiguration; +import io.trino.gateway.ha.router.HaQueryHistoryManager; +import io.trino.gateway.ha.router.RoutingManager; +import io.trino.gateway.ha.router.StochasticRoutingManager; + +public class StochasticRoutingManagerProvider + extends RouterBaseModule +{ + private final StochasticRoutingManager routingManager; + + public StochasticRoutingManagerProvider(HaGatewayConfiguration configuration, Environment environment) + { + super(configuration, environment); + routingManager = new StochasticRoutingManager(gatewayBackendManager, + (HaQueryHistoryManager) queryHistoryManager); + } + + @Provides + public StochasticRoutingManager getHaRoutingManager() + { + return this.routingManager; + } + + @Provides + public RoutingManager getRoutingManager() + { + return getHaRoutingManager(); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java new file mode 100644 index 000000000..6f63e8f8a --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java @@ -0,0 +1,234 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package io.trino.gateway.ha.router; + +import io.trino.gateway.ha.clustermonitor.ClusterStats; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Collectors; + +public class QueryCountBasedRouter + extends StochasticRoutingManager +{ + private static final Logger log = LoggerFactory.getLogger(QueryCountBasedRouter.class); + private List clusterStats; + + List clusterStats() + { + return clusterStats; + } + + class LocalStats + { + private int runningQueryCount; + private int queuedQueryCount; + private boolean healthy; + private String proxyTo; + private String routingGroup; + private String clusterId; + private Map userQueuedCount; + + LocalStats(ClusterStats stats) + { + clusterId = stats.clusterId(); + runningQueryCount = stats.runningQueryCount(); + queuedQueryCount = stats.queuedQueryCount(); + healthy = stats.healthy(); + proxyTo = stats.proxyTo(); + routingGroup = stats.routingGroup(); + if (stats.userQueuedCount() != null) { + userQueuedCount = new HashMap(stats.userQueuedCount()); + } + } + + public String clusterId() + { + return clusterId; + } + + public int runningQueryCount() + { + return this.runningQueryCount; + } + + public void runningQueryCount(int runningQueryCount) + { + this.runningQueryCount = runningQueryCount; + } + + public int queuedQueryCount() + { + return this.queuedQueryCount; + } + + public void queuedQueryCount(int queuedQueryCount) + { + this.queuedQueryCount = queuedQueryCount; + } + + public boolean healthy() + { + return this.healthy; + } + + public void healthy(boolean healthy) + { + this.healthy = healthy; + } + + public String proxyTo() + { + return this.proxyTo; + } + + public void proxyTo(String proxyTo) + { + this.proxyTo = proxyTo; + } + + public String routingGroup() + { + return this.routingGroup; + } + + public void routingGroup(String routingGroup) + { + this.routingGroup = routingGroup; + } + + public Map userQueuedCount() + { + return this.userQueuedCount; + } + + public void userQueuedCount(Map userQueuedCount) + { + this.userQueuedCount = userQueuedCount; + } + } + + public QueryCountBasedRouter( + GatewayBackendManager gatewayBackendManager, + QueryHistoryManager queryHistoryManager) + { + super(gatewayBackendManager, queryHistoryManager); + clusterStats = new ArrayList<>(); + } + + private int compareStats(LocalStats lhs, LocalStats rhs, String user) + { + // First check if the user has any queries queued + int compareUserQueue = Integer.compare(lhs.userQueuedCount().getOrDefault(user, 0), + rhs.userQueuedCount().getOrDefault(user, 0)); + + if (compareUserQueue != 0) { + return compareUserQueue; + } + + int compareClusterQueue = Integer.compare(lhs.queuedQueryCount(), + rhs.queuedQueryCount()); + + if (compareClusterQueue != 0) { + return compareClusterQueue; + } + // If the user has equal number of queries queued then see which cluster + // has less number of queries running and route it accordingly + return Integer.compare(lhs.runningQueryCount(), rhs.runningQueryCount()); + } + + // We sort and find the backend based on the individual user's count of the queued queries + // first, in case user doesn't have any queries queued we use the cluster wide stats + // + // First filter the list of clusters for a particular routing group + // + // If a user has queued queries, then find a cluster with the least number of QUEUED queries + // for that user. + // + // If a user's QUEUED query count is the same on every cluster then go with a cluster with + // the cluster wide stats. + // + // Find a cluster with the least number of QUEUED queries, if there are the same number of + // queries queued, then compare the number of running queries. + // + // After a query is routed, we need to update the stats for that cluster until we received the + // updated stats for all the clusters. + // if a user has queries queued then we assume that the routed query will be also queued or + // else we assume it would be scheduled immediately and we increment the stats for the running + // queries + + private Optional getClusterToRoute(String user, String routingGroup) + { + log.debug("sorting cluster stats for {} {}", user, routingGroup); + List filteredList = clusterStats.stream() + .filter(stats -> stats.healthy()) + .filter(stats -> routingGroup.equals(stats.routingGroup())) + .collect(Collectors.toList()); + + if (filteredList.isEmpty()) { + return Optional.empty(); + } + + return Optional.of(Collections.min(filteredList, (lhs, rhs) -> compareStats(lhs, rhs, user))); + } + + private void updateLocalStats(LocalStats stats, String user) + { + // The live stats refresh every few seconds, so we update the stats immediately + // so that they can be used for next queries to route + // We assume that if a user has queued queries then newly arriving queries + // for that user would also be queued + int count = stats.userQueuedCount() == null ? 0 : stats.userQueuedCount().getOrDefault(user, 0); + if (count > 0) { + stats.userQueuedCount().put(user, count + 1); + return; + } + // Else the we assume that the query would be running + // so update the clusterstat with the +1 running queries + stats.runningQueryCount(stats.runningQueryCount() + 1); + } + + private synchronized Optional getBackendForRoutingGroup(String routingGroup, String user) + { + Optional cluster = getClusterToRoute(user, routingGroup); + cluster.ifPresent(c -> updateLocalStats(c, user)); + return cluster.map(c -> c.proxyTo()); + } + + @Override + public String provideAdhocBackend(String user) + { + return getBackendForRoutingGroup("adhoc", user).orElseThrow(); + } + + @Override + public String provideBackendForRoutingGroup(String routingGroup, String user) + { + return getBackendForRoutingGroup(routingGroup, user) + .orElse(provideAdhocBackend(user)); + } + + @Override + public synchronized void upateBackEndStats(List stats) + { + clusterStats = stats.stream().map(a -> new LocalStats(a)).collect(Collectors.toList()); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java index 8a9707c9d..1dd12bcde 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java @@ -130,14 +130,10 @@ public void upateBackEndHealth(String backendId, Boolean value) backendToHealth.put(backendId, value); } - public void updateBackEndHealthDB(ClusterStats stats) + public void upateBackEndStats(List stats) { - String name = stats.clusterId(); - if (stats.healthy()) { - gatewayBackendManager.activateBackend(name); - } - else { - gatewayBackendManager.deactivateBackend(name); + for (ClusterStats clusterStats : stats) { + upateBackEndHealth(clusterStats.clusterId(), clusterStats.healthy()); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/StochasticRoutingManager.java similarity index 89% rename from gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java rename to gateway-ha/src/main/java/io/trino/gateway/ha/router/StochasticRoutingManager.java index e85fd1b4a..269d3640c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaRoutingManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/StochasticRoutingManager.java @@ -16,13 +16,13 @@ import com.google.common.base.Strings; import io.airlift.log.Logger; -public class HaRoutingManager +public class StochasticRoutingManager extends RoutingManager { - private static final Logger log = Logger.get(HaRoutingManager.class); + private static final Logger log = Logger.get(StochasticRoutingManager.class); QueryHistoryManager queryHistoryManager; - public HaRoutingManager( + public StochasticRoutingManager( GatewayBackendManager gatewayBackendManager, QueryHistoryManager queryHistoryManager) { super(gatewayBackendManager); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java deleted file mode 100644 index 14a0f6467..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/TrinoQueueLengthRoutingTable.java +++ /dev/null @@ -1,403 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.router; - -import com.google.common.base.Strings; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.Table; -import io.airlift.log.Logger; -import io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor; -import io.trino.gateway.ha.config.ProxyBackendConfiguration; - -import java.util.Collection; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.LinkedHashMap; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.Set; -import java.util.TreeMap; -import java.util.concurrent.ConcurrentHashMap; -import java.util.stream.Collectors; - -/** - * A Routing Manager that provides load distribution on to registered active backends based on - * its queue length. This manager listens to updates on cluster queue length as recorded by the - * {@link ActiveClusterMonitor} - * Ideally where ever a modification is made to the the list of backends(adding, removing) this - * routing manager should get notified and updated. - * Currently updates are made only on heart beats from - * {@link ActiveClusterMonitor} and during routing requests. - */ -public class TrinoQueueLengthRoutingTable - extends HaRoutingManager -{ - private static final Logger log = Logger.get(TrinoQueueLengthRoutingTable.class); - private static final Random RANDOM = new Random(); - private static final int MIN_WT = 1; - private static final int MAX_WT = 100; - private final Object lockObject = new Object(); - private final ConcurrentHashMap routingGroupWeightSum; - private final ConcurrentHashMap> clusterQueueLengthMap; - - private final ConcurrentHashMap> userClusterQueueLengthMap; - - private final Map> weightedDistributionRouting; - - /** - * A Routing Manager that distributes queries according to assigned weights based on - * Trino cluster queue length and falls back to Running Count if queue length are equal. - */ - public TrinoQueueLengthRoutingTable(GatewayBackendManager gatewayBackendManager, - QueryHistoryManager queryHistoryManager) - { - super(gatewayBackendManager, queryHistoryManager); - routingGroupWeightSum = new ConcurrentHashMap(); - clusterQueueLengthMap = new ConcurrentHashMap>(); - weightedDistributionRouting = new HashMap>(); - userClusterQueueLengthMap = new ConcurrentHashMap<>(); - } - - /** - * All wts are assigned as a fraction of maxQueueLn. Cluster with maxQueueLn should be - * given least weightage. What this value should be depends on the queueing on the rest of - * the clusters. since the list is sorted, the smallestQueueLn & lastButOneQueueLn give us - * the range. In an ideal situation all clusters should have equals distribution of - * queries, hence that is used as a threshold to check is a cluster queue is over - * provisioned or not. - */ - private int getWeightForMaxQueueCluster(LinkedHashMap sortedByQueueLength) - { - int queueSum; - int numBuckets; - int equalDistribution; - int calculatedWtMaxQueue; - - numBuckets = sortedByQueueLength.size(); - queueSum = sortedByQueueLength.values().stream().mapToInt(Integer::intValue).sum(); - equalDistribution = queueSum / numBuckets; - - Object[] queueLengths = sortedByQueueLength.values().toArray(); - - int smallestQueueLn = (Integer) queueLengths[0]; - int maxQueueLn = (Integer) queueLengths[queueLengths.length - 1]; - int lastButOneQueueLn = smallestQueueLn; - if (queueLengths.length > 2) { - lastButOneQueueLn = (Integer) queueLengths[queueLengths.length - 2]; - } - - if (maxQueueLn == 0) { - calculatedWtMaxQueue = MAX_WT; - } - else if (lastButOneQueueLn == 0 || (lastButOneQueueLn == maxQueueLn)) { - calculatedWtMaxQueue = MIN_WT; - } - else { - int lastButOneQueueWt = - (int) Math.ceil((MAX_WT - (lastButOneQueueLn * MAX_WT / (double) maxQueueLn))); - double fractionOfLastWt = (smallestQueueLn / (float) maxQueueLn); - calculatedWtMaxQueue = (int) Math.ceil(fractionOfLastWt * lastButOneQueueWt); - - if (lastButOneQueueLn < equalDistribution - || (lastButOneQueueLn > equalDistribution && smallestQueueLn <= equalDistribution)) { - calculatedWtMaxQueue = (smallestQueueLn == 0) ? MIN_WT : - (int) Math.ceil(fractionOfLastWt * fractionOfLastWt * lastButOneQueueWt); - } - } - - return calculatedWtMaxQueue; - } - - /** - * Uses the queue length of a cluster to assign weights to all active clusters in a routing group. - * The weights assigned ensure a fair distribution of routing for queries such that clusters with - * the least queue length get assigned more queries. - */ - private void computeWeightsBasedOnQueueLength(ConcurrentHashMap> queueLengthMap) - { - synchronized (lockObject) { - int sum = 0; - int weight; - int numBuckets = 1; - int maxQueueLn = 0; - int calculatedWtMaxQueue = 0; - - weightedDistributionRouting.clear(); - routingGroupWeightSum.clear(); - - log.debug("Computing Weights for Queue Map :[%s] ", queueLengthMap); - - for (String routingGroup : queueLengthMap.keySet()) { - sum = 0; - TreeMap weightsMap = new TreeMap<>(); - - if (queueLengthMap.get(routingGroup).size() == 0) { - log.warn("No active clusters in routingGroup : [%s]. Continue to " - + "process rest of routing table ", routingGroup); - continue; - } - else if (queueLengthMap.get(routingGroup).size() == 1) { - log.debug("Routing Group: [%s] has only 1 active backend.", routingGroup); - weightedDistributionRouting.put(routingGroup, - new TreeMap<>(ImmutableMap.of(MAX_WT, queueLengthMap.get(routingGroup).keys().nextElement()))); - routingGroupWeightSum.put(routingGroup, MAX_WT); - continue; - } - - LinkedHashMap sortedByQueueLength = queueLengthMap.get(routingGroup) - .entrySet() - .stream().sorted(Comparator.comparing(Map.Entry::getValue)) - .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, - (e1, e2) -> e1, LinkedHashMap::new)); - - numBuckets = sortedByQueueLength.size(); - - Object[] queueLengths = sortedByQueueLength.values().toArray(); - Object[] clusterNames = sortedByQueueLength.keySet().toArray(); - - maxQueueLn = (Integer) queueLengths[queueLengths.length - 1]; - calculatedWtMaxQueue = getWeightForMaxQueueCluster(sortedByQueueLength); - - for (int i = 0; i < numBuckets - 1; i++) { - // If all clusters have same queue length, assign same wt - weight = (maxQueueLn == (Integer) queueLengths[i]) ? calculatedWtMaxQueue : - (int) Math.ceil(MAX_WT - - (((Integer) queueLengths[i] * MAX_WT) / (double) maxQueueLn)); - sum += weight; - weightsMap.put(sum, (String) clusterNames[i]); - } - - sum += calculatedWtMaxQueue; - weightsMap.put(sum, (String) clusterNames[numBuckets - 1]); - - weightedDistributionRouting.put(routingGroup, weightsMap); - routingGroupWeightSum.put(routingGroup, sum); - } - - if (log.isDebugEnabled()) { - for (String rg : weightedDistributionRouting.keySet()) { - log.debug("Routing Table for : [%s] is [%s]", rg, - weightedDistributionRouting.get(rg).toString()); - } - } - } - } - - /** - * Update the Routing Table only if a previously known backend has been deactivated. - * Newly added backends are handled through - * {@link TrinoQueueLengthRoutingTable#updateRoutingTable(Table, Table, Table)} - * updateRoutingTable} - */ - public void updateRoutingTable(String routingGroup, Set backends) - { - synchronized (lockObject) { - if (clusterQueueLengthMap.containsKey(routingGroup)) { - log.debug("Update routing table for routing group : [%s]" - + " with active backends : [%s]", routingGroup, backends.toString()); - Collection knownBackends = new HashSet(); - knownBackends.addAll(clusterQueueLengthMap.get(routingGroup).keySet()); - - if (backends.containsAll(knownBackends)) { - return; - } - else { - if (knownBackends.removeAll(backends)) { - for (String inactiveBackend : knownBackends) { - clusterQueueLengthMap.get(routingGroup).remove(inactiveBackend); - } - } - } - } - - computeWeightsBasedOnQueueLength(clusterQueueLengthMap); - } - } - - /** - * Update routing Table with new Queue Lengths. - */ - public void updateRoutingTable(Table updatedQueueLengthMap, - Table updatedRunningLengthMap, - Table updatedUserQueueLengthMap) - { - synchronized (lockObject) { - log.debug("Update Routing table with new cluster queue lengths : [%s]", - updatedQueueLengthMap.toString()); - clusterQueueLengthMap.clear(); - userClusterQueueLengthMap.clear(); - - if (updatedUserQueueLengthMap != null) { - for (String user : updatedUserQueueLengthMap.rowKeySet()) { - ConcurrentHashMap clusterQueueMap = - new ConcurrentHashMap<>(updatedUserQueueLengthMap.row(user)); - userClusterQueueLengthMap.put(user, clusterQueueMap); - } - } - - for (String grp : updatedQueueLengthMap.rowKeySet()) { - if (grp == null) { - continue; - } - ConcurrentHashMap queueMap = new ConcurrentHashMap<>(); - - int maxQueueLen = Collections.max(updatedQueueLengthMap.row(grp).values()); - int minQueueLen = Collections.min(updatedQueueLengthMap.row(grp).values()); - - if (minQueueLen == maxQueueLen && updatedQueueLengthMap.row(grp).size() > 1 - && updatedRunningLengthMap.containsRow(grp)) { - log.info("Queue lengths equal: %s for all clusters in the group %s." - + " Falling back to Running Counts : %s", maxQueueLen, grp, - updatedRunningLengthMap.row(grp)); - queueMap.putAll(updatedRunningLengthMap.row(grp)); - } - else { - queueMap.putAll(updatedQueueLengthMap.row(grp)); - } - clusterQueueLengthMap.put(grp, queueMap); - } - computeWeightsBasedOnQueueLength(clusterQueueLengthMap); - } - } - - /** - * A convenience method to peak into the weights used by the routing Manager. - */ - public Map getInternalWeightedRoutingTable(String routingGroup) - { - if (!weightedDistributionRouting.containsKey(routingGroup)) { - return null; - } - Map routingTable = new HashMap<>(); - - for (Integer wt : weightedDistributionRouting.get(routingGroup).keySet()) { - routingTable.put(weightedDistributionRouting.get(routingGroup).get(wt), wt); - } - return routingTable; - } - - /** - * Find the cluster with least user queue else fall back to overall cluster weight based routing. - */ - public String getEligibleBackEnd(String routingGroup, String user) - { - // Route to the least queued backend for the user out of all backends for that group - if (!Strings.isNullOrEmpty(user)) { - Map clusterQueueCountForUser = userClusterQueueLengthMap.get(user); - - if (clusterQueueCountForUser != null && !clusterQueueCountForUser.isEmpty()) { - Set backends = clusterQueueLengthMap.get(routingGroup).keySet(); - String leastQueuedCluster = null; - Integer minQueueCount = Integer.MAX_VALUE; - Integer maxQueueCount = Integer.MIN_VALUE; - for (String b : backends) { - // If missing, we assume no queued queries for the user on that cluster. - Integer queueCount = clusterQueueCountForUser.getOrDefault(b, 0); - - if (queueCount < minQueueCount) { - leastQueuedCluster = b; - minQueueCount = queueCount; - } - if (queueCount > maxQueueCount) { - maxQueueCount = queueCount; - } - } - // If all clusters have the same queue count, then fallback to the older weighted logic. - if (!Strings.isNullOrEmpty(leastQueuedCluster) && !minQueueCount.equals(maxQueueCount)) { - log.debug("%s routing to:%s. userQueueCount:%s", user, leastQueuedCluster, minQueueCount); - - return leastQueuedCluster; - } - } - } - // Looks up the closest weight to random number generated for a given routing group. - if (routingGroupWeightSum.containsKey(routingGroup) - && weightedDistributionRouting.containsKey(routingGroup)) { - int rnd = RANDOM.nextInt(routingGroupWeightSum.get(routingGroup)); - return weightedDistributionRouting.get(routingGroup).higherEntry(rnd).getValue(); - } - else { - return null; - } - } - - /** - * Performs routing to a given cluster group. This falls back to an adhoc backend, if no scheduled - * backend is found. - */ - @Override - public String provideBackendForRoutingGroup(String routingGroup, String user) - { - List backends = - getGatewayBackendManager().getActiveBackends(routingGroup); - - if (backends.isEmpty()) { - return provideAdhocBackend(user); - } - Map proxyMap = new HashMap<>(); - for (ProxyBackendConfiguration backend : backends) { - proxyMap.put(backend.getName(), backend.getProxyTo()); - } - - updateRoutingTable(routingGroup, proxyMap.keySet()); - String clusterId = getEligibleBackEnd(routingGroup, user); - log.debug("Routing to eligible backend : [%s] for routing group: [%s]", - clusterId, routingGroup); - - if (clusterId != null) { - return proxyMap.get(clusterId); - } - else { - log.debug("Falling back to random distribution"); - int backendId = Math.abs(RANDOM.nextInt()) % backends.size(); - return backends.get(backendId).getProxyTo(); - } - } - - /** - * Performs routing to an adhoc backend based on computed weights. - * - *

d. - */ - @Override - public String provideAdhocBackend(String user) - { - Map proxyMap = new HashMap<>(); - List backends = getGatewayBackendManager().getActiveAdhocBackends(); - if (backends.size() == 0) { - throw new IllegalStateException("Number of active backends found zero"); - } - - for (ProxyBackendConfiguration backend : backends) { - proxyMap.put(backend.getName(), backend.getProxyTo()); - } - - updateRoutingTable("adhoc", proxyMap.keySet()); - - String clusterId = getEligibleBackEnd("adhoc", user); - log.debug("Routing to eligible backend : " + clusterId + " for routing group: adhoc"); - if (clusterId != null) { - return proxyMap.get(clusterId); - } - else { - log.debug("Falling back to random distribution"); - int backendId = Math.abs(RANDOM.nextInt()) % backends.size(); - return backends.get(backendId).getProxyTo(); - } - } -} diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java new file mode 100644 index 000000000..06b5e1eb2 --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java @@ -0,0 +1,253 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.router; + +import com.google.common.collect.ImmutableList; +import io.trino.gateway.ha.clustermonitor.ClusterStats; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import static org.assertj.core.api.Assertions.assertThat; + +public class TestQueryCountBasedRouter +{ + static final String BACKEND_URL_1 = "http://c1"; + static final String BACKEND_URL_2 = "http://c2"; + static final String BACKEND_URL_3 = "http://c3"; + static final String BACKEND_URL_4 = "http://c4"; + static final String BACKEND_URL_5 = "http://c5"; + static final String BACKEND_URL_UNHEALTHY = "http://c-unhealthy"; + + static final int LEAST_QUEUED_COUNT = 1; + static final int SAME_QUERY_COUNT = 5; + QueryCountBasedRouter queryCountBasedRouter; + ImmutableList clusters; + + TestQueryCountBasedRouter() + { + queryCountBasedRouter = null; + clusters = null; + } + + // Helper function to generate the ClusterStat list + private static List getClusterStatsList(String routingGroup) + { + ImmutableList.Builder clustersBuilder = new ImmutableList.Builder(); + // Set Cluster1 stats + { + ClusterStats.Builder cluster = ClusterStats.builder("c1"); + cluster.proxyTo(BACKEND_URL_1); + cluster.healthy(true); + cluster.routingGroup(routingGroup); + cluster.runningQueryCount(50); + cluster.queuedQueryCount(SAME_QUERY_COUNT); + cluster.userQueuedCount(new HashMap<>(Map.of("u1", 5, "u2", 10, "u3", 2))); + clustersBuilder.add(cluster.build()); + } + // Set Cluster2 stats + { + ClusterStats.Builder cluster = ClusterStats.builder("c2"); + cluster.proxyTo(BACKEND_URL_2); + cluster.healthy(true); + cluster.routingGroup(routingGroup); + cluster.runningQueryCount(51); + cluster.queuedQueryCount(SAME_QUERY_COUNT); + + HashMap userToQueueCount2 = new HashMap(); + cluster.userQueuedCount(userToQueueCount2); + cluster.userQueuedCount(new HashMap<>(Map.of("u1", 5, "u2", 1, "u3", 12))); + + clustersBuilder.add(cluster.build()); + } + // Set Cluster3 stats with the least no of queries running + { + ClusterStats.Builder cluster = ClusterStats.builder("c3"); + cluster.proxyTo(BACKEND_URL_3); + cluster.healthy(true); + cluster.routingGroup(routingGroup); + cluster.runningQueryCount(5); + cluster.queuedQueryCount(SAME_QUERY_COUNT); + + HashMap userToQueueCount3 = new HashMap(); + cluster.userQueuedCount(userToQueueCount3); + cluster.userQueuedCount(new HashMap<>(Map.of("u1", 5, "u2", 2, "u3", 6))); + + clustersBuilder.add(cluster.build()); + } + // cluster - unhealthy one + { + ClusterStats.Builder cluster = ClusterStats.builder("c-unhealthy"); + cluster.proxyTo("http://c-unhealthy"); + cluster.healthy(false); //This cluster should never show up to route + cluster.routingGroup(routingGroup); + cluster.runningQueryCount(5); + cluster.queuedQueryCount(SAME_QUERY_COUNT); + cluster.userQueuedCount(new HashMap()); + + clustersBuilder.add(cluster.build()); + } + // cluster - unhealthy one, no stats + { + ClusterStats.Builder cluster = ClusterStats.builder("c-unhealthy2"); + cluster.proxyTo("http://c-unhealthy2"); + cluster.healthy(false); //This cluster should never show up to route + + clustersBuilder.add(cluster.build()); + } + // cluster - it's messed up - healthy but no stats + { + ClusterStats.Builder cluster = ClusterStats.builder("c-unhealthy2"); + cluster.proxyTo("http://c-messed-up"); + //This is a scenrio when, something is really wrong + //We just get the cluster state as health but no stats + cluster.healthy(true); + clustersBuilder.add(cluster.build()); + } + + return clustersBuilder.build(); + } + + static ClusterStats getClusterWithNoUserQueueAndMinQueueCount() + { + ClusterStats.Builder cluster = ClusterStats.builder("c-Minimal-Queue"); + cluster.proxyTo(BACKEND_URL_4); + cluster.healthy(true); + cluster.routingGroup("adhoc"); + cluster.runningQueryCount(5); + cluster.queuedQueryCount(LEAST_QUEUED_COUNT); + cluster.userQueuedCount(new HashMap()); + return cluster.build(); + } + + static ClusterStats getClusterWithMinRunnningQueries() + { + ClusterStats.Builder cluster = ClusterStats.builder("c-Minimal-Running"); + cluster.proxyTo(BACKEND_URL_5); + cluster.healthy(true); + cluster.routingGroup("adhoc"); + cluster.runningQueryCount(1); + cluster.queuedQueryCount(LEAST_QUEUED_COUNT); + cluster.userQueuedCount(new HashMap()); + return cluster.build(); + } + + @BeforeEach + public void init() + { + //Have a adoc and an etl routing groups - 2 sets of clusters + clusters = new ImmutableList.Builder() + .addAll(getClusterStatsList("adhoc")) + .addAll(getClusterStatsList("etl")) + .build(); + + queryCountBasedRouter = new QueryCountBasedRouter(null, null); + queryCountBasedRouter.upateBackEndStats(clusters); + } + + @Test + public void testUserWithSameNoOfQueuedQueries() + { + // The user u1 has same number of queries queued on each cluster + // The query needs to be routed to cluster with least number of queries running + String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("etl", "u1"); + + assertThat(proxyTo).isEqualTo(BACKEND_URL_3); + assertThat(proxyTo).isNotEqualTo(BACKEND_URL_UNHEALTHY); + + //After the above code is run, c3 cluster has 6 queued queries + //c1, c2 cluster will be with same original number of queued queries i.e. 5 each + //The next query should go to the c1 cluster, as it would have less number of cluster wide + QueryCountBasedRouter.LocalStats c3Stats = queryCountBasedRouter.clusterStats().stream() + .filter(c -> c.clusterId().equals("c3") && + c.routingGroup().equals("etl")) + .findAny().orElseThrow(); + assertThat(c3Stats.userQueuedCount().getOrDefault("u1", 0)) + .isEqualTo(6); + + proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("etl", "u1"); + + assertThat(proxyTo).isEqualTo(BACKEND_URL_1); + assertThat(proxyTo).isNotEqualTo(BACKEND_URL_UNHEALTHY); + } + + @Test + public void testUserWithDifferentQueueLengthUser1() + { + // The user u2 has different number of queries queued on each cluster + // The query needs to be routed to cluster with least number of queued for that user + String proxyTo = queryCountBasedRouter.provideAdhocBackend("u2"); + assertThat(BACKEND_URL_2).isEqualTo(proxyTo); + assertThat(BACKEND_URL_UNHEALTHY).isNotEqualTo(proxyTo); + } + + @Test + public void testUserWithDifferentQueueLengthUser2() + { + String proxyTo = queryCountBasedRouter.provideAdhocBackend("u3"); + assertThat(BACKEND_URL_1).isEqualTo(proxyTo); + assertThat(BACKEND_URL_UNHEALTHY).isNotEqualTo(proxyTo); + } + + @Test + public void testUserWithNoQueuedQueries() + { + String proxyTo = queryCountBasedRouter.provideAdhocBackend("u101"); + assertThat(BACKEND_URL_3).isEqualTo(proxyTo); + } + + @Test + public void testAdhocroutingGroupFailOver() + { + // The ETL routing group doesn't exist + String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("NonExisting", "u1"); + assertThat(BACKEND_URL_3).isEqualTo(proxyTo); + assertThat(BACKEND_URL_UNHEALTHY).isNotEqualTo(proxyTo); + } + + @Test + public void testClusterWithLeastQueueCount() + { + // Add a cluster with minimal queuelength + clusters = new ImmutableList.Builder() + .addAll(clusters) + .add(getClusterWithNoUserQueueAndMinQueueCount()) + .build(); + queryCountBasedRouter.upateBackEndStats(clusters); + + String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("NonExisting", "u1"); + assertThat(BACKEND_URL_4).isEqualTo(proxyTo); + assertThat(BACKEND_URL_UNHEALTHY).isNotEqualTo(proxyTo); + } + + @Test + public void testClusterWithLeastRunningCount() + { + // Add a cluster with minimal queuelength + clusters = new ImmutableList.Builder() + .addAll(clusters) + .add(getClusterWithNoUserQueueAndMinQueueCount()) + .add(getClusterWithMinRunnningQueries()) + .build(); + + queryCountBasedRouter.upateBackEndStats(clusters); + + String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("NonExisting", "u1"); + assertThat(BACKEND_URL_5).isEqualTo(proxyTo); + assertThat(BACKEND_URL_UNHEALTHY).isNotEqualTo(proxyTo); + } +} diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestHaRoutingManager.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java similarity index 95% rename from gateway-ha/src/test/java/io/trino/gateway/ha/router/TestHaRoutingManager.java rename to gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java index 93a6e4855..4d0b81cf8 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestHaRoutingManager.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java @@ -24,7 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; @TestInstance(Lifecycle.PER_CLASS) -public class TestHaRoutingManager +public class TestStochasticRoutingManager { RoutingManager haRoutingManager; GatewayBackendManager backendManager; @@ -36,7 +36,7 @@ public void setUp() JdbcConnectionManager connectionManager = createTestingJdbcConnectionManager(); backendManager = new HaGatewayManager(connectionManager.getJdbi()); historyManager = new HaQueryHistoryManager(connectionManager.getJdbi()); - haRoutingManager = new HaRoutingManager(backendManager, historyManager); + haRoutingManager = new StochasticRoutingManager(backendManager, historyManager); } @Test diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestTrinoQueueLengthRoutingTable.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestTrinoQueueLengthRoutingTable.java deleted file mode 100644 index 21ea07d94..000000000 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestTrinoQueueLengthRoutingTable.java +++ /dev/null @@ -1,433 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.router; - -import com.google.common.collect.HashBasedTable; -import com.google.common.collect.Table; -import io.trino.gateway.ha.config.ProxyBackendConfiguration; -import io.trino.gateway.ha.persistence.JdbcConnectionManager; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.TestInstance; -import org.junit.jupiter.api.TestInstance.Lifecycle; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Random; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.atomic.AtomicBoolean; - -import static io.trino.gateway.ha.TestingJdbcConnectionManager.createTestingJdbcConnectionManager; -import static java.util.concurrent.TimeUnit.SECONDS; -import static org.assertj.core.api.Assertions.assertThat; - -@TestInstance(Lifecycle.PER_CLASS) -public class TestTrinoQueueLengthRoutingTable -{ - static final int[] QUERY_VOLUMES = {15, 50, 100, 200}; - static final int NUM_BACKENDS = 5; - TrinoQueueLengthRoutingTable routingTable; - GatewayBackendManager backendManager; - QueryHistoryManager historyManager; - String[] mockRoutingGroups = {"adhoc", "scheduled"}; - String mockRoutingGroup = "adhoc"; - - String mockUser = "user"; - - Table clusterQueueMap; - Table clusterRunningMap; - - @BeforeAll - public void setUp() - { - JdbcConnectionManager connectionManager = createTestingJdbcConnectionManager(); - backendManager = new HaGatewayManager(connectionManager.getJdbi()); - historyManager = new HaQueryHistoryManager(connectionManager.getJdbi()); - routingTable = new TrinoQueueLengthRoutingTable(backendManager, historyManager); - - for (String grp : mockRoutingGroups) { - addMockBackends(grp, NUM_BACKENDS); - } - } - - private void deactiveAllBackends() - { - for (int i = 0; i < NUM_BACKENDS; i++) { - backendManager.deactivateBackend(mockRoutingGroup + i); - } - clusterQueueMap = HashBasedTable.create(); - clusterRunningMap = HashBasedTable.create(); - } - - private void addMockBackends(String groupName, int numBackends) - { - String backend = null; - - for (int i = 0; i < numBackends; i++) { - backend = groupName + i; - ProxyBackendConfiguration proxyBackend = new ProxyBackendConfiguration(); - proxyBackend.setActive(true); - proxyBackend.setRoutingGroup(groupName); - proxyBackend.setName(backend); - proxyBackend.setProxyTo(backend + ".gateway.trino.io"); - proxyBackend.setExternalUrl("gateway.trino.io"); - backendManager.addBackend(proxyBackend); - } - } - - private void registerBackEndsWithRandomQueueLengths(String groupName, int numBackends) - { - int mockQueueLength = 0; - String backend; - Random rand = new Random(); - - for (int i = 0; i < numBackends; i++) { - backend = groupName + i; - backendManager.activateBackend(backend); - mockQueueLength = mockQueueLength + rand.nextInt(100); - clusterQueueMap.put(groupName, backend, mockQueueLength); - } - - // Running counts don't matter if queue lengths are random. - routingTable.updateRoutingTable(clusterQueueMap, clusterRunningMap, null); - } - - private void registerBackEnds(String groupName, int numBackends, - int queueLengthDistributiveFactor, - int runningLenDistributiveFactor) - { - int mockQueueLength = 0; - int mockRunningLength = 0; - String backend; - - for (int i = 0; i < numBackends; i++) { - backend = groupName + i; - backendManager.activateBackend(backend); - mockQueueLength = mockQueueLength + queueLengthDistributiveFactor; - mockRunningLength = mockRunningLength + runningLenDistributiveFactor; - clusterQueueMap.put(groupName, backend, mockQueueLength); - clusterRunningMap.put(groupName, backend, mockRunningLength); - } - - routingTable.updateRoutingTable(clusterQueueMap, clusterRunningMap, null); - } - - private void registerBackEndsWithUserQueue(String groupName, int numBackends, - List userQueues) - { - deactiveAllBackends(); - int mockQueueLength = 0; - int mockRunningLength = 0; - String backend; - - Table userClusterQueue = HashBasedTable.create(); - - for (int i = 0; i < numBackends; i++) { - backend = groupName + i; - backendManager.activateBackend(backend); - clusterQueueMap.put(groupName, backend, mockQueueLength); - clusterRunningMap.put(groupName, backend, mockRunningLength); - if (userQueues.size() > i) { - userClusterQueue.put(mockUser, backend, userQueues.get(i)); - } - } - - routingTable.updateRoutingTable(clusterQueueMap, clusterRunningMap, userClusterQueue); - } - - private void resetBackends(String groupName, int numBk, - int queueDistribution, int runningDistribution) - { - deactiveAllBackends(); - registerBackEnds(groupName, numBk, queueDistribution, runningDistribution); - } - - private Map routeQueries(String groupName, int numRequests) - { - String eligibleBackend; - int sum = 0; - Map routingDistribution = new HashMap(); - - for (int i = 0; i < numRequests; i++) { - eligibleBackend = routingTable.getEligibleBackEnd(groupName, null); - - if (!routingDistribution.containsKey(eligibleBackend)) { - routingDistribution.put(eligibleBackend, 1); - } - else { - sum = routingDistribution.get(eligibleBackend) + 1; - routingDistribution.put(eligibleBackend, sum); - } - } - return routingDistribution; - } - - @Test - public void testRoutingWithEvenWeightDistribution() - { - int queueDistribution = 3; - int runningDistribution = 0; - - for (int numRequests : QUERY_VOLUMES) { - for (int numBk = 1; numBk <= NUM_BACKENDS; numBk++) { - resetBackends(mockRoutingGroup, numBk, queueDistribution, runningDistribution); - Map routingDistribution = routeQueries(mockRoutingGroup, numRequests); - - if (numBk > 1) { - if (routingDistribution.containsKey(mockRoutingGroup + (numBk - 1))) { - assertThat(routingDistribution.get(mockRoutingGroup + (numBk - 1)) <= Math.ceil(numRequests / numBk)) - .as("Input: %s, Num of Requests: %s, Internal Routing table: %s, Distribution: %s", - clusterQueueMap, numRequests, routingTable.getInternalWeightedRoutingTable(mockRoutingGroup), routingDistribution) - .isTrue(); - } - else { - assertThat(routingDistribution.values().stream().mapToInt(Integer::intValue).sum()).isEqualTo(numRequests); - } - } - else { - assertThat(routingDistribution.get(mockRoutingGroup + '0')).isEqualTo(Integer.valueOf(numRequests)); - } - } - } - } - - @Test - public void testRoutingWithSkewedWeightDistribution() - { - for (int numRequests : QUERY_VOLUMES) { - for (int numBk = 1; numBk <= NUM_BACKENDS; numBk++) { - deactiveAllBackends(); - registerBackEndsWithRandomQueueLengths(mockRoutingGroup, numBk); - - Map routingDistribution = routeQueries(mockRoutingGroup, numRequests); - - if (numBk > 2 && routingDistribution.containsKey(mockRoutingGroup + (numBk - 1))) { - assertThat(routingDistribution.get(mockRoutingGroup + (numBk - 1)) <= Math.ceil(numRequests / numBk)) - .as("Input: %s, Num of Requests: %s, Internal Routing table: %s, Distribution: %s", - clusterQueueMap, numRequests, routingTable.getInternalWeightedRoutingTable(mockRoutingGroup), routingDistribution) - .isTrue(); - } - else { - assertThat(routingDistribution.values().stream().mapToInt(Integer::intValue).sum()).isEqualTo(numRequests); - } - } - } - } - - @Test - public void testRoutingWithUserQueuedLength() - { - int numBackends = 2; - int queryVolume = 10000; - - // Case 1: All user queue counts Present. - // Validate always routed to cluster with lowest user queue - registerBackEndsWithUserQueue(mockRoutingGroup, numBackends, Arrays.asList(1, 2)); - for (int i = 0; i < queryVolume; i++) { - assertThat(routingTable.getEligibleBackEnd(mockRoutingGroup, mockUser)).isEqualTo(mockRoutingGroup + "0"); - } - - // Case 2: Not all user queue counts Present. - // Validate always routed to cluster with zero queue length i.e. the missing cluster. - registerBackEndsWithUserQueue(mockRoutingGroup, numBackends, List.of(1)); - for (int i = 0; i < queryVolume; i++) { - assertThat(routingTable.getEligibleBackEnd(mockRoutingGroup, mockUser)).isEqualTo(mockRoutingGroup + "1"); - } - - // Case 3: All user queue counts Present but equal - // Validate equally routed to all clusters. - registerBackEndsWithUserQueue(mockRoutingGroup, numBackends, Arrays.asList(2, 2)); - Map counts = new HashMap<>(); - for (int i = 0; i < queryVolume; i++) { - String cluster = routingTable.getEligibleBackEnd(mockRoutingGroup, mockUser); - counts.put(cluster, counts.getOrDefault(cluster, 0) + 1); - } - double variance = 0.1; - double expectedLowerBound = (queryVolume / numBackends) * (1 - variance); - double expectedUpperBound = (queryVolume / numBackends) * (1 + variance); - - for (Integer c : counts.values()) { - assertThat(c >= expectedLowerBound && c <= expectedUpperBound).isTrue(); - } - - // Case 4: NO user queue lengths present - // Validate equally routed to all clusters. - registerBackEndsWithUserQueue(mockRoutingGroup, numBackends, new ArrayList<>()); - counts = new HashMap<>(); - for (int i = 0; i < queryVolume; i++) { - String cluster = routingTable.getEligibleBackEnd(mockRoutingGroup, mockUser); - counts.put(cluster, counts.getOrDefault(cluster, 0) + 1); - } - for (Integer c : counts.values()) { - assertThat(c >= expectedLowerBound && c <= expectedUpperBound).isTrue(); - } - - // Case 5: Null or empty users - // Validate equally routed to all clusters. - registerBackEndsWithUserQueue(mockRoutingGroup, numBackends, new ArrayList<>()); - counts = new HashMap<>(); - for (int i = 0; i < queryVolume; i++) { - String cluster = routingTable.getEligibleBackEnd(mockRoutingGroup, null); - counts.put(cluster, counts.getOrDefault(cluster, 0) + 1); - } - for (Integer c : counts.values()) { - assertThat(c >= expectedLowerBound && c <= expectedUpperBound).isTrue(); - } - } - - @Test - public void testRoutingWithEqualWeightDistribution() - { - int queueDistribution = 0; - int runningDistribution = 0; - for (int numRequests : QUERY_VOLUMES) { - for (int numBk = 1; numBk <= NUM_BACKENDS; numBk++) { - resetBackends(mockRoutingGroup, numBk, queueDistribution, runningDistribution); - Map routingDistribution = routeQueries(mockRoutingGroup, numRequests); - - if (numBk > 1) { - // With equal weights, the algorithm randomly chooses from the list. Check that the - // distribution spans atleast half of the routing group. - assertThat(routingDistribution.size() >= clusterQueueMap.row(mockRoutingGroup).size() / 2) - .as("Input: %s, Num of Requests: %s, Internal Routing table: %s, Distribution: %s", - clusterQueueMap, numRequests, routingTable.getInternalWeightedRoutingTable(mockRoutingGroup), routingDistribution) - .isTrue(); - } - else { - assertThat(routingDistribution.get(mockRoutingGroup + '0')).isEqualTo(Integer.valueOf(numRequests)); - } - } - } - } - - @Test - public void testRoutingWithEqualQueueSkewedRunningDistribution() - { - int queueDistribution = 0; - int runningDistribution = 100; - - for (int numRequests : QUERY_VOLUMES) { - for (int numBk = 1; numBk <= NUM_BACKENDS; numBk++) { - resetBackends(mockRoutingGroup, numBk, queueDistribution, runningDistribution); - Map routingDistribution = routeQueries(mockRoutingGroup, numRequests); - - //Useful Debugging Info - /* - System.out.println("Input :" + clusterRunningMap.toString() + " Num of Requests:" + - numRequests - + " Internal Routing table: " + routingTable.getInternalWeightedRoutingTable - (mockRoutingGroup).toString() - + " Distribution: " + routingDistribution.toString()); - */ - if (numBk > 2 && routingDistribution.containsKey(mockRoutingGroup + (numBk - 1))) { - assertThat(routingDistribution.get(mockRoutingGroup + (numBk - 1)) <= Math.ceil(numRequests / numBk)) - .isTrue(); - } - else { - assertThat(routingDistribution.values().stream().mapToInt(Integer::intValue).sum()).isEqualTo(numRequests); - } - } - } - } - - @Test - public void testRoutingWithMultipleGroups() - { - int queueDistribution = 10; - int numRequests = 15; - int numBk = 3; - - for (String grp : mockRoutingGroups) { - resetBackends(grp, numBk, queueDistribution, 0); - Map routingDistribution = routeQueries(grp, numRequests); - - if (numBk > 1) { - if (routingDistribution.containsKey(grp + (numBk - 1))) { - assertThat(routingDistribution.get(grp + (numBk - 1)) <= Math.ceil(numRequests / numBk)) - .as("Input: %s, Num of Requests: %s, Internal Routing table: %s, Distribution: %s", - clusterQueueMap, numRequests, routingTable.getInternalWeightedRoutingTable(grp), routingDistribution) - .isTrue(); - } - else { - assertThat(routingDistribution.values().stream().mapToInt(Integer::intValue).sum()).isEqualTo(numRequests); - } - } - else { - assertThat(routingDistribution.get(grp + '0')).isEqualTo(Integer.valueOf(numRequests)); - } - } - } - - @Test - public void testActiveClusterMonitorUpdateAndRouting() - throws InterruptedException - { - int numRequests = 10; - int numBatches = 10; - int sum = 0; - int numBk = 3; - - AtomicBoolean globalToggle = new AtomicBoolean(true); - Map routingDistribution = new HashMap<>(); - Map totalDistribution = new HashMap<>(); - - ScheduledExecutorService scheduler = - Executors.newScheduledThreadPool(1); - - final Runnable activeClusterMonitor = () -> { - String backend; - int queueLen; - for (int i = 0; i < numBk; i++) { - backend = mockRoutingGroup + i; - if (globalToggle.get()) { - queueLen = (i < Math.ceil((float) numBk / 2)) ? 0 : 100; - } - else { - queueLen = (i < Math.floor((float) numBk / 2)) ? 100 : 75; - } - clusterQueueMap.put(mockRoutingGroup, backend, queueLen); - } - globalToggle.set(!globalToggle.get()); - - routingTable.updateRoutingTable(clusterQueueMap, clusterQueueMap, null); - }; - - resetBackends(mockRoutingGroup, numBk, 0, 0); - scheduler.scheduleAtFixedRate(activeClusterMonitor, 0, 1, SECONDS); - - for (int batch = 0; batch < numBatches; batch++) { - routingDistribution = routeQueries(mockRoutingGroup, numRequests); - if (batch == 0) { - totalDistribution.putAll(routingDistribution); - } - else { - for (String key : routingDistribution.keySet()) { - sum = totalDistribution.getOrDefault(key, 0) + routingDistribution.get(key); - totalDistribution.put(key, sum); - } - } - // Some random amount of sleep time - Thread.sleep(270); - } - - assertThat(totalDistribution.get(mockRoutingGroup + (numBk - 1)) <= (numBatches * numRequests / numBk)) - .as("Total Requests: %s, distribution: %s", numBatches * numRequests, totalDistribution) - .isTrue(); - scheduler.shutdown(); - } -} From 752d312f3d0ae00bbaf3b2d3c20176bfa9890ff7 Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Thu, 4 Apr 2024 00:27:03 +0900 Subject: [PATCH 034/148] Improve quickstart doc * Clean brew install in quick start doc * Use gateway version 7 * Use PostgreSQL docker container --- .gitignore | 1 + docs/quickstart.md | 74 ++++++++++++++++++++++++++++++---------------- 2 files changed, 50 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index c11faf667..fcd1bfbaa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ target/** **/target/** .idea/** *.iml +/**/var/ diff --git a/docs/quickstart.md b/docs/quickstart.md index be365802c..73a97240c 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -35,47 +35,71 @@ The scripts from this quickstart guide set up a local environment consisting of two Trino servers and a PostgreSQL database running in Docker, and a Trino -Gateway server running in the host operating system. If you are using a Mac and -have the `brew` package manager installed, this script attempts to install -`psql`, if not you must install `psql` through other means. +Gateway server running in the host operating system. ## Start Trino Gateway server The following script starts a Trino Gateway server using the -[Quickstart Configuration](quickstart-config.yaml) with the request service +[Quickstart configuration](quickstart-config.yaml) with the request service at http://localhost:9080, the application service at http://localhost:9081, and the Admin service at http://localhost:9082. It also starts a dockerized PostgreSQL database at localhost:5432. +To start the server, copy the script below to a temporary directory +under the project root folder, and run it at the temporary directory. + +It copies the following, necessary files to current directory: + +- gateway-ha.jar +- gateway-ha-persistence-postgres.sql +- quickstart-config.yaml + ```shell #!/usr/bin/env sh -VERSION=4 +VERSION=7 + +# Copy necessary files to current directory -#Get the Gateway Jar -curl https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/${VERSION}/gateway-ha-${VERSION}-jar-with-dependencies.jar -o ./gateway-ha.jar +# Check and get the Gateway Jar +if [[ -f "gateway-ha.jar" ]]; then + echo "Found gateway-har.jar file in current directory." +else + echo "Failed to find gateway-ha.jar in current directory. Fetching version $VERSION from Maven Central repository." + curl https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/${VERSION}/gateway-ha-${VERSION}-jar-with-dependencies.jar -o ./gateway-ha.jar +fi + +# Check and get the Config.yaml +if [[ -f "quickstart-config.yaml" ]]; then + echo "Found quickstart-config.yaml file in current directory." +else + cp ../docs/quickstart-config.yaml ./quickstart-config.yaml +fi -#Start the persistence DB -if ! $(command -v psql >/dev/null); then - if ! $(command -v brew >/dev/null); then - echo 'Please install psql and rerun'; - exit 1 - else - brew install libpq - fi +# Check and get the postgres.sql +if [[ -f "gateway-ha-persistence-postgres.sql" ]]; then + echo "Found gateway-ha-persistence-postgres.sql file in current directory." +else + cp ../gateway-ha/src/main/resources/gateway-ha-persistence-postgres.sql ./gateway-ha-persistence-postgres.sql fi -export PGPASSWORD=mysecretpassword -docker run --name local-postgres -p 5432:5432 -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres:latest -#make sure the DB has time to initialize -sleep 5 +#Check if DB is running +if docker ps --format '{{.Names}}' | grep -q '^local-postgres$'; then + echo "PostgreSQL database container 'localhost-postgres' is already running. Only starting Trino Gateway." +else + echo "PostgreSQL database container 'localhost-postgres' is not running. Proceeding to initialize and run database server." + export PGPASSWORD=mysecretpassword + docker run -v "$(pwd)"/gateway-ha-persistence-postgres.sql:/tmp/gateway-ha-persistence-postgres.sql --name local-postgres -p 5432:5432 -e POSTGRES_PASSWORD=$PGPASSWORD -d postgres:latest + #Make sure the DB has time to initialize + sleep 5 + + #Initialize the DB + docker exec local-postgres psql -U postgres -h localhost -c 'CREATE DATABASE gateway' + docker exec local-postgres psql -U postgres -h localhost -d gateway -f /tmp/gateway-ha-persistence-postgres.sql +fi -#Initialize the DB -curl https://raw.githubusercontent.com/trinodb/trino-gateway/main/gateway-ha/src/main/resources/gateway-ha-persistence-postgres.sql > ./gateway-ha-persistence-postgres.sql -psql -U postgres -h localhost -c 'CREATE DATABASE gateway' -psql -U postgres -h localhost -d gateway -f ./gateway-ha-persistence-postgres.sql -#Start the DB +#Start Trino Gateway server. java -Xmx1g --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar ./gateway-ha.jar server ./quickstart-config.yaml ``` @@ -90,7 +114,7 @@ kill -5 $(jps | grep gateway-ha.jar | cut -d' ' -f1) This following script starts two dockerized Trino servers at http://localhost:8081 and http://localhost:8082. It then adds them as backends -to the Trino Gateway server started by the preceding script. +to the Trino Gateway server started by the preceding script. ```shell #!/usr/bin/env sh From c531f98618fa83579ca1ef6948a9e26e25e36b94 Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Thu, 4 Apr 2024 00:33:51 +0900 Subject: [PATCH 035/148] Addhealth check conf in docker compose - Including recommendation for dev and test usage only --- docker/README.md | 5 +++++ docker/docker-compose.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/docker/README.md b/docker/README.md index 4fae0d674..332dd6d08 100644 --- a/docker/README.md +++ b/docker/README.md @@ -6,6 +6,11 @@ The Docker image of Trino Gateway is designed for the following use cases: * Automated usage with an orchestration system like Kubernetes to simplify deployment +## Production setup + +The healthcheck configurations in the `docker-compose` file is for suitable for development and testing purposes only. +Change the configuration for your production deployment based on the workload and your specific requirements. + ## Build requirements This docker build process requires the following software: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 0fe3d7552..c0053a6ff 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -6,6 +6,7 @@ services: postgres: condition: service_healthy healthcheck: + test: ["CMD-SHELL", "/usr/lib/trino/bin/health-check || exit 1"] interval: 5s timeout: 5s retries: 60 From 3b1e5797171b9c7f01e861e454429c05552bce7d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Sat, 16 Mar 2024 00:04:13 +0900 Subject: [PATCH 036/148] Use JDBI for selectors --- .../gateway/ha/persistence/dao/Selectors.java | 90 ++------------ .../ha/persistence/dao/SelectorsDao.java | 92 +++++++++++++++ .../ha/router/HaResourceGroupsManager.java | 111 ++++++------------ .../TestSpecificDbResourceGroupsManager.java | 3 + 4 files changed, 138 insertions(+), 158 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/SelectorsDao.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java index 71b56aad5..94591bdc8 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/Selectors.java @@ -13,85 +13,15 @@ */ package io.trino.gateway.ha.persistence.dao; -import org.javalite.activejdbc.Model; -import org.javalite.activejdbc.annotations.BelongsTo; -import org.javalite.activejdbc.annotations.Cached; -import org.javalite.activejdbc.annotations.IdName; -import org.javalite.activejdbc.annotations.Table; - -import java.util.ArrayList; -import java.util.List; - -import static io.trino.gateway.ha.router.ResourceGroupsManager.SelectorsDetail; - -@BelongsTo(parent = ResourceGroups.class, foreignKeyName = "resource_group_id") -@IdName("resource_group_id") -@Table("selectors") // located in gateway-ha-persistence-*.sql -@Cached -public class Selectors - extends Model +import org.jdbi.v3.core.mapper.reflect.ColumnName; + +public record Selectors( + @ColumnName("resource_group_id") long resourceGroupId, + @ColumnName("priority") long priority, + @ColumnName("user_regex") String userRegex, + @ColumnName("source_regex") String sourceRegex, + @ColumnName("query_type") String queryType, + @ColumnName("client_tags") String clientTags, + @ColumnName("selector_resource_estimate") String selectorResourceEstimate) { - private static final String resourceGroupId = "resource_group_id"; - private static final String priority = "priority"; - - private static final String userRegex = "user_regex"; - private static final String sourceRegex = "source_regex"; - - private static final String queryType = "query_type"; - private static final String clientTags = "client_tags"; - private static final String selectorResourceEstimate = "selector_resource_estimate"; - - /** - * Retrieves all existing selectors and returns them in a List. - * - * @return a list of all existing selectors - */ - public static List upcast(List selectorList) - { - List selectorDetails = new ArrayList<>(); - for (Selectors dao : selectorList) { - SelectorsDetail selectorDetail = new SelectorsDetail(); - selectorDetail.setResourceGroupId(dao.getLong(resourceGroupId)); - selectorDetail.setPriority(dao.getLong(priority)); - selectorDetail.setUserRegex(dao.getString(userRegex)); - selectorDetail.setSourceRegex(dao.getString(sourceRegex)); - selectorDetail.setQueryType(dao.getString(queryType)); - selectorDetail.setClientTags(dao.getString(clientTags)); - selectorDetail.setSelectorResourceEstimate(dao.getString(selectorResourceEstimate)); - selectorDetails.add(selectorDetail); - } - return selectorDetails; - } - - /** - * Create a new Selector model with the given selector details. - */ - public static void create(Selectors model, SelectorsDetail selectorDetail) - { - model.set(resourceGroupId, selectorDetail.getResourceGroupId()); - model.set(priority, selectorDetail.getPriority()); - model.set(userRegex, selectorDetail.getUserRegex()); - model.set(sourceRegex, selectorDetail.getSourceRegex()); - model.set(queryType, selectorDetail.getQueryType()); - model.set(clientTags, selectorDetail.getClientTags()); - model.set(selectorResourceEstimate, selectorDetail.getSelectorResourceEstimate()); - - model.insert(); - } - - /** - * Update an existing Selector model with the given selector details. - */ - public static void update(Selectors model, SelectorsDetail selectorDetail) - { - model.set(resourceGroupId, selectorDetail.getResourceGroupId()); - model.set(priority, selectorDetail.getPriority()); - model.set(userRegex, selectorDetail.getUserRegex()); - model.set(sourceRegex, selectorDetail.getSourceRegex()); - model.set(queryType, selectorDetail.getQueryType()); - model.set(clientTags, selectorDetail.getClientTags()); - model.set(selectorResourceEstimate, selectorDetail.getSelectorResourceEstimate()); - - model.saveIt(); - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/SelectorsDao.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/SelectorsDao.java new file mode 100644 index 000000000..a80514930 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/SelectorsDao.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.persistence.dao; + +import io.trino.gateway.ha.router.ResourceGroupsManager; +import org.jdbi.v3.sqlobject.customizer.BindBean; +import org.jdbi.v3.sqlobject.statement.SqlQuery; +import org.jdbi.v3.sqlobject.statement.SqlUpdate; + +import java.util.List; + +public interface SelectorsDao +{ + @SqlQuery(""" + SELECT * FROM selectors + """) + List findAll(); + + @SqlQuery(""" + SELECT * FROM selectors + WHERE resource_group_id = :resourceGroupId + """) + List findByResourceGroupId(long resourceGroupId); + + @SqlQuery(""" + SELECT * FROM selectors + WHERE + resource_group_id = :resourceGroupId + AND priority = :priority + AND user_regex IS NOT DISTINCT FROM :userRegex + AND source_regex IS NOT DISTINCT FROM :sourceRegex + AND query_type IS NOT DISTINCT FROM :queryType + AND client_tags IS NOT DISTINCT FROM :clientTags + AND selector_resource_estimate IS NOT DISTINCT FROM :selectorResourceEstimate + LIMIT 1 + """) + Selectors findFirst(@BindBean ResourceGroupsManager.SelectorsDetail selector); + + @SqlUpdate(""" + INSERT INTO selectors + (resource_group_id, priority, user_regex, source_regex, query_type, client_tags, selector_resource_estimate) + VALUES (:resourceGroupId, :priority, :userRegex, :sourceRegex, :queryType, :clientTags, :selectorResourceEstimate) + """) + void insert(@BindBean ResourceGroupsManager.SelectorsDetail selector); + + @SqlUpdate(""" + UPDATE selectors + SET + resource_group_id = :updatedSelector.resourceGroupId, + priority = :updatedSelector.priority, + user_regex = :updatedSelector.userRegex, + source_regex = :updatedSelector.sourceRegex, + query_type = :updatedSelector.queryType, + client_tags = :updatedSelector.clientTags, + selector_resource_estimate = :updatedSelector.selectorResourceEstimate + WHERE + resource_group_id = :selector.resourceGroupId + AND priority = :selector.priority + AND user_regex IS NOT DISTINCT FROM :selector.userRegex + AND source_regex IS NOT DISTINCT FROM :selector.sourceRegex + AND query_type IS NOT DISTINCT FROM :selector.queryType + AND client_tags IS NOT DISTINCT FROM :selector.clientTags + AND selector_resource_estimate IS NOT DISTINCT FROM :selector.selectorResourceEstimate + """) + void update( + @BindBean("selector") ResourceGroupsManager.SelectorsDetail selector, + @BindBean("updatedSelector") ResourceGroupsManager.SelectorsDetail updatedSelector); + + @SqlUpdate(""" + DELETE FROM selectors + WHERE + resource_group_id = :resourceGroupId + AND priority = :priority + AND user_regex IS NOT DISTINCT FROM :userRegex + AND source_regex IS NOT DISTINCT FROM :sourceRegex + AND query_type IS NOT DISTINCT FROM :queryType + AND client_tags IS NOT DISTINCT FROM :clientTags + AND selector_resource_estimate IS NOT DISTINCT FROM :selectorResourceEstimate + """) + void delete(@BindBean ResourceGroupsManager.SelectorsDetail selector); +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java index 0d6727d74..dcd11f6cd 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.router; +import com.google.common.collect.ImmutableList; import io.trino.gateway.ha.persistence.JdbcConnectionManager; import io.trino.gateway.ha.persistence.dao.ExactMatchSourceSelectors; import io.trino.gateway.ha.persistence.dao.ExactMatchSourceSelectorsDao; @@ -20,13 +21,13 @@ import io.trino.gateway.ha.persistence.dao.ResourceGroupsGlobalProperties; import io.trino.gateway.ha.persistence.dao.ResourceGroupsGlobalPropertiesDao; import io.trino.gateway.ha.persistence.dao.Selectors; +import io.trino.gateway.ha.persistence.dao.SelectorsDao; import jakarta.annotation.Nullable; import java.util.ArrayList; import java.util.List; import static com.google.common.collect.ImmutableList.toImmutableList; -import static java.lang.String.format; public class HaResourceGroupsManager implements ResourceGroupsManager @@ -149,13 +150,7 @@ public void deleteResourceGroup(long resourceGroupId, @Nullable String routingGr public SelectorsDetail createSelector(SelectorsDetail selector, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - Selectors.create(new Selectors(), selector); - } - finally { - connectionManager.close(); - } + getSelectorsDao(routingGroupDatabase).insert(selector); return selector; } @@ -167,14 +162,8 @@ public SelectorsDetail createSelector(SelectorsDetail selector, @Override public List readAllSelectors(@Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - List selectorList = Selectors.findAll(); - return Selectors.upcast(selectorList); - } - finally { - connectionManager.close(); - } + List selectorList = getSelectorsDao(routingGroupDatabase).findAll(); + return upcastSelectors(selectorList); } /** @@ -184,15 +173,8 @@ public List readAllSelectors(@Nullable String routingGroupDatab public List readSelector(long resourceGroupId, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - List selectorList = Selectors.where("resource_group_id = ?", - resourceGroupId); - return Selectors.upcast(selectorList); - } - finally { - connectionManager.close(); - } + List selectorList = getSelectorsDao(routingGroupDatabase).findByResourceGroupId(resourceGroupId); + return upcastSelectors(selectorList); } /** @@ -202,32 +184,13 @@ public List readSelector(long resourceGroupId, public SelectorsDetail updateSelector(SelectorsDetail selector, SelectorsDetail updatedSelector, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - String query = - format( - "resource_group_id %s and priority %s " - + "and user_regex %s and source_regex %s " - + "and query_type %s and client_tags %s " - + "and selector_resource_estimate %s", - getMatchingString(selector.getResourceGroupId()), - getMatchingString(selector.getPriority()), - getMatchingString(selector.getUserRegex()), - getMatchingString(selector.getSourceRegex()), - getMatchingString(selector.getQueryType()), - getMatchingString(selector.getClientTags()), - getMatchingString(selector.getSelectorResourceEstimate())); - Selectors model = Selectors.findFirst(query); - - if (model == null) { - Selectors.create(new Selectors(), updatedSelector); - } - else { - Selectors.update(model, updatedSelector); - } + SelectorsDao dao = getSelectorsDao(routingGroupDatabase); + Selectors model = dao.findFirst(selector); + if (model == null) { + dao.insert(updatedSelector); } - finally { - connectionManager.close(); + else { + dao.update(selector, updatedSelector); } return updatedSelector; } @@ -238,26 +201,7 @@ public SelectorsDetail updateSelector(SelectorsDetail selector, SelectorsDetail @Override public void deleteSelector(SelectorsDetail selector, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - String query = - format( - "resource_group_id %s and priority %s " - + "and user_regex %s and source_regex %s " - + "and query_type %s and client_tags %s " - + "and selector_resource_estimate %s", - getMatchingString(selector.getResourceGroupId()), - getMatchingString(selector.getPriority()), - getMatchingString(selector.getUserRegex()), - getMatchingString(selector.getSourceRegex()), - getMatchingString(selector.getQueryType()), - getMatchingString(selector.getClientTags()), - getMatchingString(selector.getSelectorResourceEstimate())); - Selectors.delete(query); - } - finally { - connectionManager.close(); - } + getSelectorsDao(routingGroupDatabase).delete(selector); } /** @@ -355,15 +299,9 @@ public ExactSelectorsDetail getExactMatchSourceSelector( return upcastExactSelectors(exactSelector); } - public String getMatchingString(Object detail) + private SelectorsDao getSelectorsDao(@Nullable String routingGroupDatabase) { - if (detail == null) { - return "IS NULL"; - } - else if (detail.getClass().equals(String.class)) { - return "= '" + detail + "'"; - } - return "= " + detail; + return connectionManager.getJdbi(routingGroupDatabase).onDemand(SelectorsDao.class); } private ResourceGroupsGlobalPropertiesDao getDao(@Nullable String routingGroupDatabase) @@ -394,4 +332,21 @@ private static ExactSelectorsDetail upcastExactSelectors(ExactMatchSourceSelecto exactSelectorDetail.setQueryType(exactMatchSourceSelector.queryType()); return exactSelectorDetail; } + + private static List upcastSelectors(List selectorList) + { + ImmutableList.Builder builder = ImmutableList.builder(); + for (Selectors selectors : selectorList) { + SelectorsDetail selectorDetail = new SelectorsDetail(); + selectorDetail.setResourceGroupId(selectors.resourceGroupId()); + selectorDetail.setPriority(selectors.priority()); + selectorDetail.setUserRegex(selectors.userRegex()); + selectorDetail.setSourceRegex(selectors.sourceRegex()); + selectorDetail.setQueryType(selectors.queryType()); + selectorDetail.setClientTags(selectors.clientTags()); + selectorDetail.setSelectorResourceEstimate(selectors.selectorResourceEstimate()); + builder.add(selectorDetail); + } + return builder.build(); + } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java index 04bef86c9..b3fa814fb 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java @@ -70,6 +70,9 @@ private void createResourceGroup() @Test public void testReadSpecificDbResourceGroupCauseException() { + // Cache could hit across different db url in activejdbc + // This manually clear the cache + org.javalite.activejdbc.cache.QueryCache.instance().purgeTableCache("resource_groups"); assertThatThrownBy(() -> resourceGroupManager.readAllResourceGroups("abcd")) .isInstanceOf(Exception.class); } From cf52f13f28940d2aa068c4a6b689fb9f52a0eca5 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Sun, 17 Mar 2024 10:01:27 +0900 Subject: [PATCH 037/148] Use JDBI for ResourceGroups --- .../ha/persistence/dao/ResourceGroups.java | 136 +++--------------- .../ha/persistence/dao/ResourceGroupsDao.java | 98 +++++++++++++ .../ha/router/HaResourceGroupsManager.java | 90 ++++++------ .../TestSpecificDbResourceGroupsManager.java | 3 - 4 files changed, 164 insertions(+), 163 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java index 27f2963a6..360174125 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java @@ -13,122 +13,28 @@ */ package io.trino.gateway.ha.persistence.dao; -import org.javalite.activejdbc.Model; -import org.javalite.activejdbc.annotations.BelongsTo; -import org.javalite.activejdbc.annotations.Cached; -import org.javalite.activejdbc.annotations.HasMany; -import org.javalite.activejdbc.annotations.IdName; -import org.javalite.activejdbc.annotations.Table; - -import java.util.ArrayList; -import java.util.List; - -import static io.trino.gateway.ha.router.ResourceGroupsManager.ResourceGroupsDetail; - -@BelongsTo(parent = ResourceGroups.class, foreignKeyName = "parent") -@HasMany(child = ResourceGroups.class, foreignKeyName = "parent") -@IdName("resource_group_id") -@Table("resource_groups") // located in gateway-ha-persistence-*.sql -@Cached -public class ResourceGroups - extends Model +import org.jdbi.v3.core.mapper.reflect.ColumnName; + +import static java.util.Objects.requireNonNull; + +public record ResourceGroups( + @ColumnName("resource_group_id") long resourceGroupId, + @ColumnName("name") String name, + @ColumnName("parent") Long parent, + @ColumnName("jmx_export") Boolean jmxExport, + @ColumnName("scheduling_policy") String schedulingPolicy, + @ColumnName("scheduling_weight") Integer schedulingWeight, + @ColumnName("soft_memory_limit") String softMemoryLimit, + @ColumnName("max_queued") int maxQueued, + @ColumnName("hard_concurrency_limit") int hardConcurrencyLimit, + @ColumnName("soft_concurrency_limit") Integer softConcurrencyLimit, + @ColumnName("soft_cpu_limit") String softCpuLimit, + @ColumnName("hard_cpu_limit") String hardCpuLimit, + @ColumnName("environment") String environment) { - private static final String resourceGroupId = "resource_group_id"; - private static final String name = "name"; - - /* OPTIONAL POLICY CONTROLS */ - private static final String parent = "parent"; - private static final String jmxExport = "jmx_export"; - private static final String schedulingPolicy = "scheduling_policy"; - private static final String schedulingWeight = "scheduling_weight"; - - /* REQUIRED QUOTAS */ - private static final String softMemoryLimit = "soft_memory_limit"; - private static final String maxQueued = "max_queued"; - private static final String hardConcurrencyLimit = "hard_concurrency_limit"; - - /* OPTIONAL QUOTAS */ - private static final String softConcurrencyLimit = "soft_concurrency_limit"; - private static final String softCpuLimit = "soft_cpu_limit"; - private static final String hardCpuLimit = "hard_cpu_limit"; - private static final String environment = "environment"; - - /** - * Reads all existing resource groups and returns them in a list. - * - * @return List of ResourceGroupDetail objects - */ - public static List upcast(List resourceGroupList) - { - List resourceGroupDetails = new ArrayList<>(); - for (ResourceGroups dao : resourceGroupList) { - ResourceGroupsDetail resourceGroupDetail = new ResourceGroupsDetail(); - resourceGroupDetail.setResourceGroupId(dao.getLong(resourceGroupId)); - resourceGroupDetail.setName(dao.getString(name)); - - resourceGroupDetail.setParent(dao.getLong(parent)); - resourceGroupDetail.setJmxExport(dao.getBoolean(jmxExport)); - resourceGroupDetail.setSchedulingPolicy(dao.getString(schedulingPolicy)); - resourceGroupDetail.setSchedulingWeight(dao.getInteger(schedulingWeight)); - - resourceGroupDetail.setSoftMemoryLimit(dao.getString(softMemoryLimit)); - resourceGroupDetail.setMaxQueued(dao.getInteger(maxQueued)); - resourceGroupDetail.setHardConcurrencyLimit(dao.getInteger(hardConcurrencyLimit)); - - resourceGroupDetail.setSoftConcurrencyLimit(dao.getInteger(softConcurrencyLimit)); - resourceGroupDetail.setSoftCpuLimit(dao.getString(softCpuLimit)); - resourceGroupDetail.setHardCpuLimit(dao.getString(hardCpuLimit)); - resourceGroupDetail.setEnvironment(dao.getString(environment)); - - resourceGroupDetails.add(resourceGroupDetail); - } - return resourceGroupDetails; - } - - /** - * Creates a new ResourceGroup model. - */ - public static void create(ResourceGroups model, ResourceGroupsDetail resourceGroupDetail) - { - model.set(resourceGroupId, resourceGroupDetail.getResourceGroupId()); - model.set(name, resourceGroupDetail.getName()); - - model.set(parent, resourceGroupDetail.getParent()); - model.set(jmxExport, resourceGroupDetail.getJmxExport()); - model.set(schedulingPolicy, resourceGroupDetail.getSchedulingPolicy()); - model.set(schedulingWeight, resourceGroupDetail.getSchedulingWeight()); - - model.set(softMemoryLimit, resourceGroupDetail.getSoftMemoryLimit()); - model.set(maxQueued, resourceGroupDetail.getMaxQueued()); - model.set(hardConcurrencyLimit, resourceGroupDetail.getHardConcurrencyLimit()); - - model.set(softConcurrencyLimit, resourceGroupDetail.getSoftConcurrencyLimit()); - model.set(softCpuLimit, resourceGroupDetail.getSoftCpuLimit()); - model.set(hardCpuLimit, resourceGroupDetail.getHardCpuLimit()); - model.set(environment, resourceGroupDetail.getEnvironment()); - - model.insert(); - } - - /** - * Updates and saves an existing ResourceGroup model. - */ - public static void update(ResourceGroups model, ResourceGroupsDetail resourceGroupDetail) + public ResourceGroups { - model - .set(resourceGroupId, resourceGroupDetail.getResourceGroupId()) - .set(name, resourceGroupDetail.getName()) - .set(parent, resourceGroupDetail.getParent()) - .set(jmxExport, resourceGroupDetail.getJmxExport()) - .set(schedulingPolicy, resourceGroupDetail.getSchedulingPolicy()) - .set(schedulingWeight, resourceGroupDetail.getSchedulingWeight()) - .set(softMemoryLimit, resourceGroupDetail.getSoftMemoryLimit()) - .set(maxQueued, resourceGroupDetail.getMaxQueued()) - .set(hardConcurrencyLimit, resourceGroupDetail.getHardConcurrencyLimit()) - .set(softConcurrencyLimit, resourceGroupDetail.getSoftConcurrencyLimit()) - .set(softCpuLimit, resourceGroupDetail.getSoftCpuLimit()) - .set(hardCpuLimit, resourceGroupDetail.getHardCpuLimit()) - .set(environment, resourceGroupDetail.getEnvironment()) - .saveIt(); + requireNonNull(name); + requireNonNull(softMemoryLimit); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java new file mode 100644 index 000000000..21add0f8f --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java @@ -0,0 +1,98 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.persistence.dao; + +import io.trino.gateway.ha.router.ResourceGroupsManager; +import org.jdbi.v3.sqlobject.customizer.BindBean; +import org.jdbi.v3.sqlobject.statement.SqlQuery; +import org.jdbi.v3.sqlobject.statement.SqlUpdate; + +import java.util.List; + +public interface ResourceGroupsDao +{ + @SqlQuery("SELECT * FROM resource_groups") + List findAll(); + + @SqlQuery(""" + SELECT * FROM resource_groups + WHERE resource_group_id = :resourceGroupId + """) + List findById(long resourceGroupId); + + @SqlQuery(""" + SELECT * FROM resource_groups + WHERE resource_group_id = :resourceGroupId + LIMIT 1 + """) + ResourceGroups findFirstById(long resourceGroupId); + + @SqlUpdate(""" + INSERT INTO resource_groups ( + resource_group_id, + name, + parent, + jmx_export, + scheduling_policy, + scheduling_weight, + soft_memory_limit, + max_queued, + hard_concurrency_limit, + soft_concurrency_limit, + soft_cpu_limit, + hard_cpu_limit, + environment) + VALUES ( + :resourceGroupId, + :name, + :parent, + :jmxExport, + :schedulingPolicy, + :schedulingWeight, + :softMemoryLimit, + :maxQueued, + :hardConcurrencyLimit, + :softConcurrencyLimit, + :softCpuLimit, + :hardCpuLimit, + :environment) + """) + void insert(@BindBean ResourceGroupsManager.ResourceGroupsDetail resourceGroupsDetail); + + @SqlUpdate(""" + UPDATE resource_groups + SET + name = :name, + parent = :parent, + jmx_export = :jmxExport, + scheduling_policy = :schedulingPolicy, + scheduling_weight = :schedulingWeight, + soft_memory_limit = :softMemoryLimit, + max_queued = :maxQueued, + hard_concurrency_limit = :hardConcurrencyLimit, + soft_concurrency_limit = :softConcurrencyLimit, + soft_cpu_limit = :softCpuLimit, + hard_cpu_limit = :hardCpuLimit, + environment = :environment + WHERE + resource_group_id = :resourceGroupId + """) + void update(@BindBean ResourceGroupsManager.ResourceGroupsDetail resourceGroupsDetail); + + @SqlUpdate(""" + DELETE FROM resource_groups + WHERE resource_group_id = :resourceGroupId + """) + void deleteById(long resourceGroupId); +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java index dcd11f6cd..ff92d6410 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java @@ -18,6 +18,7 @@ import io.trino.gateway.ha.persistence.dao.ExactMatchSourceSelectors; import io.trino.gateway.ha.persistence.dao.ExactMatchSourceSelectorsDao; import io.trino.gateway.ha.persistence.dao.ResourceGroups; +import io.trino.gateway.ha.persistence.dao.ResourceGroupsDao; import io.trino.gateway.ha.persistence.dao.ResourceGroupsGlobalProperties; import io.trino.gateway.ha.persistence.dao.ResourceGroupsGlobalPropertiesDao; import io.trino.gateway.ha.persistence.dao.Selectors; @@ -50,13 +51,7 @@ public HaResourceGroupsManager(JdbcConnectionManager connectionManager) public ResourceGroupsDetail createResourceGroup(ResourceGroupsDetail resourceGroup, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - ResourceGroups.create(new ResourceGroups(), resourceGroup); - } - finally { - connectionManager.close(); - } + getResourceGroupsDao(routingGroupDatabase).insert(resourceGroup); return resourceGroup; } @@ -68,14 +63,8 @@ public ResourceGroupsDetail createResourceGroup(ResourceGroupsDetail resourceGro @Override public List readAllResourceGroups(@Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - List resourceGroupList = ResourceGroups.findAll(); - return ResourceGroups.upcast(resourceGroupList); - } - finally { - connectionManager.close(); - } + List resourceGroups = getResourceGroupsDao(routingGroupDatabase).findAll(); + return upcastResourceGroups(resourceGroups); } /** @@ -87,15 +76,8 @@ public List readAllResourceGroups(@Nullable String routing public List readResourceGroup(long resourceGroupId, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - List resourceGroup = - ResourceGroups.where("resource_group_id = ?", resourceGroupId); - return ResourceGroups.upcast(resourceGroup); - } - finally { - connectionManager.close(); - } + List resourceGroups = getResourceGroupsDao(routingGroupDatabase).findById(resourceGroupId); + return upcastResourceGroups(resourceGroups); } /** @@ -107,21 +89,13 @@ public List readResourceGroup(long resourceGroupId, public ResourceGroupsDetail updateResourceGroup(ResourceGroupsDetail resourceGroup, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - ResourceGroups model = - ResourceGroups.findFirst("resource_group_id = ?", - resourceGroup.getResourceGroupId()); - - if (model == null) { - ResourceGroups.create(new ResourceGroups(), resourceGroup); - } - else { - ResourceGroups.update(model, resourceGroup); - } + ResourceGroupsDao dao = getResourceGroupsDao(routingGroupDatabase); + ResourceGroups model = dao.findFirstById(resourceGroup.getResourceGroupId()); + if (model == null) { + dao.insert(resourceGroup); } - finally { - connectionManager.close(); + else { + dao.update(resourceGroup); } return resourceGroup; } @@ -132,13 +106,7 @@ public ResourceGroupsDetail updateResourceGroup(ResourceGroupsDetail resourceGro @Override public void deleteResourceGroup(long resourceGroupId, @Nullable String routingGroupDatabase) { - try { - connectionManager.open(routingGroupDatabase); - ResourceGroups.delete("resource_group_id = ?", resourceGroupId); - } - finally { - connectionManager.close(); - } + getResourceGroupsDao(routingGroupDatabase).deleteById(resourceGroupId); } /** @@ -304,6 +272,11 @@ private SelectorsDao getSelectorsDao(@Nullable String routingGroupDatabase) return connectionManager.getJdbi(routingGroupDatabase).onDemand(SelectorsDao.class); } + private ResourceGroupsDao getResourceGroupsDao(@Nullable String routingGroupDatabase) + { + return connectionManager.getJdbi(routingGroupDatabase).onDemand(ResourceGroupsDao.class); + } + private ResourceGroupsGlobalPropertiesDao getDao(@Nullable String routingGroupDatabase) { return connectionManager.getJdbi(routingGroupDatabase).onDemand(ResourceGroupsGlobalPropertiesDao.class); @@ -349,4 +322,31 @@ private static List upcastSelectors(List selectorLis } return builder.build(); } + + private static List upcastResourceGroups(List resourceGroupList) + { + ImmutableList.Builder builder = new ImmutableList.Builder<>(); + for (ResourceGroups resourceGroups : resourceGroupList) { + ResourceGroupsDetail resourceGroupDetail = new ResourceGroupsDetail(); + resourceGroupDetail.setResourceGroupId(resourceGroups.resourceGroupId()); + resourceGroupDetail.setName(resourceGroups.name()); + + resourceGroupDetail.setParent(resourceGroups.parent()); + resourceGroupDetail.setJmxExport(resourceGroups.jmxExport()); + resourceGroupDetail.setSchedulingPolicy(resourceGroups.schedulingPolicy()); + resourceGroupDetail.setSchedulingWeight(resourceGroups.schedulingWeight()); + + resourceGroupDetail.setSoftMemoryLimit(resourceGroups.softMemoryLimit()); + resourceGroupDetail.setMaxQueued(resourceGroups.maxQueued()); + resourceGroupDetail.setHardConcurrencyLimit(resourceGroups.hardConcurrencyLimit()); + + resourceGroupDetail.setSoftConcurrencyLimit(resourceGroups.softConcurrencyLimit()); + resourceGroupDetail.setSoftCpuLimit(resourceGroups.softCpuLimit()); + resourceGroupDetail.setHardCpuLimit(resourceGroups.hardCpuLimit()); + resourceGroupDetail.setEnvironment(resourceGroups.environment()); + + builder.add(resourceGroupDetail); + } + return builder.build(); + } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java index b3fa814fb..04bef86c9 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java @@ -70,9 +70,6 @@ private void createResourceGroup() @Test public void testReadSpecificDbResourceGroupCauseException() { - // Cache could hit across different db url in activejdbc - // This manually clear the cache - org.javalite.activejdbc.cache.QueryCache.instance().purgeTableCache("resource_groups"); assertThatThrownBy(() -> resourceGroupManager.readAllResourceGroups("abcd")) .isInstanceOf(Exception.class); } From c268cf2593b461b07e3757fe9f577e906cceccf2 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 20 Mar 2024 23:43:29 +0900 Subject: [PATCH 038/148] Remove activejdbc --- gateway-ha/pom.xml | 38 ------------------- .../ha/persistence/JdbcConnectionManager.java | 24 ------------ .../src/main/resources/activejdbc-ehcache.xml | 16 -------- .../src/main/resources/activejdbc.properties | 1 - .../trino/gateway/ha/HaGatewayTestUtils.java | 13 +++---- 5 files changed, 5 insertions(+), 87 deletions(-) delete mode 100644 gateway-ha/src/main/resources/activejdbc-ehcache.xml delete mode 100644 gateway-ha/src/main/resources/activejdbc.properties diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 60c3640c6..d428490c6 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -20,7 +20,6 @@ webapp - 2.3 3.44.0 4.1.0 5.8.0 @@ -315,12 +314,6 @@ - - org.javalite - activejdbc - ${dep.activejdbc.version} - - org.jdbi jdbi3-core @@ -499,20 +492,6 @@ - - org.javalite - activejdbc-instrumentation - ${dep.activejdbc.version} - - - - instrument - - process-classes - - - - org.apache.maven.plugins maven-dependency-plugin @@ -633,23 +612,6 @@ - - - org.javalite - db-migrator-maven-plugin - ${dep.activejdbc.version} - - ${project.basedir}/src/migrations/database.properties - ${environments} - - - - mysql - mysql-connector-java - ${dep.mysqlconnector.version} - - - diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java index b2d5fa601..c1e7b6f29 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/JdbcConnectionManager.java @@ -17,7 +17,6 @@ import io.trino.gateway.ha.config.DataStoreConfiguration; import io.trino.gateway.ha.persistence.dao.QueryHistoryDao; import jakarta.annotation.Nullable; -import org.javalite.activejdbc.Base; import org.jdbi.v3.core.Jdbi; import org.jdbi.v3.sqlobject.SqlObjectPlugin; @@ -61,23 +60,6 @@ public Jdbi getJdbi(@Nullable String routingGroupDatabase) .registerRowMapper(new RecordAndAnnotatedConstructorMapper()); } - public void open() - { - this.open(null); - } - - public void open(@Nullable String routingGroupDatabase) - { - String jdbcUrl = buildJdbcUrl(routingGroupDatabase); - log.debug("Jdbc url is " + jdbcUrl); - Base.open( - configuration.getDriver(), - jdbcUrl, - configuration.getUser(), - configuration.getPassword()); - log.debug("Connection opened"); - } - private String buildJdbcUrl(@Nullable String routingGroupDatabase) { String jdbcUrl = configuration.getJdbcUrl(); @@ -87,12 +69,6 @@ private String buildJdbcUrl(@Nullable String routingGroupDatabase) return jdbcUrl; } - public void close() - { - Base.close(); - log.debug("Connection closed"); - } - private void startCleanUps() { executorService.scheduleWithFixedDelay( diff --git a/gateway-ha/src/main/resources/activejdbc-ehcache.xml b/gateway-ha/src/main/resources/activejdbc-ehcache.xml deleted file mode 100644 index 76dc1f435..000000000 --- a/gateway-ha/src/main/resources/activejdbc-ehcache.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - java.lang.String - java.lang.Object - - 10 - - - 1000 - - - 10 - 200 - - - diff --git a/gateway-ha/src/main/resources/activejdbc.properties b/gateway-ha/src/main/resources/activejdbc.properties deleted file mode 100644 index b7f99c87f..000000000 --- a/gateway-ha/src/main/resources/activejdbc.properties +++ /dev/null @@ -1 +0,0 @@ -cache.manager=org.javalite.activejdbc.cache.EHCache3Manager diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java index 592e1be80..8cc8a6a75 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java @@ -14,8 +14,6 @@ package io.trino.gateway.ha; import io.airlift.log.Logger; -import io.trino.gateway.ha.config.DataStoreConfiguration; -import io.trino.gateway.ha.persistence.JdbcConnectionManager; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; @@ -23,7 +21,7 @@ import okhttp3.Response; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; -import org.javalite.activejdbc.Base; +import org.jdbi.v3.core.Handle; import org.jdbi.v3.core.Jdbi; import java.io.File; @@ -50,12 +48,11 @@ private HaGatewayTestUtils() {} public static void seedRequiredData(TestConfig testConfig) { String jdbcUrl = "jdbc:h2:" + testConfig.h2DbFilePath(); - DataStoreConfiguration db = new DataStoreConfiguration(jdbcUrl, "sa", "sa", "org.h2.Driver", 4); Jdbi jdbi = Jdbi.create(jdbcUrl, "sa", "sa"); - JdbcConnectionManager connectionManager = new JdbcConnectionManager(jdbi, db); - connectionManager.open(); - Base.exec(HaGatewayTestUtils.getResourceFileContent("gateway-ha-persistence-mysql.sql")); - connectionManager.close(); + try (Handle handle = jdbi.open()) { + handle.createUpdate(HaGatewayTestUtils.getResourceFileContent("gateway-ha-persistence-mysql.sql")) + .execute(); + } } public static void prepareMockBackend( From ce0616cc6704dc0fd9ef44316a8fb6a4ced707db Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 4 Apr 2024 17:03:48 +0900 Subject: [PATCH 039/148] Improve synchronization in QueryCountBasedRouter --- gateway-ha/pom.xml | 6 ++++++ .../gateway/ha/router/QueryCountBasedRouter.java | 13 +++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index d428490c6..a98221e5d 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -55,6 +55,12 @@ jackson-databind + + com.google.errorprone + error_prone_annotations + true + + com.google.guava guava diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java index 6f63e8f8a..404f0b7a4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java @@ -14,6 +14,9 @@ package io.trino.gateway.ha.router; +import com.google.common.annotations.VisibleForTesting; +import com.google.common.collect.ImmutableList; +import com.google.errorprone.annotations.concurrent.GuardedBy; import io.trino.gateway.ha.clustermonitor.ClusterStats; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -30,14 +33,16 @@ public class QueryCountBasedRouter extends StochasticRoutingManager { private static final Logger log = LoggerFactory.getLogger(QueryCountBasedRouter.class); + @GuardedBy("this") private List clusterStats; - List clusterStats() + @VisibleForTesting + synchronized List clusterStats() { - return clusterStats; + return ImmutableList.copyOf(clusterStats); } - class LocalStats + static class LocalStats { private int runningQueryCount; private int queuedQueryCount; @@ -175,7 +180,7 @@ private int compareStats(LocalStats lhs, LocalStats rhs, String user) // else we assume it would be scheduled immediately and we increment the stats for the running // queries - private Optional getClusterToRoute(String user, String routingGroup) + private synchronized Optional getClusterToRoute(String user, String routingGroup) { log.debug("sorting cluster stats for {} {}", user, routingGroup); List filteredList = clusterStats.stream() From 5bf3cd352e5e10b24f1e01d77d425fc95ecf6a39 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 5 Apr 2024 21:59:23 +0900 Subject: [PATCH 040/148] Update Jdbi to 3.45.1 --- gateway-ha/pom.xml | 4 ---- pom.xml | 8 ++++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index a98221e5d..80b7e9155 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -20,7 +20,6 @@ webapp - 3.44.0 4.1.0 5.8.0 4.12.0 @@ -319,17 +318,14 @@ jersey-server - org.jdbi jdbi3-core - ${dep.jdbi.version} org.jdbi jdbi3-sqlobject - ${dep.jdbi.version} diff --git a/pom.xml b/pom.xml index 8e182f931..31b05260a 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,14 @@ import + + org.jdbi + jdbi3-bom + 3.45.1 + pom + import + + org.testcontainers testcontainers-bom From a77f62df11aac7482a25c566df276408b83fd2ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EC=9E=AC=ED=98=B8=5BJaeho=20Yoo=5D=5BData=20Anal?= =?UTF-8?q?ytics=20Solution=5D?= Date: Wed, 3 Apr 2024 17:01:30 +0900 Subject: [PATCH 041/148] Allow page permissions in UI - change langing page to /dashboard - Add hyperlink to Trino Gateway in UI --- docs/security.md | 21 +++ .../gateway/ha/resource/LoginResource.java | 2 +- .../resources/static/assets/index-05SkmtNI.js | 169 ++++++++++++++++++ .../resources/static/assets/index-DjKQuKRX.js | 169 ++++++++++++++++++ .../resources/static/assets/index-LPSIbY_J.js | 169 ++++++++++++++++++ .../resources/static/assets/index-aIgX_lG9.js | 169 ++++++++++++++++++ .../resources/static/assets/index-uyYFzuRs.js | 169 ++++++++++++++++++ .../resources/static/assets/index-ytwn7x7b.js | 169 ++++++++++++++++++ .../src/main/resources/static/index.html | 2 +- webapp/src/App.tsx | 5 +- webapp/src/components/layout.tsx | 10 +- webapp/src/router.tsx | 4 +- 12 files changed, 1050 insertions(+), 8 deletions(-) create mode 100644 gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js create mode 100644 gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js create mode 100644 gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js create mode 100644 gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js create mode 100644 gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js create mode 100644 gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js diff --git a/docs/security.md b/docs/security.md index d6a63417d..4746d712d 100644 --- a/docs/security.md +++ b/docs/security.md @@ -173,3 +173,24 @@ The LDAP config file should have the following contents: poolMinIdle: 0 poolTestOnBorrow: true ``` + +## Web page permissions + +By default, all pages are accessible to all roles. +To limit page access, you can set page permissions by pages +and `_` as separator field. + +The following pages are available: +- `dashboard` +- `cluster` +- `resource-group` +- `selector` +- `history` + +```yaml +# admin/api can access all pages, while user can only access dashboard/history +pagePermissions: + admin: + user: dashboard_history + api: +``` diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java index 5f53a01f4..dd9ffbd57 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java @@ -107,7 +107,7 @@ public Response processRESTLogin() public Response restUserinfo(@Context SecurityContext securityContext) { LbPrincipal principal = (LbPrincipal) securityContext.getUserPrincipal(); - List roles = List.of(principal.getMemberOf().orElse("").split("_")); + List roles = List.of(principal.getMemberOf().map(String::toLowerCase).orElse("").split("_")); List pagePermissions; if (formAuthManager != null) { pagePermissions = formAuthManager.processPagePermissions(roles); diff --git a/gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js b/gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js new file mode 100644 index 000000000..fbd18f96c --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js @@ -0,0 +1,169 @@ +var Hoe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Hoe((Bmt,j2)=>{function Uoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Woe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var cW={exports:{}},UC={},dW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ay=Symbol.for("react.element"),Goe=Symbol.for("react.portal"),Yoe=Symbol.for("react.fragment"),Koe=Symbol.for("react.strict_mode"),Zoe=Symbol.for("react.profiler"),Xoe=Symbol.for("react.provider"),qoe=Symbol.for("react.context"),Qoe=Symbol.for("react.forward_ref"),Joe=Symbol.for("react.suspense"),ese=Symbol.for("react.memo"),tse=Symbol.for("react.lazy"),eR=Symbol.iterator;function nse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var fW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hW=Object.assign,pW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=pW,this.updater=t||fW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function gW(){}gW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=pW,this.updater=t||fW}var r6=n6.prototype=new gW;r6.constructor=n6;hW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,vW=Object.prototype.hasOwnProperty,a6={current:null},mW={key:!0,ref:!0,__self:!0,__source:!0};function yW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)vW.call(e,r)&&!mW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(CW);SW.exports=CW;var pse=SW.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wW=D,Fi=pse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,gse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function vse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:gse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function mse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function yse(n,e,t,r){if(e===null||typeof e>"u"||mse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function bse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case EW:return(n.displayName||"Context")+".Consumer";case TW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function _se(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function IW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sse(n){var e=IW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=Sse(n))}function PW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=IW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function DW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){DW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Cse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function LW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function kW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=LW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var wse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(wse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function NW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function FW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Lse(n)/kse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function Vse(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function rG(n,e){switch(n){case"keyup":return hle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function gle(n,e){switch(n){case"compositionend":return aG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function vle(n,e){if(up)return n==="compositionend"||!_6&&rG(n,e)?(n=tG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function lG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?lG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function uG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function Tle(n){var e=uG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&lG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function yG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,_se(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=yG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function bG(n){Ol===null?Ol=[n]:Ol.push(n)}function Fle(n){XC=!0,bG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=OG(!0),IG=OG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function PG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function WG(){return So().memoizedState}function zle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},GG(n))YG(e,t);else if(t=wG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),KG(t,e,r)}}function Ble(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(GG(n))YG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=wG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),KG(t,e,r))}}function GG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function YG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function KG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Hle={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,jG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=zle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=jle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||MG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(LG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,RG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,rY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function qle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,Qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Jle(n,e){if(H3=G2,n=uG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function oY(n){var e=n.alternate;e!==null&&(n.alternate=null,oY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[kle],delete e[Nle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function sY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||sY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)lY(n,e,t),t=t.sibling}function lY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Qle),e.forEach(function(r){var a=lue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function vY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function sue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),vY(n,t)}function lue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),vY(n,t)}var mY;mY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Zle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&_G(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=cue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(eY(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,xG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=IG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return PG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),JG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return tY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return qG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),EG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return nY(n,e,t);case 22:return QG(n,e,t)}throw Error(ue(156,e.tag))};function yY(n,e){return UW(n,e)}function uue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new uue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case OW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case TW:o=10;break e;case EW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=OW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function due(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new due(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function fue(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CY)}catch(n){console.error(n)}}CY(),_W.exports=ji;var Ti=_W.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class mue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||bue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function _ue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function Sue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=wY(n);Cue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),wY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Pue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of xY(i.path))a(i,o,l)}),e}function xY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=xY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Cue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Due(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const wue=/^:\w+$/,xue=3,Tue=2,Eue=1,Oue=10,Iue=-2,fL=n=>n==="*";function Pue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Iue),e&&(r+=Tue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(wue.test(i)?xue:i===""?Eue:Oue),r)}function Due(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Aue(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=kue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Rue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Lue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function kue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function Nue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Fue(t,e):e,search:jue(r),hash:zue(a)}}function Fue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $ue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function TY(n){return $ue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function EY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=Nue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),Vue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Bue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const OY=["post","put","patch","delete"];new Set(OY);const Hue=["get",...OY];new Set(Hue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=EY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function AY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(TY(r));return D.useMemo(()=>EY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Yue(n,e){return Kue(n,e)}function Kue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Sue(n,{pathname:f}),p=Jue(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Zue(){let n=rce(),e=Bue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Xue=D.createElement(Zue,null);class que extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(IY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Jue(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Xue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(Que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(que,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var MY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(MY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function ece(n){let e=D.useContext(q6);return e||dr(!1),e}function tce(n){let e=D.useContext(Uue);return e||dr(!1),e}function nce(n){let e=D.useContext(Kf);return e||dr(!1),e}function RY(n){let e=nce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function rce(){var n;let e=D.useContext(IY),t=tce(hS.UseRouteError),r=RY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function ace(){let{router:n}=ece(MY.UseNavigateStable),e=RY(hS.UseNavigateStable),t=D.useRef(!1);return PY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ice(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function oce(n){let{children:e,location:t}=n;return Yue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function lce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function uce(n,e){return n.button===0&&(!e||e==="_self")&&!lce(n)}const cce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],dce="startTransition",hL=sse[dce];function fce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=yue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ice,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const hce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pL=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=sce(e,cce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&pce.test(u)&&(p=u,hce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Wue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var gL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(gL||(gL={}));var vL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(vL||(vL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=DY(),u=Fy(),c=AY(n,{relative:o});return D.useCallback(d=>{if(uce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,LY=mce,yce=LY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,mL=Ag,kY=Object.prototype,Rce=kY.hasOwnProperty,Lce=kY.toString,Av=mL?mL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,yL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",bL=yL?yL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:bL&&bL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,_L=pi,Qce=Mg,SL=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return SL;if(_L(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=_L(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?SL:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,CL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=CL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(CL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var NY=lde;const J6=Ie(NY);var ude=NY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var FY=pde;const B=Ie(FY);var $Y={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var AL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!PL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;PL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function ZY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:ZY(n)?n:{block:"start",inline:"nearest"}}function ML(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(ZY(e)&&typeof e.behavior=="function")return e.behavior(t?AL(n,e):[]);if(t){var r=lpe(e);return spe(AL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var oK=Age;const F1=Ie(oK);gS.exports;(function(n,e){var t=os,r=oK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,sK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=sK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=LY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,FL=Hy,$L=FL&&FL.isTypedArray,bve=$L?yve($L):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var lK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),hK=Ume,Wme=Wy,Gme=fK,Yme=hK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?DK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=DK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var AK=Ube;const Wbe=Ie(AK);var Gbe=AK,Ybe=fK,Kbe=hK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var MK=Zbe,Xbe=Xf,qbe=ww,Qbe=PK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=MK,r_e=SK,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function $K(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return jK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},zK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function BK(){return document?document.activeElement:null}function HK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class WK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}WK.defaultProps={motion:!0,replayKey:""};const ig=WK;var bk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(UK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new FK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=bk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=bk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>HK(t),getActiveElement:()=>BK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const GK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=GK;x7.exports.default=GK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),YK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function ZK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function _k(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=_k(n),r=_k(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function XK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=qK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function QK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function JK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=qK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=JK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=QK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Ck(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Ck(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Sk(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Sk(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function Sk(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Ck(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var wk=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eZ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return wk(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",wk(a,t)).replace("{{time}}",eZ(i,t))},tCe={p:eZ,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function tZ(n){return nCe.indexOf(n)!==-1}function nZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:KK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=ZK(I),A=XK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&nZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&tZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function rZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function aZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Ek(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function uZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=lZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=lZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=JK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=QK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=Tk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&nZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=XK(G,ZK(G)),Q={},Z=Tk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ok(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ik(n,e){qe(2,arguments);var t=Ok(n),r=Ok(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function dZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(dZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(dZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=rZ(o);return t.setMonth(r,Math.min(i,s)),t}function fZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function hZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Pk(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Pk,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Pk,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:KK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(YK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});pZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(pZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),gZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),vZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),mZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),yZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),bZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),_Z=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),SZ=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,CZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,CZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};wZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=wZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:CZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var xZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),TZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),OZ=typeof WeakMap<"u"?new WeakMap:new xZ,IZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);OZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){IZ.prototype[n]=function(){var e;return(e=OZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:IZ}();const Ak=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Ak(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Ak(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(XY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=XY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,PZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var DZ=R4e;const Rn=Ie(DZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Mk++,a=Mk);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(AZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class MZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},MZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:PZ.PREFIX_OPTION};const LZ=Rw,vb=PZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(LZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=LZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function kZ(n,e){return 1-3*e+3*n}function NZ(n,e){return 3*e-6*n}function FZ(n){return 3*n}function OS(n,e,t){return((kZ(e,t)*n+NZ(e,t))*n+FZ(e))*n}function $Z(n,e,t){return 3*kZ(e,t)*n*n+2*NZ(e,t)*n+FZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Lk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Lk(n,1,10),r=Lk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function kk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function Nk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=kk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=kk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let VZ=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const jZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const BZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(BZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=pK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var WZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=CK,NOe=FY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=WZ,HOe=GZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=ZZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?ZZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function jk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function zk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function XZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function Bk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function QZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Hk(n,e){return[...n].filter(r=>r in e)}function JZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const eX={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function tX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=tX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return XZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const nX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Yk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Kk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function rX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Kk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Yk():0:C=w.scrollHeight>w.clientHeight?Yk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Kk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Gk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?aX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},aX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=rX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Zk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Zk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=eX.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const iX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:sX[0],color:oX[0],closable:!1,type:lX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(sX),color:v.oneOf(oX),type:v.oneOf(lX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Xk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function uX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||uX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function cX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=cX(1),B1=cX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),qk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(qk)?n:n.querySelector(qk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const dX=D.createContext(null);function XIe(n){const e=D.useContext(dX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function fX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function hX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function Qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function pX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Jk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Jk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=fX(Jk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(hX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=Qk(l),c=a.reduce((f,h,p)=>f+fX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(hX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function gX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function vX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=vX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function eN(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||uX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function mX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function yX(n){return Gg(n)?n.scrollX:n.scrollLeft}function bX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:yX(n),y:bX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function _X(n){return!Bw||!n?!1:n===document.scrollingElement}function SX(n){const e={x:0,y:0},t=_X(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=SX(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function CX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+yX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+bX(t),0)}function wX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);mX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=CX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function tN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const xX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&wX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=xX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=SX(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=xX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function nN(n){return!!(n&&"distance"in n)}function rN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,tN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,tN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(rN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(nN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(nN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return rN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class TX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}TX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class EX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}EX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class OX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}OX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const aN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return aN;if(!y||y===aN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function iN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return gX(n,e)}const oN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==oN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):oN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):CX(n):ts,[n,e])}function sN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function IX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=IX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>_X(l)?r:new nA(e(l),l)):g5}}function PX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=PX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:TX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:eN},droppable:{measure:eN,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},DX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(DX),AX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function MX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=gX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=mX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=iN(se,Y.draggable.measure,re),oe=iN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=IX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=MX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=sN(vu),yh=sN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=pX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(dX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(AX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),lN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=lN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===lN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function RX(){return D.useContext(AX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:DX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=PX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=vX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return wX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let uN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return uN++,uN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=RX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=MX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function LX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=LX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},kX="Sortable",NX=x.createContext({activeIndex:-1,containerId:kX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=RX(),d=r0(kX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(NX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return LX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},FX="transform",xDe=Dc.Transition.toString({property:FX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(NX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:FX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=$X(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function $X(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!$X(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Xk.SIZE_SET),validateStatus:v.oneOf(Xk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=eX.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=tX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=JZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,cN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${cN.PREFIX}-wrapper`,{[`${cN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const VX=Zg;var HDe=PK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=UY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),dN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=UZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return UZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(dN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!dN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function jX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,fN=Hy,hN=fN&&fN.isDate,f6e=hN?d6e(hN):c6e,h6e=f6e;const pN=Ie(h6e);function Vl(n){return typeof n=="string"}function gN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return aZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return aZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const zX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>zX;function Zu(n){return n&&zX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},BX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var Fn=BX.exports,BO={exports:{}},HO={exports:{}},HX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(HX);var UX=HX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var WX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(WX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var GX={};function O6e(){return GX}function I6e(n){GX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var YX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(YX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(WX),o=t(D6e),s=t(YX),l=t(KX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var ZX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(ZX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var XX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(XX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var qX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(ZX),a=o(o0),i=o(qX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var QX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var JX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var eq=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(JX),r=i(QX),a=i(eq);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(JX),r=s(Zw),a=s(qX),i=s(o0),o=s(XX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,tq={format:QX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:eq,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],vN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,nq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in vN){const r=vN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},mN={};function o7e(n){if(mN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),mN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>tq.utcToZonedTime(n,nq(e),t),zp=(n,e,t)=>tq.zonedTimeToUtc(n,nq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=cZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ik(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ik(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function rq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const yN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===yN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===yN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=rq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function bN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function _N(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(bN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(_N,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(bN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(_N,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(gZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function aq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=rZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,SN={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return SN[e]&&SN[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=fZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=aq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const CN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:CN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${CN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(yZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=gN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&gN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=uK,x7e=NK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=lq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,wN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:wN(e),t=t===void 0?r:wN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new VZ({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,xN=1e3/60,TN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),TN.test(l.className)&&(l.className="")}),r.className&&!TN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},xN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},xN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/EN),10)*EN-8*cq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(uq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=hZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const ON=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(fZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=hZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(uq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${ON}-yearmonth-header`,u=`${ON}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const dq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=rq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(dq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(vZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(pN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];pN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(dq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=jX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),fq={PREFIX:`${q}-descriptions`},IN={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(IN.ALIGN_SET),row:v.bool,size:v.oneOf(IN.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}hq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},AN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=YZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},pq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(pq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let MN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){MN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${MN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(gq),success:t(vq),error:t(yq),warning:t(mq),confirm:t(bq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(UK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(AN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(AN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(gq(n))};ol.success=function(n){return l0(vq(n))};ol.error=function(n){return l0(yq(n))};ol.warning=function(n){return l0(mq(n))};ol.confirm=function(n){return l0(bq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},RN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,_q=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};_q.propTypes={style:v.object,className:v.string};const V9e=_q,LN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${LN}-title`]:!0,[`${LN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:RN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=RN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,Sq={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);azK(NN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Cq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:Sq.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Cq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:Sq.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),wq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(FN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>zK(FN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=wq;f0.elementType="Layout.Sider";const X9e=f0;var xq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=xq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=xq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(wq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var $N=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const VN={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},jN=n=>{Object.keys(VN).forEach(e=>{n.style.setProperty(e,VN[e],"important")})},zN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),jN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),jN(bi),bi.value=e;let l=zN(bi,n);bi.value="x";const u=zN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=DZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function BN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(BN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(BN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const Tq=jX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),HN="horizontal",UN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[UN,HN],MODE_VERTICAL:UN,MODE_HORIZONTAL:HN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},WN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},WN):this.toggleIcon=Object.assign({},WN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},YN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?GN(i,t):YN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?GN(this._adapter.getOpenKeys(),r):YN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement(VX,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function ZN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:KN(this,"selectedKeys"),removeSelectedKeys:ZN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:KN(this,"openKeys"),removeOpenKeys:ZN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},XN={COLLAPSE:"collapse",SCROLL:"scroll"},qN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(qN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(XN),MODE_MAP:XN,BOUNDARY_MAP:qN,OVERFLOW_DIR:P8e},QN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,JN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:JN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=JN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/QN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/QN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var eF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=eF(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=eF(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Eq={LIST_HEIGHT:270},Fv=iX.PREFIX,Oq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Oq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Oq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=tF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,tF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Iq=z8e;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Pq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new FK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>HK(i),getActiveElement:()=>BK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Pq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Eq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Iq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(BZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Pq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Eq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var rF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(Tq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=rF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=rF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Dq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Dq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Dq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},aF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var iF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=iF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=iF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const oF=MA,Aq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Aq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Aq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Mq=LA;class sMe extends Z1{}sMe.Group=Mq;const u2={PREFIX:`${q}-rating`},Rq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Lq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Lq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Lq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),sF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=sF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=sF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const kq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=RK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=vK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,lF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,uF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,cF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Fq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function fF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function $q(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function jq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function zq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=zq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new Nq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function Bq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&hF.call(s,l,1),hF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function pF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=pF(o,[...s,...r]),u=[...o]}else a=pF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=jq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const gF=$S,Hq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Hq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Uq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Uq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Uq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(SZ,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=Vq(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=Bq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Wq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Wq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=sq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Gq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Gq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Yq="[^"+Gq+"]",Kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Zq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Xq=eLe+"?",qq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Yq,Kq,Zq].join("|")+")"+qq+Xq+")*",rLe=qq+Xq+nLe,aLe="(?:"+[Yq+zI+"?",zI,Kq,Zq,JRe].join("|")+")",vF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=vF.lastIndex=0;vF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:$q(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const mF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(mF).forEach(a=>{t.style[a]=mF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function Qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function yF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new Nq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=dF(o,t),l=s!=null&&qs(n,u=>dF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Fq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=Bq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),bF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?Qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;bF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var _F=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=_F(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Fq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=_F(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?Qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const SF=cx;var CF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=CF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=CF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(SF.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(SF,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>fF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:$q(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=fF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Wq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=jq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new gF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=gF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:yF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=zq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:yF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Hq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,wF=Hy,xF=wF&&wF.isRegExp,nke=xF?tke(xF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Jq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Jq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",eQ="[^"+Jq+"]",tQ="(?:\\ud83c[\\udde6-\\uddff]){2}",nQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",rQ=fke+"?",aQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[eQ,tQ,nQ].join("|")+")"+aQ+rQ+")*",gke=aQ+rQ+pke,vke="(?:"+[eQ+UI+"?",UI,tQ,nQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=GY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},iQ={};function oQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&dQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&fQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function dQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function fQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function hQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(hQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=hQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(iQ);const{default:pQ,DraggableCore:_Ne}=iQ;fx.exports=pQ;fx.exports.default=pQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function OF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function IF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function PF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=vQ($y),zNe=vQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vQ(n){return n&&n.__esModule?n:{default:n}}function mQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(mQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=mQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var yQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=cZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(vZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,AF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],MF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:MF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:MF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(AF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},AF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(_Z,null),info:x.createElement(bZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const bQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(bQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(bQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),_Q={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return jK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=_Q.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(SZ,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement(VX,Object.assign({},r,{isOpen:a}),t)}const RF=n=>n.key;class SQ extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=RF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=RF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}SQ.contextType=p9;const CQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return XZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?Bk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?Bk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(SQ,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Iq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=jk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=jk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=zk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=zk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Hk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Hk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=JZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,LF=`${q}-upload`,kF="picture",NF="list",LFe=.95,wQ={PREFIX:LF,LIST:`${LF}-list`},FF="auto",$F="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:kF,FILE_LIST_DEFAULT:NF,LIST_TYPE:[kF,NF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:FF,TRIGGER_CUSTOM:$F,UPLOAD_TRIGGER:[FF,$F],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:VF,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:jF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?VF:jF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===jF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=VF,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=wQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(oF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(oF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const xQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(xQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=xQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(YK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function zF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){TQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:TQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=UF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;ML(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);ML(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const EQ=x.createContext({});EQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,WF=tu.PREFIX;class OQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[WF+"-section"]:!0},t),o=WF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}OQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function IQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=IQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class PQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}PQ.contextType=b0;const U$e=PQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));IQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(Tq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Mq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(kq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and

in ths same time; will be ignored"),_n(e.component&&e.children&&!mk(e.children),"[Semi Form] You should not use and {children} in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!mk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(EQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=OQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},DQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function AQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){AQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,MQ={en_US:DQ},GF=Object.keys(MQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",RQ="en_US",ve=DQ,TVe=MQ[_9()];AQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return RQ}}function _9(){const n=EVe(xVe);if(GF.includes(n??""))return n;const e=OVe();for(const t of GF)if(e.includes(t))return t;return RQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const YF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?YF(n):YF;var LQ={exports:{}},kQ={},NQ={exports:{}},FQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;FQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;NQ.exports=FQ;var zVe=NQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;kQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};LQ.exports=kQ;var XVe=LQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const KF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},$Q=n=>n?KF(n):KF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),VQ=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=$Q()(VQ((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const ZF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},jQ=$Q()(VQ((n,e)=>({...ZF,reset(){n(()=>({...ZF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,zQ="sans-serif",Ac=C9+"px "+zQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?JF(s,o):JF(o,s))}function KQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?t$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):t$(n,e,t),t}function t$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(KQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function n$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=r$(r)/r$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var ZQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),XQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=qQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(a$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?ZQ:!0}return!1}function a$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZQ)){e.target=o;break}}}function qQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=XQ;var QQ=32,Gv=7;function Kze(n){for(var e=0;n>=QQ;)e|=n&1,n>>=1;return n+e}function i$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),o$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,s$=!1;function e4(){s$||(s$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function l$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=l$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var JQ;JQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=JQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const eJ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,tJ=1e-4,u$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function c$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+u$*Math.sin(w)))/(3*o),O=(-s+T*(E-u$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function rJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(nJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function aJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function iJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function oJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:eJ[e]||M9(e)},n}();const aBe=rBe;var sJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new sJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new sJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var d$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var lJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=lJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=lJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in d$)return yP(e,d$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var f$=1e-4;function nc(n){return n-f$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function uJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return uJ(n)||gBe(n)}function cJ(n){return n.type==="linear"}function dJ(n){return n.type==="radial"}function fJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function hJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=p$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),cJ(t)?s=wP:dJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===p$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:eJ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=g$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(g$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===gJ&&h$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),v$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},m$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function vJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;vJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){m$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){m$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMoment_$||n<-_$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(b$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):b$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){yJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=UQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const _J=k9;var SJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),wJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>wJ?r:Ln(r,t)}var T$=9007199254740991;function TJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-x$&&n=10&&e++,e}function EJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function E$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,D$,D$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function D$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function VJ(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=$J(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=jJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function jJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var M$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function zJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,zJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(BJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return HJ(n,0,!1,e,t)}function YHe(n,e,t,r){return HJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);UJ.prototype.type="tspan";const iy=UJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var WJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);WJ.prototype.type="image";const Xr=WJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function GJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function YJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},KJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=YJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);KJ.prototype.type="rect";const rt=KJ;var F$={fill:"#000"},$$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},ZJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=F$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=U$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=H$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=B$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=$$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),j$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return qJ(t)&&(r=[t.fontStyle,t.fontWeight,XJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},V$=["fontStyle","fontWeight","fontSize","fontFamily"];function XJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function j$(n,e){for(var t=0;t=0,i=!1;if(n instanceof Ue){var o=QJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=Z$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=Z$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function q$(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,JJ)}function Q$(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,eee)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,JJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,eee)}function nee(n){du(n,H9)}function U9(n){du(n,tee)}function ree(n){du(n,lUe)}function aee(n){du(n,uUe)}function iee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function oee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){tee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var eV=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=aV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=aV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=oV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=oV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);gee.prototype.type="sector";const fi=gee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),vee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);vee.prototype.type="ring";const kx=vee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){uV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(uV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Pee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function cV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Fee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function $ee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}$ee(Q9,_We);$ee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,gV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",vV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],Vee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Fee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function jee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function mV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||jee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function zee(n){return n?"setUTCMonth":"setMonth"}function Bee(n){return n?"setUTCDate":"setDate"}function Hee(n){return n?"setUTCHours":"setHours"}function Uee(n){return n?"setUTCMinutes":"setMinutes"}function Wee(n){return n?"setUTCSeconds":"setSeconds"}function Gee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yee(n){if(!OJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Yee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var yV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Zee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Xee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);FJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var Qee="";typeof navigator<"u"&&(Qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",ete="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},tte=at();function kWe(n){tte(n).datasetMap=ge()}function nte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=tte(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ite(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,_V,SV="\0_ec_inner",BWe=1,ote=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=xV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,xV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?_V(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=MJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[SV],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,TV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=TV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||ete,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};MV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function NV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=yte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),bte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(yte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function VV(n,e,t,r,a){var i=Cte[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),wte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&zV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&zV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ote(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ote(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new bte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Ete(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=Tte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ite(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=Tte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ite(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function BV(n,e,t,r,a,i){if(n){var o=Ete(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ite(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Pte(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Dte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=IJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Ate(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Pte(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new wte(this);i.prepareSource();var o=this.getInitialData(t,a);UV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,HV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);UV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,HV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);FJ(Kx,it);function HV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function UV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mte=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&GV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&GV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Mte(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function WV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function GV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){WV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){WV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Mte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",YV="\0__throttleRate",KV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[KV],s=a[YV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[KV]=r,a[YV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var ZV=at(),XV={itemStyle:jf(Nee,!0),lineStyle:jf(kee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Rte(n,e){var t=n.visualStyleMapper||XV[e];return t||(console.warn("Unknown style type '"+e+"'."),XV.itemStyle)}function Lte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Rte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Lte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Rte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),ZV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=ZV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Lte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return kte(r)}):cYe}var cYe=kte(0);function kte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],ej=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function tj(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function nj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function rj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&rj(n,t),o&&nj(n,t)):(o&&nj(n,t),i&&rj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var aj=["shadowBlur","shadowOffsetX","shadowOffsetY"],ij=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ste;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(_j[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=w$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&LJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}yj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){nee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){ree(p),Gi(d)},h.prototype.leaveSelect=function(p){aee(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(lte))(d)},rne=function(d){function f(h,p){for(var g=0;g=0)){Sj.push(t);var i=$te.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function cne(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(qte,GYe);lne(cte);une(QYe,lGe);cne("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);sne("light",hYe);sne("dark",pYe);var Cj=[],bKe={registerPreprocessor:lne,registerProcessor:une,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:cne,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Cj,n)>=0||(Cj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function wj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||wj,this._newKeyGetter=a||wj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",xj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],Tj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;fne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){Tj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gne(o),l=r===n.dimensionsDefine,u=l?pne(n):hne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new Ste(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!fne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function vne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(nte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(mne);const hu=mne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=EJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=yne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function yne(n){return js(n)+2}function Ej(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Ej(n,0,e),Ej(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var bne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(bne);const C8=bne;var wd=Ln,_ne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function wne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(Ine(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),xne(t)}function xne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function Tne(n,e){var t=Cne(n,e),r=wne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Ene(n){return{seriesType:n,plan:vv(),reset:function(e){if(One(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=Ine(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",gV/2],["year",gV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return mV(a,p,r)===mV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Oj(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return EJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[zee(t)](0);case"day":r[Bee(t)](1);case"hour":r[Hee(t)](0);case"minute":r[Uee(t)](0);case"second":r[Wee(t)](0),r[Gee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=Vee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Ane=T8.prototype;Ane.getMinorTicks=h1.getMinorTicks;Ane.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Mne(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Rne(n,e){var t=n.type,r=Mne(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Cne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=wne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Rne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Dne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Pj(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Dj(s.exterior,a,i,t):M(s.points,function(l){Dj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Aj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Aj(l[0],l.slice(1)))});break;case"LineString":i.push(new Mj([a.coordinates]));break;case"MultiLineString":i.push(new Mj(a.coordinates))}var s=new Nne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=$ne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function $ne(n,e){var t=Vne(n,"labels"),r=O8(e),a=jne(t,r);if(a)return a;var i,o;return me(r)?i=Hne(n,r):(o=r==="auto"?AZe(n):r,i=Bne(n,o)),zne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=Vne(n,"ticks"),r=O8(e),a=jne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Hne(n,r,!0);else if(r==="auto"){var s=$ne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=Bne(n,o,!0);return zne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Vne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function jne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Lne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Hne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Rj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return xJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Lj(r,a.count())),xt(e,Rj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Lj(r,a.count()));var i=xt(e,r,Rj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Lj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Une(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Une(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function Nj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Yne(n,"x","width",e,t,r)}function Kne(n,e,t,r){return Yne(n,"y","height",e,t,r)}function Zne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Lee(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Xne=Math.PI,Td=Math.PI*2,XZe=180/Xne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Xne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $j(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:Qne,"xmlns:xlink":Jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Vj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new qne;return a.reset(hJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tre(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=tre(a,t);return i.replace(o,s)}}function jj(n){return ce(n)?Vj[n]?"cubic-bezier("+Vj[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=tre(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function nre(n){return n&&ce(n.src)}function rre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&fJ(i)?ire(e,n,a,r):o&&R9(i)?ore(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function zj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&zj(e))){var r=t?10:1e4;n.transform=zj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function Bj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=pJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[are(n,t)])}e["clip-path"]=Ox(i)}function Wj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Gj(n,e){n.removeChild(e)}function Yj(n,e){n.appendChild(e)}function sre(n){return n.parentNode}function lre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Kj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=ere(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ure(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),ure(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=sre(t);yy(e),r!==null&&(Gd(r,e.elm,lre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Zj(),this.configLayer=Zj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=$j(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ere("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Uj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return $j(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function Qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Jj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=Qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Jj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Jj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=Qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function fre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=dre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var hre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(hre),pre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function az(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=rz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=rz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new pre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(mre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?cre(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=az(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=kJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=az(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),nz(h,g)>3e3||c&&nz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("line"))}var bre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(bre);const yC=bre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),iz={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},oz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=_re(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function sz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function lz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _re(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function cz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,_re(o),r.get(["label","rotate"]))}Ree(g,p,i.getRawValue(t),function(b){return cre(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),dz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Sre(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:Sre(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,pz=Math.PI/180;function Cre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wre(n,e){var t=Cre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Cre(r,t),s=wre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*pz,h=r.get("minAngle")*pz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),zte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var Tre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Ere={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ere),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ere),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ore={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ore[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=vz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",vz)}function vz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function mz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!mz(t)||!mz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function yz(n){return n.get("coordinateSystem")==="cartesian2d"}function bz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ire(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Rne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ire(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){_z(r,"y",o,i)}),M(r.y,function(o){_z(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Cz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,xz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;xz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=TJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Lne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):wz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):wz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function wz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function xz(n){return n==="middle"||n==="center"}function Pre(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Dz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),kre(n,e,t,r,a))}function kre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function Nre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Az=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Mz=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=Nre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=$re(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Rz[s];if(h&&he(Rz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Nz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Nz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=dee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Rz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Lz(n,i),kz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new xee(e,t,r);return Lz(n,a),kz(n,a),a}};function Lz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function kz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Fre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function Nz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var $z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fre(n,e,t){var r=n.getAttribute("style");if(r){$z.lastIndex=0;for(var a;(a=$z.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&(Vre(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Hz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Uz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Wz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Gz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=zre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Xz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=qz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Xz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=qz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Jz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Kre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Kre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Jz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Jz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var aB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Xre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Xre(n){var e=0;M(n.children,function(r){Xre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,iB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+iB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+iB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;asB||Math.abs(t.dy)>sB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",oB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",oB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=cB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=cB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?uB:lB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?uB:lB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),qre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function dB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function qre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Jre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function fB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return Qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&Qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,hB=Lr,W8=M,eae=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(hB(s.width,l[0]),a),c=ie(hB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Kre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),tae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),nae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function tae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(eae),u=s.get(Het)/2,c=rae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function pB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dT$&&(u=T$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=_B(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_B(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function _B(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function SB(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!SB(n[0])&&!SB(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,CB=Math.abs;function wB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=CB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=wB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=wB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function xB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(xB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){sae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!xB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new uae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,cae("hostGraph","data"));ir(uae,cae("hostGraph","edgeData"));const xtt=wtt;function dae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Gre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=dae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Ate({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];zJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ree(I,{normal:P},_,function(U){return w_(U,F)}),g&&Lee(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,hae=Math.min,pae=Math.max,OB=Math.floor,ynt=Math.ceil,IB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||OB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[OB(IB(h[0]/c,1))+1,ynt(IB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[pae(0,p-h/2)],a[1]=hae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return hae(pae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function Sae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Cae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(MB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(MB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function wae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function xae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function MB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=Tae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(xae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=Tae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function Tae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=_ae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:kB(0),lineY:kB(1),rect:{createCover:function(n,e){function t(r){return r}return Cae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Sae(n);return xae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){wae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function kB(n){return{createCover:function(e,t){return Cae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Sae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=_ae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),wae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Oae(n){return n=rM(n),function(e){return Pee(e,n)}}function Iae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Pae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Oae(d),isTargetByCursor:Pae(d,s,i),getLinearBrushOtherExtent:Iae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Dae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(PB),n.registerComponentView(Knt),wg(n,"parallel",PB,qnt),Xnt(n)}function Qnt(n){He(Dae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),NB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return NB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function NB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=dae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Aae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Mae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(nte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Rae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Rae,Mae,!0);const Ert=Rae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=FB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Lae(f,d,i,u)):d=FB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&$B(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&$B(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),VB(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){VB(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function $B(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var kae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(kae,Mae,!0);const Grt=kae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:jB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=jB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function jB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function zB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Nae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(BJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=$ae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Fae:i?Nae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function BB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],BB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(BB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout($ae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function HB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):HB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(HB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],UB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:UB[+c],categoryDim:UB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=GB(o,h),g=WB(o,h,p,f),m=YB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),ZB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=GB(o,h),y=WB(o,h,m,f),b=Uae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=YB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),ZB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&KB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){KB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function WB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=OJ(r),E=T?r:XB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?XB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function Vae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=Vae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Bae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Hae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function GB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?jae(a,e,t):zae(a,e,t),Bae(a,t,r),Hae(a,e,t,r),a.__pictorialShapeStr=Uae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?jae(n,e,t,!0):zae(n,e,t,!0),Bae(n,t,!0),Hae(n,e,t,!0)}function KB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Uae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function ZB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function XB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const QB=uit;var ID="sunburstRootToNode",JB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:JB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[JB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new QB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new QB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Wae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Wae(n){var e=0;M(n.children,function(r){Wae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var eH=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*eH,p=r.get("minAngle")*eH,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Gae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var tH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Yae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Kae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return nH(o,n),M(o.rich,function(l){nH(l,l)}),{textConfig:a,textContent:i}}function nH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function rH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";aH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){aH(s,s)}),r}function aH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Zae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},iH=Ye(Zae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),sH("shape",e,d),sH("extra",e,d),!i&&s&&(Fit(n,e,c),oH("shape",n,e,c),oH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Xae(n,e),u?n.dirty():n.markRedraw()}function Xae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function oH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=rH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=rH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(tH,L)){var N=e.getItemVisual(k,"style");return N?N[tH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Mee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&eie(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function eie(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&tie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&eie(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){uH(t,null,i),uH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,cH,cH,n).add(dH).update(dH).remove(not).execute()}function cH(n,e){var t=n&&n.name;return t??Hit+e}function dH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function tie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),fH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(hH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}gH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](fH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(fH(t.label));e.add(i),pH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),pH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),gH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){hH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function hH(n,e,t,r){nie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function nie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&nie(n[a],r)}),!!t}else return n===e}function pH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function gH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function rie(n,e,t,r,a){var i=t.get("value"),o=aie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function aie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function iie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function vH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=mH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function mH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],yH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],yH(n))}}};function yH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function sie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(bH,"click")),t("mousemove",Ae(bH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function bH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function lie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var _H=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=lie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&SH(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,CH(S),CH(y)))),m[y.key]=T}})}),M(m,function(y,b){SH(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function SH(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=_H(r)[a]||{},o=_H(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function CH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Lre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);rie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:vH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:vH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var uie=["radius","angle"],Vot=function(){function n(e){this.dimensions=uie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=wH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=wH(t);return a===this?this.pointToData(r):null},n}();function wH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function xH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:uie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");xH(o,l),xH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function TH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});TH(u),TH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=die(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=cie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=EH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=EH(t);return a===this?this.pointToData(r):null},n}();function EH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:hie};const yst=mst;var OH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[OH[e]],t[OH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),IH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),IH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function IH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function PH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function DH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),qee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var pie=["transition","enterFrom","leaveTo"],Lst=pie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?pie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(AH,n)?AH[n]:q9(n),t=new e({});return to(t).type=n,t}function MH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function RH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var LH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function gie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=kH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=kH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(LH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(LH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=xJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Mne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var FH=!1;function _M(n){FH||(FH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),vie={};function ip(n,e){vie[n]=e}function mie(n){return vie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=mie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function yie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=mie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(yie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var $H="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(VH[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=VH[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),VH={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===$H;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":$H},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return bie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){_ie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=_ie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=jH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:UH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?UH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Oae(a),isTargetByCursor:Pae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Iae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=jH(t,e),i=0;in[1]&&n.reverse(),n}function jH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:BH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:BH.geo})})}},zH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],BH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(HH,0),lineY:Ae(HH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function HH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var UH={lineX:Ae(WH,0),lineY:Ae(WH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function WH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=GH(n),r=GH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function GH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function Sie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Cie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function YH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[wie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Dte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Kee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function KH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;KH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+YH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!Sie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=qH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=lie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(qH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=aie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=NV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=BV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=NV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?BV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Zee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=QH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=QH(h)?d[1]/2:h==="bottom"?d[1]:0),Sie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function qH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function QH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var JH=M;function eU(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return JH(e,function(i){var o=r[i]=a();JH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Tie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&eU(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&eU(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){jte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&iU(e)}};function iU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Eie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return oU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=oU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function oU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const sU=Lut;var Oie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(sU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(sU);ir(Oie,c8.prototype);const kut=Oie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,lU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=uU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),lU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),cU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){cU(d,u._progressLine,s,a,i)}};this._currentPointer=uU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Pie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Pie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Die(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function fU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(fU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),fU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Die(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Pie(r,a,e,n);s=u.valueAxis;var c=vne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(hU(1,t,r,n)||hU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Die(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function pU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(pU(1,t,r)||pU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function gU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var vU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(vU,function(d){return gU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(vU,function(E){return gU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(mU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(mU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function mU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Aie(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Mie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Rie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Rie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Lie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:_U(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:_U(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function _U(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function kie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,SU=7,Kct=1,f3=30,Zct=7,mm="horizontal",CU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-SU-i,width:o.width,height:f3}:{right:SU,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===CU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===CU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:wU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:wU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=gie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function wU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function Nie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(kie),He(Nie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Fie=rdt;var xU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,TU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},TU(p,function(m,y){if(Gr.isValidType(y)){var b=Fie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";TU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=xU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=xU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var EU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=EU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=EU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=OU(this,"outOfRange",this.getExtent()),a=OU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||AU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function zie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),jie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Fie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function kU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Vie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}($ie);const Idt=Odt;function Bie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),jie(n)}function Pdt(n){He(zie),He(Bie)}var Ddt={label:{enabled:!0},decal:{show:!1}},NU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),NU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=NU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Uie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Uie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Yie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;WU(n)&&(u=n,c=e),WU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?GU(c,u):GU(f?e:n,[f?n:e]),p=0,g=0;gKie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function KU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function ZU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=KU(i),c=ZU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=KU(i),u=ZU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function XU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=XU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Zie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Xie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function qie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Xie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):qie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,qie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(kq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",qU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var Qie;function be(){return Qie.apply(null,arguments)}function Nft(n){Qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Jie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var roe={};function ya(n,e){roe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:roe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(aoe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function aoe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var poe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function goe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),voe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function moe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}moe("a",!0);moe("A",!1);ma("hour","h");ya("hour",13);function yoe(n,e){return e._meridiemParse}xe("a",yoe);xe("A",yoe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",soe);xe("hmmss",loe);xe("Hmm",soe);xe("Hmmss",loe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var boe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:uoe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:voe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=boe;if(e.abbr=n,xn[n]!=null)toe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=boe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _oe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=goe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){_oe(n);return}if(n._f===be.RFC_2822){Soe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=noe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function xoe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Coe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Eoe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function tW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=tW(n,e):(t=tW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Ooe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(toe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ioe(this,a,n),this}}function Ioe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&doe(n,$C(n,"Month")+o*t),i&&aoe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Ooe(1,"add"),Wpt=Ooe(-1,"subtract");function Poe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Poe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Doe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Aoe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Moe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Roe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Loe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Roe:new Date(n,e,t).valueOf()}function koe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Roe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=goe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",ioe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Foe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ooe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,ioe);xe("SS",fT,Bi);xe("SSS",fT,ooe);var sc,$oe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);$oe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Aoe;de.locale=Doe;de.localeData=Moe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=poe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=foe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Foe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=$oe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Eoe;de.isUTC=Eoe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Foe);de.months=Io("months accessor is deprecated. Use month instead",foe);de.years=Io("years accessor is deprecated. Use year instead",poe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function Voe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=Voe;Ft.postformat=Voe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function joe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return joe(n,e,"months")}function nvt(n,e){return joe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function zoe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return zoe(this,n,e,1)}function lvt(n,e){return zoe(this,n,e,-1)}function nW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=nW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(Boe(e)),t+=l,e-=nW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function Boe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+Boe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Doe;Tt.localeData=Moe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Aoe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Xie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:qU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:qU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",rW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",aW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:aW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:aW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=jQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:V.jsx(pL,{to:"/",style:{textDecoration:"none"},children:"Trino Gateway"})},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pL,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(yZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(mZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,iW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,oW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&oW(n,t,e[t]);if(iW)for(var t of iW(e))tmt.call(e,t)&&oW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,sW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,lW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&lW(n,t,e[t]);if(sW)for(var t of sW(e))smt.call(e,t)&&lW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=uW.get("token");e&&(n.updateToken(e),uW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(oce,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(hq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=jQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js b/gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js new file mode 100644 index 000000000..52e521cfa --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js @@ -0,0 +1,169 @@ +var Hoe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var mmt=Hoe((Hmt,z2)=>{function Uoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Woe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var hW={exports:{}},WC={},pW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ry=Symbol.for("react.element"),Goe=Symbol.for("react.portal"),Yoe=Symbol.for("react.fragment"),Koe=Symbol.for("react.strict_mode"),Zoe=Symbol.for("react.profiler"),Xoe=Symbol.for("react.provider"),qoe=Symbol.for("react.context"),Qoe=Symbol.for("react.forward_ref"),Joe=Symbol.for("react.suspense"),ese=Symbol.for("react.memo"),tse=Symbol.for("react.lazy"),rR=Symbol.iterator;function nse(n){return n===null||typeof n!="object"?null:(n=rR&&n[rR]||n["@@iterator"],typeof n=="function"?n:null)}var gW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vW=Object.assign,mW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function yW(){}yW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}var r6=n6.prototype=new yW;r6.constructor=n6;vW(r6,Og.prototype);r6.isPureReactComponent=!0;var aR=Array.isArray,bW=Object.prototype.hasOwnProperty,a6={current:null},_W={key:!0,ref:!0,__self:!0,__source:!0};function SW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)bW.call(e,r)&&!_W.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(TW);xW.exports=TW;var pse=xW.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var EW=D,Fi=pse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w3=Object.prototype.hasOwnProperty,gse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oR={},sR={};function vse(n){return w3.call(sR,n)?!0:w3.call(oR,n)?!1:gse.test(n)?sR[n]=!0:(oR[n]=!0,!1)}function mse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function yse(n,e,t,r){if(e===null||typeof e>"u"||mse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{TT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?Cm(n):""}function bse(n){switch(n.tag){case 5:return Cm(n.type);case 16:return Cm("Lazy");case 13:return Cm("Suspense");case 19:return Cm("SuspenseList");case 0:case 2:case 15:return n=ET(n.type,!1),n;case 11:return n=ET(n.type.render,!1),n;case 1:return n=ET(n.type,!0),n;default:return""}}function O3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case x3:return"Profiler";case u6:return"StrictMode";case T3:return"Suspense";case E3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case PW:return(n.displayName||"Context")+".Consumer";case IW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:O3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return O3(n(e))}catch{}}return null}function _se(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return O3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function AW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sse(n){var e=AW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=Sse(n))}function MW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=AW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function B2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function I3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function uR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function RW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function P3(n,e){RW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?D3(n,e.type,t):e.hasOwnProperty("defaultValue")&&D3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function cR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function D3(n,e,t){(e!=="number"||B2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var wm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function C1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var zm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cse=["Webkit","ms","Moz","O"];Object.keys(zm).forEach(function(n){Cse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),zm[e]=zm[n]})});function FW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||zm.hasOwnProperty(n)&&zm[n]?(""+e).trim():e+"px"}function $W(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=FW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var wse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function R3(n,e){if(e){if(wse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function L3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var N3=null,Rp=null,Lp=null;function hR(n){if(n=Ny(n)){if(typeof N3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=XC(e),N3(n.stateNode,n.type,e))}}function VW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function jW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,hR(n),e)for(n=0;n>>=0,n===0?32:31-(Lse(n)/kse|0)|0}var Q0=64,J0=4194304;function xm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function G2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=xm(s):(i&=o,i!==0&&(r=xm(i)))}else o=t&~a,o!==0?r=xm(o):i!==0&&(r=xm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function Ly(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function Vse(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=Hm),CR=" ",wR=!1;function oG(n,e){switch(n){case"keyup":return hle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function gle(n,e){switch(n){case"compositionend":return sG(e);case"keypress":return e.which!==32?null:(wR=!0,CR);case"textInput":return n=e.data,n===CR&&wR?null:n;default:return null}}function vle(n,e){if(up)return n==="compositionend"||!_6&&oG(n,e)?(n=aG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=OR(t)}}function dG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?dG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function fG(){for(var n=window,e=B2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=B2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function Tle(n){var e=fG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&dG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=IR(t,i);var o=IR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,B3=null,Wm=null,H3=!1;function PR(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;H3||cp==null||cp!==B2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wm&&I1(Wm,r)||(Wm=r,r=Z2(B3,"onSelect"),0hp||(n.current=Z3[hp],Z3[hp]=null,hp--)}function dn(n,e){hp++,Z3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),Pf=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function q2(){bn(oi),bn(fa)}function NR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function SG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,_se(n)||"Unknown",a));return Nn({},t,r)}function Q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,Pf=fa.current,dn(fa,n),dn(oi,oi.current),!0}function FR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=SG(n,e,Pf),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,qC=!1,jT=!1;function CG(n){Ol===null?Ol=[n]:Ol.push(n)}function Fle(n){qC=!0,CG(n)}function Hc(){if(!jT&&Ol!==null){jT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Dd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Dd(y,E),C}function g(y,b,_,S){var C=Tv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Dd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Dd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&UR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Dv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=pf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Dv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=KT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(wm(_))return p(y,b,_,S);if(Tv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=YT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=DG(!0),AG=DG(!1),Fy={},Ws=Bc(Fy),M1=Bc(Fy),R1=Bc(Fy);function Qd(n){if(n===Fy)throw Error(ue(174));return n}function D6(n,e){switch(dn(R1,e),dn(M1,n),dn(Ws,Fy),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:M3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=M3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(M1),bn(R1)}function MG(n){Qd(R1.current);var e=Qd(Ws.current),t=M3(e,n.type);e!==t&&(dn(M1,n),dn(Ws,t))}function A6(n){M1.current===n&&(bn(Ws),bn(M1))}var An=Bc(0);function aS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var zT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=BT.transition;BT.transition={};try{n(!1),e()}finally{qt=t,BT.transition=r}}function KG(){return So().memoizedState}function zle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},ZG(n))XG(e,t);else if(t=EG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),qG(t,e,r)}}function Ble(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(ZG(n))XG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=EG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),qG(t,e,r))}}function ZG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function XG(n,e){Gm=iS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function qG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var oS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Hle={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:GR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,HG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=zle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:WR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=WR(!1),e=n[0];return n=jle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Af&30||kG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,GR(FG.bind(null,r,i,n),[n]),r.flags|=2048,N1(9,NG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=L1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[A1]=r,oY(n,e,!1,!1),e.stateNode=n;e:{switch(o=L3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304)}else{if(!r)if(n=aS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Av(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function qle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&q2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,Qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function sO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var tL=!1;function Jle(n,e){if(U3=Y2,n=fG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(W3={focusedElem:n,selectionRange:t},Y2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=tL,tL=!1,p}function Ym(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&sO(e,t,i)}a=a.next}while(a!==r)}}function ew(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function lO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function uY(n){var e=n.alternate;e!==null&&(n.alternate=null,uY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[A1],delete e[K3],delete e[kle],delete e[Nle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function cY(n){return n.tag===5||n.tag===3||n.tag===4}function nL(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||cY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=X2));else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}function cO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(cO(n,e,t),n=n.sibling;n!==null;)cO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)dY(n,e,t),t=t.sibling}function dY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(GC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?VT(n.parentNode,t):n.nodeType===1&&VT(n,t),E1(n)):VT(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&sO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function rL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Qle),e.forEach(function(r){var a=lue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,uS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?hf(n,0):j6|=t),li(n,e)}function bY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(Ly(n,e,t),li(n,t))}function sue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),bY(n,t)}function lue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),bY(n,t)}var _Y;_Y=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Zle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&wG(e,eS,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,Q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=QC,e.stateNode=a,a._reactInternals=e,eO(e,r,n,t),e=rO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=cue(r),n=zo(r,n),a){case 0:e=nO(null,e,r,n,t);break e;case 1:e=QR(null,e,r,n,t);break e;case 11:e=XR(null,e,r,n,t);break e;case 14:e=qR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),nO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),QR(n,e,r,a,t);case 3:e:{if(rY(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,OG(n,e),rS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=JR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=JR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=AG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return MG(e),n===null&&q3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,G3(r,a)?o=null:i!==null&&G3(r,i)&&(e.flags|=32),nY(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&q3(e),null;case 13:return aY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),XR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(tS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),Q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),qR(n,e,r,a,t);case 15:return eY(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,Q2(e)):n=!1,Np(e,t),PG(e,r,a),eO(e,r,a,t),rO(null,e,r,!0,n,t);case 19:return iY(n,e,t);case 22:return tY(n,e,t)}throw Error(ue(156,e.tag))};function SY(n,e){return YW(n,e)}function uue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new uue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return pf(t.children,a,i,e);case u6:o=8,a|=8;break;case x3:return n=ho(12,t,e,a|2),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(13,t,e,a),n.elementType=T3,n.lanes=i,n;case E3:return n=ho(19,t,e,a),n.elementType=E3,n.lanes=i,n;case DW:return nw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case IW:o=10;break e;case PW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function pf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function nw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=DW,n.lanes=t,n.stateNode={isHidden:!1},n}function YT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function KT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function due(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=IT(0),this.expirationTimes=IT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=IT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new due(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function fue(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TY)}catch(n){console.error(n)}}TY(),wW.exports=ji;var Ti=wW.exports;const ui=Ie(Ti);var dL=Ti;C3.createRoot=dL.createRoot,C3.hydrateRoot=dL.hydrateRoot;class mue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function $1(){return $1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function sw(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bue(){return Math.random().toString(36).substr(2,8)}function hL(n,e){return{usr:n.state,key:n.key,idx:e}}function gO(n,e,t,r){return t===void 0&&(t=null),$1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Kf(e):e,{state:t,key:e&&e.key||r||bue()})}function fS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Kf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function _ue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState($1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=gO(g.location,m,y);t&&t(b,m),u=c()+1;let _=hL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=gO(g.location,m,y);t&&t(b,m),u=c();let _=hL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:fS(m);return ar(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(fL,d),l=m,()=>{a.removeEventListener(fL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var pL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(pL||(pL={}));function Sue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Kf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=EY(n);Cue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ar(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(ar(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),EY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Pue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of OY(i.path))a(i,o,l)}),e}function OY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=OY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Cue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Due(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const wue=/^:\w+$/,xue=3,Tue=2,Eue=1,Oue=10,Iue=-2,gL=n=>n==="*";function Pue(n,e){let t=n.split("/"),r=t.length;return t.some(gL)&&(r+=Iue),e&&(r+=Tue),t.filter(a=>!gL(a)).reduce((a,i)=>a+(wue.test(i)?xue:i===""?Eue:Oue),r)}function Due(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Aue(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=kue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Rue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),sw(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Lue(n){try{return decodeURI(n)}catch(e){return sw(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function kue(n,e){try{return decodeURIComponent(n)}catch(t){return sw(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function Nue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Kf(n):n;return{pathname:t?t.startsWith("/")?t:Fue(t,e):e,search:jue(r),hash:zue(a)}}function Fue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ZT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $ue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function q6(n){return $ue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function Q6(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Kf(n):(a=$1({},n),ar(!a.pathname||!a.pathname.includes("?"),ZT("?","pathname","search",a)),ar(!a.pathname||!a.pathname.includes("#"),ZT("#","pathname","hash",a)),ar(!a.search||!a.search.includes("#"),ZT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=Nue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),Vue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Bue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const IY=["post","put","patch","delete"];new Set(IY);const Hue=["get",...IY];new Set(Hue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function hS(){return hS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=Q6(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function AY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Uc),{pathname:a}=Mg(),i=JSON.stringify(q6(r));return D.useMemo(()=>Q6(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Yue(n,e){return Kue(n,e)}function Kue(n,e,t){Ag()||ar(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Uc),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Mg(),u;if(e){var c;let g=typeof e=="string"?Kf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||ar(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Sue(n,{pathname:f}),p=Jue(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(lw.Provider,{value:{location:hS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Zue(){let n=rce(),e=Bue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Xue=D.createElement(Zue,null);class que extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Uc.Provider,{value:this.props.routeContext},D.createElement(PY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(J6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Uc.Provider,{value:e},r)}function Jue(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ar(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Xue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(Que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(que,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var MY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(MY||{}),pS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(pS||{});function ece(n){let e=D.useContext(J6);return e||ar(!1),e}function tce(n){let e=D.useContext(Uue);return e||ar(!1),e}function nce(n){let e=D.useContext(Uc);return e||ar(!1),e}function RY(n){let e=nce(),t=e.matches[e.matches.length-1];return t.route.id||ar(!1),t.route.id}function rce(){var n;let e=D.useContext(PY),t=tce(pS.UseRouteError),r=RY(pS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function ace(){let{router:n}=ece(MY.UseNavigateStable),e=RY(pS.UseNavigateStable),t=D.useRef(!1);return DY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,hS({fromRouteId:e},i)))},[n,e])}function ice(n){let{to:e,replace:t,state:r,relative:a}=n;Ag()||ar(!1);let{matches:i}=D.useContext(Uc),{pathname:o}=Mg(),s=e7(),l=Q6(e,q6(i),o,a==="path"),u=JSON.stringify(l);return D.useEffect(()=>s(JSON.parse(u),{replace:t,state:r,relative:a}),[s,u,a,t,r]),null}function X_(n){ar(!1)}function oce(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ag()&&ar(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Kf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(lw.Provider,{children:t,value:p}))}function sce(n){let{children:e,location:t}=n;return Yue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==X_&&ar(!1),!r.props.index||!r.props.children||ar(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function uce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function cce(n,e){return n.button===0&&(!e||e==="_self")&&!uce(n)}const dce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fce="startTransition",vL=sse[fce];function hce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=yue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&vL?vL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(oce,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const pce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mL=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=lce(e,dce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&gce.test(u)&&(p=u,pce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Wue(u,{relative:a}),y=vce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var yL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(yL||(yL={}));var bL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(bL||(bL={}));function vce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=e7(),u=Mg(),c=AY(n,{relative:o});return D.useCallback(d=>{if(cce(d,t)){d.preventDefault();let f=r!==void 0?r:fS(u)===fS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function mce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=mce;const oa=Ie(pi);var yce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,LY=yce,bce=LY,_ce=typeof self=="object"&&self&&self.Object===Object&&self,Sce=bce||_ce||Function("return this")(),os=Sce,Cce=os,wce=function(){return Cce.Date.now()},xce=wce,Tce=/\s/;function Ece(n){for(var e=n.length;e--&&Tce.test(n.charAt(e)););return e}var Oce=Ece,Ice=Oce,Pce=/^\s+/;function Dce(n){return n&&n.slice(0,Ice(n)+1).replace(Pce,"")}var Ace=Dce,Mce=os,Rce=Mce.Symbol,Rg=Rce,_L=Rg,kY=Object.prototype,Lce=kY.hasOwnProperty,kce=kY.toString,Rv=_L?_L.toStringTag:void 0;function Nce(n){var e=Lce.call(n,Rv),t=n[Rv];try{n[Rv]=void 0;var r=!0}catch{}var a=kce.call(n);return r&&(e?n[Rv]=t:delete n[Rv]),a}var Fce=Nce,$ce=Object.prototype,Vce=$ce.toString;function jce(n){return Vce.call(n)}var zce=jce,SL=Rg,Bce=Fce,Hce=zce,Uce="[object Null]",Wce="[object Undefined]",CL=SL?SL.toStringTag:void 0;function Gce(n){return n==null?n===void 0?Wce:Uce:CL&&CL in Object(n)?Bce(n):Hce(n)}var ss=Gce;function Yce(n){return n!=null&&typeof n=="object"}var gi=Yce,Kce=ss,Zce=gi,Xce="[object Symbol]";function qce(n){return typeof n=="symbol"||Zce(n)&&Kce(n)==Xce}var Lg=qce,Qce=Ace,wL=pi,Jce=Lg,xL=NaN,ede=/^[-+]0x[0-9a-f]+$/i,tde=/^0b[01]+$/i,nde=/^0o[0-7]+$/i,rde=parseInt;function ade(n){if(typeof n=="number")return n;if(Jce(n))return xL;if(wL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=wL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Qce(n);var t=tde.test(n);return t||nde.test(n)?rde(n.slice(2),t?2:8):ede.test(n)?xL:+n}var t7=ade;const lo=Ie(t7);var ide=pi,XT=xce,TL=t7,ode="Expected a function",sde=Math.max,lde=Math.min;function ude(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ode);e=TL(e)||0,ide(t)&&(c=!!t.leading,d="maxWait"in t,i=d?sde(TL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?lde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=XT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(XT())}function C(){var w=XT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var NY=ude;const n7=Ie(NY);var cde=NY,dde=pi,fde="Expected a function";function hde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(fde);return dde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),cde(n,e,{leading:r,maxWait:e,trailing:a})}var pde=hde;const yO=Ie(pde);function gde(){}var FY=gde;const B=Ie(FY);var $Y={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Kfe=Yfe,Zfe=dw;function Xfe(n,e){var t=this.__data__,r=Zfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var qfe=Xfe,Qfe=Lfe,Jfe=Bfe,ehe=Wfe,the=Kfe,nhe=qfe;function Fg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var LL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!ML(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;ML(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&QT(h)&&!QT(document.documentElement)||h!=null&&QT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function ZY(n){return n===Object(n)&&Object.keys(n).length!==0}function lpe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function upe(n){return n===!1?{block:"end",inline:"nearest"}:ZY(n)?n:{block:"start",inline:"nearest"}}function kL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(ZY(e)&&typeof e.behavior=="function")return e.behavior(t?LL(n,e):[]);if(t){var r=upe(e);return lpe(LL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:cpe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&cpe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=xge}var p7=Tge,Ege=uw,Oge=p7;function Ige(n){return n!=null&&Oge(n.length)&&!Ege(n)}var ls=Ige,Pge=ls,Dge=gi;function Age(n){return Dge(n)&&Pge(n)}var g7=Age,vS={exports:{}};function Mge(){return!1}var oK=Mge;const V1=Ie(oK);vS.exports;(function(n,e){var t=os,r=oK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(vS,vS.exports);var By=vS.exports,Rge=ss,Lge=h7,kge=gi,Nge="[object Object]",Fge=Function.prototype,$ge=Object.prototype,sK=Fge.toString,Vge=$ge.hasOwnProperty,jge=sK.call(Object);function zge(n){if(!kge(n)||Rge(n)!=Nge)return!1;var e=Lge(n);if(e===null)return!0;var t=Vge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==jge}var v7=zge;const m7=Ie(v7);var Bge=ss,Hge=p7,Uge=gi,Wge="[object Arguments]",Gge="[object Array]",Yge="[object Boolean]",Kge="[object Date]",Zge="[object Error]",Xge="[object Function]",qge="[object Map]",Qge="[object Number]",Jge="[object Object]",eve="[object RegExp]",tve="[object Set]",nve="[object String]",rve="[object WeakMap]",ave="[object ArrayBuffer]",ive="[object DataView]",ove="[object Float32Array]",sve="[object Float64Array]",lve="[object Int8Array]",uve="[object Int16Array]",cve="[object Int32Array]",dve="[object Uint8Array]",fve="[object Uint8ClampedArray]",hve="[object Uint16Array]",pve="[object Uint32Array]",yn={};yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=yn[pve]=!0;yn[Wge]=yn[Gge]=yn[ave]=yn[Yge]=yn[ive]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=yn[rve]=!1;function gve(n){return Uge(n)&&Hge(n.length)&&!!yn[Bge(n)]}var vve=gve;function mve(n){return function(e){return n(e)}}var Qf=mve,mS={exports:{}};mS.exports;(function(n,e){var t=LY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(mS,mS.exports);var Hy=mS.exports,yve=vve,bve=Qf,jL=Hy,zL=jL&&jL.isTypedArray,_ve=zL?bve(zL):yve,bw=_ve;function Sve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var lK=Sve,Cve=d7,wve=Vy,xve=Object.prototype,Tve=xve.hasOwnProperty;function Eve(n,e,t){var r=n[e];(!(Tve.call(n,e)&&wve(r,t))||t===void 0&&!(e in n))&&Cve(n,e,t)}var _w=Eve,Ove=_w,Ive=d7;function Pve(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=$me)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Bme=zme,Hme=Fme,Ume=Bme,Wme=Ume(Hme),hK=Wme,Gme=Wy,Yme=fK,Kme=hK;function Zme(n,e){return Kme(Yme(n,e,Gme),n+"")}var Cw=Zme,Xme=Vy,qme=ls,Qme=Sw,Jme=pi;function e1e(n,e,t){if(!Jme(t))return!1;var r=typeof e;return(r=="number"?qme(t)&&Qme(e,t.length):r=="string"&&e in t)?Xme(t[e],n):!1}var ww=e1e,t1e=Cw,n1e=ww;function r1e(n){return t1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&n1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?DK(s,e-1,t,r,a):Bbe(a,s):r||(a[a.length]=s)}return a}var C7=DK,Ube=C7;function Wbe(n){var e=n==null?0:n.length;return e?Ube(n,1):[]}var AK=Wbe;const Gbe=Ie(AK);var Ybe=AK,Kbe=fK,Zbe=hK;function Xbe(n){return Zbe(Kbe(n,void 0,Ybe),n+"")}var MK=Xbe,qbe=Xf,Qbe=xw,Jbe=PK,e_e=Vg,t_e=Jf,n_e=Fbe,r_e=MK,a_e=SK,i_e=1,o_e=2,s_e=4,l_e=r_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=qbe(e,function(i){return i=e_e(i,n),r||(r=i.length>1),i}),t_e(n,a_e(n),t),r&&(t=Qbe(t,i_e|o_e|s_e,n_e));for(var a=e.length;a--;)Jbe(t,e[a]);return t}),u_e=l_e;const fr=Ie(u_e);function c_e(n){return n===void 0}var d_e=c_e;const Vt=Ie(d_e);var f_e="__lodash_hash_undefined__";function h_e(n){return this.__data__.set(n,f_e),this}var p_e=h_e;function g_e(n){return this.__data__.has(n)}var v_e=g_e,m_e=o7,y_e=p_e,b_e=v_e;function yS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new m_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&E_e?new C_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function $K(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function K2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function X2e(n){n.length>0&&Yy(n,n[n.length-1])}function q2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function Q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function J2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function eSe(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function tSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),qc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),Qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),sr=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":Qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":Qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const rSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function bS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function Q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return bS("semi")}}function Lf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ySe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=mSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},bSe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},_Se=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},SSe=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=ySe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=bSe({chunks:i});return _Se({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return jK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const E7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=SSe(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},zK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function BK(){return document?document.activeElement:null}function HK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function CSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const wSe=x.createContext({}),Fr=wSe,xSe=()=>document.body;class Ow extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||xSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=TSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},OSe=ESe;var ISe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=ISe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},DSe=PSe,ASe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class WK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}WK.defaultProps={motion:!0,replayKey:""};const ig=WK;var Ck=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(DSe,null):x.createElement(OSe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${J_}-animation-show`:`${J_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${J_}-content`},y),C)});return x.createElement(UK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||LSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new nSe(this.adapter),this.eventManager=new FK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=Ck(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=Y2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=Ck(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>HK(t),getActiveElement:()=>BK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Lf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||kSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(MSe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(RSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:ASe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:J_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var O7={exports:{}};const GK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};O7.exports=GK;O7.exports.default=GK;var NSe=O7.exports;const FSe=Ie(NSe);function Ht(){}const $Se=x.createContext(null),YK=$Se;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?jSe(s,function(d){return d.test(o)}):VSe(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function VSe(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function jSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function zSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var BSe={};function Hg(){return BSe}function ZK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function wk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function _S(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var I7=6e4,P7=36e5,HSe=1e3;function D7(n,e){qe(2,arguments);var t=wk(n),r=wk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Rd(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function USe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function WSe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function XK(n,e){qe(2,arguments);var t=fn(e);return zSe(n,-t)}var GSe=864e5;function YSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/GSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function KSe(n){qe(1,arguments);var e=qK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var ZSe=6048e5;function QK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-KSe(e).getTime();return Math.round(t/ZSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function XSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=A7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var qSe=6048e5;function JK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-XSe(t,e).getTime();return Math.round(r/qSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=QSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},JSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=A7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=qK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=JK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=QK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=YSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Tk(o);case"XXXX":case"XX":return Ld(o);case"XXXXX":case"XXX":default:return Ld(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Tk(o);case"xxxx":case"xx":return Ld(o);case"xxxxx":case"xxx":default:return Ld(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xk(o,":");case"OOOO":default:return"GMT"+Ld(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xk(o,":");case"zzzz":default:return"GMT"+Ld(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function xk(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Tk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Ld(n,e)}function Ld(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const eCe=JSe;var Ek=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eZ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},tCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ek(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ek(a,t)).replace("{{time}}",eZ(i,t))},nCe={p:eZ,P:tCe};const EO=nCe;var rCe=["D","DD"],aCe=["YY","YYYY"];function tZ(n){return rCe.indexOf(n)!==-1}function nZ(n){return aCe.indexOf(n)!==-1}function SS(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var iCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oCe=function(e,t,r){var a,i=iCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const sCe=oCe;var lCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dCe={date:$p({formats:lCe,defaultWidth:"full"}),time:$p({formats:uCe,defaultWidth:"full"}),dateTime:$p({formats:cCe,defaultWidth:"full"})};const fCe=dCe;var hCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pCe=function(e,t,r,a){return hCe[e]};const gCe=pCe;var vCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},SCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},CCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},wCe={ordinalNumber:CCe,era:Ds({values:vCe,defaultWidth:"wide"}),quarter:Ds({values:mCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:yCe,defaultWidth:"wide"}),day:Ds({values:bCe,defaultWidth:"wide"}),dayPeriod:Ds({values:_Ce,defaultWidth:"wide",formattingValues:SCe,defaultFormattingWidth:"wide"})};const xCe=wCe;var TCe=/^(\d+)(th|st|nd|rd)?/i,ECe=/\d+/i,OCe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ICe={any:[/^b/i,/^(a|c)/i]},PCe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},DCe={any:[/1/i,/2/i,/3/i,/4/i]},ACe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},MCe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},RCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},LCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},NCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FCe={ordinalNumber:KK({matchPattern:TCe,parsePattern:ECe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:OCe,defaultMatchWidth:"wide",parsePatterns:ICe,defaultParseWidth:"any"}),quarter:As({matchPatterns:PCe,defaultMatchWidth:"wide",parsePatterns:DCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:ACe,defaultMatchWidth:"wide",parsePatterns:MCe,defaultParseWidth:"any"}),day:As({matchPatterns:RCe,defaultMatchWidth:"wide",parsePatterns:LCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:kCe,defaultMatchWidth:"any",parsePatterns:NCe,defaultParseWidth:"any"})};const $Ce=FCe;var VCe={code:"en-US",formatDistance:sCe,formatLong:fCe,formatRelative:gCe,localize:xCe,match:$Ce,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M7=VCe;var jCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BCe=/^'([^]*?)'?$/,HCe=/''/g,UCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=Hg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:M7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=ZK(I),A=XK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(zCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(jCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return WCe(k);var z=eCe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&nZ(k)&&SS(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&tZ(k)&&SS(k,e,String(n)),z(A,k,T.localize,R);if(N.match(UCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function WCe(n){var e=n.match(BCe);return e?e[1].replace(HCe,"'"):n}function GCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function rZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function KCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function ZCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function aZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function wS(n,e){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&wS(n,e)}function xS(n){return xS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xS(n)}function qCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=qCe();return function(){var r=xS(n),a;if(e){var i=xS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return QCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function JCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iZ(n){var e=JCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Pk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function uZ(n){return n%400===0||n%4===0&&n%100!==0}var awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=lZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=A7(a,s);if(o.isTwoDigitYear){var u=lZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),owe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function fwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=JK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var hwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(fwe(a,o,s),s)}}]),t}(jt);function pwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=QK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var gwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(pwe(a,o))}}]),t}(jt),vwe=[31,28,31,30,31,30,31,31,30,31,30,31],mwe=[31,29,31,30,31,30,31,31,30,31,30,31],ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=mwe[l]:i>=1&&i<=vwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),bwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function L7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=Hg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function wwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=wwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Twe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new nwe],L=T.match(zwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(jwe),k=[],N=Ik(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&nZ(re)&&SS(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tZ(re)&&SS(re,T,n);var te=re[0],oe=Vwe[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Wwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Gwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Uwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=XK(G,ZK(G)),Q={},Z=Ik(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],GCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Gwe(n){return n.match(Bwe)[1].replace(Hwe,"'")}function Dk(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ak(n,e){qe(2,arguments);var t=Dk(n),r=Dk(e);return t.getTime()===r.getTime()}function Ywe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=qwe(n),i;if(a.date){var o=Qwe(a.date,r);i=Jwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=exe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=txe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Kwe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function Qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Jwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Kwe);if(!t)return new Date(NaN);var r=!!t[4],a=Lv(t[1]),i=Lv(t[2])-1,o=Lv(t[3]),s=Lv(t[4]),l=Lv(t[5])-1;if(r)return oxe(e,s,l)?nxe(e,s,l):new Date(NaN);var u=new Date(0);return!axe(e,i,o)||!ixe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Lv(n){return n?parseInt(n):1}function exe(n){var e=n.match(Zwe);if(!e)return NaN;var t=t5(e[1]),r=t5(e[2]),a=t5(e[3]);return sxe(t,r,a)?t*P7+r*I7+a*1e3:NaN}function t5(n){return n&&parseFloat(n.replace(",","."))||0}function txe(n){if(n==="Z")return 0;var e=n.match(Xwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return lxe(r,a)?t*(r*P7+a*I7):NaN}function nxe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var rxe=[31,null,31,30,31,30,31,31,30,31,30,31];function dZ(n){return n%400===0||n%4===0&&n%100!==0}function axe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(rxe[e]||(dZ(n)?29:28))}function ixe(n,e){return e>=1&&e<=(dZ(n)?366:365)}function oxe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function sxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function lxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=rZ(o);return t.setMonth(r,Math.min(i,s)),t}function fZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function hZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function cxe(n,e){qe(2,arguments);var t=fn(e);return _S(n,-t)}function dxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var fxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},hxe=function(e,t,r){var a,i=fxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const pxe=hxe;var gxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},vxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},mxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},yxe={date:$p({formats:gxe,defaultWidth:"full"}),time:$p({formats:vxe,defaultWidth:"full"}),dateTime:$p({formats:mxe,defaultWidth:"full"})};const bxe=yxe;function Mk(n,e,t){var r="eeee p";return dxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var _xe={lastWeek:Mk,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Mk,other:"PP p"},Sxe=function(e,t,r,a){var i=_xe[e];return typeof i=="function"?i(t,r,a):i};const Cxe=Sxe;var wxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},xxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Txe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Exe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Pxe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Dxe={ordinalNumber:Pxe,era:Ds({values:wxe,defaultWidth:"wide"}),quarter:Ds({values:xxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:Txe,defaultWidth:"wide"}),day:Ds({values:Exe,defaultWidth:"wide"}),dayPeriod:Ds({values:Oxe,defaultWidth:"wide",formattingValues:Ixe,defaultFormattingWidth:"wide"})};const Axe=Dxe;var Mxe=/^(第\s*)?\d+(日|时|分|秒)?/i,Rxe=/\d+/i,Lxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},kxe={any:[/^(前)/i,/^(公元)/i]},Nxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Fxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},$xe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Vxe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},jxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},zxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Bxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Hxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Uxe={ordinalNumber:KK({matchPattern:Mxe,parsePattern:Rxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Lxe,defaultMatchWidth:"wide",parsePatterns:kxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:Nxe,defaultMatchWidth:"wide",parsePatterns:Fxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:$xe,defaultMatchWidth:"wide",parsePatterns:Vxe,defaultParseWidth:"any"}),day:As({matchPatterns:jxe,defaultMatchWidth:"wide",parsePatterns:zxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:Bxe,defaultMatchWidth:"any",parsePatterns:Hxe,defaultParseWidth:"any"})};const Wxe=Uxe;var Gxe={code:"zh-CN",formatDistance:pxe,formatLong:bxe,formatRelative:Cxe,localize:Axe,match:Wxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const k7=Gxe,Yxe={code:"zh-CN",dateFnsLocale:k7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Yxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(YK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Kxe="semi";var Zxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Kxe,type:l,size:u="default"}=n,c=Zxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});pZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(pZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Xxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const qxe=Qe(Xxe,"alert_circle"),z1=qxe;function Qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Jxe=Qe(Qxe,"alert_triangle"),Iw=Jxe;function eTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const tTe=Qe(eTe,"calendar"),gZ=tTe;function nTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const rTe=Qe(nTe,"calendar_clock"),aTe=rTe;function iTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const oTe=Qe(iTe,"caretdown"),sTe=oTe;function lTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const uTe=Qe(lTe,"caretup"),cTe=uTe;function dTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const fTe=Qe(dTe,"checkbox_indeterminate"),hTe=fTe;function pTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const gTe=Qe(pTe,"checkbox_tick"),vTe=gTe;function mTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const yTe=Qe(mTe,"chevron_down"),kf=yTe;function bTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const _Te=Qe(bTe,"chevron_left"),N7=_Te;function STe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const CTe=Qe(STe,"chevron_right"),sg=CTe;function wTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const xTe=Qe(wTe,"chevron_up"),TTe=xTe;function ETe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const OTe=Qe(ETe,"clear"),Gc=OTe;function ITe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const PTe=Qe(ITe,"clock"),vZ=PTe;function DTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const ATe=Qe(DTe,"close"),Ky=ATe;function MTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const RTe=Qe(MTe,"copy"),LTe=RTe;function kTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const NTe=Qe(kTe,"double_chevron_left"),mZ=NTe;function FTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const $Te=Qe(FTe,"double_chevron_right"),yZ=$Te;function VTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const jTe=Qe(VTe,"eye_closed_solid"),zTe=jTe;function BTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const HTe=Qe(BTe,"eye_opened"),UTe=HTe;function WTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const GTe=Qe(WTe,"file"),IO=GTe;function YTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const KTe=Qe(YTe,"filter"),ZTe=KTe;function XTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const qTe=Qe(XTe,"folder"),QTe=qTe;function JTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const e5e=Qe(JTe,"folder_open"),t5e=e5e;function n5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const r5e=Qe(n5e,"github_logo"),a5e=r5e;function i5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const o5e=Qe(i5e,"handle"),s5e=o5e;function l5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const u5e=Qe(l5e,"help_circle"),e2=u5e;function c5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const d5e=Qe(c5e,"id_card"),f5e=d5e;function h5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const p5e=Qe(h5e,"info_circle"),bZ=p5e;function g5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const v5e=Qe(g5e,"mark"),m5e=v5e;function y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const b5e=Qe(y5e,"moon"),_5e=b5e;function S5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const C5e=Qe(S5e,"radio"),w5e=C5e;function x5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const T5e=Qe(x5e,"refresh"),E5e=T5e;function O5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const I5e=Qe(O5e,"search"),P5e=I5e;function D5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const A5e=Qe(D5e,"sidebar"),M5e=A5e;function R5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const L5e=Qe(R5e,"star"),k5e=L5e;function N5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const F5e=Qe(N5e,"sun"),$5e=F5e;function V5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const j5e=Qe(V5e,"tick"),lg=j5e;function z5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const B5e=Qe(z5e,"tick_circle"),_Z=B5e;function H5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const U5e=Qe(H5e,"tree_triangle_down"),SZ=U5e;function W5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const G5e=Qe(W5e,"tree_triangle_right"),Y5e=G5e;function K5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const Z5e=Qe(K5e,"upload"),X5e=Z5e,q5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},F7="Enter",Rr=q5e;function ha(n){return H(n,"key")===F7}const n5=vw.PREFIX;class $7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=FSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${n5}-action-copy-icon`},x.createElement(LTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${n5}-action-copy`]:!i,[`${n5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}$7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};$7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const Q5e=$7,CZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},gf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var J5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=J5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,CZ.ARROW),l=H(r,"borderOpacity",gf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",gf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",gf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};wZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const e4e=wZ;var t4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=t4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(e4e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Pw.contextType=Fr;Pw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(n4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(r4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Pw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:CZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Pw;let Xn;function r5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function a4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const i4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=a4e(s),u=r5(s.lineHeight),c=Math.round(u*(e+1)+r5(s.paddingTop)+r5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},o4e=i4e;var xZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=d4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),TZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new S4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new C4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),OZ=typeof WeakMap<"u"?new WeakMap:new xZ,IZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=h4e.getInstance(),r=new w4e(e,t,this);OZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){IZ.prototype[n]=function(){var e;return(e=OZ.get(this))[n].apply(e,arguments)}});var x4e=function(){return typeof ES.ResizeObserver<"u"?ES.ResizeObserver:IZ}();const Lk=x4e;class vf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Lk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Lk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}vf.propTypes={onResize:v.func,observeParent:v.bool};vf.defaultProps={onResize:()=>{},observeParent:!1};var T4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Ug extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=o4e(this.wrapperRef.current,e,String(a),s,E4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(Q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=T4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=O4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(XY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(vf,{onResize:this.onResize,observeParent:!0},e):e}}Ug.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Ug.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Aw=class extends D.PureComponent{render(){return x.createElement(Ug,Object.assign({component:"span"},this.props))}};Aw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Aw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var I4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?a5(this.content).map(e=>i5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?a5(this.content).filter(e=>i5(e)).map(e=>this.truncatePrecision(e)).join(","):a5(this.content).map(e=>i5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new D4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Ug,Object.assign({component:"span"},e))}}j7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};j7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=XY;Zy.Text=Aw;Zy.Title=V7;Zy.Paragraph=Mw;Zy.Numeral=j7;const Nf=Zy,PZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},z7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:kg};var A4e=ss,M4e=gi,R4e="[object Number]";function L4e(n){return typeof n=="number"||M4e(n)&&A4e(n)==R4e}var DZ=L4e;const Rn=Ie(DZ);class k4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const N4e=k4e,F4e=`${q}-spin`,$4e={PREFIX:F4e},V4e={SIZE:["small","middle","large"]};class B7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},B7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const j4e=B7;var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=z4e(n,["id","className"]);let a=e;ct(a)&&(kk++,a=kk);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var B4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${td}-wrapper`},e?x.createElement("div",{className:`${td}-animate`,"x-semi-prop":"indicator"},e):x.createElement(AZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=B4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(td,a,{[`${td}-${o}`]:o,[`${td}-block`]:t,[`${td}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${td}-children`,style:i,"x-semi-prop":"children"},t))}}H7.propTypes={size:v.oneOf(V4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};H7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=H7,Rw={PREFIX:`${q}-input`},Yc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},H4e={};let U4e=class MZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},MZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===F7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const W4e=U4e;var G4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new W4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Gc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(zTe,null):x.createElement(UTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=G4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}U7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(Z4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(Y4e),className:v.string,style:v.object,validateStatus:v.oneOf(K4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};U7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const X4e=x.forwardRef((n,e)=>x.createElement(U7,Object.assign({},n,{forwardRef:e}))),Ri=X4e;var q4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Lw.isSelectOption=!0;Lw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Lw.defaultProps={prefixCls:PZ.PREFIX_OPTION};const LZ=Lw,vb=PZ.PREFIX,Q4e=z7.SIZE,J4e=z7.POSITION,eEe=z7.STATUS;class kw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new N4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Wg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(LZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}kw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(J4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(Q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(eEe),zIndex:v.number};kw.Option=LZ;kw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const tEe=kw,nEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class rEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var aEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new rEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=aEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(sEe),shape:v.oneOf(oEe),size:v.oneOf(iEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var lEe=4,uEe=.001,cEe=1e-7,dEe=10,Em=11,mb=1/(Em-1),fEe=typeof Float32Array=="function";function kZ(n,e){return 1-3*e+3*n}function NZ(n,e){return 3*e-6*n}function FZ(n){return 3*n}function IS(n,e,t){return((kZ(e,t)*n+NZ(e,t))*n+FZ(e))*n}function $Z(n,e,t){return 3*kZ(e,t)*n*n+2*NZ(e,t)*n+FZ(e)}function hEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=IS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>cEe&&++s=uEe?pEe(l,h,e,r):p===0?h:hEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:IS(s(u),t,a)}};const o5=Ie(vEe);function Fk(n,e,t){return Math.min(Math.max(n,e),t)}function mEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Fk(n,1,10),r=Fk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const s5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function $k(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=mEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?o5(...t.length?t:s5.linear):((!e||typeof e!="string"||typeof e=="string"&&s5[e]==null)&&(e="linear"),r=s5[e],typeof r=="function"?r(...t):t.length?o5(...t):o5(...r))}class yEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function B1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function bEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(B1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function Vk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(B1(e)){const r=$k(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},CEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(B1(n)){const r=$k(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const kv=()=>Date.now(),_u=1e3/60;let VZ=class extends yEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=wEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=_Ee(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=kv();if(bEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:W7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(EEe),type:v.oneOf(IEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(OEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var PEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};G7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);G7.elementType="Button";const Jt=G7;var AEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=AEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(MEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const jZ={PREFIX:`${q}-card`},REe={SHADOWS:["hover","always"],TYPE:["grid"]};var LEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Gg extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=NEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Gg.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(FEe),shape:v.oneOf($Ee)};Gg.defaultProps={prefixCls:Y7.PREFIX,size:"medium",shape:"circle"};const VEe=Fw("avatar")(Gg),jEe=Fw("image")(Gg),zEe=Fw("title")(Gg),BEe=Fw("button")(Gg);class K7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}K7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};K7.defaultProps={prefixCls:Y7.PREFIX,rows:4};var HEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===WEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=UEe.PREFIX;class Z7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):r7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===kd.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===kd.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===kd.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===kd.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===kd.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===kd.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}Z7.propTypes={wrap:v.bool,align:v.oneOf(kd.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};Z7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const BZ=Z7;var GEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(Nf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(l5.Title,null),x.createElement("br",null),x.createElement(l5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(l5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(BZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=GEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}$w.Meta=kEe;$w.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(REe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};$w.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=$w;function YEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&p3e(n,e,t)>-1}var S3e=_3e;const Fs=Ie(S3e);var C3e=xw,w3e=1,x3e=4;function T3e(n){return C3e(n,w3e|x3e)}var E3e=T3e;const Ii=Ie(E3e);var O3e=_w,I3e=Jf,P3e=pK,D3e=ls,A3e=jy,M3e=Wc,R3e=Object.prototype,L3e=R3e.hasOwnProperty,k3e=P3e(function(n,e){if(A3e(e)||D3e(e)){I3e(e,M3e(e),n);return}for(var t in e)L3e.call(e,t)&&O3e(n,t,e[t])}),N3e=k3e;const F3e=Ie(N3e);var $3e=q7;function V3e(n,e){var t=n==null?0:n.length;return!!t&&$3e(n,e,0)>-1}var WZ=V3e;function j3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=Y3e&&(i=G3e,o=!1,e=new z3e(e));e:for(;++ae}var DOe=POe,AOe=IOe,MOe=DOe,ROe=Wy;function LOe(n){return n&&n.length?AOe(n,ROe,MOe):void 0}var kOe=LOe;const NOe=Ie(kOe);var u5=CK,FOe=FY,$Oe=T7,VOe=1/0,jOe=u5&&1/$Oe(new u5([,-0]))[1]==VOe?function(n){return new u5(n)}:FOe,zOe=jOe,BOe=w7,HOe=WZ,UOe=GZ,WOe=x7,GOe=zOe,YOe=T7,KOe=200;function ZOe(n,e,t){var r=-1,a=HOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=UOe;else if(i>=KOe){var u=e?null:GOe(n);if(u)return YOe(u);o=!1,a=WOe,l=new BOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=ZZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function tIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?ZZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function nIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return tIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function Nd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!Vw(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;Vw(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function rIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Q7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),rIe(eIe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function aIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=aIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Q7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=NOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Hk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function Uk(n,e,t,r){const a=Nd(n,r,t);return new Set($l(a,e,!1))}function iIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function XZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function oIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!Vw(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function Wk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Q7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function QZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Q7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function PS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&Vw(n)?PS(n,t):n}function Gk(n,e){return[...n].filter(r=>r in e)}function JZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const eX={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},ur={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function sIe(n,e){return`${n}-${e}`}function lIe(n){return!ql(n)&&!Vt(n)}function t2(n){return Array.isArray(n)?n:[n]}function uIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?sIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function tX(n){const e={};return uIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=t2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=ur.LEAF_ONLY_MERGE_TYPE:n?t=ur.AUTO_MERGE_VALUE_MERGE_TYPE:t=ur.NONE_MERGE_TYPE,t}class cIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return t2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=tX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;lIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?t2(e).map(m=>m.value):t2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=F3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===ur.LEAF_ONLY_MERGE_TYPE,m=p===ur.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return XZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var dIe=ss,fIe=gi,hIe="[object Boolean]";function pIe(n){return n===!0||n===!1||fIe(n)&&dIe(n)==hIe}var gIe=pIe;const nX=Ie(gIe),n2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},vIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class mIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const yIe=mIe,J7=x.createContext({});class jw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||n2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},n2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(vTe,null):e?x.createElement(hTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:n2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}jw.contextType=J7;jw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};jw.defaultProps={onChange:B};const bIe=jw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new yIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||n2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(bIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=J7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Ff=e0;class eA extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},eA.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const _Ie=eA;class tA extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new _Ie(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||vIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Ff,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Ff,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(J7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}tA.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};tA.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const nA=tA;class RO extends Ff{}RO.Group=nA;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var c5=-1;function Xk(n){if(n===void 0&&(n=!1),c5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),c5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return c5}var xh=null;function qk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var EIe=150,OIe=function(e,t){return e};function rX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){SIe(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Jd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Jd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Jd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(qk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Xk():0:C=w.scrollHeight>w.clientHeight?Xk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(qk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Zk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?OIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var IIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},PIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},DIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?aX(e,t,i,0,r):AIe(e,t,Math.max(0,i),r)},aX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},AIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},MIe=rX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Qk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Qk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},LIe=RIe,Ut=eX.PREFIX_OPTION;let Bw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===ur.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(zw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},LIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};Bw.contextType=Fr;Bw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};Bw.defaultProps={empty:!1};const iX={PREFIX:`${q}-tag`},Yg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var kIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:sX[0],color:oX[0],closable:!1,type:lX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(sX),color:v.oneOf(oX),type:v.oneOf(lX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(NIe),"aria-label":v.string};const FIe={PREFIX:`${q}-tagInput`},Jk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},$Ie=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(r7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=VIe(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const zIe=jIe;function BIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Hw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function rA(n){return"nodeType"in n}function ja(n){var e,t;return n?Kg(n)?n:rA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function aA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Kg(n)?!1:n instanceof ja(n).HTMLElement}function uX(n){return n instanceof ja(n).SVGElement}function Zg(n){return n?Kg(n)?n.document:rA(n)?aA(n)?n:t0(n)||uX(n)?n.ownerDocument:document:document:document}const Co=Hw?D.useLayoutEffect:D.useEffect;function Uw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function H1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function DS(n){const e=Uw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function AS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let d5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=d5[n]==null?0:d5[n]+1;return d5[n]=t,n+"-"+t},[n,e])}function cX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=cX(1),U1=cX(-1);function UIe(n){return"clientX"in n&&"clientY"in n}function Ww(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function WIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function MS(n){if(WIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return UIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),eN="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function GIe(n){return n.matches(eN)?n:n.querySelector(eN)}const YIe={display:"none"};function KIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:YIe},t)}function ZIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function XIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const dX=D.createContext(null);function qIe(n){const e=D.useContext(dX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function QIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const JIe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},ePe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function tPe(n){let{announcements:e=ePe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=JIe}=n;const{announce:i,announcement:o}=XIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),qIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(KIe,{id:r,value:a.draggable}),x.createElement(ZIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function RS(){}function f5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function nPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function fX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function rPe(n,e){const t=MS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function hX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function aPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function tN(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function pX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function nN(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=nN(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=fX(nN(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(hX)},oPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=tN(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=tN(l),c=a.reduce((f,h,p)=>f+fX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(hX)};function sPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=sPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(aPe)};function uPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function gX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function cPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const dPe=cPe(1);function vX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function fPe(n,e,t){const r=vX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const hPe={ignoreTransform:!1};function Xg(n,e){e===void 0&&(e=hPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=fPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function rN(n){return Xg(n,{ignoreTransform:!0})}function pPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function gPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function vPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Gw(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(aA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||uX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&vPe(a,i)&&t.push(a),gPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function mX(n){const[e]=Gw(n,1);return e??null}function h5(n){return!Hw||!n?null:Kg(n)?n:rA(n)?aA(n)||n===Zg(n).scrollingElement?window:t0(n)?n:null:null}function yX(n){return Kg(n)?n.scrollX:n.scrollLeft}function bX(n){return Kg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:yX(n),y:bX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function _X(n){return!Hw||!n?!1:n===document.scrollingElement}function SX(n){const e={x:0,y:0},t=_X(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const mPe={x:.2,y:.2};function yPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=mPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=SX(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function bPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function CX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function SPe(n){return n.reduce((e,t)=>e+bX(t),0)}function wX(n,e){if(e===void 0&&(e=Xg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);mX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const CPe=[["x",["left","right"],_Pe],["y",["top","bottom"],SPe]];let iA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Gw(t),a=CX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of CPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Xm{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function wPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Zg(n)}function p5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function aN(n){n.preventDefault()}function xPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const xX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},TPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class oA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Xm(Zg(t)),this.windowListeners=new Xm(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&wX(r),t(ts)}handleKeyDown(e){if(Ww(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=xX,coordinateGetter:o=TPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=U1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=SX(g),T=bPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(U1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}oA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=xX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function iN(n){return!!(n&&"distance"in n)}function oN(n){return!!(n&&"delay"in n)}class sA{constructor(e,t,r){var a;r===void 0&&(r=wPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Zg(o),this.documentListeners=new Xm(this.document),this.listeners=new Xm(r),this.windowListeners=new Xm(ja(o)),this.initialCoordinates=(a=MS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,aN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,aN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(oN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(iN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,xPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=MS(e))!=null?t:ts,u=U1(a,l);if(!r&&s){if(iN(s)){if(s.tolerance!=null&&p5(u,s.tolerance))return this.handleCancel();if(p5(u,s.distance))return this.handleStart()}return oN(s)&&p5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const EPe={move:{name:"pointermove"},end:{name:"pointerup"}};class TX extends sA{constructor(e){const{event:t}=e,r=Zg(t.target);super(e,EPe,r)}}TX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const OPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class EX extends sA{constructor(e){super(e,OPe,Zg(e.event.target))}}EX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const g5={move:{name:"touchmove"},end:{name:"touchend"}};class OX extends sA{constructor(e){super(e,g5)}static setup(){return window.addEventListener(g5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(g5.move.name,e)};function e(){}}}OX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var qm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(qm||(qm={}));var W1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(W1||(W1={}));function IPe(n){let{acceleration:e,activator:t=qm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=W1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=DPe({delta:d,disabled:!i}),[p,g]=HIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case qm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case qm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===W1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=yPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const PPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function DPe(n){let{delta:e,disabled:t}=n;const r=AS(e);return n0(a=>{if(t||!r||!a)return PPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function APe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function MPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var G1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(G1||(G1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const sN=new Map;function RPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=H1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return sN;if(!y||y===sN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new iA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case G1.Always:return!1;case G1.BeforeDragging:return t;default:return!t}}}function lA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function LPe(n,e){return lA(n,e)}function kPe(n){let{callback:e,disabled:t}=n;const r=Uw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Yw(n){let{callback:e,disabled:t}=n;const r=Uw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function NPe(n){return new iA(Xg(n),n)}function lN(n,e,t){e===void 0&&(e=NPe);const[r,a]=D.useReducer(s,null),i=kPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Yw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function FPe(n){const e=lA(n);return gX(n,e)}const uN=[];function $Pe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==uN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Gw(n):uN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function VPe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=h5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=h5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=h5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):CX(n):ts,[n,e])}function cN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?U1(n,t.current):ts}function jPe(n){D.useEffect(()=>{if(!Hw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function zPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function IX(n){return D.useMemo(()=>n?pPe(n):null,[n])}const v5=[];function BPe(n,e){e===void 0&&(e=Xg);const[t]=n,r=IX(t?ja(t):null),[a,i]=D.useReducer(s,v5),o=Yw({callback:i});return n.length>0&&a===v5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>_X(l)?r:new iA(e(l),l)):v5}}function PX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function HPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Yw({callback:a}),o=D.useCallback(u=>{const c=PX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=DS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const UPe=[{sensor:TX,options:{}},{sensor:oA,options:{}}],WPe={current:{}},r2={draggable:{measure:rN},droppable:{measure:rN,strategy:G1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Xg}};class Qm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const GPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:RS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:r2,measureDroppableContainers:RS,windowRect:null,measuringScheduled:!1},DX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:RS,draggableNodes:new Map,over:null,measureDroppableContainers:RS},a0=D.createContext(DX),AX=D.createContext(GPe);function YPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qm}}}function KPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Qm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Qm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Qm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function ZPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=AS(r),o=AS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Ww(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=GIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function MX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function XPe(n){return D.useMemo(()=>({draggable:{...r2.draggable,...n==null?void 0:n.draggable},droppable:{...r2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...r2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function qPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=gX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=mX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Kw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const QPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=UPe,collisionDetection:d=lPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(KPe,void 0,YPe),[m,y]=g,[b,_]=QIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:WPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=H1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=XPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=RPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=APe(E,T),ee=D.useMemo(()=>z?MS(z):null,[z]),ne=Qc(),re=LPe(se,Y.draggable.measure);qPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=lN(se,Y.draggable.measure,re),oe=lN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=HPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=FPe(Mt?null:te),Vn=IX(Je?ja(Je):null),on=$Pe(w?We??se:null),wn=BPe(on),mi=MX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=VPe(on),mh=cN(vu),yh=cN(vu,[te]),fs=jp(mi,mh),qr=Ve?dPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=pX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=uPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:sr,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new sr({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Jc=L.current;if(Jc==null)return;const ut=E.get(Jc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Jc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Jc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(sr,zn)=>{const Bn=sr.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(sr,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(sr,jn))},[E,hl]),pl=MPe(c,mu);jPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:sr,collisions:zn,over:Bn}=pe.current;if(!jn||!sr)return;const pr={active:jn,activatorEvent:sr,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:sr,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:sr,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),IPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const qc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(dX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(AX.Provider,{value:qc},x.createElement(Kw.Provider,{value:ba},u)),x.createElement(ZPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(tPe,{...s,hiddenTextDescribedById:U}));function Qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,sr=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:sr}:{enabled:sr}}}),JPe=D.createContext(null),dN="button",eDe="Droppable";function tDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(eDe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=dN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Kw:JPe),[b,_]=DS(),[S,C]=DS(),w=zPe(o,e),T=H1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===dN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function RX(){return D.useContext(AX)}const nDe="Droppable",rDe={timeout:25};function aDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(nDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...rDe,...a},y=H1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Yw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=DS(S),T=H1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function iDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=AS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const oDe={x:0,y:0,scaleX:1,scaleY:1};function sDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:DX},x.createElement(Kw.Provider,{value:oDe},e))}const lDe={position:"fixed",touchAction:"none"},uDe=n=>Ww(n)?"transform 250ms ease":void 0,cDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=uDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...lDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?rPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),dDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},fDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},hDe={duration:250,easing:"ease",keyframes:fDe,sideEffects:dDe({styles:{active:{opacity:"0"}}})};function pDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Uw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=PX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=vX(c);if(!d)return;const f=typeof e=="function"?e:gDe(e);return wX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function gDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...hDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let fN=0;function vDe(n){return D.useMemo(()=>{if(n!=null)return fN++,fN},[n])}const mDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=RX(),w=D.useContext(Kw),T=vDe(d==null?void 0:d.id),E=MX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=lA(f),I=pDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(sDe,null,x.createElement(iDe,{animation:I},d&&T?x.createElement(cDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function LX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function yDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function bDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=LX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},kX="Sortable",NX=x.createContext({activeIndex:-1,containerId:kX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:uA,disabled:{draggable:!1,droppable:!1}});function SDe(n){let{children:e,id:t,items:r,strategy:a=uA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=RX(),d=r0(kX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!bDe(h,y.current),_=m!==-1&&g===-1||b,S=_De(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:yDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(NX.Provider,{value:C},e)}const CDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return LX(t,r,a).indexOf(e)},wDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},xDe={duration:200,easing:"ease"},FX="transform",TDe=Dc.Transition.toString({property:FX,duration:0,easing:"linear"}),EDe={roleDescription:"sortable"};function ODe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Xg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function IDe(n){let{animateLayoutChanges:e=wDe,attributes:t,disabled:r,data:a,getNewIndex:i=CDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=xDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(NX),_=PDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=aDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=tDe({id:o,data:C,attributes:{...EDe,...t},disabled:_.draggable}),G=BIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=ODe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return TDe;if(!(Z&&!Ww(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:FX})}}function PDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function LS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const DDe=[wt.Down,wt.Right,wt.Up,wt.Left],ADe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(DDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Gw(p).some((w,T)=>s[T]!==w),y=$X(d,f),b=MDe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:U1(S,_)}}}};function $X(n,e){return!LS(n)||!LS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function MDe(n,e){return!LS(n)||!LS(e)||!$X(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(QPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:W1.ReversedTreeOrder}},x.createElement(SDe,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(FDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(mDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function FDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=IDe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var $De=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(s5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Mw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new zIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return r7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Gc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(NDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:VDe,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=$De(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}cA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Jk.SIZE_SET),validateStatus:v.oneOf(Jk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};cA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const dA=cA,pt=eX.PREFIX,jDe=0;class Zw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===ur.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(Bw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===ur.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,ur.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===ur.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Wg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Gc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:jDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new cIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=tX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Gbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=JZ(c));const C=MO(l,s)===ur.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===ur.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(dA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,ur.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Zw.contextType=Fr;Zw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(ur.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(ur.VALIDATE_STATUS),showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Zw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(kf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:ur.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const zDe=Zw;class BDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const HDe=BDe,hN={PREFIX:`${q}-collapsible`};class qg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=qg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new HDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${hN.PREFIX}-wrapper`,{[`${hN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}qg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};qg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};qg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const VX=qg;var UDe=PK;function WDe(n,e){return n==null?!0:UDe(n,e)}var GDe=WDe;const $O=Ie(GDe);var YDe=Xf,KDe=yw,ZDe=Tr,XDe=Lg,qDe=UY,QDe=qf,JDe=pw;function e6e(n){return ZDe(n)?YDe(n,QDe):XDe(n)?[n]:KDe(qDe(JDe(n)))}var t6e=e6e;const Y1=Ie(t6e),pN=n=>{const e=Y1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function n6e(n){if(oa(n)){const e=UZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function fA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||n6e(t))&&$O(n,e),fA(n,e.slice(0,e.length-1))}function r6e(n){return UZ(n).length===0}function Ea(n,e){return H(n,e)}function a2(n,e){$O(n,e);let t=Y1(e);t=t.slice(0,t.length-1),fA(n,t)}function m5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(pN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=Y1(e);a=a.slice(0,a.length-1),fA(n,a)}else!pN(e)&&Ea(n,e)!==void 0&&a2(n,e)}function jX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const a6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},a6e),i6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:kg,POSITION_SET:gf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},i6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var o6e=ss,s6e=gi,l6e="[object Date]";function u6e(n){return s6e(n)&&o6e(n)==l6e}var c6e=u6e,d6e=c6e,f6e=Qf,gN=Hy,vN=gN&&gN.isDate,h6e=vN?f6e(vN):d6e,p6e=h6e;const mN=Ie(p6e);function Vl(n){return typeof n=="string"}function yN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return ZCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return aZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return aZ(i,o)&&Ywe(a,{start:i,end:o})&&!CS(a,i)&&!CS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return D7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function g6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return g6e(n)&&yo(new Date(n))}const zX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},v6e=n=>zX;function Zu(n){return n&&zX[n]}const m6e=v6e,y6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},b6e=y6e,_6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=_6e;var jO={exports:{}},zO={exports:{}},BX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var Fn=BX.exports,BO={exports:{}},HO={exports:{}},HX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(HX);var UX=HX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var S6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(S6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var C6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var w6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(w6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var x6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var T6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var WX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(WX),a=t(hA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var E6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(hA),i=t(E6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var O6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=I6e;nh.setDefaultOptions=P6e;var GX={};function I6e(){return GX}function P6e(n){GX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var pA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var YX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(YX),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var D6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(pA),i=t(D6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var A6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var M6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(T6e),a=t(O6e),i=t(WX),o=t(A6e),s=t(YX),l=t(KX),u=t(M6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var R6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var L6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var ZX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=F6e;i0.isProtectedWeekYearToken=$6e;i0.throwProtectedError=V6e;var k6e=["D","DD"],N6e=["YY","YYYY"];function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n){return N6e.indexOf(n)!==-1}function V6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var j6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var z6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(z6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var B6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var H6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var U6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(U6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var W6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var Y6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(G6e),a=t(Y6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var K6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a=t(B6e),i=t(H6e),o=t(W6e),s=t(K6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var Z6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Z6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var X6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(C6e),a=t(x6e),i=t(il),o=t(R6e),s=t(L6e),l=t(ZX),u=i0,c=t(th),d=t(za),f=nh,h=t(X6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var q6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var Q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var J6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var XX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(J6e),r=a(XX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var e7e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var qX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(ZX),a=o(o0),i=o(qX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Xw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(q6e),r=i(e7e),a=i(Xw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var QX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var t7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(t7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var JX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Xw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var eq=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(JX),r=i(QX),a=i(eq);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var n7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var r7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(JX),r=s(Xw),a=s(qX),i=s(o0),o=s(XX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var a7e=MI.exports,tq={format:QX,formatInTimeZone:n7e,getTimezoneOffset:r7e,toDate:Xw,utcToZonedTime:eq,zonedTimeToUtc:a7e};const i7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],bN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},o7e=/([\-\+]{1})(\d{2})\:(\d{2})/,nq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(o7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in bN){const r=bN[n];if(s7e(r))return r}const t=i7e.find(r=>r[0]===n);return t&&t[1][0]}},_N={};function s7e(n){if(_N[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),_N[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>tq.utcToZonedTime(n,nq(e),t),zp=(n,e,t)=>tq.zonedTimeToUtc(n,nq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=cZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function i2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function o2(n){return["string","number"].includes(typeof n)&&n!==""}class l7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(o2(r)&&(o=zp(o,r)),a.push(o2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ak(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ak(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");o2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;CS(s,i)||a.push(s),CS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function rq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const SN="Enter",u7e="Tab";let c7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===SN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===SN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===u7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=i2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=rq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=i2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=i2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function CN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function wN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var d7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new c7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Gc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(CN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(wN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(CN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(wN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=d7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(gZ,{"aria-hidden":!0}),U=x.createElement(aTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}kS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};kS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function aq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function f7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=rZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=KCe(n),s=WSe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=f7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},p7e=h7e,xN={month:Rd,year:USe},g7e={prevMonth:uxe,nextMonth:Ku,prevYear:cxe,nextYear:_S};class v7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Rd(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Rd(c,r.pickerDate))>0,f=Math.abs(Rd(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Rd(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Rd(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=_S(o,-1);break;case"nextYear":s=_S(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return xN[e]&&xN[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");o2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=g7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=fZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;D7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Rd(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||m6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=aq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const TN=Ge.NAVIGATION;class gA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:TN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(N7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${TN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(yZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}gA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};gA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const m7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=y7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const _7e=Ge.PREFIX;class vA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new b7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=yN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&yN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${_7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}vA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};vA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,weeksRowNum:0};const wb="time",y5="timeRange",S7e=" ~ ",C7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,y5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:y5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:S7e,DEFAULT_MULTIPLE_SEPARATOR:C7e,SIZE:Yc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:kg,DEFAULT_POSITION:{[wb]:"bottomLeft",[y5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},w7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var x7e=uK,T7e=NK,E7e=Qy,O7e=9007199254740991,b5=4294967295,I7e=Math.min;function P7e(n,e){if(n=E7e(n),n<1||n>O7e)return[];var t=b5,r=I7e(n,b5);e=T7e(e),n-=b5;for(var a=x7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var zAe=jAe,BAe=zAe,HAe=lq,UAe=BAe(HAe),WAe=UAe;const qs=Ie(WAe);var GAe=S7,YAe=ww,EN=Qy;function KAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&YAe(n,e,t)?(e=0,t=r):(e=e==null?0:EN(e),t=t===void 0?r:EN(t)),GAe(n,e,t)):[]}var ZAe=KAe;const s2=Ie(ZAe);let XAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;s2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const qAe=(n,e,t)=>{const r=new VZ({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},QAe=qAe,ON=1e3/60,IN=/^\s*$/,l2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===l2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");K1(o,l=>{l.className=l.className&&l.className.replace(s," "),IN.test(l.className)&&(l.className="")}),r.className&&!IN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=QAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==l2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=NS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=NS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new XAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},ON),this.debouncedSelect=n7((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},ON*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===l2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(w7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:l2};class JAe extends ze{}var e9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function S5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/PN),10)*PN-8*cq)}}const n9e=t9e;class yA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new n9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>_5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>_5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>_5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(uq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}yA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};yA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=yA;class r9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=hZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const DN=`${q}-datepicker`;class bA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:b6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new r9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(fZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=hZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(uq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${DN}-yearmonth-header`,u=`${DN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(N7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}bA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};bA.defaultProps={disabledDate:V1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const dq=bA,yi=Ge.PREFIX;class _A extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=rq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new v7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(gA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(vA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&D7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(dq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(vZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}_A.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};_A.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:a9e}=Nf;class SA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(a9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}SA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};SA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const i9e=SA;function o9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var s9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(o9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(mN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];mN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(dq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new l7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(_A,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(i9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(kS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Wg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(kS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=s9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Z1.contextType=Fr;Z1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(gf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Z1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,disabledTime:V1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const l9e=jX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Z1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Z1),fq={PREFIX:`${q}-descriptions`},AN={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},u9e=x.createContext(null),CA=u9e;var c9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);am7(f)?x.createElement(qw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(CA.Provider,{value:{align:t}},d))))}}s0.Item=qw;s0.contextType=CA;s0.propTypes={align:v.oneOf(AN.ALIGN_SET),row:v.bool,size:v.oneOf(AN.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const f9e=s0,h9e={PREFIX:`${q}-empty`};var p9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=p9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,nd,{[`${nd}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${nd}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${nd}-content`},o?x.createElement(Nf.Title,Object.assign({},m,{className:`${nd}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${nd}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${nd}-footer`,"x-semi-prop":"children"},l):null))}}hq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},LN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function g9e(n){return n!==null&&typeof n=="object"}function $f(n){return g9e(n)&&typeof n.then=="function"}class v9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);$f(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);$f(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class wA extends ze{constructor(e){super(Object.assign(Object.assign({},wA.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var m9e=YZ,y9e=Cw,b9e=g7,_9e=y9e(function(n,e){return b9e(n)?m9e(n,e):[]}),S9e=_9e;const C9e=Ie(S9e);class Jm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=C9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=Jm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=Jm;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=C5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(Nf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=C5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new wA(this.adapter),this.dialogId=`dialog-${w9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=C5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}Qw.contextType=Fr;Qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};Qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var x9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=x9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},pq=T9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;E9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(pq,Object.assign({},a,{afterClose:o}))},I9e=x.forwardRef(O9e);let kN=0;function P9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function D9e(){const[n,e]=P9e();function t(r){return function(i){kN+=1;const o=x.createRef();let s;const l=x.createElement(I9e,{key:`semi-modal-${kN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(gq),success:t(vq),error:t(yq),warning:t(mq),confirm:t(bq)},x.createElement(x.Fragment,null,n)]}var A9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=A9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(UK,{style:m,getPopupContainer:c}," ",x.createElement(Qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new v9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=CSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(LN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(LN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=D9e;ol.info=function(n){return l0(gq(n))};ol.success=function(n){return l0(vq(n))};ol.error=function(n){return l0(yq(n))};ol.warning=function(n){return l0(mq(n))};ol.confirm=function(n){return l0(bq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Jw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},NN={SPACING:4,NESTED_SPACING:2};class M9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&X2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class R9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&tSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=J2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=eSe(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":q2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":Q2e(this.menuItemNodes,r),Ra(e);break;default:K2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const L9e=x.createContext({level:0}),hg=L9e;var k9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}xA.propTypes={children:v.node,className:v.string,style:v.object};xA.contextType=hg;const F9e=xA,rd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${rd}-item`]:!0,[`${rd}-item-disabled`]:t,[`${rd}-item-hover`]:d,[`${rd}-item-withTick`]:h,[`${rd}-item-${o}`]:o,[`${rd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${rd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Jw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const $9e=d0,V9e=c0.PREFIX,_q=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${V9e}-divider`,t),style:e})};_q.propTypes={style:v.object,className:v.string};const j9e=_q,FN=c0.PREFIX;class TA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${FN}-title`]:!0,[`${FN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}TA.propTypes={children:v.node,className:v.string,style:v.object};TA.contextType=hg;const z9e=TA;var w5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new M9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=w5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=w5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=w5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:NN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=NN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=F9e;Di.Item=$9e;Di.Divider=j9e;Di.Title=z9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(B9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(H9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Jw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,Sq={PREFIX:`${q}`};var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);azK(VN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o<$N.length;o++){const s=$N[o];if(this.state.screens[s]&&a[s]!==void 0){t[i]=a[s];break}}else t[i]=a||0}),t}render(){const e=this.props,{prefixCls:t,type:r,justify:a,align:i,className:o,style:s,children:l}=e,u=U9e(e,["prefixCls","type","justify","align","className","style","children"]),c=this.getGutter(),d=`${t}-row`,f=$({[d]:r!=="flex",[`${d}-${r}`]:r,[`${d}-${r}-${a}`]:r&&a,[`${d}-${r}-${i}`]:r&&i},o),h=Object.assign(Object.assign(Object.assign({},c[0]>0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Cq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}ex.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};ex.defaultProps={prefixCls:Sq.PREFIX};ex.RowContext={gutters:v.any};const FI=ex;var W9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}tx.contextType=Cq;tx.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};tx.defaultProps={prefixCls:Sq.PREFIX};const ii=tx,nx={PREFIX:`${q}-layout`},G9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},Y9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),wq=Y9e;var K9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${nx.PREFIX}-sider-${n}`)})(),X9e=G9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=Z9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(jN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>zK(jN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=K9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(X9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:nx.PREFIX};f0.contextType=wq;f0.elementType="Layout.Sider";const q9e=f0;var xq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=xq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:nx.PREFIX};const J9e=EA("Header")(h0),e8e=EA("Footer")(h0),t8e=EA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=xq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(wq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:nx.PREFIX,tagName:"section"};jl.Header=J9e;jl.Footer=e8e;jl.Content=t8e;jl.Sider=q9e;const tu={PREFIX:`${q}-form`},Om={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var zN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}OA.propTypes={className:v.string,children:v.node,size:v.oneOf(n8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};OA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const BN={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},HN=n=>{Object.keys(BN).forEach(e=>{n.style.setProperty(e,BN[e],"important")})},UN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function r8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),HN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),HN(bi),bi.value=e;let l=UN(bi,n);bi.value="x";const u=UN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const a8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],i8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,a8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},o8e=i8e;class IA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},IA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=o8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=r8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var s8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new IA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Gc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=s8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}PA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};PA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const l8e=x.forwardRef((n,e)=>x.createElement(PA,Object.assign({},n,{forwardRef:e}))),u8e=l8e;var c8e=DZ;function d8e(n){return c8e(n)&&n!=+n}var f8e=d8e;const h8e=Ie(f8e),p8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},g8e=p8e,v8e=Object.assign({},Rw),ef=Object.assign(Object.assign({},H4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),m8e=Object.assign({},Yc);function y8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function WN(n,e){return y8e(n,-e)}class b8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||ef.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||ef.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===ef.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(WN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(WN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const _8e=b8e;var S8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(TTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(kf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new _8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!g8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else h8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=S8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}FS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};FS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:v8e.PREFIX,pressInterval:ef.DEFAULT_PRESS_TIMEOUT,pressTimeout:ef.DEFAULT_PRESS_TIMEOUT,shiftStep:ef.DEFAULT_SHIFT_STEP,size:m8e.DEFAULT_SIZE,step:ef.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const Tq=jX(x.forwardRef(function(e,t){return x.createElement(FS,Object.assign({},e,{forwardedRef:t}))}),FS),GN="horizontal",YN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[YN,GN],MODE_VERTICAL:YN,MODE_HORIZONTAL:GN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},KN={open:"chevron_up",closed:"chevron_down"};let C8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},KN):this.toggleIcon=Object.assign({},KN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new C8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const ZN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},XN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?ZN(i,t):XN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?ZN(this._adapter.getOpenKeys(),r):XN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class x8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const T8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),Jg=T8e,Sa=`${Wo.PREFIX}-item`;class ev extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new x8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=NS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}ev.contextType=Jg;ev.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};ev.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(kf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(kf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=NS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement(VX,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(ev,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(Jg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=Jg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function E8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(M5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(E8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=Jg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=Jg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var O8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function QN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:I8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return I8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:qN(this,"selectedKeys"),removeSelectedKeys:QN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:qN(this,"openKeys"),removeOpenKeys:QN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(ev,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=O8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(Jg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=ev;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const x5=rh,P8e={PREFIX:q+"-overflow-list"},JN={COLLAPSE:"collapse",SCROLL:"scroll"},eF={START:"start",END:"end"},D8e={NONE:0,GROW:1,SHRINK:2},mf={BOUNDARY_SET:Object.values(eF),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(JN),MODE_MAP:JN,BOUNDARY_MAP:eF,OVERFLOW_DIR:D8e},tF={MINIMUM_HTML_ELEMENT_WIDTH:4};class DA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}DA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};DA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const A8e=mf.BOUNDARY_MAP;class M8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===A8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const R8e=M8e,Fv=P8e.PREFIX,T5=mf.BOUNDARY_MAP,nF=mf.OVERFLOW_DIR,$v=mf.MODE_MAP;class AA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===$v.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(vf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${Fv}-overflow`},g))}const h=l===$v.SCROLL?[f[0],x.createElement("div",{className:$(a,`${Fv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${Fv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===T5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(vf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${Fv}-item`},_))}),u===T5.END?f:null];return x.createElement("div",{className:$(`${Fv}`,r),style:Object.assign(Object.assign({},o),l===$v.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:nF.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new R8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=nF.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===$v.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/tF.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/tF.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===T5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===$v.SCROLL?x.createElement(DA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(vf,{onResize:this.resize},e)}}AA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};AA.propTypes={className:v.string,collapseFrom:v.oneOf(mf.BOUNDARY_SET),direction:v.oneOf(mf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(mf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const L8e=AA,k8e={PREFIX:`${q}-page`},MA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class N8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=MA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const F8e=N8e;var rF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=rF(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=rF(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===F7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const RA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},E5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:kg},Eq={LIST_HEIGHT:270},Vv=iX.PREFIX,Oq=Yg.TAG_SIZE,V8e=Yg.AVATAR_SHAPE;class X1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Vv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Vv}-group`]:!0,[`${Vv}-group-max`]:r,[`${Vv}-group-small`]:a==="small",[`${Vv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}X1.defaultProps={style:{},className:"",size:Oq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};X1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Oq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf(V8e)};var j8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},z8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=aF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=j8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,aF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},B8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Iq=B8e;var iF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};rx.isSelectOption=!0;rx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};rx.defaultProps={prefixCls:RA.PREFIX_OPTION};const u2=rx,H8e=RA.PREFIX_GROUP;class LA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[H8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}LA.isSelectOptionGroup=!0;LA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Pq=LA;var U8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:W8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new FK,this.foundation=new $8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=z8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>HK(i),getActiveElement:()=>BK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Lf(),this.selectID=this.props.id||Lf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(u2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(u2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(u2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Pq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(zw,{ref:this.virtualizeListRef,height:a||Eq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Iq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Aw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(BZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(L8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}tv.contextType=Fr;tv.Option=u2;tv.OptGroup=Pq;tv.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(E5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(E5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(E5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};tv.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Eq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(kf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=tv;var oF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new F8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(N7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(G8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(Tq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(zw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=oF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=oF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}ax.contextType=Fr;ax.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};ax.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:MA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Dq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},Y8e={SPACING:4,DEFAULT_Z_INDEX:1030};class K8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);$f(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);$f(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var Z8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new K8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=Z8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Dq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}nv.contextType=Fr;nv.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};nv.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Iw,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Dq.PREFIX,zIndex:Y8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const X8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function q8e(n,e,t){try{const r=Q8e(n,e,t);if(r.length!==0)return r}catch{return}}function Q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?J8e({startColor:jv(o.color),endColor:jv(i.color),size:i.percent-o.percent-1},e-o.percent-1):jv(o.color)}}function J8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},sF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var lF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=lF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=q8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=lF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}kA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};kA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const uF=kA,Aq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},eMe={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class tMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class nMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class rMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const aMe=x.createContext(null),NA=aMe;class ix extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new rMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Aq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(w5e,null):null))}}ix.contextType=NA;ix.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ix.defaultProps={onChange:B,isButtonRadio:!1};const iMe=ix;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new nMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=oMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Aq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(iMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=NA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const q1=v0;var sMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new tMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=sMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||eMe.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(q1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(q1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(NA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}FA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};FA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Mq=FA;class lMe extends q1{}lMe.Group=Mq;const c2={PREFIX:`${q}-rating`},Rq={SIZE_SET:["default","small"]};class $A extends ze{constructor(e){super(Object.assign(Object.assign({},$A.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class VA extends ze{constructor(e){super(Object.assign(Object.assign({},VA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Lq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new VA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(k5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${c2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${c2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${c2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Lq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var uMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Lq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new $A(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=uMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ox.contextType=Fr;ox.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ox.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:c2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},cMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),cF=cMe;class jA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},jA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=cF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=cF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var dMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new jA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=fMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=dMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}zA.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};zA.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class hMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},pMe={SIZE_MAP:["default","small","large"]};var gMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new hMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=gMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}BA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(pMe.SIZE_MAP),uncheckedText:v.node,id:v.string};BA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const kq=BA;var vMe=C7,mMe=1/0;function yMe(n){var e=n==null?0:n.length;return e?vMe(n,mMe):[]}var bMe=yMe;const _Me=Ie(bMe);var SMe=Ew;function CMe(n,e){var t;return SMe(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var wMe=CMe,xMe=RK,TMe=Qg,EMe=wMe,OMe=Tr,IMe=ww;function PMe(n,e,t){var r=OMe(n)?xMe:EMe;return t&&IMe(n,e,t)&&(e=void 0),r(n,TMe(e))}var DMe=PMe;const d2=Ie(DMe);var AMe=Ew;function MMe(n,e){var t=[];return AMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var RMe=MMe,LMe=vK,kMe=RMe,NMe=Qg,FMe=Tr;function $Me(n,e){var t=FMe(n)?LMe:kMe;return t(n,NMe(e))}var VMe=$Me;const pg=Ie(VMe);var jMe=Tw;function zMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?jMe(n,e,void 0,t):!!r}var BMe=zMe;const HMe=Ie(BMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,HA=0,UA=16,WA=16,GA=12,YA=12,KA=8,ZA=8,sx=20,dF=sx+ah+HA+UA+WA,UMe=UA+WA+ah,fF=sx+ah+HA+GA+YA,WMe=GA+YA+ah,hF=sx+ah+HA+ZA+KA,GMe=KA+ZA+ah,lr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:UA,DEFAULT_CELL_PADDING_BOTTOM:WA,DEFAULT_CELL_MIDDLE_PADDING_TOP:GA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:YA,DEFAULT_CELL_SMALL_PADDING_TOP:KA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:ZA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:sx,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:WMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:hF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:hF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:GMe};class YMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function f2(n){return["left",!0].includes(H(n,"fixed"))}function h2(n){return["right"].includes(H(n,"fixed"))}function ZMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Fq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function qMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function XA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function O5(n,e){return e!=null&&Fs(n,e)}function QMe(n,e){return e!==null&&n.has(e)}function JMe(n,e){return e!==null&&n.has(e)}function gF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function eRe(n,e){return e===void 0&&(e="children"),H(n,e)}function $q(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function tRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(aRe(r),t.push(r));return t}function $S(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&$S(r,e,t+1),n}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=p2(a[t],e,t)),r)return!1}),r}function nRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function jq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function rRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function zq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=zq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function aRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new Nq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function iRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function Bq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function qA(n){return n===!0||H(n,"showTitle",!0)}class oRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const sRe=oRe;function lRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&vF.call(s,l,1),vF.call(n,l,1);return n}var mRe=vRe,yRe=mRe;function bRe(n,e){return n&&n.length&&e&&e.length?yRe(n,e):n}var _Re=bRe,SRe=Cw,CRe=_Re,wRe=SRe(CRe),xRe=wRe;const TRe=Ie(xRe);function ERe(n){return new Set(n)}function ORe(n,e){if(n===e&&(e=ERe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function mF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ORe(t,r);return Array.from(a)}return n}function IRe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class VS extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{VS.initFilteredValue(t),VS.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Jd(t,Ke),this.memoizedFilterColumns=Jd(XA),this.memoizedFlattenFnsColumns=Jd(Bp),this.memoizedPagination=Jd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&j1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&j1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&TRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(IRe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=lr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=s2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:lr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{d2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=mF(o,[...s,...r]),u=[...o]}else a=mF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=jq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const yF=VS,Hq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Hq);tt.elementType="Column";function jS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=jS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const PRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=PRe,DRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},ARe=DRe;class MRe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class zS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new MRe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Ff,Object.assign({"aria-label":s},l)))}}zS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};zS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class QA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(ax,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}QA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};QA.defaultProps={prefixCls:pa.PREFIX};function Uq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Ff,{checked:m},y):x.createElement(q1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Uq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function RRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(ZTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Uq(u,l),o}class JA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(cTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(sTe,{size:o}))))}}JA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};JA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function e9(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(SZ,{size:"small"}):x.createElement(Y5e,{size:"small"}):u=e&&!l?x.createElement(kf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}e9.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};e9.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class lx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}lx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};lx.defaultProps={columns:[],prefixCls:pa.PREFIX};var LRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(K1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=Vq(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=K1(t,(y,b)=>{const{column:_}=y,S=LRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=Bq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=h2(_),E=f2(_),O=jI(d,_),I=VI(d,_)):(T=f2(_),E=h2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(f2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(h2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}ux.contextType=ih;ux.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};ux.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function kRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return qA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class t9 extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=kRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(ux,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}t9.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};t9.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Wq=x.forwardRef((n,e)=>x.createElement(t9,Object.assign({},n,{forwardedRef:e})));class n9 extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(lx,{columns:o,prefixCls:t}),b=x.createElement(Wq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}n9.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};n9.defaultProps={handleBodyScroll:B};const NRe=x.forwardRef((n,e)=>x.createElement(n9,Object.assign({},n,{forwardedRef:e})));var FRe=sq,$Re=FRe("length"),VRe=$Re,jRe="\\ud800-\\udfff",zRe="\\u0300-\\u036f",BRe="\\ufe20-\\ufe2f",HRe="\\u20d0-\\u20ff",URe=zRe+BRe+HRe,WRe="\\ufe0e\\ufe0f",GRe="\\u200d",YRe=RegExp("["+GRe+jRe+URe+WRe+"]");function KRe(n){return YRe.test(n)}var r9=KRe,Gq="\\ud800-\\udfff",ZRe="\\u0300-\\u036f",XRe="\\ufe20-\\ufe2f",qRe="\\u20d0-\\u20ff",QRe=ZRe+XRe+qRe,JRe="\\ufe0e\\ufe0f",eLe="["+Gq+"]",zI="["+QRe+"]",BI="\\ud83c[\\udffb-\\udfff]",tLe="(?:"+zI+"|"+BI+")",Yq="[^"+Gq+"]",Kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Zq="[\\ud800-\\udbff][\\udc00-\\udfff]",nLe="\\u200d",Xq=tLe+"?",qq="["+JRe+"]?",rLe="(?:"+nLe+"(?:"+[Yq,Kq,Zq].join("|")+")"+qq+Xq+")*",aLe=qq+Xq+rLe,iLe="(?:"+[Yq+zI+"?",zI,Kq,Zq,eLe].join("|")+")",bF=RegExp(BI+"(?="+BI+")|"+iLe+aLe,"g");function oLe(n){for(var e=bF.lastIndex=0;bF.test(n);)++e;return e}var sLe=oLe,lLe=VRe,uLe=r9,cLe=sLe;function dLe(n){return uLe(n)?cLe(n):lLe(n)}var fLe=dLe,hLe=y7,pLe=Bg,gLe=ls,vLe=c7,mLe=fLe,yLe="[object Map]",bLe="[object Set]";function _Le(n){if(n==null)return 0;if(gLe(n))return vLe(n)?mLe(n):n.length;var e=pLe(n);return e==yLe||e==bLe?n.size:hLe(n).length}var SLe=_Le;const Ob=Ie(SLe);var CLe=X7,wLe=Qg,xLe=Qy,TLe=Math.max,ELe=Math.min;function OLe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=xLe(t),a=t<0?TLe(r+a,0):ELe(a,r-1)),CLe(n,wLe(e),a,!0)}var ILe=OLe;const PLe=Ie(ILe);class DLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=nRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&j1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=PLe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=eRe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:$q(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var ALe=xw,MLe=4;function RLe(n){return ALe(n,MLe)}var LLe=RLe;const kLe=Ie(LLe);let I5,P5;const _F={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function NLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&I5)return I5;if(!e&&P5)return P5;const t=document.createElement("div");Object.keys(_F).forEach(a=>{t.style[a]=_F[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,I5=r):(r=t.offsetHeight-t.clientHeight,P5=r),document.body.removeChild(t),r}function Qq(n){return typeof n=="number"?n-lr.DEFAULT_CELL_PADDING_LEFT-lr.DEFAULT_CELL_PADDING_RIGHT-lr.DEFAULT_CELL_BORDER_WIDTH_LEFT-lr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-NLe("vertical"):void 0}function SF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const e1=new Nq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:kLe;return K1(e,o=>{o=Object.assign({},o);const s=pF(o,t),l=s!=null&&qs(n,u=>pF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function FLe(){return!0}var $Le=FLe;const VLe=Ie($Le);function jLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new BLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=qMe(r),o=Fq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=Bq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),CF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?Qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(qA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;CF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}Q1.contextType=ih;Q1.defaultProps={indent:0,indentSize:lr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};Q1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var wF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=wF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!jLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(ZMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Fq(O)&&!T)w.push(x.createElement(Q1,{key:I,colIndex:I,isSection:d}));else if(!XMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(Q1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:f2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:h2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=wF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:VLe,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?Qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}cx.contextType=ih;cx.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};cx.defaultProps={record:{},prefixCls:pa.PREFIX};var ULe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=ULe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=XA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}dx.contextType=ih;dx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};dx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const xF=dx;var TF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=tRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=TF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=TF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||e1.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(MIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(xF.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(xF,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>gF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(cx,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:$q(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=O5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=gF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(lx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:j1(w)||ke(T)||iRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Wq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},j1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new DLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=O5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:QMe(c,g),disabled:JMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=O5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}a9.contextType=ih;a9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const WLe=x.forwardRef(function(e,t){return x.createElement(a9,Object.assign({},e,{forwardedRef:t}))});var GLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=jq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",lr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ad2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;KMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?_Me(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>d2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&d2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&e1.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?jS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(zS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(zS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(e9,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=qA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(JA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(RRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(QA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(NRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(WLe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return $S(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new yF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=yF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=m7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:SF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new sRe({hoveredRowKey:null}),this.debouncedWindowResize=n7(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&e1.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=jS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=zq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:SF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=GLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(ARe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};fx.contextType=ih;fx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Hq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};fx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:lr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const i9=fx;var YLe=S7;function KLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:YLe(n,e,t)}var ZLe=KLe,XLe=ss,qLe=gi,QLe="[object RegExp]";function JLe(n){return qLe(n)&&XLe(n)==QLe}var eke=JLe,tke=eke,nke=Qf,EF=Hy,OF=EF&&EF.isRegExp,rke=OF?nke(OF):tke,ake=rke;function ike(n){return n.split("")}var oke=ike,Jq="\\ud800-\\udfff",ske="\\u0300-\\u036f",lke="\\ufe20-\\ufe2f",uke="\\u20d0-\\u20ff",cke=ske+lke+uke,dke="\\ufe0e\\ufe0f",fke="["+Jq+"]",UI="["+cke+"]",WI="\\ud83c[\\udffb-\\udfff]",hke="(?:"+UI+"|"+WI+")",eQ="[^"+Jq+"]",tQ="(?:\\ud83c[\\udde6-\\uddff]){2}",nQ="[\\ud800-\\udbff][\\udc00-\\udfff]",pke="\\u200d",rQ=hke+"?",aQ="["+dke+"]?",gke="(?:"+pke+"(?:"+[eQ,tQ,nQ].join("|")+")"+aQ+rQ+")*",vke=aQ+rQ+gke,mke="(?:"+[eQ+UI+"?",UI,tQ,nQ,fke].join("|")+")",yke=RegExp(WI+"(?="+WI+")|"+mke+vke,"g");function bke(n){return n.match(yke)||[]}var _ke=bke,Ske=oke,Cke=r9,wke=_ke;function xke(n){return Cke(n)?wke(n):Ske(n)}var Tke=xke,Eke=GY,Oke=ZLe,Ike=r9,Pke=ww,Dke=ake,Ake=Tke,Mke=pw,Rke=4294967295;function Lke(n,e,t){return t&&typeof t!="number"&&Pke(n,e,t)&&(e=t=void 0),t=t===void 0?Rke:t>>>0,t?(n=Mke(n),n&&(typeof e=="string"||e!=null&&!Dke(e))&&(e=Eke(e),!e&&Ike(n))?Oke(Ake(n),0,t):n.split(e,t)):[]}var kke=Lke;const t1=Ie(kke);function Nke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Fke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var o9={exports:{}},m0={},hx={exports:{}},iQ={};function oQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function iNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function oNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&dQ(n.body,"react-draggable-transparent-selection")}function sNe(n){if(n)try{if(n.body&&fQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function dQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function fQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=cNe;ll.canDragY=dNe;ll.createCoreData=hNe;ll.createDraggableData=pNe;ll.getBoundPosition=lNe;ll.getControlPosition=fNe;ll.snapToGrid=uNe;var Ci=sl,Tp=Zn;function lNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:gNe(r);const a=l9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function uNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function cNe(n){return n.props.axis==="both"||n.props.axis==="x"}function dNe(n){return n.props.axis==="both"||n.props.axis==="y"}function fNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=l9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function hNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=l9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function pNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function gNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function l9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var px={},gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.default=vNe;function vNe(){}Object.defineProperty(px,"__esModule",{value:!0});px.default=void 0;var A5=yNe(D),Wa=u9($y),mNe=u9(Ti),ra=Zn,wu=ll,M5=sl,zv=u9(gx);function u9(n){return n&&n.__esModule?n:{default:n}}function hQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(hQ=function(r){return r?t:e})(n)}function yNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=hQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=bNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function bNe(n){var e=_Ne(n,"string");return typeof e=="symbol"?e:String(e)}function _Ne(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,vx=class extends A5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,zv.default)("DraggableCore: handleDragStart: %j",l),(0,zv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,zv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,zv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,zv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:mNe.default.findDOMNode(this)}render(){return A5.cloneElement(A5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};px.default=vx;Ta(vx,"displayName","DraggableCore");Ta(vx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:M5.dontSetMe,style:M5.dontSetMe,transform:M5.dontSetMe});Ta(vx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c(Vke),i=Zn,o=ll,s=sl,l=c(px),u=c(gx);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(iQ);const{default:pQ,DraggableCore:SNe}=iQ;hx.exports=pQ;hx.exports.default=pQ;hx.exports.DraggableCore=SNe;var CNe=hx.exports,c9={};c9.__esModule=!0;c9.cloneElement=INe;var wNe=xNe(D);function xNe(n){return n&&n.__esModule?n:{default:n}}function DF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function AF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function MF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function R5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return Bv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=R5({ref:i},s?{}:{handleAxis:a});return Bv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=NNe(i,LNe);return(0,MNe.cloneElement)(o,R5(R5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=Bv.createRef();return Bv.createElement(ANe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(Bv.Component);m0.default=d9;d9.propTypes=RNe.resizableProps;d9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var mx={};mx.__esModule=!0;mx.default=void 0;var L5=WNe(D),zNe=vQ($y),BNe=vQ(m0),HNe=y0,UNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vQ(n){return n&&n.__esModule?n:{default:n}}function mQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(mQ=function(a){return a?t:e})(n)}function WNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=mQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function XNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var yQ=function(n){XNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(qNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const eFe=JNe;var tFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=tFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:jS(n.children),d=$S(ti(c),o),f=$S(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:lr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",lr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=rRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:eFe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=p2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=p2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=p2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Fke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(i9,Object.assign({},i,{columns:w,components:g,ref:e}))},rFe=x.forwardRef(nFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(rFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(i9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},i9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const yx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=cZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;return Lt(n,e,{locale:t})},aFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},iFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},oFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},k5=n=>Array.isArray(n)?[...n]:[],sFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=YCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=k5(i);if(o=k5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=t1(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!sFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=k5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?t1(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=t1(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const uFe=lFe;class cFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const dFe=cFe;var fFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new dFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=fFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(vZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}f9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};f9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const hFe=f9,LF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},pFe={},gFe=[v.string,v.number,v.instanceOf(Date)],kF=v.oneOfType([...gFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var vFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new uFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=vFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Wg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(hFe,Object.assign({},re)))))}}rv.contextType=Fr;rv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:kF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:kF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(LF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},LF),{inputStyle:v.object,preventScroll:v.bool});rv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},pFe);class h9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(rv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}h9.propTypes=rv.propTypes;h9.defaultProps=rv.defaultProps;class p9 extends ze{constructor(e){super(Object.assign(Object.assign({},p9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const N5=`${q}-toast`,ep={PREFIX:N5,WRAPPER:`${N5}-wrapper`,LIST:`${N5}-list`},g2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},mFe={duration:3};class g9 extends ze{constructor(e){super(Object.assign(Object.assign({},g9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let bx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new g9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Iw,null),success:x.createElement(_Z,null),info:x.createElement(bZ,null),error:x.createElement(z1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};bx.contextType=Fr;bx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(g2.themes),type:v.oneOf(g2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(g2.directions)};bx.defaultProps={onClose:B,content:"",close:B,duration:mFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const bQ=bx;var yFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=yFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(bQ,Object.assign({},r,{close:o})):null},_Fe=x.forwardRef(bFe),Hv={motion:!0,zIndex:1010,duration:3};function SFe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function CFe(){const[n,e]=SFe(),t=D.useRef(new Map),r=i=>{const o=bS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(_Fe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const wFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new p9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:bS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=bS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(bQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(g2.directions),stack:v.bool},n.defaultProps={},n};class xFe{static create(e){const t=wFe();return t.useToast=CFe,e&&t.config(e),t}}const Es=xFe.create(),_Q={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function TFe(n){return jK(n,e=>{if(m7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const EFe=_Q.PREFIX;class v9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(vf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${EFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}v9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};v9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const OFe=x.createContext(null),m9=OFe;var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?E7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=n7(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(SZ,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Ff,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(t5e,{className:`${rn}-item-icon`}):x.createElement(QTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=IFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=m9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var PFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement(VX,Object.assign({},r,{isOpen:a}),t)}const NF=n=>n.key;class SQ extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=NF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=NF(l[0]);return x.createElement(DFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}SQ.contextType=m9;const CQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:kg};class AFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return oIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=PS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:PS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return XZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?Wk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?Wk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var MFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(X1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Gc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=MFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Wg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=PS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(dA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(P5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(SQ,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(v9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(zw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Iq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(m9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(nA,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:RFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new AFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=nIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Hk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=iIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Hk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=Uk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=Uk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=Nd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Gk(t.selectedKeys,u));else{let m;if(o("value")?m=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=Nd(Su(e.value,l,i)||[],c,g):m=Gk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=JZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?TFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}_x.contextType=Fr;_x.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};_x.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(kf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const LFe=_x,FF=`${q}-upload`,$F="picture",VF="list",kFe=.95,wQ={PREFIX:FF,LIST:`${FF}-list`},jF="auto",zF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:$F,FILE_LIST_DEFAULT:VF,LIST_TYPE:[$F,VF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:jF,TRIGGER_CUSTOM:zF,UPLOAD_TRIGGER:[jF,zF],VALIDATE_STATUS:kg,PROMPT_POSITION:["left","right","bottom"]},NFe={PROGRESS_COEFFICIENT:kFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,F5=1048576;function qI(n){if(n=Ep&&n=F5)return`${(n/F5).toFixed(1)}MB`}function FFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function $Fe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function VFe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield $Fe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var jFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:BF,FILE_STATUS_SUCCESS:zFe,FILE_STATUS_UPLOAD_FAIL:BFe,FILE_STATUS_VALID_FAIL:$5,FILE_STATUS_WAIT_UPLOAD:HF,DRAG_AREA_DEFAULT:V5,DRAG_AREA_LEGAL:HFe,TRIGGER_AUTO:Ab}=_t;class UFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=Q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=$5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=Q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=$5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?BF:HF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=Q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=$5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===HF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&$f(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*NFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=BF,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=zFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=BFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(HFe)}handleDirectoryDrop(e){return jFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield VFe(r);this.handleChange(a),this._adapter.updateDragAreaStatus(V5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus(V5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus(V5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return FFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const WFe=UFe;class GFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const YFe=GFe,un=wQ.PREFIX,KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},XFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class y9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new YFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(z1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(KFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(E5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(ZFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Gc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(uF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(XFe,null),className:_})))),S?x.createElement(uF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}y9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};y9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const xQ=y9;var qFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(xQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(X5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new WFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=qFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}Sx.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};Sx.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};Sx.FileCard=xQ;const QFe=Sx;class b9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(YK.Provider,{value:t},e)}}b9.propTypes={locale:v.object,children:v.node};b9.defaultProps={locale:OO};function tf(){return tf=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v2(n,e,t){return e$e()?v2=Reflect.construct:v2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&J1(u,o.prototype),u},v2.apply(null,arguments)}function t$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!t$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return v2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),J1(a,r)},JI(n)}var n$e=/%[sdj%]/g,r$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function a$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||a$e(e)&&typeof n=="string"&&!n)}function i$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function UF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Im={integer:function(e){return Im.number(e)&&parseInt(e,10)===e},float:function(e){return Im.number(e)&&!Im.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Im.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(j5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(j5.url)},hex:function(e){return typeof e=="string"&&!!e.match(j5.hex)}};function u$e(n,e,t,r,a){if(n.required&&e===void 0){TQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Im[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function c$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function d$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function f$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:TQ,whitespace:l$e,type:u$e,range:c$e,enum:d$e,pattern:f$e};function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function S$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var C$e="enum";function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[C$e](n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function T$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function E$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function z5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function O$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var n1={string:h$e,method:p$e,number:g$e,boolean:v$e,regexp:m$e,integer:y$e,float:b$e,array:_$e,object:S$e,enum:w$e,pattern:x$e,date:T$e,url:z5,hex:z5,email:z5,required:E$e,any:O$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var _9=tP();function _c(n){this.rules=null,this._messages=_9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=YF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function A$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function nf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>nf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function M$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Om.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function R$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function L$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function k$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=I$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=A$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class N$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(a2(this.data.values,e),a2(this.data.errors,e),a2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)$f(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=Y1(i),s=Y1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;m5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;m5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;m5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);nf(i)||(t=!1)}):t=!!r6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;kL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);kL(r,t)}}}const S9=x.createContext({});S9.displayName="FormState";const EQ=x.createContext({});EQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const F$e=x.createContext({shouldUseInitValue:!0}),B5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[B5+"-field-error-message"]:!!e,[B5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Iw,null),error:x.createElement(z1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${B5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(z1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var $$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;$$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Uv}-field`]:!0,[`${Uv}-slot`]:!0},u),g=$({[`${Uv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Uv}-field-main`]:!0,[`${Uv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},j$e=V$e,KF=tu.PREFIX;class OQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[KF+"-section"]:!0},t),o=KF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}OQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function IQ(){return D.useContext(S9)}function z$e(){return D.useContext(b0)}function H5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function B$e(){return D.useContext(F$e)}var H$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=IQ(),r=e.map(a=>Ea(t.errors,a));return nf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class PQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=H$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(OA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(U$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}PQ.contextType=b0;const W$e=PQ,ms=tu.PREFIX,U5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=k$e(r),{options:G,shouldInject:Y}=L$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));IQ();const Q=z$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=R$e(L,Z.stopValidateWithError,!1),pe=M$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=B$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=H5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=H5(),[Ba,vu]=D.useState(),[mh,yh,fs]=H5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),nf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=D$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,CT)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let ed=ml.map(xv=>xv.message);ed.length===1&&(ed=ed[0]),ba(ed,tn),nf(ed)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},qc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):$f(sn)?sn.then(vn=>{Hi.current===nn&&(nf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):nf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?qc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},Qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),U5(()=>{Vn&&gs(Ve)},[]),U5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:Qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let xv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=xv,x.createElement(n,Object.assign({},nn))}let CT=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let xv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},xv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),ed=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},CT?ed:x.createElement(x.Fragment,null,ml,G0))},Jc=[...Object.values(sr),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Jc]):Ha()};return t=D.forwardRef(t),t.displayName=P$e(n),t}const G$e=$r(Ri,{maintainCursor:!0}),Y$e=$r(Tq,{maintainCursor:!0}),K$e=$r(u8e,{maintainCursor:!0}),C9=$r(g0);C9.Option=g0.Option;C9.OptGroup=g0.OptGroup;const Z$e=$r(nA),X$e=$r(Ff,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),q$e=$r(Mq,{valuePath:"target.value"}),Q$e=$r(q1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),J$e=$r(l9e),eVe=$r(kq,{valueKey:"checked"}),tVe=$r(zA),nVe=$r(h9),rVe=$r(LFe),aVe=$r(zDe),iVe=$r(ox),oVe=$r(tEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),sVe=$r(QFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),lVe=$r(dA);var uVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!_k(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!_k(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new N$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:Q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=uVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(W5,b,{[W5+"-vertical"]:m==="vertical",[W5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(EQ.Provider,{value:this.formApi},x.createElement(S9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Om.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Om.LAYOUT),labelPosition:v.oneOf(Om.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Om.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=G$e;gn.TextArea=K$e;gn.InputNumber=Y$e;gn.Select=C9;gn.Checkbox=X$e;gn.CheckboxGroup=Z$e;gn.Radio=Q$e;gn.RadioGroup=q$e;gn.DatePicker=J$e;gn.TimePicker=nVe;gn.Switch=eVe;gn.Slider=tVe;gn.TreeSelect=rVe;gn.Cascader=aVe;gn.Rating=iVe;gn.AutoComplete=oVe;gn.Upload=sVe;gn.TagInput=lVe;gn.Slot=j$e;gn.ErrorMessage=_0;gn.InputGroup=W$e;gn.Label=Ys;gn.Section=OQ;const Ze=gn,cVe="_main_1w0iy_1",dVe="_login_1w0iy_8",fVe="_component66_1w0iy_20",hVe="_logo_1w0iy_28",pVe="_header_1w0iy_33",gVe="_title_1w0iy_41",vVe="_text_1w0iy_50",mVe="_form_1w0iy_59",yVe="_inputs_1w0iy_67",bVe="_button_1w0iy_75",_Ve="_oauth_1w0iy_79",Ca={main:cVe,login:dVe,component66:fVe,logo:hVe,header:pVe,title:gVe,text:vVe,form:mVe,inputs:yVe,button:bVe,oauth:_Ve,undefined:"_undefined_1w0iy_88"},DQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function AQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){AQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const SVe={code:"en-US",dateFnsLocale:M7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},CVe=SVe,MQ={en_US:DQ},ZF=Object.keys(MQ),wVe={en_US:"en_US"},xVe={en_US:CVe},TVe="lang",RQ="en_US",ve=DQ,EVe=MQ[w9()];AQ(ve,EVe);function OVe(n){try{return localStorage.getItem(n)}catch{return null}}function IVe(){try{return navigator.language.toLowerCase()}catch{return RQ}}function w9(){const n=OVe(TVe);if(ZF.includes(n??""))return n;const e=IVe();for(const t of ZF)if(e.includes(t))return t;return RQ}function PVe(){return wVe[w9()]}function DVe(){return xVe[w9()]}var AVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const XF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(AVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},MVe=n=>n?XF(n):XF;var LQ={exports:{}},kQ={},NQ={exports:{}},FQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function RVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var LVe=typeof Object.is=="function"?Object.is:RVe,kVe=mg.useState,NVe=mg.useEffect,FVe=mg.useLayoutEffect,$Ve=mg.useDebugValue;function VVe(n,e){var t=e(),r=kVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return FVe(function(){a.value=t,a.getSnapshot=e,G5(a)&&i({inst:a})},[n,t,e]),NVe(function(){return G5(a)&&i({inst:a}),n(function(){G5(a)&&i({inst:a})})},[n]),$Ve(t),t}function G5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!LVe(n,t)}catch{return!0}}function jVe(n,e){return e()}var zVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jVe:VVe;FQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:zVe;NQ.exports=FQ;var BVe=NQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Cx=D,HVe=BVe;function UVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var WVe=typeof Object.is=="function"?Object.is:UVe,GVe=HVe.useSyncExternalStore,YVe=Cx.useRef,KVe=Cx.useEffect,ZVe=Cx.useMemo,XVe=Cx.useDebugValue;kQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=YVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=ZVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,WVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=GVe(n,i[0],i[1]);return KVe(function(){o.hasValue=!0,o.value=s},[s]),XVe(s),s};LQ.exports=kQ;var qVe=LQ.exports;const QVe=Ie(qVe);var JVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:eje}=QVe;function tje(n,e=n.getState,t){const r=eje(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const qF=n=>{(JVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?MVe(n):n,t=(r,a)=>tje(e,r,a);return Object.assign(t,e),t},$Q=n=>n?qF(n):qF;var nje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function rje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const ey=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return ey(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return ey(r)(t)}}}},aje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=ey(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},ije=(n,e)=>(t,r,a)=>{let i={storage:rje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},oje=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((nje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),aje(n,e)):ije(n,e),VQ=oje;var x9=(n=>(n.Access="access-control",n.Config="app-config",n))(x9||{}),av=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(av||{});let Y5=0;const $i=$Q()(VQ((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&Y5>0||(Y5=1,fje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{Y5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:x9.Access,version:1,migrate(n,e){return n}}));var Fd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Fd||{});const QF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},jQ=$Q()(VQ((n,e)=>({...QF,reset(){n(()=>({...QF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:x9.Config,version:1,migrate(n,e){return n}}));var sje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class lje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:K5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...K5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:K5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[sje.VITE_PROXY_PATH,e].join("")}}const Er=new lje;function K5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":PVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function uje(n){return Er.post("/login",n)}async function cje(n){return Er.post("/logout",n)}async function dje(n){return Er.post("/sso",n)}async function fje(){return Er.post("/userinfo",{})}async function hje(){return Er.post("/loginType",{})}function pje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{hje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{uje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{dje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const gje="_header_k9z2y_1",vje="_navigationHeaderLogo_k9z2y_10",mje="_dIV_k9z2y_14",yje="_semiIconsBell_k9z2y_20",bje="_avatar_k9z2y_24",_je="_sider_k9z2y_29",Sje="_collapsed_k9z2y_34",Cje="_nav_k9z2y_10",wje="_icon_k9z2y_52",xje="_content_k9z2y_57",Tje="_userProfile_k9z2y_69",Eje="_banner_k9z2y_77",Oje="_frame4159_k9z2y_82",Ije="_name_k9z2y_91",Pje="_richardHendricks_k9z2y_97",Dje="_aRichardHendricks_k9z2y_104",Aje="_main_k9z2y_112",Mje="_descriptions_k9z2y_123",Rje="_frame4152_k9z2y_130",Lje="_semiIconsMapPin_k9z2y_136",kje="_value_k9z2y_140",Nje="_tags_k9z2y_147",Fje="_tag_k9z2y_147",$je="_tag1_k9z2y_154",Vje="_tag2_k9z2y_155",Rt={header:gje,navigationHeaderLogo:vje,dIV:mje,semiIconsBell:yje,avatar:bje,sider:_je,collapsed:Sje,nav:Cje,icon:wje,content:xje,userProfile:Tje,banner:Eje,frame4159:Oje,name:Ije,richardHendricks:Pje,aRichardHendricks:Dje,main:Aje,descriptions:Mje,frame4152:Rje,semiIconsMapPin:Lje,value:kje,tags:Nje,tag:Fje,tag1:$je,tag2:Vje};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?$d.worker=!0:typeof navigator>"u"?($d.node=!0,$d.svgSupported=!0):aze(navigator.userAgent,$d);function aze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=$d;var T9=12,zQ="sans-serif",Ac=T9+"px "+zQ,ize=20,oze=100,sze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Aze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?n$(s,o):n$(o,s))}function KQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Mze=/([&<>"'])/g,Rze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Mze,function(e,t){return Rze[t]})}var Lze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,X5=[],kze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?a$(n,e,t):kze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):a$(n,e,t),t}function a$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(KQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(X5,n,r,a)){t.zrX=X5[0],t.zrY=X5[1];return}}t.zrX=t.zrY=0}function M9(n){return n||window.event}function qi(n,e,t){if(e=M9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=Nze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Lze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Nze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Fze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function i$(n){return n.which===2||n.which===3}var $ze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=o$(r)/o$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Vze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ox(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function R9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function L9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function sv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function jze(n){var e=wo();return R9(e,n),e}var zze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=zze;var Rb=Math.min,Lb=Math.max,id=new Le,od=new Le,sd=new Le,ld=new Le,Wv=new Le,Gv=new Le,Bze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),L9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}id.x=sd.x=t.x,id.y=ld.y=t.y,od.x=ld.x=t.x+t.width,od.y=sd.y=t.y+t.height,id.transform(r),ld.transform(r),od.transform(r),sd.transform(r),e.x=Rb(id.x,od.x,sd.x,ld.x),e.y=Rb(id.y,od.y,sd.y,ld.y);var l=Lb(id.x,od.x,sd.x,ld.x),u=Lb(id.y,od.y,sd.y,ld.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=Bze;var ZQ="silent";function Hze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Uze}}function Uze(){nu(this.event)}var Wze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Yv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Gze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Q5=new $e(0,0,0,0),XQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Yv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Wze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Eze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Gze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=qQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Yv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Hze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Yv(t,r);if(s$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Q5.copy(f.getBoundingRect()),f.transform&&Q5.applyTransform(f.transform),Q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Yze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?ZQ:!0}return!1}function s$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Yze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZQ)){e.target=o;break}}}function qQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Kze=XQ;var QQ=32,Kv=7;function Zze(n){for(var e=0;n>=QQ;)e|=n&1,n>>=1;return n+e}function l$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Xze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function e4(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function qze(n,e){var t=Kv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Kv||T>=Kv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-J5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Kv||O>=Kv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),u$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Pm=2,tp=4,c$=!1;function t4(){c$||(c$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(t4(),c.z=0),isNaN(c.z2)&&(t4(),c.z2=0),isNaN(c.zlevel)&&(t4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Jze=Qze;var JQ;JQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=JQ;var S2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-S2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?S2.bounceIn(n*2)*.5:S2.bounceOut(n*2-1)*.5+.5}};const eJ=S2;var kb=Math.pow,Sc=Math.sqrt,WS=1e-8,tJ=1e-4,f$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-WS&&nWS||n<-WS}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function h$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function GS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+f$*Math.sin(w)))/(3*o),O=(-s+T*(E-f$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function rJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(nJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function aJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=yf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function iJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ry(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function oJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=yf(Ls,io);h=0&&h=1?1:GS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var aBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:eJ[e]||k9(e)},n}();const iBe=aBe;var sJ=function(){function n(e){this.value=e}return n}(),oBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new sJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),sBe=function(){function n(e){this._list=new oBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new sJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=sBe;var p$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function lBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ay(n){return n<0?0:n>1?1:n}function n4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function bf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ay(parseFloat(e)/100):ay(parseFloat(e))}function r4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var lJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=lJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=lJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in p$)return yP(e,p$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=bf(u.pop());case"rgb":if(u.length>=3)return Xi(e,n4(u[0]),n4(u[1]),n4(u[2]),u.length===3?c:bf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=bf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=bf(n[1]),a=bf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(r4(o,i,t+1/3)*255),Qo(r4(o,i,t)*255),Qo(r4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function uBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function a4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ay(tc(o[3],s[3],l)),t}}function cBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ay(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function a1(n,e,t,r){var a=ki(n);if(n)return a=uBe(a),e!=null&&(a[0]=lBe(e)),t!=null&&(a[1]=bf(t)),r!=null&&(a[2]=bf(r)),Hl(bP(a),"rgba")}function YS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ay(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function KS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var ZS=Math.round;function iy(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var g$=1e-4;function nc(n){return n-g$}function $b(n){return ZS(n*1e3)/1e3}function SP(n){return ZS(n*1e4)/1e4}function dBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var fBe={left:"start",right:"end",center:"middle",middle:"middle"};function hBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function pBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function gBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function uJ(n){return n&&!!n.image}function vBe(n){return n&&!!n.svgElement}function N9(n){return uJ(n)||vBe(n)}function cJ(n){return n.type==="linear"}function dJ(n){return n.type==="radial"}function fJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ix(n){return"url(#"+n+")"}function hJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*m2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+ZS(o*m2)+"deg, "+ZS(s*m2)+"deg)"),l.join(" ")}var mBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function i4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=m$,l=t;if(ga(t)){var u=SBe(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ny(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Dm)}else if(Tx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),cJ(t)?s=wP:dJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===m$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:eJ[r]||k9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=y$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Zv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===w2?i4(b,h[a],p[a],y):yBe(b,h[a],p[a],y);else if(y$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:C2(i4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)i4(b,h[a],p[a],y),r||(e[l]=C2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Dm?(ki(e[r],Zv),Vb(Zv,Zv,a,1),e[r]=C2(Zv)):t===w2?Vb(e[r],e[r],a,1):t===gJ&&v$(e[r],e[r],a,1)},n}(),F9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){I9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,i1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,i1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var wBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new F9(t,r.loop);return this.addAnimator(a),a},e}(To);const xBe=wBe;var TBe=300,o4=ot.domSupported,s4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),b$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function EBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function l4(n){n&&(n.zrByTouch=!0)}function OBe(n,e){return qi(n.dom,new IBe(n,e),!0)}function vJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var IBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;vJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){_$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){_$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),l4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),l4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),l4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentw$||n<-w$}var cd=[],Rh=[],c4=wo(),d4=Math.abs,LBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ud(this.rotation)||ud(this.x)||ud(this.y)||ud(this.scaleX-1)||ud(this.scaleY-1)||ud(this.skewX)||ud(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(C$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):C$(r),e&&(t?Bl(r,e,r):R9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(cd);var r=cd[0]<0?-1:1,a=cd[1]<0?-1:1,i=((cd[0]-r)*t+r)/cd[0]||0,o=((cd[1]-a)*t+a)/cd[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),sv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(c4[4]=r,c4[5]=a,Bl(Rh,t,c4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&d4(e[0]-1)>1e-10&&d4(e[3]-1)>1e-10?Math.sqrt(d4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){yJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function qS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var f4="__zr_normal__",h4=el.concat(["ignore"]),kBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},NBe=new $e(0,0,0,0),$9=function(){function n(e){this.id=UQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=NBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):qS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(f4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===f4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){I9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=i1(t[y]),$Be(t,r,y)}}var C=new F9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const _J=$9;var SJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?WBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),wJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return GBe(n)}function GBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function YBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function KBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>wJ?r:Ln(r,t)}var I$=9007199254740991;function TJ(n){var e=Math.PI*2;return(n%e+e)%e}function QS(n){return n>-O$&&n=10&&e++,e}function EJ(n,e){var t=V9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function v4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function P$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var _He=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SHe=zf(_He),CHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return SHe(this,e,t)},n}(),AP=new S0(50);function wHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function H9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Ax(e)&&i.pending.push(o)):(e=Mc.loadImage(n,R$,R$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function R$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function VJ(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?THe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function THe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=$J(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&y4(t,n.substring(s,u),e,o),y4(t,l[2],e,o,l[1]),s=m4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=wHe(k),Ax(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=jJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var AHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function MHe(n){return DHe(n)?!!AHe[n]:!0}function jJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),_f={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_f[MP]=!0;var k$=["z","z2","invisible"],RHe=["invisible"],LHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=C4(a)*t+n,Bb[1]=S4(a)*r+e,Hb[0]=C4(i)*t+n,Hb[1]=S4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%fd,a<0&&(a=a+fd),i=i%fd,i<0&&(i=i+fd),a>i&&!o?i+=fd:aa&&(Ub[0]=C4(h)*t+n,Ub[1]=S4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hd=[],pd=[],ys=[],Tu=[],bs=[],_s=[],w4=Math.min,x4=Math.max,gd=Math.cos,vd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,T4=typeof Float32Array<"u",Xv=[];function E4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function zJ(n,e){var t=E4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-E4(t-a)):e&&t0&&(this._ux=bl(r/XS/e)||0,this._uy=bl(r/XS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Xv[0]=a,Xv[1]=i,zJ(Xv,o),a=Xv[0],i=Xv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=gd(i)*r+e,this._yi=vd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&T4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=eBe(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=nBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=gd(A)*I+E,l=vd(A)*P+O),g=x4(I,P)*w4(Lu,Math.abs(R)),i=gd(L)*I+E,o=vd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,hd),Rc(c,k,z,j,A,pd),e.bezierCurveTo(hd[1],pd[1],hd[2],pd[2],hd[3],pd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ry(u,L,N,A,hd),ry(c,k,z,A,pd),e.quadraticCurveTo(hd[1],pd[1],hd[2],pd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=gd(Z)*Y+U,l=vd(Z)*Q+G),u=gd(te)*Y+U,c=vd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+w4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+w4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+x4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+x4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=qv);var f=Math.atan2(l,s);return f<0&&(f+=qv),f>=r&&f<=a||f+qv>=r&&f+qv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,md=Math.PI*2,zHe=1e-4;function BHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&HHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=md-1e-4){r=0,a=md;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=md,a+=md);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=md+g),(g>=r&&g<=a||g+md>=r&&g+md<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if(VHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(BJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=WHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(jHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=GHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!BHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function YHe(n,e,t){return HJ(n,0,!1,e,t)}function KHe(n,e,t,r){return HJ(n,e,!0,t,r)}var JS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_f),ZHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mx.style)},O4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),XHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?RBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=KS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),KHe(s,l/u,t,r)))return!0}if(this.hasFill())return YHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Ex(JS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Ex(qHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);UJ.prototype.type="tspan";const sy=UJ;var QHe=_e({x:0,y:0},_f),JHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mx.style)};function eUe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var WJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Ex(QHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=eUe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return JHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);WJ.prototype.type="image";const Xr=WJ;function tUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function GJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=af(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=af(i,s,!0))),n}}function YJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=af(r,s,!0),n.y=af(a,s,!0),n.width=Math.max(af(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(af(a+o,s,!1)-n.y,o===0?0:1)),n}}function af(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var nUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),rUe={},KJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=YJ(rUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?tUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);KJ.prototype.type="rect";const rt=KJ;var j$={fill:"#000"},z$=2,aUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Mx.style)},ZJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=j$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&I4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=Y$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(sy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=G$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=W$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=z$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),H$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Am(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return qJ(t)&&(r=[t.fontStyle,t.fontWeight,XJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),iUe={left:!0,right:1,center:1},oUe={top:1,bottom:1,middle:1},B$=["fontStyle","fontWeight","fontSize","fontFamily"];function XJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?T9+"px":n+"px"}function H$(n,e){for(var t=0;t=0,i=!1;if(n instanceof Ue){var o=QJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=Q$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=Q$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??uv)}return r}function hUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??lUe)}return t}function pUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:dUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function P4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return fUe(this,n,e,t);if(n==="blur")return pUe(this,n,t);if(n==="select")return hUe(this,n,t)}return t}function Bf(n){n.stateProxy=P4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=P4),t&&(t.stateProxy=P4)}function eV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,JJ)}function tV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,eee)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,JJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,eee)}function nee(n){du(n,G9)}function Y9(n){du(n,tee)}function ree(n){du(n,uUe)}function aee(n){du(n,cUe)}function iee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function oee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=U9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){tee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Cf(n,e,t){of(n,!0),du(n,Bf),FP(n,e,t)}function _Ue(n){of(n,!1)}function En(n,e,t,r){r?_Ue(n):Cf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var rV=["emphasis","blur","select"],SUe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=D4(p),s*=D4(p));var g=(a===i?-1:1)*D4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=sV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=sV(C,w);if(VP(C,w)<=-1&&(T=Qv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Qv*1e6)/1e6;T=Qv*2+E%2*Qv}c.addData(u,b,_,o,s,S,T,d,i)}var OUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,IUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(OUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function NUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function FUe(n,e){var t,r=Mm(e.r,0),a=Mm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=uV(u-l),p=h>A4&&h%A4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>A4-$o)n.moveTo(c+r*Fh(l),d+r*yd(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*yd(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*yd(l),z=a*Fh(u),F=a*yd(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=NUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=uV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Mm(_,S),I=E=Mm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*yd(u),R=a*Fh(l),L=a*yd(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){FUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);gee.prototype.type="sector";const fi=gee;var VUe=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),vee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new VUe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);vee.prototype.type="ring";const Nx=vee;function jUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=jUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s_d[1]){if(s=!1,i)return s;var c=Math.abs(_d[0]-bd[1]),d=Math.abs(bd[0]-_d[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){J9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){J9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fV(n){return!n.isGroup}function oWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){fV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return oWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(fV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Pee(n,e){return J(n,function(t){var r=t[0];r=nC(r,e.x),r=rC(r,e.x+e.width);var a=t[1];return a=nC(a,e.y),a=rC(a,e.y+e.height),[r,a]})}function sWe(n,e){var t=nC(n.x,e.x),r=rC(n.x+n.width,e.x+e.width),a=nC(n.y,e.y),i=rC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):$x(n.replace("path://",""),r,t,"center")}function Rm(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=M4(h,p,c,d)/f;return!(m<0||m>1)}function M4(n,e,t,r){return n*r-t*e}function lWe(n){return n<=1e-6&&n>=-1e-6}function dv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function hV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Zc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Xc(n,e){return Fe(Fe({},n,!0),e,!0)}const SWe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},CWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var iC="ZH",t8="EN",dy=t8,P2={},n8={},Fee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(iC)>-1?iC:dy}():dy;function $ee(n,e){n=n.toUpperCase(),n8[n]=new Xt(e),P2[n]=e}function wWe(n){if(ce(n)){var e=P2[n.toUpperCase()]||{};return n===iC||n===t8?Ee(e):Fe(Ee(e),Ee(P2[dy]),!1)}else return Fe(Ee(n),Ee(P2[dy]),!1)}function BP(n){return n8[n]}function xWe(){return n8[dy]}$ee(t8,SWe);$ee(iC,CWe);var r8=1e3,a8=r8*60,d1=a8*60,fo=d1*24,yV=fo*365,Lm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",bV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Lm.hour,minute:Xb+" "+Lm.minute,second:Xb+" "+Lm.second,millisecond:Lm.none},k4=["year","month","day","hour","minute","second","millisecond"],Vee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function TWe(n){return n===Gp(n)}function EWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zx(n,e,t,r){var a=tl(n),i=a[i8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[Bx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[fy(t)](),d=(c-1)%12+1,f=a[Hx(t)](),h=a[Ux(t)](),p=a[Wx(t)](),g=r instanceof Xt?r:BP(r||Fee)||xWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function OWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Lm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return zx(new Date(n.value),i,a,r)}function jee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[Bx(e)](),i=t[fy(e)](),o=t[Hx(e)](),s=t[Ux(e)](),l=t[Wx(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function _V(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||jee(n,t),e){case"year":return r[i8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[Bx(t)]();case"half-day":return r[fy(t)]()/24;case"hour":return r[fy(t)]();case"minute":return r[Hx(t)]();case"second":return r[Ux(t)]();case"millisecond":return r[Wx(t)]()}}function i8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function Bx(n){return n?"getUTCDate":"getDate"}function fy(n){return n?"getUTCHours":"getHours"}function Hx(n){return n?"getUTCMinutes":"getMinutes"}function Ux(n){return n?"getUTCSeconds":"getSeconds"}function Wx(n){return n?"getUTCMilliseconds":"getMilliseconds"}function IWe(n){return n?"setUTCFullYear":"setFullYear"}function zee(n){return n?"setUTCMonth":"setMonth"}function Bee(n){return n?"setUTCDate":"setDate"}function Hee(n){return n?"setUTCHours":"setHours"}function Uee(n){return n?"setUTCMinutes":"setMinutes"}function Wee(n){return n?"setUTCSeconds":"setSeconds"}function Gee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yee(n){if(!OJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var pv=A9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return zx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Yee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var SV=["a","b","c","d","e","f","g"],N4=function(n,e){return"{"+n+(e??"")+"}"};function Zee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Hf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function oC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var D2=M,Xee=["left","right","top","bottom","width","height"],sf=[["width","left","right"],["height","top","bottom"]];function o8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var xf=o8;Ae(o8,"vertical");Ae(o8,"horizontal");function AWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=pv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=pv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Gx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function MWe(n,e){return n[sf[e][0]]!=null||n[sf[e][1]]!=null&&n[sf[e][2]]!=null}function hy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(sf[0],0),i=o(sf[1],1);u(sf[0],n,a),u(sf[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(D2(c,function(_){p[_]=n[_]}),D2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);FJ(vv,Xt);Dx(vv);bWe(vv);_We(vv,LWe);function LWe(n){var e=[];return M(vv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=vv;var Qee="";typeof navigator<"u"&&(Qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const kWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",ete="unknown",Zs="column",mv="row",zr={Must:1,Might:2,Not:3},tte=at();function NWe(n){tte(n).datasetMap=ge()}function nte(n,e,t){var r={},a=l8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=tte(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ite(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:zWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function BWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,Jv,wV,xV="\0_ec_inner",HWe=1,ote=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=OV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,OV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?wV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;NWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=VWe(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=MJ(h,f,p);iHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!oy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[xV],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function eGe(n,e){return n.join(",")===e.join(",")}const tGe=XWe;var ko=M,py=we,IV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=IV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=KBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Yx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||ete,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};kV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+mv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function VV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function f1(n){return new yGe(n)}var yGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},_Ge=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=yte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),bte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),SGe=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function CGe(n,e){return n==="eq"||n==="ne"?new SGe(n==="eq",e):he(yte,n)?new _Ge(n,e):null}var wGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function xGe(n,e){var t=new wGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?MGe:RGe}function Vh(){return[1/0,-1/0]}function LGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function BV(n,e,t,r,a){var i=Cte[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(tm(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}z4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),wte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&UV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&UV(d),s.push(c),l.push(u._getVersionSign())}),r?o=DGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[dGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ote(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function FGe(n,e,t,r){var a=e.noHeader,i=VGe(Ote(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new bte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Ete(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=Tte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ite(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function $Ge(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=Tte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ite(n,f,b))+(o?"":BGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":jGe(f,!s,b))+(o?"":zGe(p,g,m,_)),t)}}function WV(n,e,t,r,a,i){if(n){var o=Ete(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function VGe(n){return{html:kGe[n],richText:NGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function jGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function zGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ite(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function BGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Pte(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Hf(r)}function Dte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var B4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=IJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=DWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Ate(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Pte(e,t),c,d,f,h;if(o>1||l&&!o){var p=HGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=j9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function HGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var A2="__universalTransitionEnabled",Zx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=f1({count:WGe,reset:GGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new wte(this);i.prepareSource();var o=this.getInitialData(t,a);YV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=hy(this),i=a?gv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),Vf(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=hy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);YV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=u8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[A2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);or(Zx,h8);or(Zx,u8);FJ(Zx,it);function GV(n){var e=n.name;j9(n)||(n.name=UGe(n)||e)}function UGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function WGe(n){return n.model.getRawData().count()}function GGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),YGe}function YGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function YV(n,e){M(US(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(KGe,e))})}function KGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Zx;var g8=function(){function n(){this.group=new Oe,this.uid=hv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();B9(g8);Dx(g8);const On=g8;function yv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mte=at(),ZGe=yv(),v8=function(){function n(){this.group=new Oe,this.uid=hv("viewChart"),this.renderTask=f1({plan:XGe,reset:qGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Zc(this.group,e)},n.markUpdateMethod=function(e,t){Mte(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function KV(n,e,t){n&&uy(n)&&(e==="emphasis"?au:iu)(n,t)}function ZV(n,e,t){var r=jf(n,e),a=e&&e.highlightKey!=null?wUe(e.highlightKey):null;r!=null?M(kt(r),function(i){KV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){KV(i,t,a)})}B9(v8);Dx(v8);function XGe(n){return ZGe(n.model)}function qGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Mte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),QGe[l]}var QGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=v8;var sC="\0__throttleOriginMethod",XV="\0__throttleRate",qV="\0__throttleType";function m8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function bv(n,e,t,r){var a=n[e];if(a){var i=a[sC]||a,o=a[qV],s=a[XV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=m8(i,t,r==="debounce"),a[sC]=i,a[qV]=r,a[XV]=t}return a}}function gy(n,e){var t=n[e];t&&t[sC]&&(t.clear&&t.clear(),n[e]=t[sC])}var QV=at(),JV={itemStyle:zf(Nee,!0),lineStyle:zf(kee,!0)},JGe={lineStyle:"stroke",itemStyle:"fill"};function Rte(n,e){var t=n.visualStyleMapper||JV[e];return t||(console.warn("Unknown style type '"+e+"'."),JV.itemStyle)}function Lte(n,e){var t=n.visualDrawType||JGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Rte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Lte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},nm=new Xt,tYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Rte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){nm.option=l[r];var u=a(nm),c=o.ensureUniqueItemVisual(s,"style");K(c,u),nm.option.decal&&(o.setItemVisual(s,"decal",nm.option.decal),nm.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},nYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),QV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=QV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Lte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function rYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new q9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var aYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||f1({plan:uYe,reset:cYe,count:fYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||f1({reset:iYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,f1({reset:oYe,onDirty:lYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:hYe(e)}),e.uid=hv("stageHandler"),t&&(e.visualType=t),e},n}();function iYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function oYe(n){return n.overallProgress&&sYe}function sYe(){this.agent.dirty(),this.getDownstream().dirty()}function lYe(){this.agent&&this.agent.dirty()}function uYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function cYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return kte(r)}):dYe}var dYe=kte(0);function kte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],rj=qP.concat(["symbolKeepAspect"]),mYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&uf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?RYe(n,e,t):MYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function b8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&kYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var NYe=new nl(!0);function cC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function aj(n){return typeof n=="string"&&n!=="none"}function dC(n){var e=n.fill;return e!=null&&e!=="none"}function ij(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function oj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=H9(e.image,e.__image,t);if(Ax(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*m2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function FYe(n,e,t,r){var a,i=cC(t),o=dC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||NYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=b8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&oj(n,t),o&&ij(n,t)):(o&&ij(n,t),i&&oj(n,t))),E&&n.setLineDash([])}function $Ye(n,e,t){var r=e.__image=H9(t.image,e.__image,e,e.onload);if(!(!r||!Ax(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function VYe(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=b8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(cC(t)&&n.strokeText(a,t.x,t.y),dC(t)&&n.fillText(a,t.x,t.y)):(dC(t)&&n.fillText(a,t.x,t.y),cC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var sj=["shadowBlur","shadowOffsetX","shadowOffsetY"],lj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?_f.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||_f.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new tGe(this._api),u=this._theme,c=this._model=new ste;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(wj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(p1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=E$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return Y4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return Y4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=s1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=s1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?y8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(dKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&lf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(h1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),bYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&LJ(this.getDom(),C8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete p1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=h1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!fC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;Z4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),rm.call(this,a),am.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),G4(d,!0),G4(d,!1),f.plan()},G4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&xUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}Sj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){nee(p),Gi(d)},h.prototype.leaveBlur=function(p){Y9(p),Gi(d)},h.prototype.enterSelect=function(p){ree(p),Gi(d)},h.prototype.leaveSelect=function(p){aee(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(lte))(d)},rne=function(d){function f(h,p){for(var g=0;g=0)){xj.push(t);var i=$te.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function cne(n,e){nD[n]=e}function yKe(n,e,t){var r=XYe("registerMap");r&&r(n,e,t)}var bKe=PGe;fh(_8,eYe);fh(Xx,tYe);fh(Xx,nYe);fh(_8,mYe);fh(Xx,yYe);fh(qte,YYe);lne(cte);une(JYe,uGe);cne("default",rYe);cl({type:Sf,event:Sf,update:Sf},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:l1,event:l1,update:l1},Yn);cl({type:O2,event:O2,update:O2},Yn);cl({type:u1,event:u1,update:u1},Yn);sne("light",pYe);sne("dark",gYe);var Tj=[],_Ke={registerPreprocessor:lne,registerProcessor:une,registerPostInit:pKe,registerPostUpdate:gKe,registerUpdateLifecycle:w8,registerAction:cl,registerCoordinateSystem:vKe,registerLayout:mKe,registerVisual:fh,registerTransform:bKe,registerLoading:cne,registerMap:yKe,registerImpl:ZYe,PRIORITY:lKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){UBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Tj,n)>=0||(Tj.push(n),me(n)&&(n={install:n}),n.install(_Ke))}function im(n){return n==null?0:n.length||1}function Ej(n){return n}var SKe=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Ej,this._newKeyGetter=a||Ej,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var om=we,Du=J,IKe=typeof Int32Array>"u"?Array:Int32Array,PKe="e\0\0",Oj=-1,DKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AKe=["_approximateExtent"],Ij,i_,sm,lm,Q4,o_,J4,MKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;fne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():om(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,om(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){om(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),Q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(D9(arguments)))})},n.internalField=function(){Ij=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new IKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=MKe;function A0(n,e){c8(n)||(n=d8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=LKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gne(o),l=r===n.dimensionsDefine,u=l?pne(n):hne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new Ste(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function LKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function kKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var NKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function FKe(n){var e=n.get("coordinateSystem"),t=new NKe(e),r=$Ke[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var $Ke={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function VKe(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;jKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function jKe(n){return!fne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function vne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function zKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=pC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function BKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=d8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=FKe(e),s=zKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(nte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=BKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=VKe(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&HKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function HKe(n){if(n.sourceFormat===Eo){var e=UKe(n.data||[]);return!X(lv(e))}}function UKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Dx(mne);const hu=mne;var WKe=0,GKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,YKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function YKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=GKe;function aD(n){return n.type==="interval"||n.type==="log"}function KKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=EJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=yne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return ZKe(l,n),a}function eE(n){var e=Math.pow(10,V9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function yne(n){return js(n)+2}function Pj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function ZKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Pj(n,0,e),Pj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function qx(n,e){return n>=e[0]&&n<=e[1]}function Qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Jx(n,e){return n*(e[1]-e[0])+e[0]}var bne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),qx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Jx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(bne);const T8=bne;var xd=Ln,_ne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return qx(t,this._extent)},e.prototype.normalize=function(t){return Qx(t,this._extent)},e.prototype.scale=function(t){return Jx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:xd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function wne(n){var e=QKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(Ine(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:O8(i),stackId:E8(r)})}),xne(t)}function xne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function JKe(n,e,t){if(n&&e){var r=n[O8(e)];return r!=null&&t!=null?r[E8(t)]:r}}function Tne(n,e){var t=Cne(n,e),r=wne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=E8(a),u=r[O8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Ene(n){return{seriesType:n,plan:yv(),reset:function(e){if(One(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=eZe(a,i),p=Ine(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(tZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return qx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Jx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",r8],["minute",a8],["hour",d1],["quarter-day",d1*6],["half-day",d1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",yV/2],["year",yV]];function nZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return _V(a,p,r)===_V(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function rZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function aZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function iZe(n){return n/=d1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Dj(n,e){return n/=e?a8:r8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function oZe(n){return EJ(n,!0)}function sZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[zee(t)](0);case"day":r[Bee(t)](1);case"hour":r[Hee(t)](0);case"minute":r[Uee(t)](0);case"second":r[Wee(t)](0),r[Gee(t)](0)}return r.getTime()}function lZe(n,e,t,r){var a=1e4,i=Vee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(dZe(r[0]/i)*i),Ln(cZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){g1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),Qx(t,this._extent)},e.prototype.scale=function(t){return t=Jx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Ane=I8.prototype;Ane.getMinorTicks=g1.getMinorTicks;Ane.getLabel=g1.getLabel;function u_(n,e){return uZe(n,js(e))}hu.registerClass(I8);const fZe=I8;var hZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[gZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=pZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),pZe={min:"_determinedMin",max:"_determinedMax"},gZe={min:"_dataMin",max:"_dataMax"};function Mne(n,e,t){var r=n.rawExtentInfo;return r||(r=new hZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ny(e)?NaN:n.parse(e)}function Rne(n,e){var t=n.type,r=Mne(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Cne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=wne(s),c=vZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function vZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=JKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Rne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof fZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function eT(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new T8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Dne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function mZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(P8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function P8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function yZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof T8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),SZe=1e-8;function Mj(n,e){return Math.abs(n-e)a&&(r=o,a=l)}if(r)return wZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Rj(s.exterior,a,i,t):M(s.points,function(l){Rj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function EZe(n,e){return n=TZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Lj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Lj(l[0],l.slice(1)))});break;case"LineString":i.push(new kj([a.coordinates]));break;case"MultiLineString":i.push(new kj(a.coordinates))}var s=new Nne(r[e||"name"],i,r.cp);return s.properties=r,s})}var yy=at();function OZe(n){return n.type==="category"?PZe(n):AZe(n)}function IZe(n,e){return n.type==="category"?DZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function PZe(n){var e=n.getLabelModel(),t=$ne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function $ne(n,e){var t=Vne(n,"labels"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;return me(r)?i=Hne(n,r):(o=r==="auto"?MZe(n):r,i=Bne(n,o)),zne(t,r,{labels:i,labelCategoryInterval:o})}function DZe(n,e){var t=Vne(n,"ticks"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Hne(n,r,!0);else if(r==="auto"){var s=$ne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=Bne(n,o,!0);return zne(t,r,{ticks:i,tickCategoryInterval:o})}function AZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Vne(n,e){return yy(n)[e]||(yy(n)[e]=[])}function jne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=yy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function LZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Lne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Hne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Nj=[0,1],kZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return xJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count())),xt(e,Nj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count()));var i=xt(e,r,Nj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=IZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return NZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return OZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return RZe(this)},n}();function Fj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function NZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=um);var h=Math.atan2(s,o);if(h<0&&(h+=um),h>=r&&h<=a||h+um>=r&&h+um<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function vC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Une(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function jZe(n,e,t){var r=Une(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function zZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function BZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function Vj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function HZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=b2([],r[1],r[0],o/a),l=b2([],r[1],r[2],o/i),u=b2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function UZe(n,e,t,r){return Yne(n,"x","width",e,t,r)}function Kne(n,e,t,r){return Yne(n,"y","height",e,t,r)}function Zne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!fv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Lee(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=YZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const ZZe=KZe;var aE=at();function XZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=aE(t).labelManager;a||(a=aE(t).labelManager=new ZZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=aE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var iE=Math.sin,oE=Math.cos,Xne=Math.PI,Ed=Math.PI*2,qZe=180/Xne,QZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Ed)||(c?u>=Ed:-u>=Ed),h=u>0?u%Ed:u%Ed+Ed,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Xne==!!c;var g=e+r*oE(o),m=t+a*iE(o);this._start&&this._add("M",g,m);var y=Math.round(i*qZe);if(f){var b=1/this._p,_=(c?1:-1)*(Ed-b);this._add("A",r,a,y,1,+c,e+r*oE(o+_),t+a*iE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*oE(s),C=t+a*iE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function sXe(n){return""}function R8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return oXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+sXe(o)}return r(n)}function lXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:Qne,"xmlns:xlink":Jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Bj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Vd="transform-origin";function uXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new qne;return a.reset(hJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function cXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[Vd]=t+"px "+r+"px")}var dXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tre(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function fXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,tT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=tre(a,t);return i.replace(o,s)}}function Hj(n){return ce(n)?Bj[n]?"cubic-bezier("+Bj[n]+")":k9(n)?n:"":""}function tT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Q9){var s=fXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=tre(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var by=Math.round;function nre(n){return n&&ce(n.src)}function rre(n){return n&&me(n.toDataURL)}function L8(n,e,t,r){rXe(function(a,i){var o=a==="fill"||a==="stroke";o&&fJ(i)?ire(e,n,a,r):o&&N9(i)?ore(t,n,a,r):n[a]=i},e,t,!1),bXe(t,n,r)}function Uj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function hXe(n){return nc(n[4])&&nc(n[5])}function k8(n,e,t){if(e&&!(hXe(e)&&Uj(e))){var r=t?10:1e4;n.transform=Uj(e)?"translate("+by(e[4]*r)/r+" "+by(e[5]*r)/r+")":dBe(e)}}function Wj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=H9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=pJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=R8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ix(O)}}function _Xe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[are(n,t)])}e["clip-path"]=Ix(i)}function Kj(n){return document.createTextNode(n)}function Yd(n,e,t){n.insertBefore(e,t)}function Zj(n,e){n.removeChild(e)}function Xj(n,e){n.appendChild(e)}function sre(n){return n.parentNode}function lre(n){return n.nextSibling}function sE(n,e){n.textContent=e}var qj=58,SXe=120,CXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function wXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Nm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function _y(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=ere(r);if(N8(CXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ure(n,p,t,a,l)):yC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(N8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&xXe(t,r,a):Os(a)?(Os(n.text)&&sE(t,""),ure(t,null,a,0,a.length-1)):Os(r)?yC(t,r,0,r.length-1):Os(n.text)&&sE(t,""):n.text!==e.text&&(Os(r)&&yC(t,r,0,r.length-1),sE(t,e.text)))}function TXe(n,e){if(Nm(n,e))rp(n,e);else{var t=n.elm,r=sre(t);_y(e),r!==null&&(Yd(r,e.elm,lre(t)),yC(r,[n],0,0))}return e}var EXe=0,OXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Qj(),this.configLayer=Qj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+EXe++,this._oldVNode=zj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ere("svg");N8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",TXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Yj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=IXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=lXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return zj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},R8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||I9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const VXe=$Xe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var jXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ir(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return _v(t.getItemVisual(r,"symbolSize"))},e}(Oe);function zXe(n,e){this.parent.drift(n,e)}const L0=jXe;function uE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function tz(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function nz(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var BXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=tz(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=nz(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(uE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!uE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nz(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=tz(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function fre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function UXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function WXe(n,e,t,r,a,i,o,s){for(var l=UXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=dre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(Tf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||Tf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var hre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),GXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Tf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?GS(s,h,g,y,t,c):GS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),YXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(hre),pre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new YXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Tf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function XXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=ZXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function qXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&QXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function QXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function JXe(n,e){return isNaN(n)||isNaN(e)}function eqe(n){for(var e=n.length/2;e>0&&JXe(n[e*2-2],n[e*2-1]);e--);return e-1}function sz(n,e){return[n[e*2],n[e*2+1]]}function tqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=oz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=oz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;eC(this._polyline,t),r&&eC(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new GXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new pre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(mre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=eqe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?cre(o,h):Cg(o,d)},enableTextSetter:!0},nqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=tqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=sz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=kJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=sz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=fv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=WXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),iz(h,g)>3e3||c&&iz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=iqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,oqe))}}}}}function sqe(n){n.registerChartView(aqe),n.registerSeriesModel(VXe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("line"))}var bre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(bre);const bC=bre;var lqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Xc(bC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(bC);const uqe=lqe;var cqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),dqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new cqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){cy(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),lz={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=dE(e.x,n.x),s=fE(e.x+e.width,a),l=dE(e.y,n.y),u=fE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=fE(e.r,n.r),i=dE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},uz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?_C:fi,c=new u({shape:r,z2:1});c.name="item";var d=_re(a);if(c.calculateTextPosition=fqe(d,{isRoundCap:u===_C}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function vqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function cz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function dz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function bqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _re(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function hz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=df(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,hqe(n,m==="outside"?h:m,_re(o),r.get(["label","rotate"]))}Ree(g,p,i.getRawValue(t),function(b){return cre(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),bqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function _qe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var Sqe=function(){function n(){}return n}(),pz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Sqe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Cqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Sre(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function wqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:Sre(e,t,n),silent:!0,z2:0})}const xqe=gqe;function Tqe(n){n.registerChartView(xqe),n.registerSeriesModel(uqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,mz=Math.PI/180;function Cre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wre(n,e){var t=Cre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Eqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Cre(r,t),s=wre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*mz,h=r.get("minAngle")*mz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function hE(n){return n.position==="center"}function Pqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Oqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Iqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Mqe=Aqe;function Sv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Rqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Rqe;var Lqe=at(),kqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Lqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=YBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const Nqe=kqe;function Fqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function $qe(n){n.registerChartView(Mqe),n.registerSeriesModel(Nqe),zte("pie",n.registerAction),n.registerLayout(Ae(Eqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Fqe("pie"))}var Vqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const jqe=Vqe;var Tre=4,zqe=function(){function n(){}return n}(),Bqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new zqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Uqe=Hqe;var Wqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Uqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Gqe=Wqe;var Yqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Kqe=Yqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);or(cD,R0);var Ere={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Zqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ere),F8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ere),Xqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},F8),qqe=_e({logBase:10},F8);const Ore={category:Zqe,value:F8,time:Xqe,log:qqe};var Qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(Qqe,function(a,i){var o=Fe(Fe({},Ore[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=hy(this),h=f?gv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=bz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",bz)}function bz(n){return n.type||(n.data?"category":"value")}var Jqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const eQe=Jqe;var dD=["x","y"];function _z(n){return n.type==="interval"||n.type==="time"}var tQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!_z(t)||!_z(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=sv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(eQe),nQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const rQe=nQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function Sz(n){return n.get("coordinateSystem")==="cartesian2d"}function Cz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var pE=Math.log;function Ire(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Rne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=pE(n.base);u=[pE(u[0])/f,pE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=eE(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=eE(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var aQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ire(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){wz(r,"y",o,i)}),M(r.y,function(o){wz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=yZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),iQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):QS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Tz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ir(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=uQe(t,r,e,n),i=dQe(t,r,e,n);if(lQe(e,i,a),cQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Oz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;Oz(i)?f=Ef.innerTextLayout(n.rotation,h??n.rotation,o):(f=sQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Ef.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(dv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Ef.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function sQe(n,e,t,r){var a=TJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return QS(a-rc/2)?(o=l?"bottom":"top",i="center"):QS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function lQe(n,e,t){if(!Lne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Ez(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Ez(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Ez(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ox([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function Oz(n){return n==="middle"||n==="center"}function Pre(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function mQe(n){var e=$8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return or(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},cm.axisLine),axisLabel:y_(cm.axisLabel,!1),axisTick:y_(cm.axisTick,!1),splitLine:y_(cm.splitLine,!0),splitArea:y_(cm.splitArea,!0),indicator:[]},e}(it);const RQe=MQe;var LQe=["axisLine","axisTickLabel","axisName"],kQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(LQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new Nx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;mE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);mE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Rz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;mE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function mE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),kre(n,e,t,r,a))}function kre(n,e,t,r,a){a.isAvailableBehavior=fe(R2,null,t,r),n.trigger(e,a)}function R2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=WQe;function j8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function z8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var GQe={axisPointer:1,tooltip:1,brush:1};function rT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!GQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function Nre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var yE,SC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Lz=Ye(SC),CC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kz=Ye(CC),YQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=Nre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;XQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=aT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=$re(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=yE[s];if(c&&he(yE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Nz[s];if(h&&he(Nz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new sy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),KQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){yE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new X9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=dee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Nz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Fz(n,i),$z(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new xee(e,t,r);return Fz(n,a),$z(n,a),a}};function Fz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function $z(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Fre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function Vz(n){for(var e=aT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=aT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":L9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*bE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*bE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*bE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var zz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fre(n,e,t){var r=n.getAttribute("style");if(r){zz.lastIndex=0;for(var a;(a=zz.exec(r))!=null;){var i=a[1],o=he(SC,i)?SC[i]:null;o&&(e[o]=a[2]);var s=he(CC,i)?CC[i]:null;s&&(t[s]=a[2])}}}function eJe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&(Vre(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Gz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Yz(n,e,t,r,a){n.data||dv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Kz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&CUe(e,a,t),o}function Zz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const CJe=SJe;function wJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function IJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var PJe=function(){function n(){this.dimensions=zre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Jz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=eB,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Jz(s,s,K({nameMap:P9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=eB,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,IJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function $Je(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){zJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=BJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function VJe(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function nB(n){return arguments.length?n:WJe}function Fm(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function jJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function zJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function BJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=_E(s),i=SE(i),s&&i;){a=_E(a),o=SE(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(UJe(HJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!_E(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!SE(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function _E(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function SE(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function HJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function UJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function WJe(n,e){return n.parentNode===e.parentNode?1:2}var GJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),YJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?US(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),ZJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||eC(t.__edge,L)}})}function ZJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Fx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Kre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function G8(n,e){var t=Kre(n);return Be(t,e)>=0}function iT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var oet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=W8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=iT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const set=oet;function uet(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function cet(n,e){n.eachSeriesByType("tree",function(t){det(t,e)})}function det(n,e){var t=jJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=nB(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=nB());var s=n.getData().tree.root,l=s.children[0];if(l){FJe(s),uet(l,$Je,o),s.hierNode.modifier=-l.hierNode.prelim,fm(l,VJe);var u=l,c=l,d=l;fm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=Fm(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),fm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function fet(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function het(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function pet(n){n.registerChartView(XJe),n.registerSeriesModel(set),n.registerLayout(cet),n.registerVisual(fet),het(n)}var sB=["treemapZoomToNode","treemapRender","treemapMove"];function get(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var vet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Xre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=met(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=W8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=iT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Xre(n){var e=0;M(n.children,function(r){Xre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function met(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const yet=vet;var bet=8,lB=8,CE=5,_et=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Gx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=dr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+bet*2,t.emptyItemWidth);t.totalWidth+=s+lB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=AWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:Cet(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:uv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),wet(S,e,y),l+=b+lB}},n.prototype.remove=function(){this.group.removeAll()},n}();function Cet(n,e,t,r,a,i){var o=[[a?n:n-CE,e],[n+t,e],[n+t,e+r],[a?n:n-CE,e+r]];return!i&&o.splice(2,0,[n+t+CE,e+r/2]),!a&&o.push([n,e+r/2]),o}function wet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&iT(t,e)}}const xet=_et;var Tet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;acB||Math.abs(t.dy)>cB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),L9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&oC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new xet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(G8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function hm(){return{nodeGroup:[],background:[],content:[]}}function Aet(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),wC(P).nodeWidth=h,wC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",uB,u,Iet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)uy(P)&&of(P,!1),A&&(of(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",uB,u,Pet);F&&U(P,F),A.disableMorphing=!0,A&&uy(A)&&of(A,!1),of(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=hB(w);We.fill=pe;var Ce=zd(T);Ce.fill=T.get("borderColor");var Je=zd(E);Je.fill=E.get("borderColor");var Ve=zd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,Bf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=hB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=zd(T),Ve=zd(E),Mt=zd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,Bf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?fB:dB),pe=dr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?fB:dB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=A9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Met(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Met(n,e){return n*Oet+e}const Ret=Det;var wy=M,Let=we,xC=-1,Y8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Fet[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(wE(a),ket(a)):t==="category"?a.categories?Net(a):wE(a,!0):(Na(t!=="linear"||a.dataExtent),wE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&wy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Let(e)){var t=[];wy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function wE(n,e){var t=n.visual,r=[];we(t)?wy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),qre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function pB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function pm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function $m(n){var e=this.option.visual;return e[this.option.loop&&n!==xC?n%e.length:n]}function Bd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:$m,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:Bd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Y8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function qre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Fet={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Y8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??xC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Het(a,l,g,m,p,r);Jre(g,y,t,r)}})}}}function jet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function gB(n){var e=xE(n,"color");if(e){var t=xE(n,"colorAlpha"),r=xE(n,"colorSaturation");return r&&(e=a1(e,null,null,r)),t&&(e=YS(e,t)),e}}function zet(n,e){return e!=null?a1(e,null,null,n):null}function xE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function Bet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=TE(e,"color")||a.color!=null&&a.color!=="none"&&(TE(e,"colorAlpha")||TE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return Qre(f).drColorMappingBy=c,f}}}function TE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Het(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&Qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var xy=Math.max,TC=Math.min,vB=Lr,K8=M,eae=["itemStyle","borderWidth"],Uet=["itemStyle","gapWidth"],Wet=["upperLabel","show"],Get=["upperLabel","height"];const Yet={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(vB(s.width,l[0]),a),c=ie(vB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Cy(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Kre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Jet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),tae(g,_,!1,0),S=g.getLayout(),K8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(ett(s,p,h),!0),n.setLayoutInfo(s),nae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function tae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(eae),u=s.get(Uet)/2,c=rae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=xy(a-2*f,0),i=xy(i-f-h,0);var p=a*i,g=Ket(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=TC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?xy(u*r/l,l/(u*a)):1/0}function mB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dI$&&(u=I$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Q8=btt;var _tt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Q8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=wB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=wB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!Stt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function wB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function xB(n){return isNaN(n[0])||isNaN(n[1])}function DE(n){return n&&!xB(n[0])&&!xB(n[1])}const J8=_tt;var AE=[],ME=[],RE=[],Wh=Mr,LE=yf,TB=Math.abs;function EB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){AE[0]=Wh(r[0],a[0],i[0],c),AE[1]=Wh(r[1],a[1],i[1],c);var d=TB(LE(AE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function kE(n,e){var t=[],r=ry,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=jm(s.node1),p=EB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=jm(s.node2),p=EB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),rf(o,i[1],i[0]),ov(o,o),c&&c!=="none"){var h=jm(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=jm(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function OB(n){return n.type==="view"}var Ctt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new J8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(OB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}kE(t.getGraph(),Vm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),q8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),X8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){sae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!rT(u,a,t)}),!OB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){j8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){z8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),kE(t.getGraph(),Vm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Vm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){kE(t.getGraph(),Vm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const wtt=Ctt;function Gh(n){return"_EC_"+n}var xtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Hd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Hd||(e=a[Gh(e)]),t instanceof Hd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new uae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Hd&&(e=e.id),t instanceof Hd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Hd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}or(Hd,cae("hostGraph","data"));or(uae,cae("hostGraph","edgeData"));const Ttt=xtt;function dae(n,e,t,r,a){for(var i=new Ttt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Gre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ett=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Vf(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){stt(this);var s=dae(i,a,this,!0,l);return M(s.edges,function(u){ltt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Ate({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ott=Ett;var Itt={type:"graphRoam",event:"graphRoam",update:"none"};function Ptt(n){n.registerChartView(wtt),n.registerSeriesModel(Ott),n.registerProcessor(ntt),n.registerVisual(rtt),n.registerVisual(att),n.registerLayout(utt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,dtt),n.registerLayout(htt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:gtt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Itt,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Dtt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Att=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Dtt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Mtt=Att;function Rtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Ltt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Rtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?_C:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];zJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ir(N,F-L/2,j-k,L,k,null,U):G=new Mtt({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?_C:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ir(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ree(I,{normal:P},_,function(U){return w_(U,F)}),g&&Lee(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const ktt=Ltt;var Ntt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return Sv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ftt=Ntt;function $tt(n){n.registerChartView(ktt),n.registerSeriesModel(Ftt)}var Vtt=["itemStyle","opacity"],jtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Vtt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),A8(a,M8(l),{stroke:f})},e}(hi),ztt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new jtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);cy(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const Btt=ztt;var Htt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Utt=Htt;function Wtt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Gtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();odnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!FE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function FE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const pnt=fnt;var gnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const vnt=gnt;var mnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const ynt=mnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=$E(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=$E(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function $E(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var VE=M,hae=Math.min,pae=Math.max,DB=Math.floor,bnt=Math.ceil,AB=Ln,_nt=Math.PI,Snt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;VE(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new ynt(o,eT(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();VE(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||DB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[DB(AB(h[0]/c,1))+1,bnt(AB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),VE(r,function(o,s){var l=(a.axisExpandable?wnt:Cnt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:_nt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[pae(0,p-h/2)],a[1]=hae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return hae(pae(n,e[0]),e[1])}function Cnt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function wnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iDnt}function Sae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Cae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:rM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(kB,n,e,a,["n","s","w","e"]),ondragend:Ae(Wf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(kB,n,e,a,i),ondragend:Ae(Wf,e,{isEnd:!0})}))}),a}function wae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Ant),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(rM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):$nt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Rnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(jnt(aM(n,e,[[r,a],[r+i,a+o]])))}function rM(n){return _e({strokeNoScale:!0},n.brushStyle)}function xae(n,e,t,r){var a=[Ey(n,t),Ey(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Fnt(n){return wf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=Vx(t[e],Fnt(n));return r[a]}function $nt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function kB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=Tae(e,a,i);M(r,function(u){var c=Mnt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(xae(s[0][0],s[1][0],s[0][1],s[1][1])),eM(e,t),Wf(e,{isEnd:!1})}function Vnt(n,e,t,r){var a=e.__brushOption.range,i=Tae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),eM(n,e),Wf(n,{isEnd:!1})}function Tae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function aM(n,e,t){var r=_ae(n,e);return r&&r!==Uf?r.clipPath(t,n._transform):Ee(t)}function jnt(n){var e=Ey(n[0][0],n[1][0]),t=Ey(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function znt(n,e,t){if(!(!n._brushType||Hnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=nM(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var sT={lineX:$B(0),lineY:$B(1),rect:{createCover:function(n,e){function t(r){return r}return Cae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Sae(n);return xae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){wae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:rM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae(Vnt,n,e),ondragend:Ae(Wf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:aM(n,e,t)})},updateCommon:xD,contain:OD}};function $B(n){return{createCover:function(e,t){return Cae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Sae(e),r=Ey(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=_ae(e,t);if(o!==Uf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),wae(e,t,l,a)},updateCommon:xD,contain:OD}}const iM=knt;function Oae(n){return n=oM(n),function(e){return Pee(e,n)}}function Iae(n,e){return n=oM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Pae(n,e,t){var r=oM(n);return function(a,i){return r.contain(i[0],i[1])&&!rT(a,e,t)}}function oM(n){return $e.create(n)}var Unt=["axisLine","axisTickLabel","axisName"],Wnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Gnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Knt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Unt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Oae(d),isTargetByCursor:Pae(d,s,i),getLinearBrushOtherExtent:Iae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Ynt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Gnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Ynt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Knt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Znt=Wnt;var Xnt={type:"axisAreaSelect",event:"axisAreaSelected"};function qnt(n){n.registerAction(Xnt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Dae(n){n.registerComponentView(pnt),n.registerComponentModel(vnt),n.registerCoordinateSystem("parallel",Ont),n.registerPreprocessor(lnt),n.registerComponentModel(MB),n.registerComponentView(Znt),wg(n,"parallel",MB,Qnt),qnt(n)}function Jnt(n){He(Dae),n.registerChartView(ent),n.registerSeriesModel(ant),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,snt)}var ert=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),trt=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ert},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),nrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new trt,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),VB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return VB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(rrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function VB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function rrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const art=nrt;var irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=dae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const ort=irt;function srt(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=lrt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;crt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");urt(u,c,r,a,o,s,f,h,p)})}function lrt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function urt(n,e,t,r,a,i,o,s,l){drt(n,e,t,a,i,s,l),grt(n,e,i,a,r,o,s),xrt(n,s)}function crt(n){M(n,function(e){var t=xc(e.outEdges,EC),r=xc(e.inEdges,EC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function drt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&frt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;prt(n,E,i)}function Aae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function frt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,yrt(s,l,o),jE(s,a,t,r,o),wrt(s,l,o),jE(s,a,t,r,o)}function vrt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function mrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function yrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,brt,t)/xc(a.outEdges,EC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,_rt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function brt(n,e){return $c(n.node2,e)*n.getValue()}function _rt(n,e){return $c(n.node2,e)}function Srt(n,e){return $c(n.node1,e)*n.getValue()}function Crt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function EC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Ert(n){n.registerChartView(art),n.registerSeriesModel(ort),n.registerLayout(srt),n.registerVisual(Trt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Mae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:pC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:pC(g),dimsDef:b.slice()}];return Sv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(nte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Rae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);or(Rae,Mae,!0);const Ort=Rae;var Irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=jB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Lae(f,d,i,u)):d=jB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Prt=function(){function n(){}return n}(),Drt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Prt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var $rt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Frt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Vrt(n){n.registerSeriesModel(Ort),n.registerChartView(Mrt),n.registerLayout(Rrt),n.registerTransform($rt)}var jrt=["color","borderColor"],zrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&zB(u,d))return;var f=zE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),BE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&zB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=zE(h),BE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),BB(t,this.group);var r=t.get("clip",!0)?nT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=zE(s);BE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){BB(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),Brt=function(){function n(){}return n}(),Hrt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Brt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function zE(n,e,t){var r=n.ends;return new Hrt({shape:{points:t?Urt(r,n):r},z2:100})}function zB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(jrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Grt=zrt;var kae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);or(kae,Mae,!0);const Yrt=kae;function Krt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Zrt=["itemStyle","borderColor"],Xrt=["itemStyle","borderColor0"],qrt=["itemStyle","borderColorDoji"],Qrt=["itemStyle","color"],Jrt=["itemStyle","color0"],eat={seriesType:"candlestick",plan:yv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?Qrt:Jrt)}function r(i,o){return o.get(i===0?qrt:i>0?Zrt:Xrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const tat=eat;var nat={seriesType:"candlestick",plan:yv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=rat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:HB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=I2(Z[a]+r/2,1,!1),ae[a]=I2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=I2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=HB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function HB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function rat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const aat=nat;function iat(n){n.registerChartView(Grt),n.registerSeriesModel(Yrt),n.registerPreprocessor(Krt),n.registerVisual(tat),n.registerLayout(aat)}function UB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var oat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Nae);const vat=gat;var mat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),yat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(BJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const _at=bat;var Sat={seriesType:"lines",plan:yv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&nT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=$ae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new _at:new J8(o?i?vat:Fae:i?Nae:Q8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const wat=Cat;var xat=typeof Uint32Array>"u"?Array:Uint32Array,Tat=typeof Float64Array>"u"?Array:Float64Array;function WB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),P9([a,t[0],t[1]])}))}var Eat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],WB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(WB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=US(this._flatCoords,r.flatCoords),this._flatCoordsOffset=US(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Oat=Eat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Iat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Pat=Iat;function Dat(n){n.registerChartView(wat),n.registerSeriesModel(Oat),n.registerLayout($ae),n.registerVisual(Pat)}var Aat=256,Mat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Rat=Mat;function Lat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function GB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Nat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):GB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(GB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Rat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?kat(S,a.option.range):Lat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Fat=Nat;var $at=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Vat=$at;function jat(n){n.registerChartView(Fat),n.registerSeriesModel(Vat)}var zat=["itemStyle","borderWidth"],YB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],WE=new rl,Bat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:YB[+c],categoryDim:YB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=ZB(o,h),g=KB(o,h,p,f),m=XB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),QB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=ZB(o,h),y=KB(o,h,m,f),b=Uae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Zat(g,f,y):g=XB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),QB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&qB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){qB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function KB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Hat(t,i,a,r,f),Uat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Wat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Gat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Hat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[GE(s,o[0])-l,GE(s,o[1])-l];d[1]0?1:-1}function GE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Uat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Wat(n,e,t,r,a){var i=n.get(zat)||0;i&&(WE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),WE.updateTransform(),i/=WE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Gat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=OJ(r),E=T?r:JB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?JB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function Vae(n){var e=n.symbolPatternSize,t=ir(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(sM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=Vae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Bae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Hae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function ZB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Yat,t.isAnimationEnabled=Kat,t}function Yat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Kat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function XB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?jae(a,e,t):zae(a,e,t),Bae(a,t,r),Hae(a,e,t,r),a.__pictorialShapeStr=Uae(n,t),a.__pictorialSymbolMeta=t,a}function Zat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?jae(n,e,t,!0):zae(n,e,t,!0),Bae(n,t,!0),Hae(n,e,t,!0)}function qB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];sM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Uae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function QB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");sM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function JB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Xat=Bat;var qat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Xc(bC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(bC);const Qat=qat;function Jat(n){n.registerChartView(Xat),n.registerSeriesModel(Qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("pictorialBar"))}var eit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function sit(n){n.registerChartView(nit),n.registerSeriesModel(ait),n.registerLayout(iit),n.registerProcessor(F0("themeRiver"))}var lit=2,uit=4,cit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=lit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:uit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=df(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=df(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const tH=cit;var ID="sunburstRootToNode",nH="sunburstHighlight",dit="sunburstUnhighlight";function fit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=Cy(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=G8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:nH,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Cy(e,[nH],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:dit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var hit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new tH(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new tH(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";oC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const pit=hit;var git=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Wae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=W8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=iT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Wae(n){var e=0;M(n.children,function(r){Wae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const vit=git;var rH=Math.PI/180;function mit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*rH,p=r.get("minAngle")*rH,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Gae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function _it(n){n.registerChartView(pit),n.registerSeriesModel(vit),n.registerLayout(Ae(mit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(bit),fit(n)}var aH={color:"fill",borderColor:"stroke"},Sit={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Cit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const wit=Cit;function xit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Tit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(xit,n)}}}function Eit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Oit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Eit,n)}}}function Iit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Pit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Iit,n)}}}function Dit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Ait(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Dit,n)}}}function Mit(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Yae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Kae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return iH(o,n),M(o.rich,function(l){iH(l,l)}),{textConfig:a,textContent:i}}function iH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function oH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";sH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){sH(s,s)}),r}function sH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Zae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lH=Ye(Zae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var OC=["","style","shape","extra"],Tg=at();function lM(n,e,t,r,a){var i=n+"Animation",o=cv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Fit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function L2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if(Vit(n,e,d),cH("shape",e,d),cH("extra",e,d),!i&&s&&($it(n,e,c),uH("shape",n,e,c),uH("extra",n,e,c),jit(n,e,u,c)),d.style=u,Rit(n,d,o),kit(n,e),s)if(i){var f={};M(OC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=lM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Lit(n,e,a||0,t,c);Xae(n,e),u?n.dirty():n.markRedraw()}function Xae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function kit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},Nit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Fit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(Nit)}}function uH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Of(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=aC(G,U,!1);return O(L,j),j=oH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=aC(z,null,!0);return O(L,N),N=oH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(aH,L)){var N=e.getItemVisual(k,"style");return N?N[aH[L]]:null}if(he(Sit,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return qKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Mee(L,t)}}function qit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function XE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=hM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function hM(n,e,t,r,a,i){var o=-1,s=e;e&&eie(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=dM(r),s&&Git(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Jit(u,t,r,a,l,Zi),Qit(u,t,r,a,l),fM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function eie(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&aot(i)&&tie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function Qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&eie(o,i,r)&&(o=null),o||(o=dM(i),n.setClipPath(o)),fM(null,o,e,i,null,r,a)}}function Jit(n,e,t,r,a,i){if(!n.isGroup){fH(t,null,i),fH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=dM(o),n.setTextContent(c)),fM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);tot(e,p,a)}}}function tot(n,e,t){e&&lT(e,Ul(n).option,t)}function not(n){new ou(n.oldChildren,n.newChildren,hH,hH,n).add(pH).update(pH).remove(rot).execute()}function hH(n,e){var t=n&&n.name;return t??Uit+e}function pH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;hM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function rot(n){var e=this.context,t=e.oldChildren[n];t&&lT(t,Ul(t).option,e.seriesModel)}function tie(n){return n&&(n.pathData||n.d)}function aot(n){return n&&(he(n,"pathData")||he(n,"d"))}function iot(n){n.registerChartView(Kit),n.registerSeriesModel(wit)}var Kd=at(),gH=Ee,qE=fe,oot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(vH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}yH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=$8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Kd(e).pointerEl=new I0[i.type](gH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Kd(e).labelEl=new st(gH(t.label));e.add(i),mH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Kd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Kd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),mH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:qE(this._onHandleDragMove,this,0,0),drift:qE(this._onHandleDragMove,this),ondragend:qE(this._onHandleDragEnd,this)}),r.add(a)),yH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,bv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){vH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(QE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(QE(a)),Kd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),gy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function vH(n,e,t,r){nie(Kd(t).lastProp,r)||(Kd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function nie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&nie(n[a],r)}),!!t}else return n===e}function mH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function QE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function yH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const gM=oot;function vM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function rie(n,e,t,r,a){var i=t.get("value"),o=aie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=pv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),sot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function sot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function aie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:P8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function mM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function iie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rie(e,r,a,i,{position:mM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function bH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var lot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=_H(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=vM(i),h=uot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=_H(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(gM);function _H(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var uot={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],SH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],SH(n))}}};function SH(n){return n.dim==="x"?0:1}const cot=lot;var dot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const fot=dot;var Rl=at(),hot=M;function sie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),pot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function pot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(CH,"click")),t("mousemove",Ae(CH,"mousemove")),t("globalout",vot);function t(r,a){n.on(r,function(i){var o=mot(e);hot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),got(o.pendings,e)})}}function got(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function vot(n,e,t){n.handler("leave",null,t)}function CH(n,e,t,r){e.handler(n,t,r)}function mot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const bot=yot;function lie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=jf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var wH=at();function _ot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){k2(a)&&(a=lie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=k2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||k2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Cot,h),showTooltip:Ae(wot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Oot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&xH(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,TH(S),TH(y)))),m[y.key]=T}})}),M(m,function(y,b){xH(c[b],y,g,!0,f)}),xot(h,c,f),Tot(p,a,n,o),Eot(c,o,t),f}}function xH(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=Sot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function Sot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Cot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function wot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Sy(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function xot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Tot(n,e,t,r){if(k2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Eot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=wH(r)[a]||{},o=wH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Oot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function TH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function k2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",cot),n.registerComponentModel(fot),n.registerComponentView(bot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_ot)}function Iot(n){He(Lre),He(z0)}var Pot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=vM(i),p=Aot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Dot(r,a,i,l,g);rie(t,a,i,o,m)},e}(gM);function Dot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Aot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:yM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:bH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:bH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Mot=Pot;var Rot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Lot=Rot;var bM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);or(bM,R0);var kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(bM),Not=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(bM),_M=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);_M.prototype.dataToRadius=cs.prototype.dataToCoord;_M.prototype.radiusToData=cs.prototype.coordToData;const Fot=_M;var $ot=at(),SM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=$ot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);SM.prototype.dataToAngle=cs.prototype.dataToCoord;SM.prototype.angleToData=cs.prototype.coordToData;const Vot=SM;var uie=["radius","angle"],jot=function(){function n(e){this.dimensions=uie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fot,this._angleAxis=new Vot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=EH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=EH(t);return a===this?this.pointToData(r):null},n}();function EH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const zot=jot;function Bot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Hot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(gC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(gC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Uot(n){return n.mainType==="angleAxis"}function OH(n,e){if(n.type=e.get("type"),n.scale=eT(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Uot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Wot={dimensions:uie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new zot(a+"");i.update=Hot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");OH(o,l),OH(s,u),Bot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Got=Wot;var Yot=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function IH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});IH(u),IH(s),M(Yot,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Zot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Zot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Nx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function ast(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=die(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=cie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=PH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=PH(t);return a===this?this.pointToData(r):null},n}();function PH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function mst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new vst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var yst={create:mst,dimensions:hie};const bst=yst;var DH=["x","y"],_st=["width","height"],Sst=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=e3(l,1-DC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=vM(i),h=Cst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=DC(o),u=e3(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=e3(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(gM),Cst={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],DC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],DC(n))}}};function DC(n){return n.isHorizontal()?0:1}function e3(n,e){var t=n.getRect();return[t[DH[e]],t[DH[e]]+t[_st[e]]]}const wst=Sst;var xst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function Tst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",wst),n.registerComponentView(xst),n.registerComponentView(hst),n.registerComponentModel(JE),wg(n,"single",JE,JE.defaultOption),n.registerCoordinateSystem("single",bst)}var Est=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=gv(t);n.prototype.init.apply(this,arguments),AH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),AH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function AH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return MWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Ost=Est;var Ist=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?PWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/t3)-Math.floor(t[0].time/t3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function MH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Ast=Dst;function Mst(n){n.registerComponentModel(Ost),n.registerComponentView(Pst),n.registerCoordinateSystem("calendar",Ast)}function Rst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Lst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),qee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var pie=["transition","enterFrom","leaveTo"],kst=pie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?pie:kst,a=0;a=0;c--){var d=a[c],f=dr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Gx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){N2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(LH,n)?LH[n]:e8(n),t=new e({});return to(t).type=n,t}function kH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function N2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){N2(i,e,t,r)}),lT(n,e,r),t.removeKey(to(n).id))}function NH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function Vst(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xee),function(e){delete n[e]}),n}function jst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function zst(n){n.registerComponentModel(Fst),n.registerComponentView($st),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var FH=["x","y","radius","angle","single"],Bst=["cartesian2d","polar","singleAxis"];function Hst(n){var e=n.get("coordinateSystem");return Be(Bst,e)>=0}function ic(n){return n+"Axis"}function Ust(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function gie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var n3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=$H(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=$H(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(FH,function(a){var i=this.getReferringComponents(ic(a),uHe);if(i.specified){r=!0;var o=new n3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new n3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(FH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new n3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=xJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function Qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){_Ze(r,o.getData(),e)});var a=n.getAxisModel(),i=Mne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Jst=qst;var elt={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Jst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const tlt=elt;function nlt(n){n.registerAction("dataZoom",function(e,t){var r=Ust(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jH=!1;function wM(n){jH||(jH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,tlt),nlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rlt(n){n.registerComponentModel(Yst),n.registerComponentView(Xst),wM(n)}var oo=function(){function n(){}return n}(),vie={};function ip(n,e){vie[n]=e}function mie(n){return vie[n]}var alt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=mie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const ilt=alt;function olt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);xf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Gx(n,r,i,a)}function yie(n,e){var t=pv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var slt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(llt(m))S={onclick:_.option.onclick,featureName:m};else{var C=mie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=hv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),dv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}olt(o,t,a),o.add(yie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function llt(n){return n.indexOf("my")===0}const ult=slt;var clt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const dlt=clt;var zH="__ec_magicType_stack__",flt=[["line","bar"],["stack"]],hlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(BH[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=BH[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(flt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),BH={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===zH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":zH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const plt=hlt;var uT=new Array(60).join("-"),Eg=" ";function glt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function vlt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function _lt(n){for(var e=n.split(/\n+/g),t=AC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Olt(n){var e=xM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return bie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Ilt(n){_ie(n).snapshots=null}function Plt(n){return xM(n).length}function xM(n){var e=_ie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Dlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Ilt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Alt=Dlt;var Mlt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Rlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=HH(t,e);M(Llt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=r3[r.brushType](0,i,a);r.__rangeOffset={offset:YH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=r3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=r3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?YH[r.brushType](i.values,o.offset,klt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Oae(a),isTargetByCursor:Pae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Iae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=HH(t,e),i=0;in[1]&&n.reverse(),n}function HH(n,e){return s1(n,e,{includeMainTypes:Mlt})}var Llt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:WH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:WH.geo})})}},UH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],WH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(wf(n)),e}},r3={lineX:Ae(GH,0),lineY:Ae(GH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function GH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var YH={lineX:Ae(KH,0),lineY:Ae(KH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function KH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function klt(n,e){var t=ZH(n),r=ZH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function ZH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const TM=Rlt;var ND=M,Nlt=aHe("toolbox-dataZoom_"),Flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new iM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),jlt(t,r,this,i,a),Vlt(t,r)},e.prototype.onclick=function(t,r,a){$lt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new TM(EM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Elt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),$lt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Olt(this.ecModel))}};function EM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Vlt(n,e){n.setIconStatus("back",Plt(e)>1?"emphasis":"normal")}function jlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new TM(EM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}$We("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=EM(r),o=s1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Nlt+u+d};f[c]=d,a.push(f)}return a});const zlt=Flt;function Blt(n){n.registerComponentModel(ilt),n.registerComponentView(ult),ip("saveAsImage",dlt),ip("magicType",plt),ip("dataView",Tlt),ip("dataZoom",zlt),ip("restore",Alt),He(rlt)}var Hlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Ult=Hlt;function Sie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Cie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function qlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+OM+r:",left"+r+",top"+r),Ylt+":"+a}function XH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+OM+":"+o+";":[["top",0],["left",0],[wie,o]]}function Qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Jlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Dte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(qlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Kee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(Qlt(c)),d!=null&&r.push("padding:"+pv(d).join("px ")+"px"),r.join(";")+";"}function qH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Pze(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var eut=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;qH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Glt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Klt+Jlt(e,!this._firstShow,this._longHide)+XH(i[0],i[1],!0)+("border-color:"+Hf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!Sie(r)&&(s=Xlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=eU(i,a);this._ticket="";var s=i.dataByCoordSys,l=uut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=aut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=lie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(eU(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=gm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;lf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=gm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new B4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=aie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=P8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Hf(P.color),l);var A=VV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=gm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=WV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=gm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new B4;y.marker=b.makeTooltipMarker("item",Hf(y.color),h);var _=VV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?WV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=gm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new B4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=zx(y.axisValue,h,m)),h=Zee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=lut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=out(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=tU(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=tU(h)?d[1]/2:h==="bottom"?d[1]:0),Sie(t)){var y=sut(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(gy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function gm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function eU(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function out(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function sut(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function lut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function tU(n){return n==="center"||n==="middle"}function uut(n,e,t){var r=z9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const cut=iut;function dut(n){He(z0),n.registerComponentModel(Ult),n.registerComponentView(cut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var fut=["rect","polygon","keep","clear"];function hut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),put(s),e&&!s.length&&s.push.apply(s,fut)}}function put(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var nU=M;function rU(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return nU(e,function(i){var o=r[i]=a();nU(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Tie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])?n[a]=Ee(e[a]):delete n[a]})}function gut(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return y8(t,s,d)}function u(d,f){jte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&lU(e)}};function lU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var wut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Eie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const xut=wut;var Tut="#ddd",Eut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Tut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return uU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=uU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function uU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Out=Eut;var Iut=["rect","polygon","lineX","lineY","keep","clear"],Put=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Iut.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Dut=Put;function Aut(n){n.registerComponentView(xut),n.registerComponentModel(Out),n.registerPreprocessor(hut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,yut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Dut)}var Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Rut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){oC(p,"_"+t.get("target"))}),g&&h.on("click",function(){oC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Lut(n){n.registerComponentModel(Mut),n.registerComponentView(Rut)}var kut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=dr(lv(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const cU=kut;var Oie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Xc(cU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(cU);or(Oie,h8.prototype);const Nut=Oie;var Fut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const $ut=Fut;var Vut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const jut=Vut;var i3=Math.PI,dU=at(),zut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=Hut(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:i3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*i3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-i3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=But(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new jut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=fU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Cf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Cf(y),dU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Uut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Cf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),hU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){hU(d,u._progressLine,s,a,i)}};this._currentPointer=fU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var o3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Iy(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!Qut(e)&&!X(e.coord)&&X(a)){var i=Pie(e,t,r,n);if(e=Ee(e),e.type&&o3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=o3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)o3[u[c]]&&(u[c]=PM(t,t.mapDimension(a[c]),u[c]));return e}}function Pie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Jut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Jut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Py(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function ect(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Die(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function PM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var s3=at(),tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){s3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!s3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){s3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nee(l):Y9(l))})}})},e.type="marker",e}(On);const DM=tct;function gU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(gU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=rct(o,t,r);r.setData(d),gU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(DM);function rct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Iy,e));n&&(i=It(i,Ae(Py,n)));var o=Die(!!n,r);return a.initData(i,null,o),a}const act=nct;function ict(n){n.registerComponentModel(qut),n.registerComponentView(act),n.registerPreprocessor(function(e){IM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var oct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const sct=oct;var M_=at(),lct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Pie(r,a,e,n);s=u.valueAxis;var c=vne(a,u.valueDataDim);l=PM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Iy(n,i[0]),Iy(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function MC(n){return!isNaN(n)&&!isFinite(n)}function vU(n,e,t,r){var a=1-n,i=r.dimensions[n];return MC(e[a])&&MC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function uct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(vU(1,t,r,n)||vU(0,t,r,n)))return!0}return Py(n,e[0])&&Py(n,e[1])}function l3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;MC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):MC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){l3(l,c,!0,i,a),l3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new J8);this.group.add(c.group);var d=dct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);l3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(DM);function dct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(lct,e,n,t));n&&(s=It(s,Ae(uct,n)));var l=Die(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const fct=cct;function hct(n){n.registerComponentModel(sct),n.registerComponentView(fct),n.registerPreprocessor(function(e){IM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var pct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const gct=pct;var R_=at(),vct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Iy(n,a),s=Iy(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=P9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function RC(n){return!isNaN(n)&&!isFinite(n)}function mU(n,e,t,r){var a=1-n;return RC(e[a])&&RC(t[a])}function mct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(mU(1,t,r)||mU(0,t,r))?!0:ect(n,a,i):Py(n,a)||Py(n,i)}function yU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);RC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):RC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var bU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(bU,function(d){return yU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=bct(o,t,r);r.setData(d),d.each(function(f){var h=J(bU,function(E){return yU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=YS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?YS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(DM);function bct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(vct,e,n,t));n&&(s=It(s,Ae(mct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const _ct=yct;function Sct(n){n.registerComponentModel(gct),n.registerComponentView(_ct),n.registerPreprocessor(function(e){IM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Cct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Cct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=wct;var Kh=Ae,zD=M,L_=Oe,xct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(_U,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(_U,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Cf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=Tct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Ect({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&dv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Cf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){xf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function Tct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Ect(n){var e=n.icon||"roundRect",t=ir(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function _U(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Aie(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=u3[o],l=c3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Mie);const Mct=Act;function Rct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Lct(n){He(Rie),n.registerComponentModel(Dct),n.registerComponentView(Mct),Rct(n)}function kct(n){He(Rie),He(Lct)}var Nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Xc(Oy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Oy);const Fct=Nct;var AM=at();function $ct(n,e,t){AM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function Vct(n,e){for(var t=AM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Uct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=AM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,jct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Lie(a,i);return}var c=Hct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),bv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),$ct(a,t,{pan:fe(d3.pan,this),zoom:fe(d3.zoom,this),scrollMove:fe(d3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Vct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(CM),d3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=f3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:wU(function(n,e,t,r,a,i){var o=f3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:wU(function(n,e,t,r,a,i){var o=f3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function wU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var f3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Gct=Wct;function kie(n){wM(n),n.registerComponentModel(Fct),n.registerComponentView(Gct),Uct(n)}var Yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Xc(Oy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Oy);const Kct=Yct;var ym=rt,xU=7,Zct=1,h3=30,Xct=7,bm="horizontal",TU="vertical",qct=5,Qct=["line","bar","candlestick","scatter"],Jct={easing:"cubicOut",duration:100,delay:0},edt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),bv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Xct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bm?{right:s.width-o.x-o.width,top:s.height-h3-xU-i,width:o.width,height:h3}:{right:xU,top:o.y,width:h3,height:o.height},u=gv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===TU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bm&&!o?{scaleY:l?1:-1,scaleX:1}:a===bm&&o?{scaleY:l?1:-1,scaleX:-1}:a===TU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new ym({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ym({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(Qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=tdt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new ym({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new ym({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Zct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!uC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ir(S,-1,0,2,2,null,!0);C.attr({cursor:EU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Cf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ir(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:EU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new ym({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Jct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=gie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(CM);function tdt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function EU(n){return n==="vertical"?"ns-resize":"ew-resize"}const ndt=edt;function Nie(n){n.registerComponentModel(Kct),n.registerComponentView(ndt),wM(n)}function rdt(n){He(kie),He(Nie)}var adt={get:function(n,e,t){var r=Ee((idt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},idt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Fie=adt;var OU=Gr.mapVisual,odt=Gr.eachVisual,sdt=X,IU=M,ldt=go,udt=xt,cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=ldt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){sdt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},IU(p,function(m,y){if(Gr.isValidType(y)){var b=Fie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";IU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=OU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;odt(S,function(w){w>C&&(C=w)}),_.symbolSize=OU(S,function(w){return udt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const LC=cdt;var PU=[20,140],ddt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=PU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=PU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=DU(this,"outOfRange",this.getExtent()),a=DU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();pdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],wf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,wf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||LU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=sHe(f,h);this._dispatchHighDown("downplay",F2(p[0],a)),this._dispatchHighDown("highlight",F2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(lf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function wdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(_dt,Sdt),M(Cdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(xdt))}function zie(n){n.registerComponentModel(fdt),n.registerComponentView(bdt),jie(n)}var Tdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Edt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Fie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Xc(LC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(LC),Edt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function $U(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Odt=Tdt;var Idt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),xf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:F2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Vie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ir(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}($ie);const Pdt=Idt;function Bie(n){n.registerComponentModel(Odt),n.registerComponentView(Pdt),jie(n)}function Ddt(n){He(zie),He(Bie)}var Adt={label:{enabled:!0},decal:{show:!1}},VU=at(),Mdt={};function Rdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Adt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),VU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Mdt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=VU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ndt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):yze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),$dt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function Qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Uie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Uie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function tft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function nft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),nft(e,u,c)}function kC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);kC(n,i[0],a,r),kC(n,i[1],t-a,r)}return r}function rft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function $C(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:fft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Yie(n){return oft(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function hft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var gft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;KU(n)&&(u=n,c=e),KU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(NC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;RM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:gft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?hft(w,T,P):pft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?ZU(c,u):ZU(f?e:n,[f?n:e]),p=0,g=0;gKie))for(var a=r.getIndices(),i=mft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function qU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function QU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function _ft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=qU(i),c=QU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=qU(i),u=QU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function JU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=JU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Zie(a,i,r)}function Cft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{wft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:nR(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(e2,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(e2,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(e2,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(f9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Eft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:LM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Eft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:LM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Oft="_description_1a8jp_1",Ift="_card_1a8jp_5",Pft={description:Oft,card:Ift};async function Xie(n){return Er.post("/webapp/getAllBackends",n)}async function Dft(n){return Er.post("/webapp/saveBackend",n)}async function qie(n){return Er.post("/webapp/updateBackend",n)}async function Aft(n){return Er.post("/webapp/deleteBackend",n)}function Mft(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Xie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Rft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Aft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Pft.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Dft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):qie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Rft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,qie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(kq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(av.ADMIN),"aria-label":"active switch"})},Lft="_description_1a8jp_1",kft="_card_1a8jp_5",eW={description:Lft,card:kft};async function Nft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var Qie;function be(){return Qie.apply(null,arguments)}function Fft(n){Qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function If(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function kM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Jie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var VM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,b3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function Bft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Hft(n){var e=n.match(VM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Uft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(VM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Gft="Invalid date";function Yft(){return this._invalidDate}var Kft="%d",Zft=/\d{1,2}/;function Xft(n){return this._ordinal.replace("%d",n)}var qft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Jft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var b1={};function ma(n,e){var t=n.toLowerCase();b1[t]=b1[t+"s"]=b1[e]=n}function Po(n){return typeof n=="string"?b1[n]||b1[n.toLowerCase()]:void 0}function jM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var roe={};function ya(n,e){roe[n]=e}function eht(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:roe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function dT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function Cv(n,e){return function(t){return t!=null?(aoe(this,n,t),be.updateOffset(this,e),this):VC(this,n)}}function VC(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function aoe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&dT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),mT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function tht(n){return n=Po(n),fl(this[n])?this[n]():this}function nht(n,e){if(typeof n=="object"){n=jM(n);var t=eht(n),r,a=t.length;for(r=0;r68?1900:2e3)};var poe=Cv("FullYear",!0);function Sht(){return dT(this.year())}function Cht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Dy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function zC(n,e,t){var r=7+e-t,a=(7+Dy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function goe(n,e,t,r,a){var i=(7+t-r)%7,o=zC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=_1(l)+s):s>_1(n)?(l=n+1,u=s-_1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Ay(n,e,t){var r=zC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=zC(n,e,t),a=zC(n+1,e,t);return(_1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function wht(n){return Ay(n,this._week.dow,this._week.doy).week}var xht={dow:0,doy:6};function Tht(){return this._week.dow}function Eht(){return this._week.doy}function Oht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Iht(n){var e=Ay(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Pht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Dht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function HM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Aht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),voe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rht=U0,Lht=U0,kht=U0;function Nht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?HM(t,this._week.dow):n?t[n.day()]:t}function Fht(n){return n===!0?HM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function $ht(n){return n===!0?HM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Vht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function jht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return Vht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Pht(n,this.localeData()),this.add(n-e,"d")):e}function Bht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Hht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Dht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Rht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ght(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function UM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function WM(){return this.hours()%12||12}function Yht(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,WM);Re("k",["kk",2],0,Yht);Re("hmm",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function moe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}moe("a",!0);moe("A",!1);ma("hour","h");ya("hour",13);function yoe(n,e){return e._meridiemParse}xe("a",yoe);xe("A",yoe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",soe);xe("hmmss",loe);xe("Hmm",soe);xe("Hmmss",loe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Kht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Zht=/[ap]\.?m?\.?/i,Xht=Cv("Hours",!0);function qht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var boe={calendar:jft,longDateFormat:Uft,invalidDate:Gft,ordinal:Kft,dayOfMonthOrdinalParse:Zft,relativeTime:qft,months:dht,monthsShort:uoe,week:xht,weekdays:Aht,weekdaysMin:Mht,weekdaysShort:voe,meridiemParse:Zht},xn={},_m={},My;function Qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=yT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&Qht(i,r)>=t-1)break;t--}e++}return My}function ept(n){return n.match("^[^/\\\\]*$")!=null}function yT(n){var e=null,t;if(xn[n]===void 0&&typeof z2<"u"&&z2&&z2.exports&&ept(n))try{e=My._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=GM(n,e),t?My=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),My._abbr}function GM(n,e){if(e!==null){var t,r=boe;if(e.abbr=n,xn[n]!=null)toe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=yT(e.parentLocale),t!=null)r=t._config;else return _m[e.parentLocale]||(_m[e.parentLocale]=[]),_m[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new $M(KD(r,e)),_m[n]&&_m[n].forEach(function(a){GM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function tpt(n,e){if(e!=null){var t,r,a=boe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=yT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new $M(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return My;if(!as(n)){if(e=yT(n),e)return e;n=[n]}return Jht(n)}function npt(){return ZD(xn)}function YM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>mT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[ff]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[ff]<0||t[ff]>999?ff:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=lht),nt(n)._overflowWeekday&&e===-1&&(e=uht),nt(n).overflow=e),n}var rpt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ipt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],opt=/^\/?Date\((-?\d+)/i,spt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lpt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _oe(n){var e,t,r=n._i,a=rpt.exec(r)||apt.exec(r),i,o,s,l,u=N_.length,c=_3.length;if(a){for(nt(n).iso=!0,e=0,t=u;e_1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Dy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[ff]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Dy:Cht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function vpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Ay(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Ay(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=goe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function ZM(n){if(n._f===be.ISO_8601){_oe(n);return}if(n._f===be.RFC_2822){Soe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=noe(n._f,n._locale).match(VM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),sht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=mpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),KM(n),YM(n)}function mpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function ypt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:cT()});function xoe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vpt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return FM(n,this),n=Coe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Dpt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jpt(){return this.isValid()?!this._isUTC:!1}function zpt(){return this.isValid()?this._isUTC:!1}function Eoe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return V2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[ff]*1e3))*a}):(r=Hpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Pd(r[2],a),M:Pd(r[3],a),w:Pd(r[4],a),d:Pd(r[5],a),h:Pd(r[6],a),m:Pd(r[7],a),s:Pd(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Upt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new bT(t),V2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),V2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=bT.prototype;ds.invalid=Ppt;function Pd(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function aW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Upt(n,e){var t;return n.isValid()&&e.isValid()?(e=qM(e,n),n.isBefore(e)?t=aW(n,e):(t=aW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Ooe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(toe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ioe(this,a,n),this}}function Ioe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&doe(n,VC(n,"Month")+o*t),i&&aoe(n,"Date",VC(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Wpt=Ooe(1,"add"),Gpt=Ooe(-1,"subtract");function Poe(n){return typeof n=="string"||n instanceof String}function Ypt(n){return is(n)||B0(n)||Poe(n)||uu(n)||Zpt(n)||Kpt(n)||n===null||n===void 0}function Kpt(n){var e=If(n)&&!kM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?$2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",$2(t,"Z")):$2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ugt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function cgt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=$2(this,n);return this.localeData().postformat(e)}function dgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fgt(n){return this.from(Sn(),n)}function hgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function pgt(n){return this.to(Sn(),n)}function Doe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Aoe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Moe(){return this._locale}var BC=1e3,Xp=60*BC,HC=60*Xp,Roe=(365*400+97)*24*HC;function qp(n,e){return(n%e+e)%e}function Loe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Roe:new Date(n,e,t).valueOf()}function koe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Roe:Date.UTC(n,e,t)}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),HC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,BC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=HC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),HC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=BC-qp(e,BC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function mgt(){return this._d.valueOf()-(this._offset||0)*6e4}function ygt(){return Math.floor(this.valueOf()/1e3)}function bgt(){return new Date(this.valueOf())}function _gt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Sgt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Cgt(){return this.isValid()?this.toISOString():null}function wgt(){return NM(this)}function xgt(){return oc({},nt(this))}function Tgt(){return nt(this).overflow}function Egt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",QM);xe("NN",QM);xe("NNN",QM);xe("NNNN",Fgt);xe("NNNNN",$gt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",wv);xe("yy",wv);xe("yyy",wv);xe("yyyy",wv);xe("yo",Vgt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Ogt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Pgt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Dgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Ggt.call(this,n,e,t,r,a))}function Ggt(n,e,t,r,a){var i=goe(n,e,t,r,a),o=Dy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",ioe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ygt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Foe=Cv("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",hT);xe("DDDD",ooe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Kgt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Zgt=Cv("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Xgt=Cv("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",hT,ioe);xe("SS",hT,Bi);xe("SSS",hT,ooe);var sc,$oe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,wv);function qgt(n,e){e[ff]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,qgt);$oe=Cv("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function Qgt(){return this._isUTC?"UTC":""}function Jgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Wpt;de.calendar=Qpt;de.clone=Jpt;de.diff=ogt;de.endOf=vgt;de.format=cgt;de.from=dgt;de.fromNow=fgt;de.to=hgt;de.toNow=pgt;de.get=tht;de.invalidAt=Tgt;de.isAfter=egt;de.isBefore=tgt;de.isBetween=ngt;de.isSame=rgt;de.isSameOrAfter=agt;de.isSameOrBefore=igt;de.isValid=wgt;de.lang=Aoe;de.locale=Doe;de.localeData=Moe;de.max=wpt;de.min=Cpt;de.parsingFlags=xgt;de.set=nht;de.startOf=ggt;de.subtract=Gpt;de.toArray=_gt;de.toObject=Sgt;de.toDate=bgt;de.toISOString=lgt;de.inspect=ugt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Cgt;de.toString=sgt;de.unix=ygt;de.valueOf=mgt;de.creationData=Egt;de.eraName=Dgt;de.eraNarrow=Agt;de.eraAbbr=Mgt;de.eraYear=Rgt;de.year=poe;de.isLeapYear=Sht;de.weekYear=jgt;de.isoWeekYear=zgt;de.quarter=de.quarters=Ygt;de.month=foe;de.daysInMonth=yht;de.week=de.weeks=Oht;de.isoWeek=de.isoWeeks=Iht;de.weeksInYear=Ugt;de.weeksInWeekYear=Wgt;de.isoWeeksInYear=Bgt;de.isoWeeksInISOWeekYear=Hgt;de.date=Foe;de.day=de.days=zht;de.weekday=Bht;de.isoWeekday=Hht;de.dayOfYear=Kgt;de.hour=de.hours=Xht;de.minute=de.minutes=Zgt;de.second=de.seconds=Xgt;de.millisecond=de.milliseconds=$oe;de.utcOffset=Mpt;de.utc=Lpt;de.local=kpt;de.parseZone=Npt;de.hasAlignedHourOffset=Fpt;de.isDST=$pt;de.isLocal=jpt;de.isUtcOffset=zpt;de.isUtc=Eoe;de.isUTC=Eoe;de.zoneAbbr=Qgt;de.zoneName=Jgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Foe);de.months=Io("months accessor is deprecated. Use month instead",foe);de.years=Io("years accessor is deprecated. Use year instead",poe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vpt);function evt(n){return Sn(n*1e3)}function tvt(){return Sn.apply(null,arguments).parseZone()}function Voe(n){return n}var Ft=$M.prototype;Ft.calendar=zft;Ft.longDateFormat=Wft;Ft.invalidDate=Yft;Ft.ordinal=Xft;Ft.preparse=Voe;Ft.postformat=Voe;Ft.relativeTime=Qft;Ft.pastFuture=Jft;Ft.set=Vft;Ft.eras=Ogt;Ft.erasParse=Igt;Ft.erasConvertYear=Pgt;Ft.erasAbbrRegex=kgt;Ft.erasNameRegex=Lgt;Ft.erasNarrowRegex=Ngt;Ft.months=pht;Ft.monthsShort=ght;Ft.monthsParse=mht;Ft.monthsRegex=_ht;Ft.monthsShortRegex=bht;Ft.week=wht;Ft.firstDayOfYear=Eht;Ft.firstDayOfWeek=Tht;Ft.weekdays=Nht;Ft.weekdaysMin=$ht;Ft.weekdaysShort=Fht;Ft.weekdaysParse=jht;Ft.weekdaysRegex=Uht;Ft.weekdaysShortRegex=Wht;Ft.weekdaysMinRegex=Ght;Ft.isPM=Kht;Ft.meridiem=qht;function UC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function joe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return UC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=UC(n,r,t,"month");return a}function eR(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return UC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=UC(e,(o+i)%7,r,"day");return s}function nvt(n,e){return joe(n,e,"months")}function rvt(n,e){return joe(n,e,"monthsShort")}function avt(n,e,t){return eR(n,e,t,"weekdays")}function ivt(n,e,t){return eR(n,e,t,"weekdaysShort")}function ovt(n,e,t){return eR(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function svt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function zoe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function lvt(n,e){return zoe(this,n,e,1)}function uvt(n,e){return zoe(this,n,e,-1)}function iW(n){return n<0?Math.floor(n):Math.ceil(n)}function cvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=iW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(Boe(e)),t+=l,e-=iW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function Boe(n){return n*4800/146097}function JD(n){return n*146097/4800}function dvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+Boe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function fvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var hvt=gu("ms"),pvt=gu("s"),gvt=gu("m"),vvt=gu("h"),mvt=gu("d"),yvt=gu("w"),bvt=gu("M"),_vt=gu("Q"),Svt=gu("y");function Cvt(){return ds(this)}function wvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var xvt=vh("milliseconds"),Tvt=vh("seconds"),Evt=vh("minutes"),Ovt=vh("hours"),Ivt=vh("days"),Pvt=vh("months"),Dvt=vh("years");function Avt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mvt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Rvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Mvt.apply(null,f)}function Lvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function kvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function Nvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Rvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var S3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function ST(){if(!this.isValid())return this.localeData().invalidDate();var n=S3(this._milliseconds)/1e3,e=S3(this._days),t=S3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=bT.prototype;Tt.isValid=Ipt;Tt.abs=svt;Tt.add=lvt;Tt.subtract=uvt;Tt.as=dvt;Tt.asMilliseconds=hvt;Tt.asSeconds=pvt;Tt.asMinutes=gvt;Tt.asHours=vvt;Tt.asDays=mvt;Tt.asWeeks=yvt;Tt.asMonths=bvt;Tt.asQuarters=_vt;Tt.asYears=Svt;Tt.valueOf=fvt;Tt._bubble=cvt;Tt.clone=Cvt;Tt.get=wvt;Tt.milliseconds=xvt;Tt.seconds=Tvt;Tt.minutes=Evt;Tt.hours=Ovt;Tt.days=Ivt;Tt.weeks=Avt;Tt.months=Pvt;Tt.years=Dvt;Tt.humanize=Nvt;Tt.toISOString=ST;Tt.toString=ST;Tt.toJSON=ST;Tt.locale=Doe;Tt.localeData=Moe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ST);Tt.lang=Aoe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",gT);xe("X",aht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Fft(Sn);be.fn=de;be.min=xpt;be.max=Tpt;be.now=Ept;be.utc=dl;be.unix=evt;be.months=nvt;be.isDate=B0;be.locale=Tc;be.invalid=cT;be.duration=ds;be.isMoment=is;be.weekdays=avt;be.parseZone=tvt;be.localeData=pu;be.isDuration=V2;be.monthsShort=rvt;be.weekdaysMin=ovt;be.defineLocale=GM;be.updateLocale=tpt;be.locales=npt;be.weekdaysShort=ivt;be.normalizeUnits=Po;be.relativeTimeRounding=Lvt;be.relativeTimeThreshold=kvt;be.calendarFormat=qpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Fvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function $vt(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Xie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),Nft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Fvt(b)}),y=b=>V.jsx(Nf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(av.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const Vvt="_description_1a8jp_1",jvt="_card_1a8jp_5",oW={description:Vvt,card:jvt};async function zvt(n){return Er.post("/webapp/findSelector",n)}async function Bvt(n){return Er.post("/webapp/saveSelector",n)}async function Hvt(n){return Er.post("/webapp/updateSelector",n)}async function Uvt(n){return Er.post("/webapp/deleteSelector",n)}function Wvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{zvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Uvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Bvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Hvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Gvt="_description_1a8jp_1",Yvt="_card_1a8jp_5",sW={description:Gvt,card:Yvt};async function Kvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function qvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function Qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Kvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{qvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Xvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const tR=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Zje,{className:Rt.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(xft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Wje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Mft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Hje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(Qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Yje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Wvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(zje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx($vt,{})}}],e6=tR.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function nR(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Jvt=n=>{const e=$i(),t=jQ(),r=Mg(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{cje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Fd.Auto,Fd.Light,Fd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(x5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:V.jsx(mL,{to:"/",style:{textDecoration:"none"},children:"Trino Gateway"})},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Fd.Auto?V.jsx(m5e,{className:Rt.semiIconsBell}):p===Fd.Light?V.jsx($5e,{className:Rt.semiIconsBell}):p===Fd.Dark?V.jsx(_5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(a5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(x5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(mL,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:tR.filter(m=>nR(m,e)),children:V.jsx(x5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(yZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(mZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(f5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var emt=Object.defineProperty,lW=Object.getOwnPropertySymbols,tmt=Object.prototype.hasOwnProperty,nmt=Object.prototype.propertyIsEnumerable,uW=(n,e,t)=>e in n?emt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,rmt=(n,e)=>{for(var t in e||(e={}))tmt.call(e,t)&&uW(n,t,e[t]);if(lW)for(var t of lW(e))nmt.call(e,t)&&uW(n,t,e[t]);return n};function amt(n){return D.createElement("svg",rmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var imt=amt,omt=Object.defineProperty,cW=Object.getOwnPropertySymbols,smt=Object.prototype.hasOwnProperty,lmt=Object.prototype.propertyIsEnumerable,dW=(n,e,t)=>e in n?omt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,umt=(n,e)=>{for(var t in e||(e={}))smt.call(e,t)&&dW(n,t,e[t]);if(cW)for(var t of cW(e))lmt.call(e,t)&&dW(n,t,e[t]);return n};function cmt(n){return D.createElement("svg",umt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var dmt=cmt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=fW.get("token");e&&(n.updateToken(e),fW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Jvt,{children:V.jsxs(sce,{children:[tR.flatMap(e=>nR(e,n)?[D.createElement(X_,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(X_,{path:"/",element:V.jsx(ice,{to:"/dashboard"})}),V.jsx(X_,{path:"*",element:V.jsx(gmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(pje,{})})})}function gmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(hq,{image:V.jsx(dmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(imt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function vmt(){const n=jQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=LM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}C3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(hmt,{})}))});export default mmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js b/gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js new file mode 100644 index 000000000..c01443e29 --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js @@ -0,0 +1,169 @@ +var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js b/gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js new file mode 100644 index 000000000..c39dfcb0c --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js @@ -0,0 +1,169 @@ +var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js b/gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js new file mode 100644 index 000000000..4f8eae771 --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js @@ -0,0 +1,169 @@ +var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js b/gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js new file mode 100644 index 000000000..243eb6030 --- /dev/null +++ b/gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js @@ -0,0 +1,169 @@ +var Hoe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var mmt=Hoe((Hmt,j2)=>{function Uoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Woe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var hW={exports:{}},UC={},pW={exports:{}},bt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ry=Symbol.for("react.element"),Goe=Symbol.for("react.portal"),Yoe=Symbol.for("react.fragment"),Koe=Symbol.for("react.strict_mode"),Zoe=Symbol.for("react.profiler"),Xoe=Symbol.for("react.provider"),qoe=Symbol.for("react.context"),Qoe=Symbol.for("react.forward_ref"),Joe=Symbol.for("react.suspense"),ese=Symbol.for("react.memo"),tse=Symbol.for("react.lazy"),rR=Symbol.iterator;function nse(n){return n===null||typeof n!="object"?null:(n=rR&&n[rR]||n["@@iterator"],typeof n=="function"?n:null)}var gW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vW=Object.assign,mW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function yW(){}yW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}var r6=n6.prototype=new yW;r6.constructor=n6;vW(r6,Og.prototype);r6.isPureReactComponent=!0;var aR=Array.isArray,bW=Object.prototype.hasOwnProperty,a6={current:null},_W={key:!0,ref:!0,__self:!0,__source:!0};function SW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)bW.call(e,r)&&!_W.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(TW);xW.exports=TW;var pse=xW.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var EW=D,Fi=pse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,gse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oR={},sR={};function vse(n){return C3.call(sR,n)?!0:C3.call(oR,n)?!1:gse.test(n)?sR[n]=!0:(oR[n]=!0,!1)}function mse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function yse(n,e,t,r){if(e===null||typeof e>"u"||mse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?Cm(n):""}function bse(n){switch(n.tag){case 5:return Cm(n.type);case 16:return Cm("Lazy");case 13:return Cm("Suspense");case 19:return Cm("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case PW:return(n.displayName||"Context")+".Consumer";case IW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function _se(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function AW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sse(n){var e=AW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=Sse(n))}function MW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=AW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function uR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function RW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){RW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function cR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var wm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function C1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var zm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cse=["Webkit","ms","Moz","O"];Object.keys(zm).forEach(function(n){Cse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),zm[e]=zm[n]})});function FW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||zm.hasOwnProperty(n)&&zm[n]?(""+e).trim():e+"px"}function $W(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=FW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var wse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(wse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function hR(n){if(n=Ny(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function VW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function jW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,hR(n),e)for(n=0;n>>=0,n===0?32:31-(Lse(n)/kse|0)|0}var Q0=64,J0=4194304;function xm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=xm(s):(i&=o,i!==0&&(r=xm(i)))}else o=t&~a,o!==0?r=xm(o):i!==0&&(r=xm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function Ly(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function Vse(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=Hm),CR=" ",wR=!1;function oG(n,e){switch(n){case"keyup":return hle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function gle(n,e){switch(n){case"compositionend":return sG(e);case"keypress":return e.which!==32?null:(wR=!0,CR);case"textInput":return n=e.data,n===CR&&wR?null:n;default:return null}}function vle(n,e){if(up)return n==="compositionend"||!_6&&oG(n,e)?(n=aG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=OR(t)}}function dG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?dG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function fG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function Tle(n){var e=fG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&dG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=IR(t,i);var o=IR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Wm=null,B3=!1;function PR(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wm&&I1(Wm,r)||(Wm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),Pf=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function NR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function SG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,_se(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,Pf=fa.current,dn(fa,n),dn(oi,oi.current),!0}function FR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=SG(n,e,Pf),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function CG(n){Ol===null?Ol=[n]:Ol.push(n)}function Fle(n){XC=!0,CG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Dd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Dd(y,E),C}function g(y,b,_,S){var C=Tv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Dd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Dd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&UR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Dv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=pf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Dv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(wm(_))return p(y,b,_,S);if(Tv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=DG(!0),AG=DG(!1),Fy={},Ws=Bc(Fy),M1=Bc(Fy),R1=Bc(Fy);function Qd(n){if(n===Fy)throw Error(ue(174));return n}function D6(n,e){switch(dn(R1,e),dn(M1,n),dn(Ws,Fy),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(M1),bn(R1)}function MG(n){Qd(R1.current);var e=Qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(M1,n),dn(Ws,t))}function A6(n){M1.current===n&&(bn(Ws),bn(M1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function KG(){return So().memoizedState}function zle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},ZG(n))XG(e,t);else if(t=EG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),qG(t,e,r)}}function Ble(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(ZG(n))XG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=EG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),qG(t,e,r))}}function ZG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function XG(n,e){Gm=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function qG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Hle={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:GR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,HG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=zle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:WR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=WR(!1),e=n[0];return n=jle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Af&30||kG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,GR(FG.bind(null,r,i,n),[n]),r.flags|=2048,N1(9,NG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=L1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[A1]=r,oY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Av(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function qle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,Qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var tL=!1;function Jle(n,e){if(H3=G2,n=fG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=tL,tL=!1,p}function Ym(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function uY(n){var e=n.alternate;e!==null&&(n.alternate=null,uY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[A1],delete e[Y3],delete e[kle],delete e[Nle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function cY(n){return n.tag===5||n.tag===3||n.tag===4}function nL(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||cY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)dY(n,e,t),t=t.sibling}function dY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),E1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function rL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Qle),e.forEach(function(r){var a=lue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Dt&6)throw Error(ue(331));var a=Dt;for(Dt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?hf(n,0):j6|=t),li(n,e)}function bY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(Ly(n,e,t),li(n,t))}function sue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),bY(n,t)}function lue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),bY(n,t)}var _Y;_Y=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Zle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&wG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=cue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=QR(null,e,r,n,t);break e;case 11:e=XR(null,e,r,n,t);break e;case 14:e=qR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),QR(n,e,r,a,t);case 3:e:{if(rY(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,OG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=JR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=JR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=AG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return MG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),nY(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return aY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),XR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),qR(n,e,r,a,t);case 15:return eY(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),PG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return iY(n,e,t);case 22:return tY(n,e,t)}throw Error(ue(156,e.tag))};function SY(n,e){return YW(n,e)}function uue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new uue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return pf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case DW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case IW:o=10;break e;case PW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function pf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=DW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function due(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new due(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function fue(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TY)}catch(n){console.error(n)}}TY(),wW.exports=ji;var Ti=wW.exports;const ui=Ie(Ti);var dL=Ti;S3.createRoot=dL.createRoot,S3.hydrateRoot=dL.hydrateRoot;class mue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function $1(){return $1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bue(){return Math.random().toString(36).substr(2,8)}function hL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),$1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Kf(e):e,{state:t,key:e&&e.key||r||bue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Kf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function _ue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState($1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=hL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=hL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return ar(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(fL,d),l=m,()=>{a.removeEventListener(fL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var pL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(pL||(pL={}));function Sue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Kf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=EY(n);Cue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ar(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(ar(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),EY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Pue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of OY(i.path))a(i,o,l)}),e}function OY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=OY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Cue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Due(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const wue=/^:\w+$/,xue=3,Tue=2,Eue=1,Oue=10,Iue=-2,gL=n=>n==="*";function Pue(n,e){let t=n.split("/"),r=t.length;return t.some(gL)&&(r+=Iue),e&&(r+=Tue),t.filter(a=>!gL(a)).reduce((a,i)=>a+(wue.test(i)?xue:i===""?Eue:Oue),r)}function Due(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Aue(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=kue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Rue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Lue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function kue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function Nue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Kf(n):n;return{pathname:t?t.startsWith("/")?t:Fue(t,e):e,search:jue(r),hash:zue(a)}}function Fue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $ue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function q6(n){return $ue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function Q6(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Kf(n):(a=$1({},n),ar(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),ar(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),ar(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=Nue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),Vue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Bue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const IY=["post","put","patch","delete"];new Set(IY);const Hue=["get",...IY];new Set(Hue);/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=Q6(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function AY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Uc),{pathname:a}=Mg(),i=JSON.stringify(q6(r));return D.useMemo(()=>Q6(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Yue(n,e){return Kue(n,e)}function Kue(n,e,t){Ag()||ar(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Uc),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Mg(),u;if(e){var c;let g=typeof e=="string"?Kf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||ar(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Sue(n,{pathname:f}),p=Jue(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Zue(){let n=rce(),e=Bue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Xue=D.createElement(Zue,null);class que extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Uc.Provider,{value:this.props.routeContext},D.createElement(PY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(J6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Uc.Provider,{value:e},r)}function Jue(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ar(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Xue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(Que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(que,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var MY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(MY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function ece(n){let e=D.useContext(J6);return e||ar(!1),e}function tce(n){let e=D.useContext(Uue);return e||ar(!1),e}function nce(n){let e=D.useContext(Uc);return e||ar(!1),e}function RY(n){let e=nce(),t=e.matches[e.matches.length-1];return t.route.id||ar(!1),t.route.id}function rce(){var n;let e=D.useContext(PY),t=tce(hS.UseRouteError),r=RY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function ace(){let{router:n}=ece(MY.UseNavigateStable),e=RY(hS.UseNavigateStable),t=D.useRef(!1);return DY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function ice(n){let{to:e,replace:t,state:r,relative:a}=n;Ag()||ar(!1);let{matches:i}=D.useContext(Uc),{pathname:o}=Mg(),s=e7(),l=Q6(e,q6(i),o,a==="path"),u=JSON.stringify(l);return D.useEffect(()=>s(JSON.parse(u),{replace:t,state:r,relative:a}),[s,u,a,t,r]),null}function gO(n){ar(!1)}function oce(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ag()&&ar(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Kf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function sce(n){let{children:e,location:t}=n;return Yue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&ar(!1),!r.props.index||!r.props.children||ar(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function uce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function cce(n,e){return n.button===0&&(!e||e==="_self")&&!uce(n)}const dce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fce="startTransition",vL=sse[fce];function hce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=yue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&vL?vL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(oce,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const pce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=lce(e,dce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&gce.test(u)&&(p=u,pce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Wue(u,{relative:a}),y=mce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var mL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(mL||(mL={}));var yL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(yL||(yL={}));function mce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=e7(),u=Mg(),c=AY(n,{relative:o});return D.useCallback(d=>{if(cce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function yce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=yce;const oa=Ie(pi);var bce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,LY=bce,_ce=LY,Sce=typeof self=="object"&&self&&self.Object===Object&&self,Cce=_ce||Sce||Function("return this")(),os=Cce,wce=os,xce=function(){return wce.Date.now()},Tce=xce,Ece=/\s/;function Oce(n){for(var e=n.length;e--&&Ece.test(n.charAt(e)););return e}var Ice=Oce,Pce=Ice,Dce=/^\s+/;function Ace(n){return n&&n.slice(0,Pce(n)+1).replace(Dce,"")}var Mce=Ace,Rce=os,Lce=Rce.Symbol,Rg=Lce,bL=Rg,kY=Object.prototype,kce=kY.hasOwnProperty,Nce=kY.toString,Rv=bL?bL.toStringTag:void 0;function Fce(n){var e=kce.call(n,Rv),t=n[Rv];try{n[Rv]=void 0;var r=!0}catch{}var a=Nce.call(n);return r&&(e?n[Rv]=t:delete n[Rv]),a}var $ce=Fce,Vce=Object.prototype,jce=Vce.toString;function zce(n){return jce.call(n)}var Bce=zce,_L=Rg,Hce=$ce,Uce=Bce,Wce="[object Null]",Gce="[object Undefined]",SL=_L?_L.toStringTag:void 0;function Yce(n){return n==null?n===void 0?Gce:Wce:SL&&SL in Object(n)?Hce(n):Uce(n)}var ss=Yce;function Kce(n){return n!=null&&typeof n=="object"}var gi=Kce,Zce=ss,Xce=gi,qce="[object Symbol]";function Qce(n){return typeof n=="symbol"||Xce(n)&&Zce(n)==qce}var Lg=Qce,Jce=Mce,CL=pi,ede=Lg,wL=NaN,tde=/^[-+]0x[0-9a-f]+$/i,nde=/^0b[01]+$/i,rde=/^0o[0-7]+$/i,ade=parseInt;function ide(n){if(typeof n=="number")return n;if(ede(n))return wL;if(CL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=CL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Jce(n);var t=nde.test(n);return t||rde.test(n)?ade(n.slice(2),t?2:8):tde.test(n)?wL:+n}var t7=ide;const lo=Ie(t7);var ode=pi,ZT=Tce,xL=t7,sde="Expected a function",lde=Math.max,ude=Math.min;function cde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(sde);e=xL(e)||0,ode(t)&&(c=!!t.leading,d="maxWait"in t,i=d?lde(xL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?ude(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var NY=cde;const n7=Ie(NY);var dde=NY,fde=pi,hde="Expected a function";function pde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(hde);return fde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),dde(n,e,{leading:r,maxWait:e,trailing:a})}var gde=pde;const yO=Ie(gde);function vde(){}var FY=vde;const B=Ie(FY);var $Y={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Zfe=Kfe,Xfe=cw;function qfe(n,e){var t=this.__data__,r=Xfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Qfe=qfe,Jfe=kfe,ehe=Hfe,the=Gfe,nhe=Zfe,rhe=Qfe;function Fg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var RL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!AL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;AL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function ZY(n){return n===Object(n)&&Object.keys(n).length!==0}function upe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function cpe(n){return n===!1?{block:"end",inline:"nearest"}:ZY(n)?n:{block:"start",inline:"nearest"}}function LL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(ZY(e)&&typeof e.behavior=="function")return e.behavior(t?RL(n,e):[]);if(t){var r=cpe(e);return upe(RL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:dpe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&dpe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=Tge}var p7=Ege,Oge=lw,Ige=p7;function Pge(n){return n!=null&&Ige(n.length)&&!Oge(n)}var ls=Pge,Dge=ls,Age=gi;function Mge(n){return Age(n)&&Dge(n)}var g7=Mge,gS={exports:{}};function Rge(){return!1}var oK=Rge;const V1=Ie(oK);gS.exports;(function(n,e){var t=os,r=oK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Lge=ss,kge=h7,Nge=gi,Fge="[object Object]",$ge=Function.prototype,Vge=Object.prototype,sK=$ge.toString,jge=Vge.hasOwnProperty,zge=sK.call(Object);function Bge(n){if(!Nge(n)||Lge(n)!=Fge)return!1;var e=kge(n);if(e===null)return!0;var t=jge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==zge}var v7=Bge;const m7=Ie(v7);var Hge=ss,Uge=p7,Wge=gi,Gge="[object Arguments]",Yge="[object Array]",Kge="[object Boolean]",Zge="[object Date]",Xge="[object Error]",qge="[object Function]",Qge="[object Map]",Jge="[object Number]",eve="[object Object]",tve="[object RegExp]",nve="[object Set]",rve="[object String]",ave="[object WeakMap]",ive="[object ArrayBuffer]",ove="[object DataView]",sve="[object Float32Array]",lve="[object Float64Array]",uve="[object Int8Array]",cve="[object Int16Array]",dve="[object Int32Array]",fve="[object Uint8Array]",hve="[object Uint8ClampedArray]",pve="[object Uint16Array]",gve="[object Uint32Array]",yn={};yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=yn[pve]=yn[gve]=!0;yn[Gge]=yn[Yge]=yn[ive]=yn[Kge]=yn[ove]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=yn[rve]=yn[ave]=!1;function vve(n){return Wge(n)&&Uge(n.length)&&!!yn[Hge(n)]}var mve=vve;function yve(n){return function(e){return n(e)}}var Qf=yve,vS={exports:{}};vS.exports;(function(n,e){var t=LY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,bve=mve,_ve=Qf,VL=Hy,jL=VL&&VL.isTypedArray,Sve=jL?_ve(jL):bve,yw=Sve;function Cve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var lK=Cve,wve=d7,xve=Vy,Tve=Object.prototype,Eve=Tve.hasOwnProperty;function Ove(n,e,t){var r=n[e];(!(Eve.call(n,e)&&xve(r,t))||t===void 0&&!(e in n))&&wve(n,e,t)}var bw=Ove,Ive=bw,Pve=d7;function Dve(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Vme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Hme=Bme,Ume=$me,Wme=Hme,Gme=Wme(Ume),hK=Gme,Yme=Wy,Kme=fK,Zme=hK;function Xme(n,e){return Zme(Kme(n,e,Yme),n+"")}var Sw=Xme,qme=Vy,Qme=ls,Jme=_w,e1e=pi;function t1e(n,e,t){if(!e1e(t))return!1;var r=typeof e;return(r=="number"?Qme(t)&&Jme(e,t.length):r=="string"&&e in t)?qme(t[e],n):!1}var Cw=t1e,n1e=Sw,r1e=Cw;function a1e(n){return n1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&r1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?DK(s,e-1,t,r,a):Hbe(a,s):r||(a[a.length]=s)}return a}var C7=DK,Wbe=C7;function Gbe(n){var e=n==null?0:n.length;return e?Wbe(n,1):[]}var AK=Gbe;const Ybe=Ie(AK);var Kbe=AK,Zbe=fK,Xbe=hK;function qbe(n){return Xbe(Zbe(n,void 0,Kbe),n+"")}var MK=qbe,Qbe=Xf,Jbe=ww,e_e=PK,t_e=Vg,n_e=Jf,r_e=$be,a_e=MK,i_e=SK,o_e=1,s_e=2,l_e=4,u_e=a_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Qbe(e,function(i){return i=t_e(i,n),r||(r=i.length>1),i}),n_e(n,i_e(n),t),r&&(t=Jbe(t,o_e|s_e|l_e,r_e));for(var a=e.length;a--;)e_e(t,e[a]);return t}),c_e=u_e;const fr=Ie(c_e);function d_e(n){return n===void 0}var f_e=d_e;const Vt=Ie(f_e);var h_e="__lodash_hash_undefined__";function p_e(n){return this.__data__.set(n,h_e),this}var g_e=p_e;function v_e(n){return this.__data__.has(n)}var m_e=v_e,y_e=o7,b_e=g_e,__e=m_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new y_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&O_e?new w_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function It(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function $K(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Z2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function q2e(n){n.length>0&&Yy(n,n[n.length-1])}function Q2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function J2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function eSe(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function tSe(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function nSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Rt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),qc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),Qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),sr=this.getReverse(vu,Hi,z,Rt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":Qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":Qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const aSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Lf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),bSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=ySe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},_Se=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},SSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},CSe=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=bSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=_Se({chunks:i});return SSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return jK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. + The maximum length of an array is 4294967295. + Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const E7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=CSe(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},zK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function BK(){return document?document.activeElement:null}function HK(n){if(!It(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function wSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const xSe=x.createContext({}),Fr=xSe,TSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||TSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=ESe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ISe=OSe;var PSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=PSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},ASe=DSe,MSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class WK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}WK.defaultProps={motion:!0,replayKey:""};const ig=WK;var Sk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(It(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(ASe,null):x.createElement(ISe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(UK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||kSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new rSe(this.adapter),this.eventManager=new FK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=Sk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&It(t)){const a=K2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=Sk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&It(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return It(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>HK(t),getActiveElement:()=>BK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Lf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||NSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(RSe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(LSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:MSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var O7={exports:{}};const GK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};O7.exports=GK;O7.exports.default=GK;var FSe=O7.exports;const $Se=Ie(FSe);function Ht(){}const VSe=x.createContext(null),YK=VSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?zSe(s,function(d){return d.test(o)}):jSe(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function jSe(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function zSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function BSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var HSe={};function Hg(){return HSe}function ZK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function Ck(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var I7=6e4,P7=36e5,USe=1e3;function D7(n,e){qe(2,arguments);var t=Ck(n),r=Ck(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Rd(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function WSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function GSe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function XK(n,e){qe(2,arguments);var t=fn(e);return BSe(n,-t)}var YSe=864e5;function KSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/YSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function ZSe(n){qe(1,arguments);var e=qK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var XSe=6048e5;function QK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-ZSe(e).getTime();return Math.round(t/XSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function qSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=A7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var QSe=6048e5;function JK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-qSe(t,e).getTime();return Math.round(r/QSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=JSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eCe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=A7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=qK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=JK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=QK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=KSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return xk(o);case"XXXX":case"XX":return Ld(o);case"XXXXX":case"XXX":default:return Ld(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return xk(o);case"xxxx":case"xx":return Ld(o);case"xxxxx":case"xxx":default:return Ld(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wk(o,":");case"OOOO":default:return"GMT"+Ld(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wk(o,":");case"zzzz":default:return"GMT"+Ld(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function wk(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function xk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Ld(n,e)}function Ld(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const tCe=eCe;var Tk=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eZ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},nCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Tk(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Tk(a,t)).replace("{{time}}",eZ(i,t))},rCe={p:eZ,P:nCe};const EO=rCe;var aCe=["D","DD"],iCe=["YY","YYYY"];function tZ(n){return aCe.indexOf(n)!==-1}function nZ(n){return iCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},sCe=function(e,t,r){var a,i=oCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const lCe=sCe;var uCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fCe={date:$p({formats:uCe,defaultWidth:"full"}),time:$p({formats:cCe,defaultWidth:"full"}),dateTime:$p({formats:dCe,defaultWidth:"full"})};const hCe=fCe;var pCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gCe=function(e,t,r,a){return pCe[e]};const vCe=gCe;var mCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_Ce={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},SCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},CCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xCe={ordinalNumber:wCe,era:Ds({values:mCe,defaultWidth:"wide"}),quarter:Ds({values:yCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:bCe,defaultWidth:"wide"}),day:Ds({values:_Ce,defaultWidth:"wide"}),dayPeriod:Ds({values:SCe,defaultWidth:"wide",formattingValues:CCe,defaultFormattingWidth:"wide"})};const TCe=xCe;var ECe=/^(\d+)(th|st|nd|rd)?/i,OCe=/\d+/i,ICe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},PCe={any:[/^b/i,/^(a|c)/i]},DCe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ACe={any:[/1/i,/2/i,/3/i,/4/i]},MCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},RCe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},LCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},NCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$Ce={ordinalNumber:KK({matchPattern:ECe,parsePattern:OCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),day:As({matchPatterns:LCe,defaultMatchWidth:"wide",parsePatterns:kCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:NCe,defaultMatchWidth:"any",parsePatterns:FCe,defaultParseWidth:"any"})};const VCe=$Ce;var jCe={code:"en-US",formatDistance:lCe,formatLong:hCe,formatRelative:vCe,localize:TCe,match:VCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M7=jCe;var zCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HCe=/^'([^]*?)'?$/,UCe=/''/g,WCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=Hg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:M7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=ZK(I),A=XK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(BCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(zCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return GCe(k);var z=tCe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&nZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&tZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(WCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function GCe(n){var e=n.match(HCe);return e?e[1].replace(UCe,"'"):n}function YCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function rZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function KCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function ZCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function XCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function aZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function At(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function QCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function Mt(n){var e=QCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return JCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ewe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iZ(n){var e=ewe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Ik(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function uZ(n){return n%400===0||n%4===0&&n%100!==0}var iwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=lZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),owe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=A7(a,s);if(o.isTwoDigitYear){var u=lZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),swe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),dwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),fwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function hwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=JK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var pwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(hwe(a,o,s),s)}}]),t}(jt);function gwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=QK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var vwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(gwe(a,o))}}]),t}(jt),mwe=[31,28,31,30,31,30,31,31,30,31,30,31],ywe=[31,29,31,30,31,30,31,31,30,31,30,31],bwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=ywe[l]:i>=1&&i<=mwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function L7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=Hg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Cwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),wwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function xwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=xwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Ewe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Awe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Mwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Rwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Lwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),kwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new rwe],L=T.match(Bwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(zwe),k=[],N=Ok(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&nZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tZ(re)&&_S(re,T,n);var te=re[0],oe=jwe[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Gwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Ywe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Wwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=XK(G,ZK(G)),Q={},Z=Ok(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],YCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Ywe(n){return n.match(Hwe)[1].replace(Uwe,"'")}function Pk(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Dk(n,e){qe(2,arguments);var t=Pk(n),r=Pk(e);return t.getTime()===r.getTime()}function Kwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Qwe(n),i;if(a.date){var o=Jwe(a.date,r);i=exe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=txe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=nxe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Zwe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Xwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,qwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function Jwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function exe(n,e){if(e===null)return new Date(NaN);var t=n.match(Zwe);if(!t)return new Date(NaN);var r=!!t[4],a=Lv(t[1]),i=Lv(t[2])-1,o=Lv(t[3]),s=Lv(t[4]),l=Lv(t[5])-1;if(r)return sxe(e,s,l)?rxe(e,s,l):new Date(NaN);var u=new Date(0);return!ixe(e,i,o)||!oxe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Lv(n){return n?parseInt(n):1}function txe(n){var e=n.match(Xwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return lxe(t,r,a)?t*P7+r*I7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function nxe(n){if(n==="Z")return 0;var e=n.match(qwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return uxe(r,a)?t*(r*P7+a*I7):NaN}function rxe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var axe=[31,null,31,30,31,30,31,31,30,31,30,31];function dZ(n){return n%400===0||n%4===0&&n%100!==0}function ixe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(axe[e]||(dZ(n)?29:28))}function oxe(n,e){return e>=1&&e<=(dZ(n)?366:365)}function sxe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function lxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function uxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=rZ(o);return t.setMonth(r,Math.min(i,s)),t}function fZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function hZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function cxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function dxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function fxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var hxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},pxe=function(e,t,r){var a,i=hxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const gxe=pxe;var vxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},mxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},yxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bxe={date:$p({formats:vxe,defaultWidth:"full"}),time:$p({formats:mxe,defaultWidth:"full"}),dateTime:$p({formats:yxe,defaultWidth:"full"})};const _xe=bxe;function Ak(n,e,t){var r="eeee p";return fxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var Sxe={lastWeek:Ak,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ak,other:"PP p"},Cxe=function(e,t,r,a){var i=Sxe[e];return typeof i=="function"?i(t,r,a):i};const wxe=Cxe;var xxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Txe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Exe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Oxe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Ixe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Pxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Dxe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Axe={ordinalNumber:Dxe,era:Ds({values:xxe,defaultWidth:"wide"}),quarter:Ds({values:Txe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:Exe,defaultWidth:"wide"}),day:Ds({values:Oxe,defaultWidth:"wide"}),dayPeriod:Ds({values:Ixe,defaultWidth:"wide",formattingValues:Pxe,defaultFormattingWidth:"wide"})};const Mxe=Axe;var Rxe=/^(第\s*)?\d+(日|时|分|秒)?/i,Lxe=/\d+/i,kxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Nxe={any:[/^(前)/i,/^(公元)/i]},Fxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},$xe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Vxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},jxe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},zxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Bxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Hxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Uxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Wxe={ordinalNumber:KK({matchPattern:Rxe,parsePattern:Lxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),day:As({matchPatterns:zxe,defaultMatchWidth:"wide",parsePatterns:Bxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:Hxe,defaultMatchWidth:"any",parsePatterns:Uxe,defaultParseWidth:"any"})};const Gxe=Wxe;var Yxe={code:"zh-CN",formatDistance:gxe,formatLong:_xe,formatRelative:wxe,localize:Mxe,match:Gxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const k7=Yxe,Kxe={code:"zh-CN",dateFnsLocale:k7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Kxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(YK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Zxe="semi";var Xxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Zxe,type:l,size:u="default"}=n,c=Xxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});pZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(pZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_circle"),z1=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"alert_triangle"),Ow=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar"),gZ=nTe;function rTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const aTe=Qe(rTe,"calendar_clock"),iTe=aTe;function oTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const sTe=Qe(oTe,"caretdown"),lTe=sTe;function uTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const cTe=Qe(uTe,"caretup"),dTe=cTe;function fTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const hTe=Qe(fTe,"checkbox_indeterminate"),pTe=hTe;function gTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const vTe=Qe(gTe,"checkbox_tick"),mTe=vTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_down"),kf=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_left"),N7=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_right"),sg=wTe;function xTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const TTe=Qe(xTe,"chevron_up"),ETe=TTe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clear"),Gc=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const DTe=Qe(PTe,"clock"),vZ=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const MTe=Qe(ATe,"close"),Ky=MTe;function RTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const LTe=Qe(RTe,"copy"),kTe=LTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_left"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const VTe=Qe($Te,"double_chevron_right"),yZ=VTe;function jTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const zTe=Qe(jTe,"eye_closed_solid"),BTe=zTe;function HTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const UTe=Qe(HTe,"eye_opened"),WTe=UTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const YTe=Qe(GTe,"file"),IO=YTe;function KTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const ZTe=Qe(KTe,"filter"),XTe=ZTe;function qTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const QTe=Qe(qTe,"folder"),JTe=QTe;function e5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const t5e=Qe(e5e,"folder_open"),n5e=t5e;function r5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const a5e=Qe(r5e,"github_logo"),i5e=a5e;function o5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const s5e=Qe(o5e,"handle"),l5e=s5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const c5e=Qe(u5e,"help_circle"),J_=c5e;function d5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const f5e=Qe(d5e,"id_card"),h5e=f5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const g5e=Qe(p5e,"info_circle"),bZ=g5e;function v5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const m5e=Qe(v5e,"mark"),y5e=m5e;function b5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const _5e=Qe(b5e,"moon"),S5e=_5e;function C5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const w5e=Qe(C5e,"radio"),x5e=w5e;function T5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const E5e=Qe(T5e,"refresh"),O5e=E5e;function I5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const P5e=Qe(I5e,"search"),D5e=P5e;function A5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const M5e=Qe(A5e,"sidebar"),R5e=M5e;function L5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const k5e=Qe(L5e,"star"),N5e=k5e;function F5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const $5e=Qe(F5e,"sun"),V5e=$5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick"),lg=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tick_circle"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_down"),SZ=W5e;function G5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const Y5e=Qe(G5e,"tree_triangle_right"),K5e=Y5e;function Z5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const X5e=Qe(Z5e,"upload"),q5e=X5e,Q5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},F7="Enter",Rr=Q5e;function ha(n){return H(n,"key")===F7}const t5=gw.PREFIX;class $7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=$Se(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(kTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}$7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};$7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const J5e=$7,CZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},gf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=e4e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,CZ.ARROW),l=H(r,"borderOpacity",gf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",gf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",gf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};wZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const t4e=wZ;var n4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=n4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(t4e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(r4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(a4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:CZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function i4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const o4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=i4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},s4e=o4e;var xZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=f4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),TZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new w4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),OZ=typeof WeakMap<"u"?new WeakMap:new xZ,IZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=p4e.getInstance(),r=new x4e(e,t,this);OZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){IZ.prototype[n]=function(){var e;return(e=OZ.get(this))[n].apply(e,arguments)}});var T4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:IZ}();const Rk=T4e;class vf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Rk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Rk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}vf.propTypes={onResize:v.func,observeParent:v.bool};vf.defaultProps={onResize:()=>{},observeParent:!1};var E4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Ug extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=s4e(this.wrapperRef.current,e,String(a),s,O4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(J5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=E4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=I4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(XY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(vf,{onResize:this.onResize,observeParent:!0},e):e}}Ug.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Ug.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Ug,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var P4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new A4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Ug,Object.assign({component:"span"},e))}}j7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};j7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=XY;Zy.Text=Dw;Zy.Title=V7;Zy.Paragraph=Aw;Zy.Numeral=j7;const Nf=Zy,PZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},z7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:kg};var M4e=ss,R4e=gi,L4e="[object Number]";function k4e(n){return typeof n=="number"||R4e(n)&&M4e(n)==L4e}var DZ=k4e;const Rn=Ie(DZ);class N4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const F4e=N4e,$4e=`${q}-spin`,V4e={PREFIX:$4e},j4e={SIZE:["small","middle","large"]};class B7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},B7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const z4e=B7;var B4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=B4e(n,["id","className"]);let a=e;ct(a)&&(Lk++,a=Lk);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var H4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${td}-wrapper`},e?x.createElement("div",{className:`${td}-animate`,"x-semi-prop":"indicator"},e):x.createElement(AZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=H4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(td,a,{[`${td}-${o}`]:o,[`${td}-block`]:t,[`${td}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${td}-children`,style:i,"x-semi-prop":"children"},t))}}H7.propTypes={size:v.oneOf(j4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};H7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=H7,Mw={PREFIX:`${q}-input`},Yc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},U4e={};let W4e=class MZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},MZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===F7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const G4e=W4e;var Y4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new G4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Gc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(BTe,null):x.createElement(WTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=Y4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}U7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(X4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(K4e),className:v.string,style:v.object,validateStatus:v.oneOf(Z4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};U7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const q4e=x.forwardRef((n,e)=>x.createElement(U7,Object.assign({},n,{forwardRef:e}))),Ri=q4e;var Q4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:PZ.PREFIX_OPTION};const LZ=Rw,vb=PZ.PREFIX,J4e=z7.SIZE,eEe=z7.POSITION,tEe=z7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new F4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] + - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', + please notice that they will be removed in the next major version. + Please use 'componentProps' to retrieve these props instead. + - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Wg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(LZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(eEe),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(J4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(tEe),zIndex:v.number};Lw.Option=LZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const nEe=Lw,rEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class aEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var iEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new aEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=iEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(lEe),shape:v.oneOf(sEe),size:v.oneOf(oEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var uEe=4,cEe=.001,dEe=1e-7,fEe=10,Em=11,mb=1/(Em-1),hEe=typeof Float32Array=="function";function kZ(n,e){return 1-3*e+3*n}function NZ(n,e){return 3*e-6*n}function FZ(n){return 3*n}function OS(n,e,t){return((kZ(e,t)*n+NZ(e,t))*n+FZ(e))*n}function $Z(n,e,t){return 3*kZ(e,t)*n*n+2*NZ(e,t)*n+FZ(e)}function pEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>dEe&&++s=cEe?gEe(l,h,e,r):p===0?h:pEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(mEe);function Nk(n,e,t){return Math.min(Math.max(n,e),t)}function yEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Nk(n,1,10),r=Nk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Fk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=yEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class bEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function B1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function _Ee(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(B1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function $k(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(B1(e)){const r=Fk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},wEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(B1(n)){const r=Fk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const kv=()=>Date.now(),_u=1e3/60;let VZ=class extends bEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=xEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=SEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=kv();if(_Ee(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:W7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(OEe),type:v.oneOf(PEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(IEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};G7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);G7.elementType="Button";const Jt=G7;var MEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=MEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(REe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const jZ={PREFIX:`${q}-card`},LEe={SHADOWS:["hover","always"],TYPE:["grid"]};var kEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Gg extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=FEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Gg.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf($Ee),shape:v.oneOf(VEe)};Gg.defaultProps={prefixCls:Y7.PREFIX,size:"medium",shape:"circle"};const jEe=Nw("avatar")(Gg),zEe=Nw("image")(Gg),BEe=Nw("title")(Gg),HEe=Nw("button")(Gg);class K7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}K7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};K7.defaultProps={prefixCls:Y7.PREFIX,rows:4};var UEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===GEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=WEe.PREFIX;class Z7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):r7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===kd.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===kd.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===kd.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===kd.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===kd.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===kd.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}Z7.propTypes={wrap:v.bool,align:v.oneOf(kd.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};Z7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const BZ=Z7;var YEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(Nf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(BZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=YEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=NEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(LEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function KEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&g3e(n,e,t)>-1}var C3e=S3e;const Fs=Ie(C3e);var w3e=ww,x3e=1,T3e=4;function E3e(n){return w3e(n,x3e|T3e)}var O3e=E3e;const Ii=Ie(O3e);var I3e=bw,P3e=Jf,D3e=pK,A3e=ls,M3e=jy,R3e=Wc,L3e=Object.prototype,k3e=L3e.hasOwnProperty,N3e=D3e(function(n,e){if(M3e(e)||A3e(e)){P3e(e,R3e(e),n);return}for(var t in e)k3e.call(e,t)&&I3e(n,t,e[t])}),F3e=N3e;const $3e=Ie(F3e);var V3e=q7;function j3e(n,e){var t=n==null?0:n.length;return!!t&&V3e(n,e,0)>-1}var WZ=j3e;function z3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=K3e&&(i=Y3e,o=!1,e=new B3e(e));e:for(;++ae}var AOe=DOe,MOe=POe,ROe=AOe,LOe=Wy;function kOe(n){return n&&n.length?MOe(n,LOe,ROe):void 0}var NOe=kOe;const FOe=Ie(NOe);var l5=CK,$Oe=FY,VOe=T7,jOe=1/0,zOe=l5&&1/VOe(new l5([,-0]))[1]==jOe?function(n){return new l5(n)}:$Oe,BOe=zOe,HOe=w7,UOe=WZ,WOe=GZ,GOe=x7,YOe=BOe,KOe=T7,ZOe=200;function XOe(n,e,t){var r=-1,a=UOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=WOe;else if(i>=ZOe){var u=e?null:YOe(n);if(u)return KOe(u);o=!1,a=GOe,l=new HOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=ZZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function nIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?ZZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function rIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return nIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function Nd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function aIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Q7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),aIe(tIe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function iIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=iIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Q7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=FOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Bk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function Hk(n,e,t,r){const a=Nd(n,r,t);return new Set($l(a,e,!1))}function oIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function XZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function sIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function Uk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Q7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function QZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Q7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Wk(n,e){return[...n].filter(r=>r in e)}function JZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const eX={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},ur={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function lIe(n,e){return`${n}-${e}`}function uIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function cIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?lIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function tX(n){const e={};return cIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=ur.LEAF_ONLY_MERGE_TYPE:n?t=ur.AUTO_MERGE_VALUE_MERGE_TYPE:t=ur.NONE_MERGE_TYPE,t}class dIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=tX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;uIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=$3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===ur.LEAF_ONLY_MERGE_TYPE,m=p===ur.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return XZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var fIe=ss,hIe=gi,pIe="[object Boolean]";function gIe(n){return n===!0||n===!1||hIe(n)&&fIe(n)==pIe}var vIe=gIe;const nX=Ie(vIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},mIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class yIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const bIe=yIe,J7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(mTe,null):e?x.createElement(pTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=J7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const _Ie=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new bIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(_Ie,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=J7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Ff=e0;class eA extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},eA.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const SIe=eA;class tA extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new SIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||mIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Ff,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Ff,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(J7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}tA.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};tA.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const nA=tA;class RO extends Ff{}RO.Group=nA;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Zk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Xk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var OIe=150,IIe=function(e,t){return e};function rX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){CIe(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Jd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Jd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Jd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Xk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Zk():0:C=w.scrollHeight>w.clientHeight?Zk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Xk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?IIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var PIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},DIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},AIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?aX(e,t,i,0,r):MIe(e,t,Math.max(0,i),r)},aX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},MIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},RIe=rX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:qk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=qk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},kIe=LIe,Ut=eX.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===ur.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},kIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const iX={PREFIX:`${q}-tag`},Yg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var NIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:sX[0],color:oX[0],closable:!1,type:lX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(sX),color:v.oneOf(oX),type:v.oneOf(lX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(FIe),"aria-label":v.string};const $Ie={PREFIX:`${q}-tagInput`},Qk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},VIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(r7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=jIe(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const BIe=zIe;function HIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function rA(n){return"nodeType"in n}function ja(n){var e,t;return n?Kg(n)?n:rA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function aA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Kg(n)?!1:n instanceof ja(n).HTMLElement}function uX(n){return n instanceof ja(n).SVGElement}function Zg(n){return n?Kg(n)?n.document:rA(n)?aA(n)?n:t0(n)||uX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function H1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function cX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=cX(1),U1=cX(-1);function WIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function GIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(GIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return WIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Jk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function YIe(n){return n.matches(Jk)?n:n.querySelector(Jk)}const KIe={display:"none"};function ZIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:KIe},t)}function XIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function qIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const dX=D.createContext(null);function QIe(n){const e=D.useContext(dX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function JIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const ePe={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},tPe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function nPe(n){let{announcements:e=tPe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=ePe}=n;const{announce:i,announcement:o}=qIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),QIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(ZIe,{id:r,value:a.draggable}),x.createElement(XIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function rPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function fX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function aPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function hX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function iPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function eN(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function pX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function tN(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const oPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=tN(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=fX(tN(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(hX)},sPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=eN(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=eN(l),c=a.reduce((f,h,p)=>f+fX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(hX)};function lPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=lPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(iPe)};function cPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function gX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function dPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const fPe=dPe(1);function vX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function hPe(n,e,t){const r=vX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const pPe={ignoreTransform:!1};function Xg(n,e){e===void 0&&(e=pPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=hPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function nN(n){return Xg(n,{ignoreTransform:!0})}function gPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function vPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function mPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(aA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||uX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&mPe(a,i)&&t.push(a),vPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function mX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Kg(n)?n:rA(n)?aA(n)||n===Zg(n).scrollingElement?window:t0(n)?n:null:null}function yX(n){return Kg(n)?n.scrollX:n.scrollLeft}function bX(n){return Kg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:yX(n),y:bX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function _X(n){return!Bw||!n?!1:n===document.scrollingElement}function SX(n){const e={x:0,y:0},t=_X(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const yPe={x:.2,y:.2};function bPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=yPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=SX(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function _Pe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function CX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function SPe(n){return n.reduce((e,t)=>e+yX(t),0)}function CPe(n){return n.reduce((e,t)=>e+bX(t),0)}function wX(n,e){if(e===void 0&&(e=Xg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);mX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const wPe=[["x",["left","right"],SPe],["y",["top","bottom"],CPe]];let iA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=CX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of wPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Xm{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function xPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Zg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function rN(n){n.preventDefault()}function TPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const xX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},EPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class oA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Xm(Zg(t)),this.windowListeners=new Xm(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&wX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=xX,coordinateGetter:o=EPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=U1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=SX(g),T=_Pe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(U1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}oA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=xX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function aN(n){return!!(n&&"distance"in n)}function iN(n){return!!(n&&"delay"in n)}class sA{constructor(e,t,r){var a;r===void 0&&(r=xPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Zg(o),this.documentListeners=new Xm(this.document),this.listeners=new Xm(r),this.windowListeners=new Xm(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,rN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,rN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(iN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(aN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,TPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=U1(a,l);if(!r&&s){if(aN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return iN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const OPe={move:{name:"pointermove"},end:{name:"pointerup"}};class TX extends sA{constructor(e){const{event:t}=e,r=Zg(t.target);super(e,OPe,r)}}TX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const IPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class EX extends sA{constructor(e){super(e,IPe,Zg(e.event.target))}}EX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class OX extends sA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}OX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var qm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(qm||(qm={}));var W1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(W1||(W1={}));function PPe(n){let{acceleration:e,activator:t=qm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=W1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=APe({delta:d,disabled:!i}),[p,g]=UIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case qm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case qm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===W1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=bPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const DPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function APe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return DPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function MPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function RPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var G1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(G1||(G1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const oN=new Map;function LPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=H1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return oN;if(!y||y===oN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new iA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case G1.Always:return!1;case G1.BeforeDragging:return t;default:return!t}}}function lA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function kPe(n,e){return lA(n,e)}function NPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function FPe(n){return new iA(Xg(n),n)}function sN(n,e,t){e===void 0&&(e=FPe);const[r,a]=D.useReducer(s,null),i=NPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function $Pe(n){const e=lA(n);return gX(n,e)}const lN=[];function VPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==lN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):lN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function jPe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):CX(n):ts,[n,e])}function uN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?U1(n,t.current):ts}function zPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function BPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function IX(n){return D.useMemo(()=>n?gPe(n):null,[n])}const g5=[];function HPe(n,e){e===void 0&&(e=Xg);const[t]=n,r=IX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>_X(l)?r:new iA(e(l),l)):g5}}function PX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function UPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=PX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const WPe=[{sensor:TX,options:{}},{sensor:oA,options:{}}],GPe={current:{}},n2={draggable:{measure:nN},droppable:{measure:nN,strategy:G1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Xg}};class Qm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const YPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},DX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(DX),AX=D.createContext(YPe);function KPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qm}}}function ZPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Qm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Qm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Qm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function XPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=YIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function MX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function qPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function QPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=gX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=mX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const JPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=WPe,collisionDetection:d=uPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(ZPe,void 0,KPe),[m,y]=g,[b,_]=JIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:GPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=H1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=qPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=LPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=MPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=Qc(),re=kPe(se,Y.draggable.measure);QPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=sN(se,Y.draggable.measure,re),oe=sN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=UPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Rt=!!(Ce.nodeRef.current&&Ce.rect),$n=$Pe(Rt?null:te),Vn=IX(Je?ja(Je):null),on=VPe(w?We??se:null),wn=HPe(on),mi=MX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=jPe(on),mh=uN(vu),yh=uN(vu,[te]),fs=jp(mi,mh),qr=Ve?fPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=pX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Rt?mi:jp(mi,yh),ba=cPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:sr,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new sr({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Jc=L.current;if(Jc==null)return;const ut=E.get(Jc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Jc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Jc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(sr,zn)=>{const Bn=sr.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(sr,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(sr,jn))},[E,hl]),pl=RPe(c,mu);zPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:sr,collisions:zn,over:Bn}=pe.current;if(!jn||!sr)return;const pr={active:jn,activatorEvent:sr,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:sr,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:sr,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),PPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const qc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(dX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(AX.Provider,{value:qc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(XPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(nPe,{...s,hiddenTextDescribedById:U}));function Qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,sr=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:sr}:{enabled:sr}}}),eDe=D.createContext(null),cN="button",tDe="Droppable";function nDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(tDe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=cN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:eDe),[b,_]=PS(),[S,C]=PS(),w=BPe(o,e),T=H1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===cN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function RX(){return D.useContext(AX)}const rDe="Droppable",aDe={timeout:25};function iDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(rDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...aDe,...a},y=H1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=H1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function oDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const sDe={x:0,y:0,scaleX:1,scaleY:1};function lDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:DX},x.createElement(Yw.Provider,{value:sDe},e))}const uDe={position:"fixed",touchAction:"none"},cDe=n=>Uw(n)?"transform 250ms ease":void 0,dDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=cDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...uDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?aPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),fDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},hDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},pDe={duration:250,easing:"ease",keyframes:hDe,sideEffects:fDe({styles:{active:{opacity:"0"}}})};function gDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=PX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=vX(c);if(!d)return;const f=typeof e=="function"?e:vDe(e);return wX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function vDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...pDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let dN=0;function mDe(n){return D.useMemo(()=>{if(n!=null)return dN++,dN},[n])}const yDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=RX(),w=D.useContext(Yw),T=mDe(d==null?void 0:d.id),E=MX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=lA(f),I=gDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(lDe,null,x.createElement(oDe,{animation:I},d&&T?x.createElement(dDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function LX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function bDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function _De(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=LX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},kX="Sortable",NX=x.createContext({activeIndex:-1,containerId:kX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:uA,disabled:{draggable:!1,droppable:!1}});function CDe(n){let{children:e,id:t,items:r,strategy:a=uA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=RX(),d=r0(kX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!_De(h,y.current),_=m!==-1&&g===-1||b,S=SDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:bDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(NX.Provider,{value:C},e)}const wDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return LX(t,r,a).indexOf(e)},xDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},TDe={duration:200,easing:"ease"},FX="transform",EDe=Dc.Transition.toString({property:FX,duration:0,easing:"linear"}),ODe={roleDescription:"sortable"};function IDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Xg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function PDe(n){let{animateLayoutChanges:e=xDe,attributes:t,disabled:r,data:a,getNewIndex:i=wDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=TDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(NX),_=DDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=iDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=nDe({id:o,data:C,attributes:{...ODe,...t},disabled:_.draggable}),G=HIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=IDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return EDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:FX})}}function DDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const ADe=[wt.Down,wt.Right,wt.Up,wt.Left],MDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(ADe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=$X(d,f),b=RDe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:U1(S,_)}}}};function $X(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function RDe(n,e){return!RS(n)||!RS(e)||!$X(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(JPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:W1.ReversedTreeOrder}},x.createElement(CDe,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement($De,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(yDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function $De(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=PDe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var VDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(l5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new BIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return r7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Gc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(FDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:jDe,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=VDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}cA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Qk.SIZE_SET),validateStatus:v.oneOf(Qk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};cA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const dA=cA,pt=eX.PREFIX,zDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===ur.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===ur.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,ur.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===ur.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Wg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Gc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:zDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new dIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=tX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Ybe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=JZ(c));const C=MO(l,s)===ur.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===ur.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(dA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,ur.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(ur.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(ur.VALIDATE_STATUS),showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(kf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:ur.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const BDe=Kw;class HDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const UDe=HDe,fN={PREFIX:`${q}-collapsible`};class qg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=qg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new UDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${fN.PREFIX}-wrapper`,{[`${fN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}qg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};qg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};qg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const VX=qg;var WDe=PK;function GDe(n,e){return n==null?!0:WDe(n,e)}var YDe=GDe;const $O=Ie(YDe);var KDe=Xf,ZDe=mw,XDe=Tr,qDe=Lg,QDe=UY,JDe=qf,e6e=hw;function t6e(n){return XDe(n)?KDe(n,JDe):qDe(n)?[n]:ZDe(QDe(e6e(n)))}var n6e=t6e;const Y1=Ie(n6e),hN=n=>{const e=Y1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function r6e(n){if(oa(n)){const e=UZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function fA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||r6e(t))&&$O(n,e),fA(n,e.slice(0,e.length-1))}function a6e(n){return UZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=Y1(e);t=t.slice(0,t.length-1),fA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(hN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=Y1(e);a=a.slice(0,a.length-1),fA(n,a)}else!hN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function jX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const i6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},i6e),o6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:kg,POSITION_SET:gf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},o6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var s6e=ss,l6e=gi,u6e="[object Date]";function c6e(n){return l6e(n)&&s6e(n)==u6e}var d6e=c6e,f6e=d6e,h6e=Qf,pN=Hy,gN=pN&&pN.isDate,p6e=gN?h6e(gN):f6e,g6e=p6e;const vN=Ie(g6e);function Vl(n){return typeof n=="string"}function mN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return XCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return aZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return aZ(i,o)&&Kwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return D7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function v6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return v6e(n)&&yo(new Date(n))}const zX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},m6e=n=>zX;function Zu(n){return n&&zX[n]}const y6e=m6e,b6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},_6e=b6e,S6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=S6e;var jO={exports:{}},zO={exports:{}},BX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var Fn=BX.exports,BO={exports:{}},HO={exports:{}},HX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(HX);var UX=HX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var C6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var w6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var x6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(x6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var T6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var E6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var WX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(WX),a=t(hA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var O6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(hA),i=t(O6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var I6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=P6e;nh.setDefaultOptions=D6e;var GX={};function P6e(){return GX}function D6e(n){GX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var pA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var YX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(YX),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var A6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(pA),i=t(A6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var M6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var R6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(E6e),a=t(I6e),i=t(WX),o=t(M6e),s=t(YX),l=t(KX),u=t(R6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var L6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var k6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var ZX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=$6e;i0.isProtectedWeekYearToken=V6e;i0.throwProtectedError=j6e;var N6e=["D","DD"],F6e=["YY","YYYY"];function $6e(n){return N6e.indexOf(n)!==-1}function V6e(n){return F6e.indexOf(n)!==-1}function j6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var z6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var B6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(B6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var H6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var U6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var W6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var G6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var K6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Y6e),a=t(K6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Z6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(z6e),a=t(H6e),i=t(U6e),o=t(G6e),s=t(Z6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var X6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(X6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var q6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(w6e),a=t(T6e),i=t(il),o=t(L6e),s=t(k6e),l=t(ZX),u=i0,c=t(th),d=t(za),f=nh,h=t(q6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Rt=Ve[0];if(Rt==="p"||Rt==="P"){var $n=s.default[Rt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Rt=Ve[0];if(Rt==="'")return S(Ve);var $n=o.default[Rt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Rt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Rt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var Q6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var J6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var e7e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var XX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(e7e),r=a(XX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(J6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var t7e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var qX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(ZX),a=o(o0),i=o(qX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(Q6e),r=i(t7e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var QX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var n7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(n7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var JX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var eq=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(JX),r=i(QX),a=i(eq);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var r7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var a7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(JX),r=s(Zw),a=s(qX),i=s(o0),o=s(XX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var i7e=MI.exports,tq={format:QX,formatInTimeZone:r7e,getTimezoneOffset:a7e,toDate:Zw,utcToZonedTime:eq,zonedTimeToUtc:i7e};const o7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],yN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},s7e=/([\-\+]{1})(\d{2})\:(\d{2})/,nq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(s7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in yN){const r=yN[n];if(l7e(r))return r}const t=o7e.find(r=>r[0]===n);return t&&t[1][0]}},bN={};function l7e(n){if(bN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),bN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>tq.utcToZonedTime(n,nq(e),t),zp=(n,e,t)=>tq.zonedTimeToUtc(n,nq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=cZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class u7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Dk(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Dk(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function rq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const _N="Enter",c7e="Tab";let d7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===_N&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===_N&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===c7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=rq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function SN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function CN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var f7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new d7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Gc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(SN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(CN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(SN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(CN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=f7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(gZ,{"aria-hidden":!0}),U=x.createElement(iTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function aq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function h7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=rZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=ZCe(n),s=GSe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=h7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},g7e=p7e,wN={month:Rd,year:WSe},v7e={prevMonth:cxe,nextMonth:Ku,prevYear:dxe,nextYear:bS};class m7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Rd(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Rd(c,r.pickerDate))>0,f=Math.abs(Rd(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Rd(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Rd(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return wN[e]&&wN[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=v7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=fZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;D7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Rd(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||y6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=aq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const xN=Ge.NAVIGATION;class gA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:xN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(N7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${xN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(yZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}gA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};gA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const y7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=b7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const S7e=Ge.PREFIX;class vA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new _7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=mN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&mN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${S7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}vA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};vA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,weeksRowNum:0};const wb="time",m5="timeRange",C7e=" ~ ",w7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:C7e,DEFAULT_MULTIPLE_SEPARATOR:w7e,SIZE:Yc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:kg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},x7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var T7e=uK,E7e=NK,O7e=Qy,I7e=9007199254740991,y5=4294967295,P7e=Math.min;function D7e(n,e){if(n=O7e(n),n<1||n>I7e)return[];var t=y5,r=P7e(n,y5);e=E7e(e),n-=y5;for(var a=T7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var BAe=zAe,HAe=BAe,UAe=lq,WAe=HAe(UAe),GAe=WAe;const qs=Ie(GAe);var YAe=S7,KAe=Cw,TN=Qy;function ZAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&KAe(n,e,t)?(e=0,t=r):(e=e==null?0:TN(e),t=t===void 0?r:TN(t)),YAe(n,e,t)):[]}var XAe=ZAe;const o2=Ie(XAe);let qAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&It(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(It(e)&&It(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(It(e)&&It(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(It(e)&&It(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(It(t)&&It(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(It(t)&&It(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const QAe=(n,e,t)=>{const r=new VZ({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},JAe=QAe,EN=1e3/60,ON=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(It(r)&&It(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(It(r)&&It(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(It(r)&&It(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,It(r)&&It(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");K1(o,l=>{l.className=l.className&&l.className.replace(s," "),ON.test(l.className)&&(l.className="")}),r.className&&!ON.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=JAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,It(r)&&It(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new qAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},EN),this.debouncedSelect=n7((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},EN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(It(e)&&It(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(x7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class e9e extends ze{}var t9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/IN),10)*IN-8*cq)}}const r9e=n9e;class yA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new r9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(uq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}yA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};yA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=yA;class a9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=hZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const PN=`${q}-datepicker`;class bA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:_6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new a9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(fZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=hZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(uq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${PN}-yearmonth-header`,u=`${PN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(N7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}bA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};bA.defaultProps={disabledDate:V1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const dq=bA,yi=Ge.PREFIX;class _A extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=rq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new m7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(gA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(vA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&D7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(dq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(vZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}_A.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};_A.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:i9e}=Nf;class SA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(i9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}SA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};SA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const o9e=SA;function s9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var l9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(s9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(vN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];vN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(dq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(_A,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(o9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Wg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=l9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Z1.contextType=Fr;Z1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(gf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Z1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,disabledTime:V1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const u9e=jX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Z1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Z1),fq={PREFIX:`${q}-descriptions`},DN={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},c9e=x.createContext(null),CA=c9e;var d9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);am7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(CA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=CA;s0.propTypes={align:v.oneOf(DN.ALIGN_SET),row:v.bool,size:v.oneOf(DN.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const h9e=s0,p9e={PREFIX:`${q}-empty`};var g9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=g9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,nd,{[`${nd}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${nd}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${nd}-content`},o?x.createElement(Nf.Title,Object.assign({},m,{className:`${nd}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${nd}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${nd}-footer`,"x-semi-prop":"children"},l):null))}}hq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},RN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function v9e(n){return n!==null&&typeof n=="object"}function $f(n){return v9e(n)&&typeof n.then=="function"}class m9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);$f(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);$f(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class wA extends ze{constructor(e){super(Object.assign(Object.assign({},wA.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var y9e=YZ,b9e=Sw,_9e=g7,S9e=b9e(function(n,e){return _9e(n)?y9e(n,e):[]}),C9e=S9e;const w9e=Ie(C9e);class Jm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=w9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=Jm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!It(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=Jm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(Nf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new wA(this.adapter),this.dialogId=`dialog-${x9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var T9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=T9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},pq=E9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;O9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(pq,Object.assign({},a,{afterClose:o}))},P9e=x.forwardRef(I9e);let LN=0;function D9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function A9e(){const[n,e]=D9e();function t(r){return function(i){LN+=1;const o=x.createRef();let s;const l=x.createElement(P9e,{key:`semi-modal-${LN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(gq),success:t(vq),error:t(yq),warning:t(mq),confirm:t(bq)},x.createElement(x.Fragment,null,n)]}var M9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=M9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(UK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new m9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=wSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(RN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(RN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=A9e;ol.info=function(n){return l0(gq(n))};ol.success=function(n){return l0(vq(n))};ol.error=function(n){return l0(yq(n))};ol.warning=function(n){return l0(mq(n))};ol.confirm=function(n){return l0(bq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},kN={SPACING:4,NESTED_SPACING:2};class R9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&X2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&q2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class L9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&nSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=eSe(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=tSe(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":Q2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":J2e(this.menuItemNodes,r),Ra(e);break;default:Z2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const k9e=x.createContext({level:0}),hg=k9e;var N9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}xA.propTypes={children:v.node,className:v.string,style:v.object};xA.contextType=hg;const $9e=xA,rd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${rd}-item`]:!0,[`${rd}-item-disabled`]:t,[`${rd}-item-hover`]:d,[`${rd}-item-withTick`]:h,[`${rd}-item-${o}`]:o,[`${rd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${rd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const V9e=d0,j9e=c0.PREFIX,_q=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${j9e}-divider`,t),style:e})};_q.propTypes={style:v.object,className:v.string};const z9e=_q,NN=c0.PREFIX;class TA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${NN}-title`]:!0,[`${NN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}TA.propTypes={children:v.node,className:v.string,style:v.object};TA.contextType=hg;const B9e=TA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new R9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:kN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=kN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=$9e;Di.Item=V9e;Di.Divider=z9e;Di.Title=B9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(H9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(U9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,Sq={PREFIX:`${q}`};var W9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);azK($N[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Cq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:Sq.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var G9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Cq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:Sq.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},Y9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},K9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),wq=K9e;var Z9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),q9e=Y9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=X9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(VN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>zK(VN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Z9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(q9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=wq;f0.elementType="Layout.Sider";const Q9e=f0;var xq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=xq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const e8e=EA("Header")(h0),t8e=EA("Footer")(h0),n8e=EA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=xq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(wq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=e8e;jl.Footer=t8e;jl.Content=n8e;jl.Sider=Q9e;const tu={PREFIX:`${q}-form`},Om={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var jN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}OA.propTypes={className:v.string,children:v.node,size:v.oneOf(r8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};OA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const zN={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},BN=n=>{Object.keys(zN).forEach(e=>{n.style.setProperty(e,zN[e],"important")})},HN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function a8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),BN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),BN(bi),bi.value=e;let l=HN(bi,n);bi.value="x";const u=HN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const i8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],o8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,i8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},s8e=o8e;class IA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},IA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=s8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=a8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var l8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new IA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Gc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=l8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}PA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};PA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const u8e=x.forwardRef((n,e)=>x.createElement(PA,Object.assign({},n,{forwardRef:e}))),c8e=u8e;var d8e=DZ;function f8e(n){return d8e(n)&&n!=+n}var h8e=f8e;const p8e=Ie(h8e),g8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},v8e=g8e,m8e=Object.assign({},Mw),ef=Object.assign(Object.assign({},U4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),y8e=Object.assign({},Yc);function b8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function UN(n,e){return b8e(n,-e)}class _8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||ef.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||ef.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===ef.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(UN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(UN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const S8e=_8e;var C8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(ETe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(kf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new S8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!v8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else p8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=C8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:m8e.PREFIX,pressInterval:ef.DEFAULT_PRESS_TIMEOUT,pressTimeout:ef.DEFAULT_PRESS_TIMEOUT,shiftStep:ef.DEFAULT_SHIFT_STEP,size:y8e.DEFAULT_SIZE,step:ef.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const Tq=jX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),WN="horizontal",GN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[GN,WN],MODE_VERTICAL:GN,MODE_HORIZONTAL:WN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},YN={open:"chevron_up",closed:"chevron_down"};let w8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},YN):this.toggleIcon=Object.assign({},YN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new w8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const KN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},ZN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class x8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?KN(i,t):ZN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?KN(this._adapter.getOpenKeys(),r):ZN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class T8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const E8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),Jg=E8e,Sa=`${Wo.PREFIX}-item`;class ev extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new T8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}ev.contextType=Jg;ev.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};ev.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new x8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(kf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(kf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement(VX,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(ev,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(Jg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=Jg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function O8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(R5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(O8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=Jg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=Jg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var I8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function qN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:P8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return P8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:XN(this,"selectedKeys"),removeSelectedKeys:qN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:XN(this,"openKeys"),removeOpenKeys:qN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(ev,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=I8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(Jg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=ev;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,D8e={PREFIX:q+"-overflow-list"},QN={COLLAPSE:"collapse",SCROLL:"scroll"},JN={START:"start",END:"end"},A8e={NONE:0,GROW:1,SHRINK:2},mf={BOUNDARY_SET:Object.values(JN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(QN),MODE_MAP:QN,BOUNDARY_MAP:JN,OVERFLOW_DIR:A8e},eF={MINIMUM_HTML_ELEMENT_WIDTH:4};class DA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&It(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}DA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};DA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const M8e=mf.BOUNDARY_MAP;class R8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===M8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const L8e=R8e,Fv=D8e.PREFIX,x5=mf.BOUNDARY_MAP,tF=mf.OVERFLOW_DIR,$v=mf.MODE_MAP;class AA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===$v.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(vf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${Fv}-overflow`},g))}const h=l===$v.SCROLL?[f[0],x.createElement("div",{className:$(a,`${Fv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${Fv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(vf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${Fv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${Fv}`,r),style:Object.assign(Object.assign({},o),l===$v.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:tF.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new L8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=tF.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===$v.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/eF.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/eF.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===$v.SCROLL?x.createElement(DA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(vf,{onResize:this.resize},e)}}AA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};AA.propTypes={className:v.string,collapseFrom:v.oneOf(mf.BOUNDARY_SET),direction:v.oneOf(mf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(mf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const k8e=AA,N8e={PREFIX:`${q}-page`},MA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class F8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=MA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const $8e=F8e;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=nF(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=nF(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===F7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. + Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const RA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:kg},Eq={LIST_HEIGHT:270},Vv=iX.PREFIX,Oq=Yg.TAG_SIZE,j8e=Yg.AVATAR_SHAPE;class X1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Vv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Vv}-group`]:!0,[`${Vv}-group-max`]:r,[`${Vv}-group-small`]:a==="small",[`${Vv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}X1.defaultProps={style:{},className:"",size:Oq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};X1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Oq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf(j8e)};var z8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},B8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=rF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=z8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,rF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},H8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Iq=H8e;var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:RA.PREFIX_OPTION};const l2=nx,U8e=RA.PREFIX_GROUP;class LA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[U8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}LA.isSelectOptionGroup=!0;LA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Pq=LA;var W8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:G8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new FK,this.foundation=new V8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=B8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>HK(i),getActiveElement:()=>BK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Lf(),this.selectID=this.props.id||Lf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Pq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Eq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Iq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(BZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(k8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}tv.contextType=Fr;tv.Option=l2;tv.OptGroup=Pq;tv.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};tv.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Eq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(kf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=tv;var iF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new $8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(N7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(Y8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(Tq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=iF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=iF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:MA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Dq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},K8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Z8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);$f(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);$f(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var X8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Z8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=X8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Dq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}nv.contextType=Fr;nv.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};nv.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Dq.PREFIX,zIndex:K8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const q8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function Q8e(n,e,t){try{const r=J8e(n,e,t);if(r.length!==0)return r}catch{return}}function J8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?eMe({startColor:jv(o.color),endColor:jv(i.color),size:i.percent-o.percent-1},e-o.percent-1):jv(o.color)}}function eMe(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},oF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var sF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=sF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=Q8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=sF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}kA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};kA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const lF=kA,Aq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},tMe={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class rMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class aMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const iMe=x.createContext(null),NA=iMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new aMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Aq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(x5e,null):null))}}ax.contextType=NA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const oMe=ax;var sMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new rMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=sMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Aq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(oMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=NA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const q1=v0;var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new nMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=lMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||tMe.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(q1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(q1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(NA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}FA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};FA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Mq=FA;class uMe extends q1{}uMe.Group=Mq;const u2={PREFIX:`${q}-rating`},Rq={SIZE_SET:["default","small"]};class $A extends ze{constructor(e){super(Object.assign(Object.assign({},$A.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class VA extends ze{constructor(e){super(Object.assign(Object.assign({},VA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Lq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new VA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(N5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Lq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Lq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new $A(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=cMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},dMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),uF=dMe;class jA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},jA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=uF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=uF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var fMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new jA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=hMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=fMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}zA.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};zA.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class pMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},gMe={SIZE_MAP:["default","small","large"]};var vMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new pMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=vMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}BA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(gMe.SIZE_MAP),uncheckedText:v.node,id:v.string};BA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const kq=BA;var mMe=C7,yMe=1/0;function bMe(n){var e=n==null?0:n.length;return e?mMe(n,yMe):[]}var _Me=bMe;const SMe=Ie(_Me);var CMe=Tw;function wMe(n,e){var t;return CMe(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var xMe=wMe,TMe=RK,EMe=Qg,OMe=xMe,IMe=Tr,PMe=Cw;function DMe(n,e,t){var r=IMe(n)?TMe:OMe;return t&&PMe(n,e,t)&&(e=void 0),r(n,EMe(e))}var AMe=DMe;const c2=Ie(AMe);var MMe=Tw;function RMe(n,e){var t=[];return MMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var LMe=RMe,kMe=vK,NMe=LMe,FMe=Qg,$Me=Tr;function VMe(n,e){var t=$Me(n)?kMe:NMe;return t(n,FMe(e))}var jMe=VMe;const pg=Ie(jMe);var zMe=xw;function BMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?zMe(n,e,void 0,t):!!r}var HMe=BMe;const UMe=Ie(HMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,HA=0,UA=16,WA=16,GA=12,YA=12,KA=8,ZA=8,ox=20,cF=ox+ah+HA+UA+WA,WMe=UA+WA+ah,dF=ox+ah+HA+GA+YA,GMe=GA+YA+ah,fF=ox+ah+HA+ZA+KA,YMe=KA+ZA+ah,lr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:UA,DEFAULT_CELL_PADDING_BOTTOM:WA,DEFAULT_CELL_MIDDLE_PADDING_TOP:GA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:YA,DEFAULT_CELL_SMALL_PADDING_TOP:KA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:ZA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:WMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:GMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:YMe};class KMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function XMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Fq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function qMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function QMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function XA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function JMe(n,e){return e!==null&&n.has(e)}function eRe(n,e){return e!==null&&n.has(e)}function pF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function tRe(n,e){return e===void 0&&(e="children"),H(n,e)}function $q(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function nRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(iRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function rRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function jq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function aRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function zq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=zq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function iRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new Nq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function oRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function Bq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function qA(n){return n===!0||H(n,"showTitle",!0)}class sRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const lRe=sRe;function uRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&gF.call(s,l,1),gF.call(n,l,1);return n}var yRe=mRe,bRe=yRe;function _Re(n,e){return n&&n.length&&e&&e.length?bRe(n,e):n}var SRe=_Re,CRe=Sw,wRe=SRe,xRe=CRe(wRe),TRe=xRe;const ERe=Ie(TRe);function ORe(n){return new Set(n)}function IRe(n,e){if(n===e&&(e=ORe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function vF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=IRe(t,r);return Array.from(a)}return n}function PRe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Jd(t,Ke),this.memoizedFilterColumns=Jd(XA),this.memoizedFlattenFnsColumns=Jd(Bp),this.memoizedPagination=Jd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&j1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&j1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&ERe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(PRe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=lr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:lr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=vF(o,[...s,...r]),u=[...o]}else a=vF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=jq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const mF=$S,Hq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Hq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const DRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=DRe,ARe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},MRe=ARe;class RRe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new RRe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Ff,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class QA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}QA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};QA.defaultProps={prefixCls:pa.PREFIX};function Uq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Ff,{checked:m},y):x.createElement(q1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Uq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function LRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(XTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Uq(u,l),o}class JA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(dTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(lTe,{size:o}))))}}JA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};JA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function e9(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(SZ,{size:"small"}):x.createElement(K5e,{size:"small"}):u=e&&!l?x.createElement(kf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}e9.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};e9.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var kRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(K1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=Vq(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=K1(t,(y,b)=>{const{column:_}=y,S=kRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=Bq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function NRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return qA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class t9 extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=NRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}t9.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};t9.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Wq=x.forwardRef((n,e)=>x.createElement(t9,Object.assign({},n,{forwardedRef:e})));class n9 extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Wq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}n9.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};n9.defaultProps={handleBodyScroll:B};const FRe=x.forwardRef((n,e)=>x.createElement(n9,Object.assign({},n,{forwardedRef:e})));var $Re=sq,VRe=$Re("length"),jRe=VRe,zRe="\\ud800-\\udfff",BRe="\\u0300-\\u036f",HRe="\\ufe20-\\ufe2f",URe="\\u20d0-\\u20ff",WRe=BRe+HRe+URe,GRe="\\ufe0e\\ufe0f",YRe="\\u200d",KRe=RegExp("["+YRe+zRe+WRe+GRe+"]");function ZRe(n){return KRe.test(n)}var r9=ZRe,Gq="\\ud800-\\udfff",XRe="\\u0300-\\u036f",qRe="\\ufe20-\\ufe2f",QRe="\\u20d0-\\u20ff",JRe=XRe+qRe+QRe,eLe="\\ufe0e\\ufe0f",tLe="["+Gq+"]",zI="["+JRe+"]",BI="\\ud83c[\\udffb-\\udfff]",nLe="(?:"+zI+"|"+BI+")",Yq="[^"+Gq+"]",Kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Zq="[\\ud800-\\udbff][\\udc00-\\udfff]",rLe="\\u200d",Xq=nLe+"?",qq="["+eLe+"]?",aLe="(?:"+rLe+"(?:"+[Yq,Kq,Zq].join("|")+")"+qq+Xq+")*",iLe=qq+Xq+aLe,oLe="(?:"+[Yq+zI+"?",zI,Kq,Zq,tLe].join("|")+")",yF=RegExp(BI+"(?="+BI+")|"+oLe+iLe,"g");function sLe(n){for(var e=yF.lastIndex=0;yF.test(n);)++e;return e}var lLe=sLe,uLe=jRe,cLe=r9,dLe=lLe;function fLe(n){return cLe(n)?dLe(n):uLe(n)}var hLe=fLe,pLe=y7,gLe=Bg,vLe=ls,mLe=c7,yLe=hLe,bLe="[object Map]",_Le="[object Set]";function SLe(n){if(n==null)return 0;if(vLe(n))return mLe(n)?yLe(n):n.length;var e=gLe(n);return e==bLe||e==_Le?n.size:pLe(n).length}var CLe=SLe;const Ob=Ie(CLe);var wLe=X7,xLe=Qg,TLe=Qy,ELe=Math.max,OLe=Math.min;function ILe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=TLe(t),a=t<0?ELe(r+a,0):OLe(a,r-1)),wLe(n,xLe(e),a,!0)}var PLe=ILe;const DLe=Ie(PLe);class ALe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=rRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&j1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=DLe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=tRe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:$q(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var MLe=ww,RLe=4;function LLe(n){return MLe(n,RLe)}var kLe=LLe;const NLe=Ie(kLe);let O5,I5;const bF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function FLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(bF).forEach(a=>{t.style[a]=bF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function Qq(n){return typeof n=="number"?n-lr.DEFAULT_CELL_PADDING_LEFT-lr.DEFAULT_CELL_PADDING_RIGHT-lr.DEFAULT_CELL_BORDER_WIDTH_LEFT-lr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-FLe("vertical"):void 0}function _F(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const e1=new Nq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:NLe;return K1(e,o=>{o=Object.assign({},o);const s=hF(o,t),l=s!=null&&qs(n,u=>hF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function $Le(){return!0}var VLe=$Le;const jLe=Ie(VLe);function zLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new HLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=QMe(r),o=Fq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=Bq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),SF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?Qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(qA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;SF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}Q1.contextType=ih;Q1.defaultProps={indent:0,indentSize:lr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};Q1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var CF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new BLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=CF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!zLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(XMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Fq(O)&&!T)w.push(x.createElement(Q1,{key:I,colIndex:I,isSection:d}));else if(!qMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(Q1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=CF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:jLe,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var ULe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?Qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=WLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=XA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const wF=cx;var xF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=nRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=xF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=xF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||e1.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(RIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(wF.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(wF,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>pF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:$q(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=pF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:j1(w)||ke(T)||oRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Wq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},j1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new ALe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:JMe(c,g),disabled:eRe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}a9.contextType=ih;a9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const GLe=x.forwardRef(function(e,t){return x.createElement(a9,Object.assign({},e,{forwardedRef:t}))});var YLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=jq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",lr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ZMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?SMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&e1.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(e9,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=qA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(JA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(LRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(QA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(FRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(GLe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new mF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=mF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=m7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:_F(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new lRe({hoveredRowKey:null}),this.debouncedWindowResize=n7(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&e1.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=zq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:_F(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=YLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(MRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Hq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:lr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const i9=dx;var KLe=S7;function ZLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:KLe(n,e,t)}var XLe=ZLe,qLe=ss,QLe=gi,JLe="[object RegExp]";function eke(n){return QLe(n)&&qLe(n)==JLe}var tke=eke,nke=tke,rke=Qf,TF=Hy,EF=TF&&TF.isRegExp,ake=EF?rke(EF):nke,ike=ake;function oke(n){return n.split("")}var ske=oke,Jq="\\ud800-\\udfff",lke="\\u0300-\\u036f",uke="\\ufe20-\\ufe2f",cke="\\u20d0-\\u20ff",dke=lke+uke+cke,fke="\\ufe0e\\ufe0f",hke="["+Jq+"]",UI="["+dke+"]",WI="\\ud83c[\\udffb-\\udfff]",pke="(?:"+UI+"|"+WI+")",eQ="[^"+Jq+"]",tQ="(?:\\ud83c[\\udde6-\\uddff]){2}",nQ="[\\ud800-\\udbff][\\udc00-\\udfff]",gke="\\u200d",rQ=pke+"?",aQ="["+fke+"]?",vke="(?:"+gke+"(?:"+[eQ,tQ,nQ].join("|")+")"+aQ+rQ+")*",mke=aQ+rQ+vke,yke="(?:"+[eQ+UI+"?",UI,tQ,nQ,hke].join("|")+")",bke=RegExp(WI+"(?="+WI+")|"+yke+mke,"g");function _ke(n){return n.match(bke)||[]}var Ske=_ke,Cke=ske,wke=r9,xke=Ske;function Tke(n){return wke(n)?xke(n):Cke(n)}var Eke=Tke,Oke=GY,Ike=XLe,Pke=r9,Dke=Cw,Ake=ike,Mke=Eke,Rke=hw,Lke=4294967295;function kke(n,e,t){return t&&typeof t!="number"&&Dke(n,e,t)&&(e=t=void 0),t=t===void 0?Lke:t>>>0,t?(n=Rke(n),n&&(typeof e=="string"||e!=null&&!Ake(e))&&(e=Oke(e),!e&&Pke(n))?Ike(Mke(n),0,t):n.split(e,t)):[]}var Nke=kke;const t1=Ie(Nke);function Fke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function $ke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var o9={exports:{}},m0={},fx={exports:{}},iQ={};function oQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function oNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function sNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&dQ(n.body,"react-draggable-transparent-selection")}function lNe(n){if(n)try{if(n.body&&fQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function dQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function fQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=dNe;ll.canDragY=fNe;ll.createCoreData=pNe;ll.createDraggableData=gNe;ll.getBoundPosition=uNe;ll.getControlPosition=hNe;ll.snapToGrid=cNe;var Ci=sl,Tp=Zn;function uNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:vNe(r);const a=l9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function cNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function dNe(n){return n.props.axis==="both"||n.props.axis==="x"}function fNe(n){return n.props.axis==="both"||n.props.axis==="y"}function hNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=l9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function pNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=l9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function gNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function vNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function l9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=mNe;function mNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=bNe(D),Wa=u9($y),yNe=u9(Ti),ra=Zn,wu=ll,A5=sl,zv=u9(px);function u9(n){return n&&n.__esModule?n:{default:n}}function hQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(hQ=function(r){return r?t:e})(n)}function bNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=hQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=_Ne(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _Ne(n){var e=SNe(n,"string");return typeof e=="symbol"?e:String(e)}function SNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,zv.default)("DraggableCore: handleDragStart: %j",l),(0,zv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,zv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,zv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,zv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:yNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c(jke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(iQ);const{default:pQ,DraggableCore:CNe}=iQ;fx.exports=pQ;fx.exports.default=pQ;fx.exports.DraggableCore=CNe;var wNe=fx.exports,c9={};c9.__esModule=!0;c9.cloneElement=PNe;var xNe=TNe(D);function TNe(n){return n&&n.__esModule?n:{default:n}}function PF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function DF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function AF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return Bv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return Bv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=FNe(i,kNe);return(0,RNe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=Bv.createRef();return Bv.createElement(MNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(Bv.Component);m0.default=d9;d9.propTypes=LNe.resizableProps;d9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=GNe(D),BNe=vQ($y),HNe=vQ(m0),UNe=y0,WNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vQ(n){return n&&n.__esModule?n:{default:n}}function mQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(mQ=function(a){return a?t:e})(n)}function GNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=mQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function qNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var yQ=function(n){qNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(QNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const tFe=eFe;var nFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=nFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:lr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",lr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=aRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:tFe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Fke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:$ke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(i9,Object.assign({},i,{columns:w,components:g,ref:e}))},aFe=x.forwardRef(rFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(aFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(i9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},i9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=cZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;return Lt(n,e,{locale:t})},iFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},oFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},sFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],lFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=KCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=t1(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!lFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?t1(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=t1(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const cFe=uFe;class dFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const fFe=dFe;var hFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new fFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=hFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(vZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}f9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};f9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const pFe=f9,RF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},gFe={},vFe=[v.string,v.number,v.instanceOf(Date)],LF=v.oneOfType([...vFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new cFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=mFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Wg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(pFe,Object.assign({},re)))))}}rv.contextType=Fr;rv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:LF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:LF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(RF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},RF),{inputStyle:v.object,preventScroll:v.bool});rv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},gFe);class h9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(rv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}h9.propTypes=rv.propTypes;h9.defaultProps=rv.defaultProps;class p9 extends ze{constructor(e){super(Object.assign(Object.assign({},p9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},yFe={duration:3};class g9 extends ze{constructor(e){super(Object.assign(Object.assign({},g9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new g9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(_Z,null),info:x.createElement(bZ,null),error:x.createElement(z1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:yFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const bQ=yx;var bFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=bFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(bQ,Object.assign({},r,{close:o})):null},SFe=x.forwardRef(_Fe),Hv={motion:!0,zIndex:1010,duration:3};function CFe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function wFe(){const[n,e]=CFe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(SFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const xFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new p9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(bQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class TFe{static create(e){const t=xFe();return t.useToast=wFe,e&&t.config(e),t}}const Es=TFe.create(),_Q={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function EFe(n){return jK(n,e=>{if(m7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const OFe=_Q.PREFIX;class v9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(vf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${OFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}v9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};v9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const IFe=x.createContext(null),m9=IFe;var PFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?E7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=n7(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(SZ,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Ff,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(n5e,{className:`${rn}-item-icon`}):x.createElement(JTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=PFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=m9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var DFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement(VX,Object.assign({},r,{isOpen:a}),t)}const kF=n=>n.key;class SQ extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=kF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=kF(l[0]);return x.createElement(AFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}SQ.contextType=m9;const CQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:kg};class MFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return sIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return XZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?Uk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?Uk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var RFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(X1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Gc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=RFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Wg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(dA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(D5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(SQ,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(v9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Iq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(m9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(nA,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:LFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new MFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=rIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Bk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=oIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Bk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=Hk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=Hk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=Nd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Wk(t.selectedKeys,u));else{let m;if(o("value")?m=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=Nd(Su(e.value,l,i)||[],c,g):m=Wk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=JZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?EFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(kf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const kFe=bx,NF=`${q}-upload`,FF="picture",$F="list",NFe=.95,wQ={PREFIX:NF,LIST:`${NF}-list`},VF="auto",jF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:FF,FILE_LIST_DEFAULT:$F,LIST_TYPE:[FF,$F],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:VF,TRIGGER_CUSTOM:jF,UPLOAD_TRIGGER:[VF,jF],VALIDATE_STATUS:kg,PROMPT_POSITION:["left","right","bottom"]},FFe={PROGRESS_COEFFICIENT:NFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function $Fe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function VFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function jFe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield VFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var zFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:zF,FILE_STATUS_SUCCESS:BFe,FILE_STATUS_UPLOAD_FAIL:HFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:BF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:UFe,TRIGGER_AUTO:Ab}=_t;class WFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?zF:BF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===BF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&$f(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*FFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=zF,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=BFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=HFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(UFe)}handleDirectoryDrop(e){return zFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield jFe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return $Fe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const GFe=WFe;class YFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const KFe=YFe,un=wQ.PREFIX,ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},XFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class y9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new KFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(z1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(ZFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(O5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(XFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Gc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(lF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(qFe,null),className:_})))),S?x.createElement(lF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}y9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};y9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const xQ=y9;var QFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(xQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(q5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new GFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=QFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=xQ;const JFe=_x;class b9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(YK.Provider,{value:t},e)}}b9.propTypes={locale:v.object,children:v.node};b9.defaultProps={locale:OO};function tf(){return tf=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return t$e()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&J1(u,o.prototype),u},g2.apply(null,arguments)}function n$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!n$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),J1(a,r)},JI(n)}var r$e=/%[sdj%]/g,a$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function i$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||i$e(e)&&typeof n=="string"&&!n)}function o$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function HF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Im={integer:function(e){return Im.number(e)&&parseInt(e,10)===e},float:function(e){return Im.number(e)&&!Im.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Im.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function c$e(n,e,t,r,a){if(n.required&&e===void 0){TQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Im[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function d$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function f$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function h$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:TQ,whitespace:u$e,type:c$e,range:d$e,enum:f$e,pattern:h$e};function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function S$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var w$e="enum";function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[w$e](n,e,r,i,a)}t(i)}function T$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function O$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function I$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var n1={string:p$e,method:g$e,number:v$e,boolean:m$e,regexp:y$e,integer:b$e,float:_$e,array:S$e,object:C$e,enum:x$e,pattern:T$e,date:E$e,url:j5,hex:j5,email:j5,required:O$e,any:I$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var _9=tP();function _c(n){this.rules=null,this._messages=_9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=GF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function M$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function nf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>nf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function R$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Om.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function L$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function k$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function N$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=P$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=M$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class F$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)$f(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=Y1(i),s=Y1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);nf(i)||(t=!1)}):t=!!a6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;LL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);LL(r,t)}}}const S9=x.createContext({});S9.displayName="FormState";const EQ=x.createContext({});EQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const $$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(z1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(z1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var V$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;V$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Uv}-field`]:!0,[`${Uv}-slot`]:!0},u),g=$({[`${Uv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Uv}-field-main`]:!0,[`${Uv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},z$e=j$e,YF=tu.PREFIX;class OQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[YF+"-section"]:!0},t),o=YF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}OQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function IQ(){return D.useContext(S9)}function B$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function H$e(){return D.useContext($$e)}var U$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=IQ(),r=e.map(a=>Ea(t.errors,a));return nf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class PQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=U$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(OA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(W$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}PQ.contextType=b0;const G$e=PQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=N$e(r),{options:G,shouldInject:Y}=k$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));IQ();const Q=B$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=L$e(L,Z.stopValidateWithError,!1),pe=R$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=H$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Rt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),nf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Rt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=A$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let ed=ml.map(xv=>xv.message);ed.length===1&&(ed=ed[0]),ba(ed,tn),nf(ed)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},qc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):$f(sn)?sn.then(vn=>{Hi.current===nn&&(nf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):nf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?qc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},Qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:Qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let xv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=xv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let xv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},xv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),ed=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?ed:x.createElement(x.Fragment,null,ml,G0))},Jc=[...Object.values(sr),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Jc]):Ha()};return t=D.forwardRef(t),t.displayName=D$e(n),t}const Y$e=$r(Ri,{maintainCursor:!0}),K$e=$r(Tq,{maintainCursor:!0}),Z$e=$r(c8e,{maintainCursor:!0}),C9=$r(g0);C9.Option=g0.Option;C9.OptGroup=g0.OptGroup;const X$e=$r(nA),q$e=$r(Ff,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(Mq,{valuePath:"target.value"}),J$e=$r(q1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),eVe=$r(u9e),tVe=$r(kq,{valueKey:"checked"}),nVe=$r(zA),rVe=$r(h9),aVe=$r(kFe),iVe=$r(BDe),oVe=$r(ix),sVe=$r(nEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),lVe=$r(JFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),uVe=$r(dA);var cVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!bk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!bk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new F$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=cVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(EQ.Provider,{value:this.formApi},x.createElement(S9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Om.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Om.LAYOUT),labelPosition:v.oneOf(Om.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Om.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=Y$e;gn.TextArea=Z$e;gn.InputNumber=K$e;gn.Select=C9;gn.Checkbox=q$e;gn.CheckboxGroup=X$e;gn.Radio=J$e;gn.RadioGroup=Q$e;gn.DatePicker=eVe;gn.TimePicker=rVe;gn.Switch=tVe;gn.Slider=nVe;gn.TreeSelect=aVe;gn.Cascader=iVe;gn.Rating=oVe;gn.AutoComplete=sVe;gn.Upload=lVe;gn.TagInput=uVe;gn.Slot=z$e;gn.ErrorMessage=_0;gn.InputGroup=G$e;gn.Label=Ys;gn.Section=OQ;const Ze=gn,dVe="_main_1w0iy_1",fVe="_login_1w0iy_8",hVe="_component66_1w0iy_20",pVe="_logo_1w0iy_28",gVe="_header_1w0iy_33",vVe="_title_1w0iy_41",mVe="_text_1w0iy_50",yVe="_form_1w0iy_59",bVe="_inputs_1w0iy_67",_Ve="_button_1w0iy_75",SVe="_oauth_1w0iy_79",Ca={main:dVe,login:fVe,component66:hVe,logo:pVe,header:gVe,title:vVe,text:mVe,form:yVe,inputs:bVe,button:_Ve,oauth:SVe,undefined:"_undefined_1w0iy_88"},DQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function AQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){AQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const CVe={code:"en-US",dateFnsLocale:M7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},wVe=CVe,MQ={en_US:DQ},KF=Object.keys(MQ),xVe={en_US:"en_US"},TVe={en_US:wVe},EVe="lang",RQ="en_US",ve=DQ,OVe=MQ[w9()];AQ(ve,OVe);function IVe(n){try{return localStorage.getItem(n)}catch{return null}}function PVe(){try{return navigator.language.toLowerCase()}catch{return RQ}}function w9(){const n=IVe(EVe);if(KF.includes(n??""))return n;const e=PVe();for(const t of KF)if(e.includes(t))return t;return RQ}function DVe(){return xVe[w9()]}function AVe(){return TVe[w9()]}var MVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ZF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(MVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},RVe=n=>n?ZF(n):ZF;var LQ={exports:{}},kQ={},NQ={exports:{}},FQ={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mg=D;function LVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var kVe=typeof Object.is=="function"?Object.is:LVe,NVe=mg.useState,FVe=mg.useEffect,$Ve=mg.useLayoutEffect,VVe=mg.useDebugValue;function jVe(n,e){var t=e(),r=NVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return $Ve(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),FVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),VVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!kVe(n,t)}catch{return!0}}function zVe(n,e){return e()}var BVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zVe:jVe;FQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:BVe;NQ.exports=FQ;var HVe=NQ.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Sx=D,UVe=HVe;function WVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var GVe=typeof Object.is=="function"?Object.is:WVe,YVe=UVe.useSyncExternalStore,KVe=Sx.useRef,ZVe=Sx.useEffect,XVe=Sx.useMemo,qVe=Sx.useDebugValue;kQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=KVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=XVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,GVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=YVe(n,i[0],i[1]);return ZVe(function(){o.hasValue=!0,o.value=s},[s]),qVe(s),s};LQ.exports=kQ;var QVe=LQ.exports;const JVe=Ie(QVe);var eje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:tje}=JVe;function nje(n,e=n.getState,t){const r=tje(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const XF=n=>{(eje&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?RVe(n):n,t=(r,a)=>nje(e,r,a);return Object.assign(t,e),t},$Q=n=>n?XF(n):XF;var rje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function aje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const ey=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return ey(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return ey(r)(t)}}}},ije=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=ey(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},oje=(n,e)=>(t,r,a)=>{let i={storage:aje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},sje=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((rje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),ije(n,e)):oje(n,e),VQ=sje;var x9=(n=>(n.Access="access-control",n.Config="app-config",n))(x9||{}),av=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(av||{});let G5=0;const $i=$Q()(VQ((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,hje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:x9.Access,version:1,migrate(n,e){return n}}));var Fd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Fd||{});const qF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},jQ=$Q()(VQ((n,e)=>({...qF,reset(){n(()=>({...qF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:x9.Config,version:1,migrate(n,e){return n}}));var lje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class uje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[lje.VITE_PROXY_PATH,e].join("")}}const Er=new uje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":DVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function cje(n){return Er.post("/login",n)}async function dje(n){return Er.post("/logout",n)}async function fje(n){return Er.post("/sso",n)}async function hje(){return Er.post("/userinfo",{})}async function pje(){return Er.post("/loginType",{})}function gje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{pje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{cje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{fje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const vje="_header_k9z2y_1",mje="_navigationHeaderLogo_k9z2y_10",yje="_dIV_k9z2y_14",bje="_semiIconsBell_k9z2y_20",_je="_avatar_k9z2y_24",Sje="_sider_k9z2y_29",Cje="_collapsed_k9z2y_34",wje="_nav_k9z2y_10",xje="_icon_k9z2y_52",Tje="_content_k9z2y_57",Eje="_userProfile_k9z2y_69",Oje="_banner_k9z2y_77",Ije="_frame4159_k9z2y_82",Pje="_name_k9z2y_91",Dje="_richardHendricks_k9z2y_97",Aje="_aRichardHendricks_k9z2y_104",Mje="_main_k9z2y_112",Rje="_descriptions_k9z2y_123",Lje="_frame4152_k9z2y_130",kje="_semiIconsMapPin_k9z2y_136",Nje="_value_k9z2y_140",Fje="_tags_k9z2y_147",$je="_tag_k9z2y_147",Vje="_tag1_k9z2y_154",jje="_tag2_k9z2y_155",Ot={header:vje,navigationHeaderLogo:mje,dIV:yje,semiIconsBell:bje,avatar:_je,sider:Sje,collapsed:Cje,nav:wje,icon:xje,content:Tje,userProfile:Eje,banner:Oje,frame4159:Ije,name:Pje,richardHendricks:Dje,aRichardHendricks:Aje,main:Mje,descriptions:Rje,frame4152:Lje,semiIconsMapPin:kje,value:Nje,tags:Fje,tag:$je,tag1:Vje,tag2:jje};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?$d.worker=!0:typeof navigator>"u"?($d.node=!0,$d.svgSupported=!0):aze(navigator.userAgent,$d);function aze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=$d;var T9=12,zQ="sans-serif",Ac=T9+"px "+zQ,ize=20,oze=100,sze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Aze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?n$(s,o):n$(o,s))}function KQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Mze=/([&<>"'])/g,Rze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Mze,function(e,t){return Rze[t]})}var Lze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],kze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?a$(n,e,t):kze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):a$(n,e,t),t}function a$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(KQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function M9(n){return n||window.event}function qi(n,e,t){if(e=M9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=Nze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Lze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Nze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Fze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function i$(n){return n.which===2||n.which===3}var $ze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=o$(r)/o$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Vze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function R9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function L9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function sv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function jze(n){var e=wo();return R9(e,n),e}var zze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=zze;var Rb=Math.min,Lb=Math.max,id=new Le,od=new Le,sd=new Le,ld=new Le,Wv=new Le,Gv=new Le,Bze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),L9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}id.x=sd.x=t.x,id.y=ld.y=t.y,od.x=ld.x=t.x+t.width,od.y=sd.y=t.y+t.height,id.transform(r),ld.transform(r),od.transform(r),sd.transform(r),e.x=Rb(id.x,od.x,sd.x,ld.x),e.y=Rb(id.y,od.y,sd.y,ld.y);var l=Lb(id.x,od.x,sd.x,ld.x),u=Lb(id.y,od.y,sd.y,ld.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=Bze;var ZQ="silent";function Hze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Uze}}function Uze(){nu(this.event)}var Wze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Yv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Gze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),XQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Yv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Wze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Eze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Gze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=qQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Yv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Hze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Yv(t,r);if(s$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Yze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?ZQ:!0}return!1}function s$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Yze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZQ)){e.target=o;break}}}function qQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Kze=XQ;var QQ=32,Kv=7;function Zze(n){for(var e=0;n>=QQ;)e|=n&1,n>>=1;return n+e}function l$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Xze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function qze(n,e){var t=Kv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Kv||T>=Kv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Kv||O>=Kv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),u$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Pm=2,tp=4,c$=!1;function e4(){c$||(c$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Jze=Qze;var JQ;JQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=JQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const eJ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,tJ=1e-4,f$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function h$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+f$*Math.sin(w)))/(3*o),O=(-s+T*(E-f$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function rJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(nJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function aJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=yf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function iJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ry(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function oJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=yf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var aBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:eJ[e]||k9(e)},n}();const iBe=aBe;var sJ=function(){function n(e){this.value=e}return n}(),oBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new sJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),sBe=function(){function n(e){this._list=new oBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new sJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=sBe;var p$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function lBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ay(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function bf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ay(parseFloat(e)/100):ay(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var lJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=lJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=lJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in p$)return yP(e,p$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=bf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:bf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=bf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=bf(n[1]),a=bf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function uBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ay(tc(o[3],s[3],l)),t}}function cBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ay(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function a1(n,e,t,r){var a=ki(n);if(n)return a=uBe(a),e!=null&&(a[0]=lBe(e)),t!=null&&(a[1]=bf(t)),r!=null&&(a[2]=bf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ay(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function iy(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var g$=1e-4;function nc(n){return n-g$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function dBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var fBe={left:"start",right:"end",center:"middle",middle:"middle"};function hBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function pBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function gBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function uJ(n){return n&&!!n.image}function vBe(n){return n&&!!n.svgElement}function N9(n){return uJ(n)||vBe(n)}function cJ(n){return n.type==="linear"}function dJ(n){return n.type==="radial"}function fJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function hJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var mBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=m$,l=t;if(ga(t)){var u=SBe(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ny(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Dm)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),cJ(t)?s=wP:dJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===m$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:eJ[r]||k9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=y$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Zv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):yBe(b,h[a],p[a],y);else if(y$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Dm?(ki(e[r],Zv),Vb(Zv,Zv,a,1),e[r]=S2(Zv)):t===C2?Vb(e[r],e[r],a,1):t===gJ&&v$(e[r],e[r],a,1)},n}(),F9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){I9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,i1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,i1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var wBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new F9(t,r.loop);return this.addAnimator(a),a},e}(To);const xBe=wBe;var TBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),b$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function EBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function OBe(n,e){return qi(n.dom,new IBe(n,e),!0)}function vJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var IBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;vJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){_$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){_$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentw$||n<-w$}var cd=[],Rh=[],u4=wo(),c4=Math.abs,LBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ud(this.rotation)||ud(this.x)||ud(this.y)||ud(this.scaleX-1)||ud(this.scaleY-1)||ud(this.skewX)||ud(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(C$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):C$(r),e&&(t?Bl(r,e,r):R9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(cd);var r=cd[0]<0?-1:1,a=cd[1]<0?-1:1,i=((cd[0]-r)*t+r)/cd[0]||0,o=((cd[1]-a)*t+a)/cd[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),sv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){yJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),kBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},NBe=new $e(0,0,0,0),$9=function(){function n(e){this.id=UQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=NBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){I9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=i1(t[y]),$Be(t,r,y)}}var C=new F9(t,!1,!1,d?Pt(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const _J=$9;var SJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?WBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),wJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return GBe(n)}function GBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function YBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function KBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>wJ?r:Ln(r,t)}var I$=9007199254740991;function TJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-O$&&n=10&&e++,e}function EJ(n,e){var t=V9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function P$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var _He=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SHe=zf(_He),CHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return SHe(this,e,t)},n}(),AP=new S0(50);function wHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function H9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,R$,R$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function R$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function VJ(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?THe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function THe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=$J(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=wHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` +`),u=!0),r.accumWidth=p}else{var g=jJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` +`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var AHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function MHe(n){return DHe(n)?!!AHe[n]:!0}function jJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),_f={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_f[MP]=!0;var k$=["z","z2","invisible"],RHe=["invisible"],LHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%fd,a<0&&(a=a+fd),i=i%fd,i<0&&(i=i+fd),a>i&&!o?i+=fd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hd=[],pd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,gd=Math.cos,vd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Xv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function zJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Xv[0]=a,Xv[1]=i,zJ(Xv,o),a=Xv[0],i=Xv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=gd(i)*r+e,this._yi=vd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=eBe(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=nBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=gd(A)*I+E,l=vd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=gd(L)*I+E,o=vd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,hd),Rc(c,k,z,j,A,pd),e.bezierCurveTo(hd[1],pd[1],hd[2],pd[2],hd[3],pd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ry(u,L,N,A,hd),ry(c,k,z,A,pd),e.quadraticCurveTo(hd[1],pd[1],hd[2],pd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=gd(Z)*Y+U,l=vd(Z)*Q+G),u=gd(te)*Y+U,c=vd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=qv);var f=Math.atan2(l,s);return f<0&&(f+=qv),f>=r&&f<=a||f+qv>=r&&f+qv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,md=Math.PI*2,zHe=1e-4;function BHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&HHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=md-1e-4){r=0,a=md;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=md,a+=md);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=md+g),(g>=r&&g<=a||g+md>=r&&g+md<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if(VHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(BJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=WHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(jHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=GHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!BHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function YHe(n,e,t){return HJ(n,0,!1,e,t)}function KHe(n,e,t,r){return HJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_f),ZHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),XHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?RBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),KHe(s,l/u,t,r)))return!0}if(this.hasFill())return YHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);UJ.prototype.type="tspan";const sy=UJ;var QHe=_e({x:0,y:0},_f),JHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function eUe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var WJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(QHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=eUe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return JHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);WJ.prototype.type="image";const Xr=WJ;function tUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function GJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=af(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=af(i,s,!0))),n}}function YJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=af(r,s,!0),n.y=af(a,s,!0),n.width=Math.max(af(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(af(a+o,s,!1)-n.y,o===0?0:1)),n}}function af(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var nUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),rUe={},KJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=YJ(rUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?tUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);KJ.prototype.type="rect";const rt=KJ;var j$={fill:"#000"},z$=2,aUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},ZJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=j$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=Y$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(sy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=G$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=W$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=z$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),H$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Am(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return qJ(t)&&(r=[t.fontStyle,t.fontWeight,XJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),iUe={left:!0,right:1,center:1},oUe={top:1,bottom:1,middle:1},B$=["fontStyle","fontWeight","fontSize","fontFamily"];function XJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?T9+"px":n+"px"}function H$(n,e){for(var t=0;t=0,i=!1;if(n instanceof Ue){var o=QJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=Q$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=Q$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??uv)}return r}function hUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??lUe)}return t}function pUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:dUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return fUe(this,n,e,t);if(n==="blur")return pUe(this,n,t);if(n==="select")return hUe(this,n,t)}return t}function Bf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function eV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,JJ)}function tV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,eee)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,JJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,eee)}function nee(n){du(n,G9)}function Y9(n){du(n,tee)}function ree(n){du(n,uUe)}function aee(n){du(n,cUe)}function iee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function oee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=U9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){tee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Cf(n,e,t){of(n,!0),du(n,Bf),FP(n,e,t)}function _Ue(n){of(n,!1)}function En(n,e,t,r){r?_Ue(n):Cf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var rV=["emphasis","blur","select"],SUe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=sV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=sV(C,w);if(VP(C,w)<=-1&&(T=Qv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Qv*1e6)/1e6;T=Qv*2+E%2*Qv}c.addData(u,b,_,o,s,S,T,d,i)}var OUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,IUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(OUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function NUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function FUe(n,e){var t,r=Mm(e.r,0),a=Mm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=uV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*yd(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*yd(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*yd(l),z=a*Fh(u),F=a*yd(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=NUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=uV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Mm(_,S),I=E=Mm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*yd(u),R=a*Fh(l),L=a*yd(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){FUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);gee.prototype.type="sector";const fi=gee;var VUe=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),vee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new VUe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);vee.prototype.type="ring";const kx=vee;function jUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=jUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s_d[1]){if(s=!1,i)return s;var c=Math.abs(_d[0]-bd[1]),d=Math.abs(bd[0]-_d[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){J9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){J9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fV(n){return!n.isGroup}function oWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){fV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return oWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(fV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Pee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function sWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Rm(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function lWe(n){return n<=1e-6&&n>=-1e-6}function dv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function hV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Zc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Xc(n,e){return Fe(Fe({},n,!0),e,!0)}const SWe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},CWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",t8="EN",dy=t8,I2={},n8={},Fee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:dy}():dy;function $ee(n,e){n=n.toUpperCase(),n8[n]=new Xt(e),I2[n]=e}function wWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===t8?Ee(e):Fe(Ee(e),Ee(I2[dy]),!1)}else return Fe(Ee(n),Ee(I2[dy]),!1)}function BP(n){return n8[n]}function xWe(){return n8[dy]}$ee(t8,SWe);$ee(aC,CWe);var r8=1e3,a8=r8*60,d1=a8*60,fo=d1*24,yV=fo*365,Lm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",bV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Lm.hour,minute:Xb+" "+Lm.minute,second:Xb+" "+Lm.second,millisecond:Lm.none},L4=["year","month","day","hour","minute","second","millisecond"],Vee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function TWe(n){return n===Gp(n)}function EWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[i8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[fy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Fee)||xWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function OWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Lm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function jee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[fy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function _V(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||jee(n,t),e){case"year":return r[i8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[fy(t)]()/24;case"hour":return r[fy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function i8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function fy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function IWe(n){return n?"setUTCFullYear":"setFullYear"}function zee(n){return n?"setUTCMonth":"setMonth"}function Bee(n){return n?"setUTCDate":"setDate"}function Hee(n){return n?"setUTCHours":"setHours"}function Uee(n){return n?"setUTCMinutes":"setMinutes"}function Wee(n){return n?"setUTCSeconds":"setSeconds"}function Gee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yee(n){if(!OJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var pv=A9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Yee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var SV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Zee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Hf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Xee=["left","right","top","bottom","width","height"],sf=[["width","left","right"],["height","top","bottom"]];function o8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var xf=o8;Ae(o8,"vertical");Ae(o8,"horizontal");function AWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=pv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=pv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function MWe(n,e){return n[sf[e][0]]!=null||n[sf[e][1]]!=null&&n[sf[e][2]]!=null}function hy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(sf[0],0),i=o(sf[1],1);u(sf[0],n,a),u(sf[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);FJ(vv,Xt);Px(vv);bWe(vv);_We(vv,LWe);function LWe(n){var e=[];return M(vv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=vv;var Qee="";typeof navigator<"u"&&(Qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const kWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",ete="unknown",Zs="column",mv="row",zr={Must:1,Might:2,Not:3},tte=at();function NWe(n){tte(n).datasetMap=ge()}function nte(n,e,t){var r={},a=l8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=tte(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ite(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:zWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function BWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,Jv,wV,xV="\0_ec_inner",HWe=1,ote=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=OV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,OV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?wV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;NWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=VWe(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=MJ(h,f,p);iHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!oy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[xV],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function eGe(n,e){return n.join(",")===e.join(",")}const tGe=XWe;var ko=M,py=we,IV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=IV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=KBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||ete,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};kV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+mv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function VV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function f1(n){return new yGe(n)}var yGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},_Ge=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=yte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),bte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),SGe=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function CGe(n,e){return n==="eq"||n==="ne"?new SGe(n==="eq",e):he(yte,n)?new _Ge(n,e):null}var wGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function xGe(n,e){var t=new wGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?MGe:RGe}function Vh(){return[1/0,-1/0]}function LGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function BV(n,e,t,r,a){var i=Cte[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(tm(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),wte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&UV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&UV(d),s.push(c),l.push(u._getVersionSign())}),r?o=DGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[dGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ote(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function FGe(n,e,t,r){var a=e.noHeader,i=VGe(Ote(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new bte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Ete(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=Tte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ite(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function $Ge(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=Tte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ite(n,f,b))+(o?"":BGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":jGe(f,!s,b))+(o?"":zGe(p,g,m,_)),t)}}function WV(n,e,t,r,a,i){if(n){var o=Ete(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function VGe(n){return{html:kGe[n],richText:NGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function jGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function zGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ite(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function BGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Pte(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Hf(r)}function Dte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=IJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=DWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Ate(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Pte(e,t),c,d,f,h;if(o>1||l&&!o){var p=HGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=j9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function HGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=f1({count:WGe,reset:GGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new wte(this);i.prepareSource();var o=this.getInitialData(t,a);YV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=hy(this),i=a?gv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),Vf(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=hy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);YV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=u8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);or(Kx,h8);or(Kx,u8);FJ(Kx,it);function GV(n){var e=n.name;j9(n)||(n.name=UGe(n)||e)}function UGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function WGe(n){return n.model.getRawData().count()}function GGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),YGe}function YGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function YV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(KGe,e))})}function KGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var g8=function(){function n(){this.group=new Oe,this.uid=hv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();B9(g8);Px(g8);const On=g8;function yv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mte=at(),ZGe=yv(),v8=function(){function n(){this.group=new Oe,this.uid=hv("viewChart"),this.renderTask=f1({plan:XGe,reset:qGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Zc(this.group,e)},n.markUpdateMethod=function(e,t){Mte(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function KV(n,e,t){n&&uy(n)&&(e==="emphasis"?au:iu)(n,t)}function ZV(n,e,t){var r=jf(n,e),a=e&&e.highlightKey!=null?wUe(e.highlightKey):null;r!=null?M(kt(r),function(i){KV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){KV(i,t,a)})}B9(v8);Px(v8);function XGe(n){return ZGe(n.model)}function qGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Mte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),QGe[l]}var QGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=v8;var oC="\0__throttleOriginMethod",XV="\0__throttleRate",qV="\0__throttleType";function m8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function bv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[qV],s=a[XV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=m8(i,t,r==="debounce"),a[oC]=i,a[qV]=r,a[XV]=t}return a}}function gy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var QV=at(),JV={itemStyle:zf(Nee,!0),lineStyle:zf(kee,!0)},JGe={lineStyle:"stroke",itemStyle:"fill"};function Rte(n,e){var t=n.visualStyleMapper||JV[e];return t||(console.warn("Unknown style type '"+e+"'."),JV.itemStyle)}function Lte(n,e){var t=n.visualDrawType||JGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Rte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Lte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},nm=new Xt,tYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Rte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){nm.option=l[r];var u=a(nm),c=o.ensureUniqueItemVisual(s,"style");K(c,u),nm.option.decal&&(o.setItemVisual(s,"decal",nm.option.decal),nm.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},nYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),QV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=QV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Lte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function rYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new q9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var aYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||f1({plan:uYe,reset:cYe,count:fYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||f1({reset:iYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,f1({reset:oYe,onDirty:lYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:hYe(e)}),e.uid=hv("stageHandler"),t&&(e.visualType=t),e},n}();function iYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function oYe(n){return n.overallProgress&&sYe}function sYe(){this.agent.dirty(),this.getDownstream().dirty()}function lYe(){this.agent&&this.agent.dirty()}function uYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function cYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return kte(r)}):dYe}var dYe=kte(0);function kte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],rj=qP.concat(["symbolKeepAspect"]),mYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&uf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?RYe(n,e,t):MYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function b8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&kYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var NYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function aj(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function ij(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function oj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=H9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function FYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||NYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=b8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&oj(n,t),o&&ij(n,t)):(o&&ij(n,t),i&&oj(n,t))),E&&n.setLineDash([])}function $Ye(n,e,t){var r=e.__image=H9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function VYe(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=b8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var sj=["shadowBlur","shadowOffsetX","shadowOffsetY"],lj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?_f.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||_f.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new tGe(this._api),u=this._theme,c=this._model=new ste;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(wj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(p1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=E$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=s1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=s1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?y8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(dKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&lf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(h1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),bYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&LJ(this.getDom(),C8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete p1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=h1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),rm.call(this,a),am.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&xUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}Sj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){nee(p),Gi(d)},h.prototype.leaveBlur=function(p){Y9(p),Gi(d)},h.prototype.enterSelect=function(p){ree(p),Gi(d)},h.prototype.leaveSelect=function(p){aee(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(lte))(d)},rne=function(d){function f(h,p){for(var g=0;g=0)){xj.push(t);var i=$te.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function cne(n,e){nD[n]=e}function yKe(n,e,t){var r=XYe("registerMap");r&&r(n,e,t)}var bKe=PGe;fh(_8,eYe);fh(Zx,tYe);fh(Zx,nYe);fh(_8,mYe);fh(Zx,yYe);fh(qte,YYe);lne(cte);une(JYe,uGe);cne("default",rYe);cl({type:Sf,event:Sf,update:Sf},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:l1,event:l1,update:l1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:u1,event:u1,update:u1},Yn);sne("light",pYe);sne("dark",gYe);var Tj=[],_Ke={registerPreprocessor:lne,registerProcessor:une,registerPostInit:pKe,registerPostUpdate:gKe,registerUpdateLifecycle:w8,registerAction:cl,registerCoordinateSystem:vKe,registerLayout:mKe,registerVisual:fh,registerTransform:bKe,registerLoading:cne,registerMap:yKe,registerImpl:ZYe,PRIORITY:lKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){UBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Tj,n)>=0||(Tj.push(n),me(n)&&(n={install:n}),n.install(_Ke))}function im(n){return n==null?0:n.length||1}function Ej(n){return n}var SKe=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Ej,this._newKeyGetter=a||Ej,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var om=we,Du=J,IKe=typeof Int32Array>"u"?Array:Int32Array,PKe="e\0\0",Oj=-1,DKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AKe=["_approximateExtent"],Ij,i_,sm,lm,q4,o_,Q4,MKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;fne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():om(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,om(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){om(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(D9(arguments)))})},n.internalField=function(){Ij=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new IKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=MKe;function A0(n,e){c8(n)||(n=d8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=LKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gne(o),l=r===n.dimensionsDefine,u=l?pne(n):hne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new Ste(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function LKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function kKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var NKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function FKe(n){var e=n.get("coordinateSystem"),t=new NKe(e),r=$Ke[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var $Ke={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function VKe(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;jKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function jKe(n){return!fne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function vne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function zKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function BKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=d8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=FKe(e),s=zKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(nte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=BKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=VKe(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&HKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function HKe(n){if(n.sourceFormat===Eo){var e=UKe(n.data||[]);return!X(lv(e))}}function UKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(mne);const hu=mne;var WKe=0,GKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,YKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function YKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=GKe;function aD(n){return n.type==="interval"||n.type==="log"}function KKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=EJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=yne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return ZKe(l,n),a}function J4(n){var e=Math.pow(10,V9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function yne(n){return js(n)+2}function Pj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function ZKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Pj(n,0,e),Pj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var bne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(bne);const T8=bne;var xd=Ln,_ne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:xd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function wne(n){var e=QKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(Ine(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:O8(i),stackId:E8(r)})}),xne(t)}function xne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function JKe(n,e,t){if(n&&e){var r=n[O8(e)];return r!=null&&t!=null?r[E8(t)]:r}}function Tne(n,e){var t=Cne(n,e),r=wne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=E8(a),u=r[O8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Ene(n){return{seriesType:n,plan:yv(),reset:function(e){if(One(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=eZe(a,i),p=Ine(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(tZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",r8],["minute",a8],["hour",d1],["quarter-day",d1*6],["half-day",d1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",yV/2],["year",yV]];function nZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return _V(a,p,r)===_V(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function rZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function aZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function iZe(n){return n/=d1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Dj(n,e){return n/=e?a8:r8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function oZe(n){return EJ(n,!0)}function sZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[zee(t)](0);case"day":r[Bee(t)](1);case"hour":r[Hee(t)](0);case"minute":r[Uee(t)](0);case"second":r[Wee(t)](0),r[Gee(t)](0)}return r.getTime()}function lZe(n,e,t,r){var a=1e4,i=Vee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=Pt(J(u,function(I){return Pt(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(dZe(r[0]/i)*i),Ln(cZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){g1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Ane=I8.prototype;Ane.getMinorTicks=g1.getMinorTicks;Ane.getLabel=g1.getLabel;function u_(n,e){return uZe(n,js(e))}hu.registerClass(I8);const fZe=I8;var hZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[gZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=pZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),pZe={min:"_determinedMin",max:"_determinedMax"},gZe={min:"_dataMin",max:"_dataMax"};function Mne(n,e,t){var r=n.rawExtentInfo;return r||(r=new hZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ny(e)?NaN:n.parse(e)}function Rne(n,e){var t=n.type,r=Mne(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Cne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=wne(s),c=vZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function vZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=JKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Rne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof fZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new T8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Dne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function mZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(P8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function P8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function yZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof T8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),SZe=1e-8;function Mj(n,e){return Math.abs(n-e)a&&(r=o,a=l)}if(r)return wZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Rj(s.exterior,a,i,t):M(s.points,function(l){Rj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function EZe(n,e){return n=TZe(n),J(Pt(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Lj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Lj(l[0],l.slice(1)))});break;case"LineString":i.push(new kj([a.coordinates]));break;case"MultiLineString":i.push(new kj(a.coordinates))}var s=new Nne(r[e||"name"],i,r.cp);return s.properties=r,s})}var yy=at();function OZe(n){return n.type==="category"?PZe(n):AZe(n)}function IZe(n,e){return n.type==="category"?DZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function PZe(n){var e=n.getLabelModel(),t=$ne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function $ne(n,e){var t=Vne(n,"labels"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;return me(r)?i=Hne(n,r):(o=r==="auto"?MZe(n):r,i=Bne(n,o)),zne(t,r,{labels:i,labelCategoryInterval:o})}function DZe(n,e){var t=Vne(n,"ticks"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Hne(n,r,!0);else if(r==="auto"){var s=$ne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=Bne(n,o,!0);return zne(t,r,{ticks:i,tickCategoryInterval:o})}function AZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Vne(n,e){return yy(n)[e]||(yy(n)[e]=[])}function jne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=yy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function LZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Lne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Hne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Nj=[0,1],kZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return xJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count())),xt(e,Nj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count()));var i=xt(e,r,Nj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=IZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return NZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return OZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return RZe(this)},n}();function Fj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function NZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=um);var h=Math.atan2(s,o);if(h<0&&(h+=um),h>=r&&h<=a||h+um>=r&&h+um<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Une(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function jZe(n,e,t){var r=Une(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function zZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function BZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function Vj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function HZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function UZe(n,e,t,r){return Yne(n,"x","width",e,t,r)}function Kne(n,e,t,r){return Yne(n,"y","height",e,t,r)}function Zne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!fv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Lee(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=YZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const ZZe=KZe;var rE=at();function XZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new ZZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Xne=Math.PI,Ed=Math.PI*2,qZe=180/Xne,QZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Ed)||(c?u>=Ed:-u>=Ed),h=u>0?u%Ed:u%Ed+Ed,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Xne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*qZe);if(f){var b=1/this._p,_=(c?1:-1)*(Ed-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function sXe(n){return""}function R8(n,e){e=e||{};var t=e.newline?` +`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return oXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+sXe(o)}return r(n)}function lXe(n,e,t){t=t||{};var r=t.newline?` +`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:Qne,"xmlns:xlink":Jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Bj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Vd="transform-origin";function uXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new qne;return a.reset(hJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function cXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[Vd]=t+"px "+r+"px")}var dXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tre(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function fXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=tre(a,t);return i.replace(o,s)}}function Hj(n){return ce(n)?Bj[n]?"cubic-bezier("+Bj[n]+")":k9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Q9){var s=fXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=tre(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var by=Math.round;function nre(n){return n&&ce(n.src)}function rre(n){return n&&me(n.toDataURL)}function L8(n,e,t,r){rXe(function(a,i){var o=a==="fill"||a==="stroke";o&&fJ(i)?ire(e,n,a,r):o&&N9(i)?ore(t,n,a,r):n[a]=i},e,t,!1),bXe(t,n,r)}function Uj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function hXe(n){return nc(n[4])&&nc(n[5])}function k8(n,e,t){if(e&&!(hXe(e)&&Uj(e))){var r=t?10:1e4;n.transform=Uj(e)?"translate("+by(e[4]*r)/r+" "+by(e[5]*r)/r+")":dBe(e)}}function Wj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=H9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=pJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=R8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function _Xe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[are(n,t)])}e["clip-path"]=Ox(i)}function Kj(n){return document.createTextNode(n)}function Yd(n,e,t){n.insertBefore(e,t)}function Zj(n,e){n.removeChild(e)}function Xj(n,e){n.appendChild(e)}function sre(n){return n.parentNode}function lre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var qj=58,SXe=120,CXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function wXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Nm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function _y(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=ere(r);if(N8(CXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ure(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(N8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&xXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),ure(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function TXe(n,e){if(Nm(n,e))rp(n,e);else{var t=n.elm,r=sre(t);_y(e),r!==null&&(Yd(r,e.elm,lre(t)),mC(r,[n],0,0))}return e}var EXe=0,OXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Qj(),this.configLayer=Qj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+EXe++,this._oldVNode=zj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ere("svg");N8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",TXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Yj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=IXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=lXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return zj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},R8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||I9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const VXe=$Xe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var jXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ir(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return _v(t.getItemVisual(r,"symbolSize"))},e}(Oe);function zXe(n,e){this.parent.drift(n,e)}const L0=jXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function tz(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function nz(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var BXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=tz(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=nz(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nz(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=tz(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function fre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function UXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function WXe(n,e,t,r,a,i,o,s){for(var l=UXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=dre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(Tf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||Tf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var hre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),GXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Tf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),YXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(hre),pre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new YXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Tf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function XXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=ZXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function qXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&QXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function QXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function JXe(n,e){return isNaN(n)||isNaN(e)}function eqe(n){for(var e=n.length/2;e>0&&JXe(n[e*2-2],n[e*2-1]);e--);return e-1}function sz(n,e){return[n[e*2],n[e*2+1]]}function tqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=oz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=oz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new GXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new pre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(mre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=eqe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?cre(o,h):Cg(o,d)},enableTextSetter:!0},nqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=tqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=sz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=kJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=sz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=fv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=WXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),iz(h,g)>3e3||c&&iz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=iqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,oqe))}}}}}function sqe(n){n.registerChartView(aqe),n.registerSeriesModel(VXe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("line"))}var bre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(bre);const yC=bre;var lqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Xc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const uqe=lqe;var cqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),dqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new cqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){cy(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),lz={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},uz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=_re(a);if(c.calculateTextPosition=fqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function vqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function cz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function dz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function bqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _re(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function hz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=df(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,hqe(n,m==="outside"?h:m,_re(o),r.get(["label","rotate"]))}Ree(g,p,i.getRawValue(t),function(b){return cre(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),bqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function _qe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var Sqe=function(){function n(){}return n}(),pz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Sqe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Cqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Sre(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function wqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:Sre(e,t,n),silent:!0,z2:0})}const xqe=gqe;function Tqe(n){n.registerChartView(xqe),n.registerSeriesModel(uqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,mz=Math.PI/180;function Cre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wre(n,e){var t=Cre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Eqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Cre(r,t),s=wre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*mz,h=r.get("minAngle")*mz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Pqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Oqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Rt=A.get("rotate");if(lt(Rt))Ve=Rt*(Je/180);else if(R==="center")Ve=0;else if(Rt==="radial"||Rt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Rt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Iqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Mqe=Aqe;function Sv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Rqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Rqe;var Lqe=at(),kqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Lqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=YBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const Nqe=kqe;function Fqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function $qe(n){n.registerChartView(Mqe),n.registerSeriesModel(Nqe),zte("pie",n.registerAction),n.registerLayout(Ae(Eqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Fqe("pie"))}var Vqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const jqe=Vqe;var Tre=4,zqe=function(){function n(){}return n}(),Bqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new zqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Uqe=Hqe;var Wqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Uqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Gqe=Wqe;var Yqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Kqe=Yqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);or(cD,R0);var Ere={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Zqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ere),F8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ere),Xqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},F8),qqe=_e({logBase:10},F8);const Ore={category:Zqe,value:F8,time:Xqe,log:qqe};var Qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(Qqe,function(a,i){var o=Fe(Fe({},Ore[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=hy(this),h=f?gv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=bz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",bz)}function bz(n){return n.type||(n.data?"category":"value")}var Jqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const eQe=Jqe;var dD=["x","y"];function _z(n){return n.type==="interval"||n.type==="time"}var tQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!_z(t)||!_z(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=sv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(eQe),nQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const rQe=nQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function Sz(n){return n.get("coordinateSystem")==="cartesian2d"}function Cz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ire(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Rne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var aQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ire(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){wz(r,"y",o,i)}),M(r.y,function(o){wz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=yZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),iQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Tz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ir(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=uQe(t,r,e,n),i=dQe(t,r,e,n);if(lQe(e,i,a),cQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Oz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;Oz(i)?f=Ef.innerTextLayout(n.rotation,h??n.rotation,o):(f=sQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Ef.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(dv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Ef.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function sQe(n,e,t,r){var a=TJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function lQe(n,e,t){if(!Lne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Ez(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Ez(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Ez(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function Oz(n){return n==="middle"||n==="center"}function Pre(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function mQe(n){var e=$8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return or(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},cm.axisLine),axisLabel:y_(cm.axisLabel,!1),axisTick:y_(cm.axisTick,!1),splitLine:y_(cm.splitLine,!0),splitArea:y_(cm.splitArea,!0),indicator:[]},e}(it);const RQe=MQe;var LQe=["axisLine","axisTickLabel","axisName"],kQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(LQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Rz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),kre(n,e,t,r,a))}function kre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=WQe;function j8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function z8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var GQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!GQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function Nre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Lz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kz=Ye(SC),YQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=Nre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;XQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=$re(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Nz[s];if(h&&he(Nz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new sy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),KQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new X9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=dee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Nz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Fz(n,i),$z(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new xee(e,t,r);return Fz(n,a),$z(n,a),a}};function Fz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function $z(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Fre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function Vz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":L9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var zz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fre(n,e,t){var r=n.getAttribute("style");if(r){zz.lastIndex=0;for(var a;(a=zz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function eJe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&(Vre(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Gz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Yz(n,e,t,r,a){n.data||dv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Kz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&CUe(e,a,t),o}function Zz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const CJe=SJe;function wJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function IJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var PJe=function(){function n(){this.dimensions=zre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Jz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=eB,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Jz(s,s,K({nameMap:P9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=eB,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,IJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function $Je(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){zJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=BJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function VJe(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function nB(n){return arguments.length?n:WJe}function Fm(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function jJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function zJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function BJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(UJe(HJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function HJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function UJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function WJe(n,e){return n.parentNode===e.parentNode?1:2}var GJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),YJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),ZJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function ZJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Kre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function G8(n,e){var t=Kre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var oet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=W8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const set=oet;function uet(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function cet(n,e){n.eachSeriesByType("tree",function(t){det(t,e)})}function det(n,e){var t=jJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=nB(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=nB());var s=n.getData().tree.root,l=s.children[0];if(l){FJe(s),uet(l,$Je,o),s.hierNode.modifier=-l.hierNode.prelim,fm(l,VJe);var u=l,c=l,d=l;fm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=Fm(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),fm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function fet(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function het(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function pet(n){n.registerChartView(XJe),n.registerSeriesModel(set),n.registerLayout(cet),n.registerVisual(fet),het(n)}var sB=["treemapZoomToNode","treemapRender","treemapMove"];function get(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var vet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Xre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=met(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=W8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Xre(n){var e=0;M(n.children,function(r){Xre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function met(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const yet=vet;var bet=8,lB=8,SE=5,_et=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=dr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+bet*2,t.emptyItemWidth);t.totalWidth+=s+lB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=AWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:Cet(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:uv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),wet(S,e,y),l+=b+lB}},n.prototype.remove=function(){this.group.removeAll()},n}();function Cet(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function wet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const xet=_et;var Tet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;acB||Math.abs(t.dy)>cB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),L9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new xet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(G8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function hm(){return{nodeGroup:[],background:[],content:[]}}function Aet(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",uB,u,Iet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)uy(P)&&of(P,!1),A&&(of(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",uB,u,Pet);F&&U(P,F),A.disableMorphing=!0,A&&uy(A)&&of(A,!1),of(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=hB(w);We.fill=pe;var Ce=zd(T);Ce.fill=T.get("borderColor");var Je=zd(E);Je.fill=E.get("borderColor");var Ve=zd(O);if(Ve.fill=O.get("borderColor"),re){var Rt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Rt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,Bf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=hB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=zd(T),Ve=zd(E),Rt=zd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Rt,Bf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?fB:dB),pe=dr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?fB:dB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=A9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Rt=Ce.getState("emphasis");Q(Rt?Rt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Met(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Met(n,e){return n*Oet+e}const Ret=Det;var wy=M,Let=we,wC=-1,Y8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Fet[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),ket(a)):t==="category"?a.categories?Net(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&wy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Let(e)){var t=[];wy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?wy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),qre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function pB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function pm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function $m(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function Bd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:$m,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:Bd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Y8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function qre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Fet={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Y8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Het(a,l,g,m,p,r);Jre(g,y,t,r)}})}}}function jet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function gB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=a1(e,null,null,r)),t&&(e=GS(e,t)),e}}function zet(n,e){return e!=null?a1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function Bet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return Qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Het(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&Qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var xy=Math.max,xC=Math.min,vB=Lr,K8=M,eae=["itemStyle","borderWidth"],Uet=["itemStyle","gapWidth"],Wet=["upperLabel","show"],Get=["upperLabel","height"];const Yet={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(vB(s.width,l[0]),a),c=ie(vB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Cy(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Kre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Jet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),tae(g,_,!1,0),S=g.getLayout(),K8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(ett(s,p,h),!0),n.setLayoutInfo(s),nae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function tae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(eae),u=s.get(Uet)/2,c=rae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=xy(a-2*f,0),i=xy(i-f-h,0);var p=a*i,g=Ket(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?xy(u*r/l,l/(u*a)):1/0}function mB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dI$&&(u=I$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Q8=btt;var _tt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Q8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=wB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=wB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!Stt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function wB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function xB(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!xB(n[0])&&!xB(n[1])}const J8=_tt;var DE=[],AE=[],ME=[],Wh=Mr,RE=yf,TB=Math.abs;function EB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=TB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ry,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=jm(s.node1),p=EB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=jm(s.node2),p=EB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),rf(o,i[1],i[0]),ov(o,o),c&&c!=="none"){var h=jm(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=jm(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function OB(n){return n.type==="view"}var Ctt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new J8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(OB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Vm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),q8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),X8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){sae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!OB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){j8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){z8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Vm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Vm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Vm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const wtt=Ctt;function Gh(n){return"_EC_"+n}var xtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Hd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Hd||(e=a[Gh(e)]),t instanceof Hd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new uae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Hd&&(e=e.id),t instanceof Hd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Hd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}or(Hd,cae("hostGraph","data"));or(uae,cae("hostGraph","edgeData"));const Ttt=xtt;function dae(n,e,t,r,a){for(var i=new Ttt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Gre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ett=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Vf(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){stt(this);var s=dae(i,a,this,!0,l);return M(s.edges,function(u){ltt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Ate({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ott=Ett;var Itt={type:"graphRoam",event:"graphRoam",update:"none"};function Ptt(n){n.registerChartView(wtt),n.registerSeriesModel(Ott),n.registerProcessor(ntt),n.registerVisual(rtt),n.registerVisual(att),n.registerLayout(utt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,dtt),n.registerLayout(htt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:gtt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Itt,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Dtt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Att=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Dtt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Mtt=Att;function Rtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Ltt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Rtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];zJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ir(N,F-L/2,j-k,L,k,null,U):G=new Mtt({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ir(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ree(I,{normal:P},_,function(U){return w_(U,F)}),g&&Lee(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const ktt=Ltt;var Ntt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return Sv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ftt=Ntt;function $tt(n){n.registerChartView(ktt),n.registerSeriesModel(Ftt)}var Vtt=["itemStyle","opacity"],jtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Vtt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),A8(a,M8(l),{stroke:f})},e}(hi),ztt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new jtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);cy(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const Btt=ztt;var Htt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Utt=Htt;function Wtt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Gtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();odnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const pnt=fnt;var gnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const vnt=gnt;var mnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const ynt=mnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,hae=Math.min,pae=Math.max,DB=Math.floor,bnt=Math.ceil,AB=Ln,_nt=Math.PI,Snt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new ynt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||DB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[DB(AB(h[0]/c,1))+1,bnt(AB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?wnt:Cnt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:_nt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[pae(0,p-h/2)],a[1]=hae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return hae(pae(n,e[0]),e[1])}function Cnt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function wnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iDnt}function Sae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Cae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:rM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(kB,n,e,a,["n","s","w","e"]),ondragend:Ae(Wf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(kB,n,e,a,i),ondragend:Ae(Wf,e,{isEnd:!0})}))}),a}function wae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Ant),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(rM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):$nt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Rnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(jnt(aM(n,e,[[r,a],[r+i,a+o]])))}function rM(n){return _e({strokeNoScale:!0},n.brushStyle)}function xae(n,e,t,r){var a=[Ey(n,t),Ey(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Fnt(n){return wf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Fnt(n));return r[a]}function $nt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function kB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=Tae(e,a,i);M(r,function(u){var c=Mnt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(xae(s[0][0],s[1][0],s[0][1],s[1][1])),eM(e,t),Wf(e,{isEnd:!1})}function Vnt(n,e,t,r){var a=e.__brushOption.range,i=Tae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),eM(n,e),Wf(n,{isEnd:!1})}function Tae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function aM(n,e,t){var r=_ae(n,e);return r&&r!==Uf?r.clipPath(t,n._transform):Ee(t)}function jnt(n){var e=Ey(n[0][0],n[1][0]),t=Ey(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function znt(n,e,t){if(!(!n._brushType||Hnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=nM(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:$B(0),lineY:$B(1),rect:{createCover:function(n,e){function t(r){return r}return Cae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Sae(n);return xae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){wae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:rM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae(Vnt,n,e),ondragend:Ae(Wf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:aM(n,e,t)})},updateCommon:xD,contain:OD}};function $B(n){return{createCover:function(e,t){return Cae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Sae(e),r=Ey(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=_ae(e,t);if(o!==Uf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),wae(e,t,l,a)},updateCommon:xD,contain:OD}}const iM=knt;function Oae(n){return n=oM(n),function(e){return Pee(e,n)}}function Iae(n,e){return n=oM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Pae(n,e,t){var r=oM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function oM(n){return $e.create(n)}var Unt=["axisLine","axisTickLabel","axisName"],Wnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Gnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Knt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Unt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Oae(d),isTargetByCursor:Pae(d,s,i),getLinearBrushOtherExtent:Iae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Ynt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Gnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Ynt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Knt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Znt=Wnt;var Xnt={type:"axisAreaSelect",event:"axisAreaSelected"};function qnt(n){n.registerAction(Xnt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Dae(n){n.registerComponentView(pnt),n.registerComponentModel(vnt),n.registerCoordinateSystem("parallel",Ont),n.registerPreprocessor(lnt),n.registerComponentModel(MB),n.registerComponentView(Znt),wg(n,"parallel",MB,Qnt),qnt(n)}function Jnt(n){He(Dae),n.registerChartView(ent),n.registerSeriesModel(ant),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,snt)}var ert=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),trt=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ert},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),nrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new trt,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),VB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return VB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(rrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function VB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function rrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const art=nrt;var irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=dae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const ort=irt;function srt(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=lrt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;crt(u);var d=Pt(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");urt(u,c,r,a,o,s,f,h,p)})}function lrt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function urt(n,e,t,r,a,i,o,s,l){drt(n,e,t,a,i,s,l),grt(n,e,i,a,r,o,s),xrt(n,s)}function crt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function drt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&frt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;prt(n,E,i)}function Aae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function frt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,yrt(s,l,o),VE(s,a,t,r,o),wrt(s,l,o),VE(s,a,t,r,o)}function vrt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function mrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function yrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,brt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,_rt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function brt(n,e){return $c(n.node2,e)*n.getValue()}function _rt(n,e){return $c(n.node2,e)}function Srt(n,e){return $c(n.node1,e)*n.getValue()}function Crt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Ert(n){n.registerChartView(art),n.registerSeriesModel(ort),n.registerLayout(srt),n.registerVisual(Trt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Mae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return Sv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(nte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Rae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);or(Rae,Mae,!0);const Ort=Rae;var Irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=jB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Lae(f,d,i,u)):d=jB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Prt=function(){function n(){}return n}(),Drt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Prt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var $rt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Frt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Vrt(n){n.registerSeriesModel(Ort),n.registerChartView(Mrt),n.registerLayout(Rrt),n.registerTransform($rt)}var jrt=["color","borderColor"],zrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&zB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&zB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),BB(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){BB(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),Brt=function(){function n(){}return n}(),Hrt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Brt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Hrt({shape:{points:t?Urt(r,n):r},z2:100})}function zB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(jrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Grt=zrt;var kae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);or(kae,Mae,!0);const Yrt=kae;function Krt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Zrt=["itemStyle","borderColor"],Xrt=["itemStyle","borderColor0"],qrt=["itemStyle","borderColorDoji"],Qrt=["itemStyle","color"],Jrt=["itemStyle","color0"],eat={seriesType:"candlestick",plan:yv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?Qrt:Jrt)}function r(i,o){return o.get(i===0?qrt:i>0?Zrt:Xrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const tat=eat;var nat={seriesType:"candlestick",plan:yv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=rat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:HB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=HB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function HB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function rat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const aat=nat;function iat(n){n.registerChartView(Grt),n.registerSeriesModel(Yrt),n.registerPreprocessor(Krt),n.registerVisual(tat),n.registerLayout(aat)}function UB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var oat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Nae);const vat=gat;var mat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),yat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(BJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const _at=bat;var Sat={seriesType:"lines",plan:yv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=$ae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new _at:new J8(o?i?vat:Fae:i?Nae:Q8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const wat=Cat;var xat=typeof Uint32Array>"u"?Array:Uint32Array,Tat=typeof Float64Array>"u"?Array:Float64Array;function WB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),P9([a,t[0],t[1]])}))}var Eat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],WB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(WB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Oat=Eat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Iat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Pat=Iat;function Dat(n){n.registerChartView(wat),n.registerSeriesModel(Oat),n.registerLayout($ae),n.registerVisual(Pat)}var Aat=256,Mat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Rat=Mat;function Lat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function GB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Nat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):GB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(GB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Rat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?kat(S,a.option.range):Lat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Fat=Nat;var $at=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Vat=$at;function jat(n){n.registerChartView(Fat),n.registerSeriesModel(Vat)}var zat=["itemStyle","borderWidth"],YB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,Bat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:YB[+c],categoryDim:YB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=ZB(o,h),g=KB(o,h,p,f),m=XB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),QB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=ZB(o,h),y=KB(o,h,m,f),b=Uae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Zat(g,f,y):g=XB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),QB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&qB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){qB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function KB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Hat(t,i,a,r,f),Uat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Wat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Gat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Hat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Uat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Wat(n,e,t,r,a){var i=n.get(zat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Gat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=OJ(r),E=T?r:JB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?JB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function Vae(n){var e=n.symbolPatternSize,t=ir(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(sM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=Vae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Bae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Hae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function ZB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Yat,t.isAnimationEnabled=Kat,t}function Yat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Kat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function XB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?jae(a,e,t):zae(a,e,t),Bae(a,t,r),Hae(a,e,t,r),a.__pictorialShapeStr=Uae(n,t),a.__pictorialSymbolMeta=t,a}function Zat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?jae(n,e,t,!0):zae(n,e,t,!0),Bae(n,t,!0),Hae(n,e,t,!0)}function qB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];sM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Uae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function QB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");sM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function JB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Xat=Bat;var qat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Xc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const Qat=qat;function Jat(n){n.registerChartView(Xat),n.registerSeriesModel(Qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("pictorialBar"))}var eit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function sit(n){n.registerChartView(nit),n.registerSeriesModel(ait),n.registerLayout(iit),n.registerProcessor(F0("themeRiver"))}var lit=2,uit=4,cit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=lit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:uit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=df(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=df(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const tH=cit;var ID="sunburstRootToNode",nH="sunburstHighlight",dit="sunburstUnhighlight";function fit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=Cy(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=G8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:nH,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Cy(e,[nH],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:dit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var hit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new tH(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new tH(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const pit=hit;var git=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Wae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=W8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Wae(n){var e=0;M(n.children,function(r){Wae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const vit=git;var rH=Math.PI/180;function mit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*rH,p=r.get("minAngle")*rH,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Gae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function _it(n){n.registerChartView(pit),n.registerSeriesModel(vit),n.registerLayout(Ae(mit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(bit),fit(n)}var aH={color:"fill",borderColor:"stroke"},Sit={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Cit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const wit=Cit;function xit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Tit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(xit,n)}}}function Eit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Oit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Eit,n)}}}function Iit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Pit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Iit,n)}}}function Dit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Ait(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Dit,n)}}}function Mit(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Yae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Kae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return iH(o,n),M(o.rich,function(l){iH(l,l)}),{textConfig:a,textContent:i}}function iH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function oH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";sH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){sH(s,s)}),r}function sH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Zae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lH=Ye(Zae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function lM(n,e,t,r,a){var i=n+"Animation",o=cv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Fit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if(Vit(n,e,d),cH("shape",e,d),cH("extra",e,d),!i&&s&&($it(n,e,c),uH("shape",n,e,c),uH("extra",n,e,c),jit(n,e,u,c)),d.style=u,Rit(n,d,o),kit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=lM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Lit(n,e,a||0,t,c);Xae(n,e),u?n.dirty():n.markRedraw()}function Xae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function kit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},Nit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Fit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(Nit)}}function uH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Of(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=oH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=oH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(aH,L)){var N=e.getItemVisual(k,"style");return N?N[aH[L]]:null}if(he(Sit,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return qKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Mee(L,t)}}function qit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=hM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function hM(n,e,t,r,a,i){var o=-1,s=e;e&&eie(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=dM(r),s&&Git(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Jit(u,t,r,a,l,Zi),Qit(u,t,r,a,l),fM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function eie(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&aot(i)&&tie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function Qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&eie(o,i,r)&&(o=null),o||(o=dM(i),n.setClipPath(o)),fM(null,o,e,i,null,r,a)}}function Jit(n,e,t,r,a,i){if(!n.isGroup){fH(t,null,i),fH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=dM(o),n.setTextContent(c)),fM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);tot(e,p,a)}}}function tot(n,e,t){e&&sT(e,Ul(n).option,t)}function not(n){new ou(n.oldChildren,n.newChildren,hH,hH,n).add(pH).update(pH).remove(rot).execute()}function hH(n,e){var t=n&&n.name;return t??Uit+e}function pH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;hM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function rot(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function tie(n){return n&&(n.pathData||n.d)}function aot(n){return n&&(he(n,"pathData")||he(n,"d"))}function iot(n){n.registerChartView(Kit),n.registerSeriesModel(wit)}var Kd=at(),gH=Ee,XE=fe,oot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(vH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}yH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=$8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Kd(e).pointerEl=new I0[i.type](gH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Kd(e).labelEl=new st(gH(t.label));e.add(i),mH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Kd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Kd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),mH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),yH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,bv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){vH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Kd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),gy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function vH(n,e,t,r){nie(Kd(t).lastProp,r)||(Kd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function nie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&nie(n[a],r)}),!!t}else return n===e}function mH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function yH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const gM=oot;function vM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function rie(n,e,t,r,a){var i=t.get("value"),o=aie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=pv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),sot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function sot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function aie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:P8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function mM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function iie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rie(e,r,a,i,{position:mM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function bH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var lot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=_H(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=vM(i),h=uot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=_H(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(gM);function _H(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var uot={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],SH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],SH(n))}}};function SH(n){return n.dim==="x"?0:1}const cot=lot;var dot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const fot=dot;var Rl=at(),hot=M;function sie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),pot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function pot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(CH,"click")),t("mousemove",Ae(CH,"mousemove")),t("globalout",vot);function t(r,a){n.on(r,function(i){var o=mot(e);hot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),got(o.pendings,e)})}}function got(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function vot(n,e,t){n.handler("leave",null,t)}function CH(n,e,t,r){e.handler(n,t,r)}function mot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const bot=yot;function lie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=jf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var wH=at();function _ot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=lie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Cot,h),showTooltip:Ae(wot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Oot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&xH(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,TH(S),TH(y)))),m[y.key]=T}})}),M(m,function(y,b){xH(c[b],y,g,!0,f)}),xot(h,c,f),Tot(p,a,n,o),Eot(c,o,t),f}}function xH(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=Sot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function Sot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Cot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function wot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Sy(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function xot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Tot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Eot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=wH(r)[a]||{},o=wH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Oot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function TH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",cot),n.registerComponentModel(fot),n.registerComponentView(bot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_ot)}function Iot(n){He(Lre),He(z0)}var Pot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=vM(i),p=Aot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Dot(r,a,i,l,g);rie(t,a,i,o,m)},e}(gM);function Dot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Aot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:yM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:bH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:bH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Mot=Pot;var Rot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Lot=Rot;var bM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);or(bM,R0);var kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(bM),Not=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(bM),_M=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);_M.prototype.dataToRadius=cs.prototype.dataToCoord;_M.prototype.radiusToData=cs.prototype.coordToData;const Fot=_M;var $ot=at(),SM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=$ot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);SM.prototype.dataToAngle=cs.prototype.dataToCoord;SM.prototype.angleToData=cs.prototype.coordToData;const Vot=SM;var uie=["radius","angle"],jot=function(){function n(e){this.dimensions=uie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fot,this._angleAxis=new Vot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=EH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=EH(t);return a===this?this.pointToData(r):null},n}();function EH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const zot=jot;function Bot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Hot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Uot(n){return n.mainType==="angleAxis"}function OH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Uot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Wot={dimensions:uie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new zot(a+"");i.update=Hot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");OH(o,l),OH(s,u),Bot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Got=Wot;var Yot=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function IH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});IH(u),IH(s),M(Yot,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Zot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Zot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function ast(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=die(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=cie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=PH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=PH(t);return a===this?this.pointToData(r):null},n}();function PH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function mst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new vst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var yst={create:mst,dimensions:hie};const bst=yst;var DH=["x","y"],_st=["width","height"],Sst=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=vM(i),h=Cst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(gM),Cst={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[DH[e]],t[DH[e]]+t[_st[e]]]}const wst=Sst;var xst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function Tst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",wst),n.registerComponentView(xst),n.registerComponentView(hst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",bst)}var Est=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=gv(t);n.prototype.init.apply(this,arguments),AH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),AH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function AH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return MWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Ost=Est;var Ist=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?PWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function MH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Ast=Dst;function Mst(n){n.registerComponentModel(Ost),n.registerComponentView(Pst),n.registerCoordinateSystem("calendar",Ast)}function Rst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Lst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),qee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var pie=["transition","enterFrom","leaveTo"],kst=pie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?pie:kst,a=0;a=0;c--){var d=a[c],f=dr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(LH,n)?LH[n]:e8(n),t=new e({});return to(t).type=n,t}function kH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function NH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function Vst(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xee),function(e){delete n[e]}),n}function jst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function zst(n){n.registerComponentModel(Fst),n.registerComponentView($st),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var FH=["x","y","radius","angle","single"],Bst=["cartesian2d","polar","singleAxis"];function Hst(n){var e=n.get("coordinateSystem");return Be(Bst,e)>=0}function ic(n){return n+"Axis"}function Ust(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function gie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=$H(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=$H(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(FH,function(a){var i=this.getReferringComponents(ic(a),uHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(FH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=xJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function Qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){_Ze(r,o.getData(),e)});var a=n.getAxisModel(),i=Mne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Jst=qst;var elt={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Jst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const tlt=elt;function nlt(n){n.registerAction("dataZoom",function(e,t){var r=Ust(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jH=!1;function wM(n){jH||(jH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,tlt),nlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rlt(n){n.registerComponentModel(Yst),n.registerComponentView(Xst),wM(n)}var oo=function(){function n(){}return n}(),vie={};function ip(n,e){vie[n]=e}function mie(n){return vie[n]}var alt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=mie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const ilt=alt;function olt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);xf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function yie(n,e){var t=pv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var slt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(llt(m))S={onclick:_.option.onclick,featureName:m};else{var C=mie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=hv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),dv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}olt(o,t,a),o.add(yie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function llt(n){return n.indexOf("my")===0}const ult=slt;var clt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const dlt=clt;var zH="__ec_magicType_stack__",flt=[["line","bar"],["stack"]],hlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(BH[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=BH[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(flt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),BH={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===zH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":zH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const plt=hlt;var lT=new Array(60).join("-"),Eg=" ";function glt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function vlt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function _lt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Olt(n){var e=xM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return bie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Ilt(n){_ie(n).snapshots=null}function Plt(n){return xM(n).length}function xM(n){var e=_ie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Dlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Ilt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Alt=Dlt;var Mlt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Rlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=HH(t,e);M(Llt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:YH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?YH[r.brushType](i.values,o.offset,klt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Oae(a),isTargetByCursor:Pae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Iae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=HH(t,e),i=0;in[1]&&n.reverse(),n}function HH(n,e){return s1(n,e,{includeMainTypes:Mlt})}var Llt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:WH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:WH.geo})})}},UH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],WH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(wf(n)),e}},n3={lineX:Ae(GH,0),lineY:Ae(GH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function GH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var YH={lineX:Ae(KH,0),lineY:Ae(KH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function KH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function klt(n,e){var t=ZH(n),r=ZH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function ZH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const TM=Rlt;var ND=M,Nlt=aHe("toolbox-dataZoom_"),Flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new iM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),jlt(t,r,this,i,a),Vlt(t,r)},e.prototype.onclick=function(t,r,a){$lt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new TM(EM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Elt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),$lt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Olt(this.ecModel))}};function EM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Vlt(n,e){n.setIconStatus("back",Plt(e)>1?"emphasis":"normal")}function jlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new TM(EM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}$We("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=EM(r),o=s1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Nlt+u+d};f[c]=d,a.push(f)}return a});const zlt=Flt;function Blt(n){n.registerComponentModel(ilt),n.registerComponentView(ult),ip("saveAsImage",dlt),ip("magicType",plt),ip("dataView",Tlt),ip("dataZoom",zlt),ip("restore",Alt),He(rlt)}var Hlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Ult=Hlt;function Sie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Cie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function qlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+OM+r:",left"+r+",top"+r),Ylt+":"+a}function XH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+OM+":"+o+";":[["top",0],["left",0],[wie,o]]}function Qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Jlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Dte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(qlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Kee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(Qlt(c)),d!=null&&r.push("padding:"+pv(d).join("px ")+"px"),r.join(";")+";"}function qH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Pze(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var eut=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;qH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Glt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Klt+Jlt(e,!this._firstShow,this._longHide)+XH(i[0],i[1],!0)+("border-color:"+Hf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!Sie(r)&&(s=Xlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=eU(i,a);this._ticket="";var s=i.dataByCoordSys,l=uut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=aut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=lie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(eU(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=gm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;lf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=gm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=aie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=P8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Hf(P.color),l);var A=VV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=gm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=WV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` + +`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=gm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Hf(y.color),h);var _=VV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?WV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=gm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Zee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=lut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=out(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=tU(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=tU(h)?d[1]/2:h==="bottom"?d[1]:0),Sie(t)){var y=sut(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(gy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function gm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function eU(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function out(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function sut(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function lut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function tU(n){return n==="center"||n==="middle"}function uut(n,e,t){var r=z9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const cut=iut;function dut(n){He(z0),n.registerComponentModel(Ult),n.registerComponentView(cut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var fut=["rect","polygon","keep","clear"];function hut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),put(s),e&&!s.length&&s.push.apply(s,fut)}}function put(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var nU=M;function rU(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return nU(e,function(i){var o=r[i]=a();nU(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Tie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])?n[a]=Ee(e[a]):delete n[a]})}function gut(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return y8(t,s,d)}function u(d,f){jte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&lU(e)}};function lU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var wut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Eie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const xut=wut;var Tut="#ddd",Eut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Tut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return uU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=uU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function uU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Out=Eut;var Iut=["rect","polygon","lineX","lineY","keep","clear"],Put=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Iut.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Dut=Put;function Aut(n){n.registerComponentView(xut),n.registerComponentModel(Out),n.registerPreprocessor(hut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,yut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Dut)}var Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Rut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Lut(n){n.registerComponentModel(Mut),n.registerComponentView(Rut)}var kut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=dr(lv(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const cU=kut;var Oie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Xc(cU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(cU);or(Oie,h8.prototype);const Nut=Oie;var Fut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const $ut=Fut;var Vut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const jut=Vut;var a3=Math.PI,dU=at(),zut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=Hut(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=But(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new jut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=fU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Cf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Cf(y),dU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Uut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Cf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),hU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){hU(d,u._progressLine,s,a,i)}};this._currentPointer=fU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Iy(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!Qut(e)&&!X(e.coord)&&X(a)){var i=Pie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=PM(t,t.mapDimension(a[c]),u[c]));return e}}function Pie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Jut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Jut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Py(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function ect(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Die(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function PM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nee(l):Y9(l))})}})},e.type="marker",e}(On);const DM=tct;function gU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(gU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=rct(o,t,r);r.setData(d),gU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(DM);function rct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Iy,e));n&&(i=Pt(i,Ae(Py,n)));var o=Die(!!n,r);return a.initData(i,null,o),a}const act=nct;function ict(n){n.registerComponentModel(qut),n.registerComponentView(act),n.registerPreprocessor(function(e){IM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var oct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const sct=oct;var M_=at(),lct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Pie(r,a,e,n);s=u.valueAxis;var c=vne(a,u.valueDataDim);l=PM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Iy(n,i[0]),Iy(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function vU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function uct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(vU(1,t,r,n)||vU(0,t,r,n)))return!0}return Py(n,e[0])&&Py(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new J8);this.group.add(c.group);var d=dct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(DM);function dct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(lct,e,n,t));n&&(s=Pt(s,Ae(uct,n)));var l=Die(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const fct=cct;function hct(n){n.registerComponentModel(sct),n.registerComponentView(fct),n.registerPreprocessor(function(e){IM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var pct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const gct=pct;var R_=at(),vct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Iy(n,a),s=Iy(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=P9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function mU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function mct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(mU(1,t,r)||mU(0,t,r))?!0:ect(n,a,i):Py(n,a)||Py(n,i)}function yU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var bU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(bU,function(d){return yU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=bct(o,t,r);r.setData(d),d.each(function(f){var h=J(bU,function(E){return yU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(DM);function bct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(vct,e,n,t));n&&(s=Pt(s,Ae(mct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const _ct=yct;function Sct(n){n.registerComponentModel(gct),n.registerComponentView(_ct),n.registerPreprocessor(function(e){IM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Cct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Cct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=wct;var Kh=Ae,zD=M,L_=Oe,xct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(_U,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(_U,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Cf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=Tct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Ect({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&dv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Cf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){xf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function Tct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Ect(n){var e=n.icon||"roundRect",t=ir(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function _U(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Aie(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Mie);const Mct=Act;function Rct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Lct(n){He(Rie),n.registerComponentModel(Dct),n.registerComponentView(Mct),Rct(n)}function kct(n){He(Rie),He(Lct)}var Nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Xc(Oy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Oy);const Fct=Nct;var AM=at();function $ct(n,e,t){AM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function Vct(n,e){for(var t=AM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Uct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=AM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,jct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Lie(a,i);return}var c=Hct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),bv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),$ct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Vct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(CM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:wU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:wU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function wU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Gct=Wct;function kie(n){wM(n),n.registerComponentModel(Fct),n.registerComponentView(Gct),Uct(n)}var Yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Xc(Oy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Oy);const Kct=Yct;var ym=rt,xU=7,Zct=1,f3=30,Xct=7,bm="horizontal",TU="vertical",qct=5,Qct=["line","bar","candlestick","scatter"],Jct={easing:"cubicOut",duration:100,delay:0},edt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),bv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Xct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bm?{right:s.width-o.x-o.width,top:s.height-f3-xU-i,width:o.width,height:f3}:{right:xU,top:o.y,width:f3,height:o.height},u=gv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===TU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bm&&!o?{scaleY:l?1:-1,scaleX:1}:a===bm&&o?{scaleY:l?1:-1,scaleX:-1}:a===TU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new ym({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ym({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(Qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=tdt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new ym({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new ym({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Zct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ir(S,-1,0,2,2,null,!0);C.attr({cursor:EU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Cf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ir(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:EU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new ym({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Jct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=gie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(CM);function tdt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function EU(n){return n==="vertical"?"ns-resize":"ew-resize"}const ndt=edt;function Nie(n){n.registerComponentModel(Kct),n.registerComponentView(ndt),wM(n)}function rdt(n){He(kie),He(Nie)}var adt={get:function(n,e,t){var r=Ee((idt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},idt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Fie=adt;var OU=Gr.mapVisual,odt=Gr.eachVisual,sdt=X,IU=M,ldt=go,udt=xt,cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=ldt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){sdt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},IU(p,function(m,y){if(Gr.isValidType(y)){var b=Fie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";IU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=OU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;odt(S,function(w){w>C&&(C=w)}),_.symbolSize=OU(S,function(w){return udt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=cdt;var PU=[20,140],ddt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=PU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=PU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=DU(this,"outOfRange",this.getExtent()),a=DU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();pdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],wf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,wf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||LU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=sHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(lf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function wdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(_dt,Sdt),M(Cdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(xdt))}function zie(n){n.registerComponentModel(fdt),n.registerComponentView(bdt),jie(n)}var Tdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Edt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Fie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Xc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Edt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function $U(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Odt=Tdt;var Idt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),xf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Vie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ir(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}($ie);const Pdt=Idt;function Bie(n){n.registerComponentModel(Odt),n.registerComponentView(Pdt),jie(n)}function Ddt(n){He(zie),He(Bie)}var Adt={label:{enabled:!0},decal:{show:!1}},VU=at(),Mdt={};function Rdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Adt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),VU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Mdt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=VU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ndt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):yze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),$dt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function Qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Uie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Uie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function tft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function nft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),nft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function rft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:fft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Yie(n){return oft(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function hft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var gft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;KU(n)&&(u=n,c=e),KU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;RM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:gft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?hft(w,T,P):pft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?ZU(c,u):ZU(f?e:n,[f?n:e]),p=0,g=0;gKie))for(var a=r.getIndices(),i=mft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function qU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function QU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function _ft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=qU(i),c=QU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=qU(i),u=QU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function JU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=JU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Zie(a,i,r)}function Cft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{wft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:nR(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(h9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Eft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:LM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Eft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:LM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Oft="_description_1a8jp_1",Ift="_card_1a8jp_5",Pft={description:Oft,card:Ift};async function Xie(n){return Er.post("/webapp/getAllBackends",n)}async function Dft(n){return Er.post("/webapp/saveBackend",n)}async function qie(n){return Er.post("/webapp/updateBackend",n)}async function Aft(n){return Er.post("/webapp/deleteBackend",n)}function Mft(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Xie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Rft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Aft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Pft.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Dft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):qie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Rft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,qie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(kq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(av.ADMIN),"aria-label":"active switch"})},Lft="_description_1a8jp_1",kft="_card_1a8jp_5",eW={description:Lft,card:kft};async function Nft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js +//! version : 2.29.4 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var Qie;function be(){return Qie.apply(null,arguments)}function Fft(n){Qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function If(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function kM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Jie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var VM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function Bft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Hft(n){var e=n.match(VM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Uft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(VM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Gft="Invalid date";function Yft(){return this._invalidDate}var Kft="%d",Zft=/\d{1,2}/;function Xft(n){return this._ordinal.replace("%d",n)}var qft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Jft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var b1={};function ma(n,e){var t=n.toLowerCase();b1[t]=b1[t+"s"]=b1[e]=n}function Po(n){return typeof n=="string"?b1[n]||b1[n.toLowerCase()]:void 0}function jM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var roe={};function ya(n,e){roe[n]=e}function eht(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:roe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function Cv(n,e){return function(t){return t!=null?(aoe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function aoe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function tht(n){return n=Po(n),fl(this[n])?this[n]():this}function nht(n,e){if(typeof n=="object"){n=jM(n);var t=eht(n),r,a=t.length;for(r=0;r68?1900:2e3)};var poe=Cv("FullYear",!0);function Sht(){return cT(this.year())}function Cht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Dy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Dy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function goe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=_1(l)+s):s>_1(n)?(l=n+1,u=s-_1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Ay(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(_1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function wht(n){return Ay(n,this._week.dow,this._week.doy).week}var xht={dow:0,doy:6};function Tht(){return this._week.dow}function Eht(){return this._week.doy}function Oht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Iht(n){var e=Ay(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Pht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Dht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function HM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Aht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),voe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rht=U0,Lht=U0,kht=U0;function Nht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?HM(t,this._week.dow):n?t[n.day()]:t}function Fht(n){return n===!0?HM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function $ht(n){return n===!0?HM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Vht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function jht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return Vht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Pht(n,this.localeData()),this.add(n-e,"d")):e}function Bht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Hht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Dht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Rht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ght(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function UM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function WM(){return this.hours()%12||12}function Yht(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,WM);Re("k",["kk",2],0,Yht);Re("hmm",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function moe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}moe("a",!0);moe("A",!1);ma("hour","h");ya("hour",13);function yoe(n,e){return e._meridiemParse}xe("a",yoe);xe("A",yoe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",soe);xe("hmmss",loe);xe("Hmm",soe);xe("Hmmss",loe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Kht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Zht=/[ap]\.?m?\.?/i,Xht=Cv("Hours",!0);function qht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var boe={calendar:jft,longDateFormat:Uft,invalidDate:Gft,ordinal:Kft,dayOfMonthOrdinalParse:Zft,relativeTime:qft,months:dht,monthsShort:uoe,week:xht,weekdays:Aht,weekdaysMin:Mht,weekdaysShort:voe,meridiemParse:Zht},xn={},_m={},My;function Qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&Qht(i,r)>=t-1)break;t--}e++}return My}function ept(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&ept(n))try{e=My._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=GM(n,e),t?My=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),My._abbr}function GM(n,e){if(e!==null){var t,r=boe;if(e.abbr=n,xn[n]!=null)toe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return _m[e.parentLocale]||(_m[e.parentLocale]=[]),_m[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new $M(KD(r,e)),_m[n]&&_m[n].forEach(function(a){GM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function tpt(n,e){if(e!=null){var t,r,a=boe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new $M(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return My;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Jht(n)}function npt(){return ZD(xn)}function YM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[ff]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[ff]<0||t[ff]>999?ff:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=lht),nt(n)._overflowWeekday&&e===-1&&(e=uht),nt(n).overflow=e),n}var rpt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ipt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],opt=/^\/?Date\((-?\d+)/i,spt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lpt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _oe(n){var e,t,r=n._i,a=rpt.exec(r)||apt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;e_1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Dy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[ff]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Dy:Cht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function vpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Ay(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Ay(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=goe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function ZM(n){if(n._f===be.ISO_8601){_oe(n);return}if(n._f===be.RFC_2822){Soe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=noe(n._f,n._locale).match(VM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),sht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=mpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),KM(n),YM(n)}function mpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function ypt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function xoe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vpt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return FM(n,this),n=Coe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Dpt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jpt(){return this.isValid()?!this._isUTC:!1}function zpt(){return this.isValid()?this._isUTC:!1}function Eoe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[ff]*1e3))*a}):(r=Hpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Pd(r[2],a),M:Pd(r[3],a),w:Pd(r[4],a),d:Pd(r[5],a),h:Pd(r[6],a),m:Pd(r[7],a),s:Pd(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Upt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ppt;function Pd(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function aW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Upt(n,e){var t;return n.isValid()&&e.isValid()?(e=qM(e,n),n.isBefore(e)?t=aW(n,e):(t=aW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Ooe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(toe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ioe(this,a,n),this}}function Ioe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&doe(n,$C(n,"Month")+o*t),i&&aoe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Wpt=Ooe(1,"add"),Gpt=Ooe(-1,"subtract");function Poe(n){return typeof n=="string"||n instanceof String}function Ypt(n){return is(n)||B0(n)||Poe(n)||uu(n)||Zpt(n)||Kpt(n)||n===null||n===void 0}function Kpt(n){var e=If(n)&&!kM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ugt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function cgt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function dgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fgt(n){return this.from(Sn(),n)}function hgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function pgt(n){return this.to(Sn(),n)}function Doe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Aoe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Moe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Roe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Loe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Roe:new Date(n,e,t).valueOf()}function koe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Roe:Date.UTC(n,e,t)}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function mgt(){return this._d.valueOf()-(this._offset||0)*6e4}function ygt(){return Math.floor(this.valueOf()/1e3)}function bgt(){return new Date(this.valueOf())}function _gt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Sgt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Cgt(){return this.isValid()?this.toISOString():null}function wgt(){return NM(this)}function xgt(){return oc({},nt(this))}function Tgt(){return nt(this).overflow}function Egt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",QM);xe("NN",QM);xe("NNN",QM);xe("NNNN",Fgt);xe("NNNNN",$gt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",wv);xe("yy",wv);xe("yyy",wv);xe("yyyy",wv);xe("yo",Vgt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Ogt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Pgt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Dgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Ggt.call(this,n,e,t,r,a))}function Ggt(n,e,t,r,a){var i=goe(n,e,t,r,a),o=Dy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",ioe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ygt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Foe=Cv("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ooe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Kgt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Zgt=Cv("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Xgt=Cv("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,ioe);xe("SS",fT,Bi);xe("SSS",fT,ooe);var sc,$oe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,wv);function qgt(n,e){e[ff]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,qgt);$oe=Cv("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function Qgt(){return this._isUTC?"UTC":""}function Jgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Wpt;de.calendar=Qpt;de.clone=Jpt;de.diff=ogt;de.endOf=vgt;de.format=cgt;de.from=dgt;de.fromNow=fgt;de.to=hgt;de.toNow=pgt;de.get=tht;de.invalidAt=Tgt;de.isAfter=egt;de.isBefore=tgt;de.isBetween=ngt;de.isSame=rgt;de.isSameOrAfter=agt;de.isSameOrBefore=igt;de.isValid=wgt;de.lang=Aoe;de.locale=Doe;de.localeData=Moe;de.max=wpt;de.min=Cpt;de.parsingFlags=xgt;de.set=nht;de.startOf=ggt;de.subtract=Gpt;de.toArray=_gt;de.toObject=Sgt;de.toDate=bgt;de.toISOString=lgt;de.inspect=ugt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Cgt;de.toString=sgt;de.unix=ygt;de.valueOf=mgt;de.creationData=Egt;de.eraName=Dgt;de.eraNarrow=Agt;de.eraAbbr=Mgt;de.eraYear=Rgt;de.year=poe;de.isLeapYear=Sht;de.weekYear=jgt;de.isoWeekYear=zgt;de.quarter=de.quarters=Ygt;de.month=foe;de.daysInMonth=yht;de.week=de.weeks=Oht;de.isoWeek=de.isoWeeks=Iht;de.weeksInYear=Ugt;de.weeksInWeekYear=Wgt;de.isoWeeksInYear=Bgt;de.isoWeeksInISOWeekYear=Hgt;de.date=Foe;de.day=de.days=zht;de.weekday=Bht;de.isoWeekday=Hht;de.dayOfYear=Kgt;de.hour=de.hours=Xht;de.minute=de.minutes=Zgt;de.second=de.seconds=Xgt;de.millisecond=de.milliseconds=$oe;de.utcOffset=Mpt;de.utc=Lpt;de.local=kpt;de.parseZone=Npt;de.hasAlignedHourOffset=Fpt;de.isDST=$pt;de.isLocal=jpt;de.isUtcOffset=zpt;de.isUtc=Eoe;de.isUTC=Eoe;de.zoneAbbr=Qgt;de.zoneName=Jgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Foe);de.months=Io("months accessor is deprecated. Use month instead",foe);de.years=Io("years accessor is deprecated. Use year instead",poe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vpt);function evt(n){return Sn(n*1e3)}function tvt(){return Sn.apply(null,arguments).parseZone()}function Voe(n){return n}var Ft=$M.prototype;Ft.calendar=zft;Ft.longDateFormat=Wft;Ft.invalidDate=Yft;Ft.ordinal=Xft;Ft.preparse=Voe;Ft.postformat=Voe;Ft.relativeTime=Qft;Ft.pastFuture=Jft;Ft.set=Vft;Ft.eras=Ogt;Ft.erasParse=Igt;Ft.erasConvertYear=Pgt;Ft.erasAbbrRegex=kgt;Ft.erasNameRegex=Lgt;Ft.erasNarrowRegex=Ngt;Ft.months=pht;Ft.monthsShort=ght;Ft.monthsParse=mht;Ft.monthsRegex=_ht;Ft.monthsShortRegex=bht;Ft.week=wht;Ft.firstDayOfYear=Eht;Ft.firstDayOfWeek=Tht;Ft.weekdays=Nht;Ft.weekdaysMin=$ht;Ft.weekdaysShort=Fht;Ft.weekdaysParse=jht;Ft.weekdaysRegex=Uht;Ft.weekdaysShortRegex=Wht;Ft.weekdaysMinRegex=Ght;Ft.isPM=Kht;Ft.meridiem=qht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function joe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function eR(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function nvt(n,e){return joe(n,e,"months")}function rvt(n,e){return joe(n,e,"monthsShort")}function avt(n,e,t){return eR(n,e,t,"weekdays")}function ivt(n,e,t){return eR(n,e,t,"weekdaysShort")}function ovt(n,e,t){return eR(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function svt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function zoe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function lvt(n,e){return zoe(this,n,e,1)}function uvt(n,e){return zoe(this,n,e,-1)}function iW(n){return n<0?Math.floor(n):Math.ceil(n)}function cvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=iW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(Boe(e)),t+=l,e-=iW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function Boe(n){return n*4800/146097}function JD(n){return n*146097/4800}function dvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+Boe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function fvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var hvt=gu("ms"),pvt=gu("s"),gvt=gu("m"),vvt=gu("h"),mvt=gu("d"),yvt=gu("w"),bvt=gu("M"),_vt=gu("Q"),Svt=gu("y");function Cvt(){return ds(this)}function wvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var xvt=vh("milliseconds"),Tvt=vh("seconds"),Evt=vh("minutes"),Ovt=vh("hours"),Ivt=vh("days"),Pvt=vh("months"),Dvt=vh("years");function Avt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mvt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Rvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Mvt.apply(null,f)}function Lvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function kvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function Nvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Rvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Ipt;Tt.abs=svt;Tt.add=lvt;Tt.subtract=uvt;Tt.as=dvt;Tt.asMilliseconds=hvt;Tt.asSeconds=pvt;Tt.asMinutes=gvt;Tt.asHours=vvt;Tt.asDays=mvt;Tt.asWeeks=yvt;Tt.asMonths=bvt;Tt.asQuarters=_vt;Tt.asYears=Svt;Tt.valueOf=fvt;Tt._bubble=cvt;Tt.clone=Cvt;Tt.get=wvt;Tt.milliseconds=xvt;Tt.seconds=Tvt;Tt.minutes=Evt;Tt.hours=Ovt;Tt.days=Ivt;Tt.weeks=Avt;Tt.months=Pvt;Tt.years=Dvt;Tt.humanize=Nvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Doe;Tt.localeData=Moe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Aoe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",aht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js +be.version="2.29.4";Fft(Sn);be.fn=de;be.min=xpt;be.max=Tpt;be.now=Ept;be.utc=dl;be.unix=evt;be.months=nvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=avt;be.parseZone=tvt;be.localeData=pu;be.isDuration=$2;be.monthsShort=rvt;be.weekdaysMin=ovt;be.defineLocale=GM;be.updateLocale=tpt;be.locales=npt;be.weekdaysShort=ivt;be.normalizeUnits=Po;be.relativeTimeRounding=Lvt;be.relativeTimeThreshold=kvt;be.calendarFormat=qpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Fvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function $vt(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Xie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),Nft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Fvt(b)}),y=b=>V.jsx(Nf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(av.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const Vvt="_description_1a8jp_1",jvt="_card_1a8jp_5",oW={description:Vvt,card:jvt};async function zvt(n){return Er.post("/webapp/findSelector",n)}async function Bvt(n){return Er.post("/webapp/saveSelector",n)}async function Hvt(n){return Er.post("/webapp/updateSelector",n)}async function Uvt(n){return Er.post("/webapp/deleteSelector",n)}function Wvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{zvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Uvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Bvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Hvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Gvt="_description_1a8jp_1",Yvt="_card_1a8jp_5",sW={description:Gvt,card:Yvt};async function Kvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function qvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function Qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Kvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{qvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Xvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const tR=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(QF,{className:Ot.icon}),roles:[],routeProps:{path:"/",element:V.jsx(ice,{to:"/dashboard"})}},{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(QF,{className:Ot.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(xft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Gje,{className:Ot.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Mft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Uje,{className:Ot.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(Qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Kje,{className:Ot.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Wvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(Bje,{className:Ot.icon}),roles:[],routeProps:{path:"/history",element:V.jsx($vt,{})}}],e6=tR.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function nR(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Jvt=n=>{const e=$i(),t=jQ(),r=Mg(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{dje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Fd.Auto,Fd.Light,Fd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Ot.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Ot.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Ot.dIV,children:[V.jsx(Jt,{icon:p===Fd.Auto?V.jsx(y5e,{className:Ot.semiIconsBell}):p===Fd.Light?V.jsx(V5e,{className:Ot.semiIconsBell}):p===Fd.Dark?V.jsx(S5e,{className:Ot.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(i5e,{className:Ot.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Ot.avatar,children:e.nickName})})]}),className:Ot.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Ot.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Ot.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(vce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:tR.filter(m=>nR(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Ot.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(yZ,{})}):V.jsx("div",{className:Ot.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(mZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Ot.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Ot.userProfile,children:[V.jsxs("div",{className:Ot.banner,children:[V.jsx("div",{className:Ot.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Ot.avatar,children:e.userName})}),V.jsx("div",{className:Ot.name,children:V.jsx("p",{className:Ot.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Ot.main,children:[V.jsx("div",{className:Ot.descriptions,children:V.jsxs("div",{className:Ot.frame4152,children:[V.jsx(h5e,{className:Ot.semiIconsMapPin}),V.jsx("p",{className:Ot.value,children:e.userId})]})}),V.jsx("div",{className:Ot.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Ot.tag2,children:m},m))})]})]})})]})};var emt=Object.defineProperty,lW=Object.getOwnPropertySymbols,tmt=Object.prototype.hasOwnProperty,nmt=Object.prototype.propertyIsEnumerable,uW=(n,e,t)=>e in n?emt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,rmt=(n,e)=>{for(var t in e||(e={}))tmt.call(e,t)&&uW(n,t,e[t]);if(lW)for(var t of lW(e))nmt.call(e,t)&&uW(n,t,e[t]);return n};function amt(n){return D.createElement("svg",rmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var imt=amt,omt=Object.defineProperty,cW=Object.getOwnPropertySymbols,smt=Object.prototype.hasOwnProperty,lmt=Object.prototype.propertyIsEnumerable,dW=(n,e,t)=>e in n?omt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,umt=(n,e)=>{for(var t in e||(e={}))smt.call(e,t)&&dW(n,t,e[t]);if(cW)for(var t of cW(e))lmt.call(e,t)&&dW(n,t,e[t]);return n};function cmt(n){return D.createElement("svg",umt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var dmt=cmt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=fW.get("token");e&&(n.updateToken(e),fW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Jvt,{children:V.jsxs(sce,{children:[tR.flatMap(e=>nR(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(gmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(gje,{})})})}function gmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(hq,{image:V.jsx(dmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(imt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function vmt(){const n=jQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=LM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(hmt,{})}))});export default mmt(); diff --git a/gateway-ha/src/main/resources/static/index.html b/gateway-ha/src/main/resources/static/index.html index 0aeab3374..d6bb26715 100644 --- a/gateway-ha/src/main/resources/static/index.html +++ b/gateway-ha/src/main/resources/static/index.html @@ -5,7 +5,7 @@ Trino Gateway - + diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx index 232e56163..283669b21 100644 --- a/webapp/src/App.tsx +++ b/webapp/src/App.tsx @@ -3,7 +3,8 @@ import { ErrorBoundary } from './components/error'; import { HashRouter as Router, Routes, - Route + Route, + Navigate } from "react-router-dom"; import { Login } from './components/login'; import { RootLayout as Layout } from './components/layout'; @@ -48,6 +49,8 @@ function Screen() { {routers.flatMap(router => { return hasPagePermission(router, access) ? [] : []; })} + {/* Landing page */} + } /> {/* Default page */} } key={"*"} /> diff --git a/webapp/src/components/layout.tsx b/webapp/src/components/layout.tsx index faa3e1269..8db24fa41 100644 --- a/webapp/src/components/layout.tsx +++ b/webapp/src/components/layout.tsx @@ -26,7 +26,7 @@ export const RootLayout = (props: { } }, [location]); - const lonout = () => { + const logout = () => { logoutApi({}).then(data => { console.log(data); access.updateToken(""); @@ -56,7 +56,11 @@ export const RootLayout = (props: { className={styles.navigationHeaderLogo} /> ), - text: "Trino Gateway", + text: ( + + Trino Gateway + + ), }} footer={
@@ -80,7 +84,7 @@ export const RootLayout = (props: { render={ { setUserProfile(true) }}>{Locale.Menu.Header.PersonalCenter} - {Locale.Menu.Header.Logout} + {Locale.Menu.Header.Logout} } > diff --git a/webapp/src/router.tsx b/webapp/src/router.tsx index fe061b7d9..ab72bfd04 100644 --- a/webapp/src/router.tsx +++ b/webapp/src/router.tsx @@ -33,13 +33,13 @@ export type RouterItems = (RouterItem | SubRouterItem)[] export const routers: RouterItems = [ { - itemKey: '', + itemKey: 'dashboard', text: Locale.Menu.Sider.Dashboard, icon: , // Role.**** roles: [], routeProps: { - path: '/', + path: '/dashboard', element: < Dashboard /> }, }, From 8448dbfe109e8bbb93660f47aa438bc428e7420f Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 6 Apr 2024 02:52:27 -0400 Subject: [PATCH 042/148] Allow pnpmRegistryURL to be configurable --- gateway-ha/pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 80b7e9155..cc1eeb2b1 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -18,6 +18,7 @@ development io.trino.gateway.ha.HaGatewayLauncher webapp + https://registry.npmmirror.com 4.1.0 @@ -601,6 +602,7 @@ generate-resources install --ignore-scripts + ${frontend.pnpmRegistryURL} From 9b1fa3607850a619b7fec76e01cc0267efe01057 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 8 Apr 2024 00:03:27 +0900 Subject: [PATCH 043/148] Refactor JDBI related classes --- .../RecordAndAnnotatedConstructorMapper.java | 10 +------ .../dao/ExactMatchSourceSelectors.java | 6 ++-- .../ha/persistence/dao/GatewayBackend.java | 25 +++++++--------- .../ha/persistence/dao/QueryHistory.java | 29 +++++++++---------- .../ha/persistence/dao/ResourceGroups.java | 4 +-- .../dao/ResourceGroupsGlobalProperties.java | 14 ++++----- 6 files changed, 36 insertions(+), 52 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/RecordAndAnnotatedConstructorMapper.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/RecordAndAnnotatedConstructorMapper.java index ad9c1e5fb..53ba1472c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/RecordAndAnnotatedConstructorMapper.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/RecordAndAnnotatedConstructorMapper.java @@ -17,11 +17,9 @@ import org.jdbi.v3.core.mapper.RowMapper; import org.jdbi.v3.core.mapper.RowMapperFactory; import org.jdbi.v3.core.mapper.reflect.ConstructorMapper; -import org.jdbi.v3.core.mapper.reflect.JdbiConstructor; import java.lang.reflect.Type; import java.util.Optional; -import java.util.stream.Stream; public class RecordAndAnnotatedConstructorMapper implements RowMapperFactory @@ -29,15 +27,9 @@ public class RecordAndAnnotatedConstructorMapper @Override public Optional> build(Type type, ConfigRegistry config) { - if ((type instanceof Class clazz) && (clazz.isRecord() || hasJdbiConstructorMethod(clazz))) { + if ((type instanceof Class clazz) && clazz.isRecord()) { return ConstructorMapper.factory(clazz).build(type, config); } return Optional.empty(); } - - private boolean hasJdbiConstructorMethod(Class clazz) - { - return Stream.of(clazz.getConstructors()).anyMatch(constructor -> (constructor.getAnnotation(JdbiConstructor.class) != null)) - || Stream.of(clazz.getMethods()).anyMatch(method -> (method.getAnnotation(JdbiConstructor.class) != null)); - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java index cee365b1c..9e9e7eed8 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ExactMatchSourceSelectors.java @@ -26,8 +26,8 @@ public record ExactMatchSourceSelectors( { public ExactMatchSourceSelectors { - requireNonNull(resourceGroupId); - requireNonNull(updateTime); - requireNonNull(source); + requireNonNull(resourceGroupId, "resourceGroupId is null"); + requireNonNull(updateTime, "updateTime is null"); + requireNonNull(source, "source is null"); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/GatewayBackend.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/GatewayBackend.java index a33521a2d..147574ce0 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/GatewayBackend.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/GatewayBackend.java @@ -14,24 +14,21 @@ package io.trino.gateway.ha.persistence.dao; import org.jdbi.v3.core.mapper.reflect.ColumnName; -import org.jdbi.v3.core.mapper.reflect.JdbiConstructor; import static java.util.Objects.requireNonNull; -public record GatewayBackend(String name, String routingGroup, String backendUrl, String externalUrl, boolean active) +public record GatewayBackend( + @ColumnName("name") String name, + @ColumnName("routing_group") String routingGroup, + @ColumnName("backend_url") String backendUrl, + @ColumnName("external_url") String externalUrl, + @ColumnName("active") boolean active) { - @JdbiConstructor - public GatewayBackend( - @ColumnName("name") String name, - @ColumnName("routing_group") String routingGroup, - @ColumnName("backend_url") String backendUrl, - @ColumnName("external_url") String externalUrl, - @ColumnName("active") boolean active) + public GatewayBackend { - this.name = requireNonNull(name, "name is null"); - this.routingGroup = requireNonNull(routingGroup, "routingGroup is null"); - this.backendUrl = requireNonNull(backendUrl, "backendUrl is null"); - this.externalUrl = requireNonNull(externalUrl, "externalUrl is null"); - this.active = active; + requireNonNull(name, "name is null"); + requireNonNull(routingGroup, "routingGroup is null"); + requireNonNull(backendUrl, "backendUrl is null"); + requireNonNull(externalUrl, "externalUrl is null"); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java index 7e0f0ce8b..09bfdb3d0 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java @@ -14,26 +14,23 @@ package io.trino.gateway.ha.persistence.dao; import org.jdbi.v3.core.mapper.reflect.ColumnName; -import org.jdbi.v3.core.mapper.reflect.JdbiConstructor; import static java.util.Objects.requireNonNull; -public record QueryHistory(String queryId, String queryText, String backendUrl, String userName, String source, long created) +public record QueryHistory( + @ColumnName("query_id") String queryId, + @ColumnName("query_text") String queryText, + @ColumnName("backend_url") String backendUrl, + @ColumnName("user_name") String userName, + @ColumnName("source") String source, + @ColumnName("created") long created) { - @JdbiConstructor - public QueryHistory( - @ColumnName("query_id") String queryId, - @ColumnName("query_text") String queryText, - @ColumnName("backend_url") String backendUrl, - @ColumnName("user_name") String userName, - @ColumnName("source") String source, - @ColumnName("created") long created) + public QueryHistory { - this.queryId = requireNonNull(queryId, "queryId is null"); - this.queryText = requireNonNull(queryText, "queryText is null"); - this.backendUrl = requireNonNull(backendUrl, "backendUrl is null"); - this.userName = requireNonNull(userName, "userName is null"); - this.source = requireNonNull(source, "source is null"); - this.created = created; + requireNonNull(queryId, "queryId is null"); + requireNonNull(queryText, "queryText is null"); + requireNonNull(backendUrl, "backendUrl is null"); + requireNonNull(userName, "userName is null"); + requireNonNull(source, "source is null"); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java index 360174125..13fc49cfc 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroups.java @@ -34,7 +34,7 @@ public record ResourceGroups( { public ResourceGroups { - requireNonNull(name); - requireNonNull(softMemoryLimit); + requireNonNull(name, "name is null"); + requireNonNull(softMemoryLimit, "softMemoryLimit is null"); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsGlobalProperties.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsGlobalProperties.java index 3710ce5f3..78215ba64 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsGlobalProperties.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsGlobalProperties.java @@ -14,18 +14,16 @@ package io.trino.gateway.ha.persistence.dao; import org.jdbi.v3.core.mapper.reflect.ColumnName; -import org.jdbi.v3.core.mapper.reflect.JdbiConstructor; import static java.util.Objects.requireNonNull; -public record ResourceGroupsGlobalProperties(String name, String value) +public record ResourceGroupsGlobalProperties( + @ColumnName("name") String name, + @ColumnName("value") String value) { - @JdbiConstructor - public ResourceGroupsGlobalProperties( - @ColumnName("name") String name, - @ColumnName("value") String value) + public ResourceGroupsGlobalProperties { - this.name = requireNonNull(name, "name is null"); - this.value = requireNonNull(value, "value is null"); + requireNonNull(name, "name is null"); + requireNonNull(value, "value is null"); } } From d5cd5f00191258c13a10163af4215761538f92e2 Mon Sep 17 00:00:00 2001 From: Andy Date: Sat, 6 Apr 2024 13:05:12 -0400 Subject: [PATCH 044/148] Add /static folder to gitignore --- .gitignore | 2 + .../resources/static/assets/index-05SkmtNI.js | 169 ------------------ .../resources/static/assets/index-DjKQuKRX.js | 169 ------------------ .../resources/static/assets/index-LPSIbY_J.js | 169 ------------------ .../static/assets/index-WjKhXYTT.css | 1 - .../resources/static/assets/index-aIgX_lG9.js | 169 ------------------ .../resources/static/assets/index-d2L8ur2V.js | 169 ------------------ .../resources/static/assets/index-uyYFzuRs.js | 169 ------------------ .../resources/static/assets/index-ytwn7x7b.js | 169 ------------------ .../src/main/resources/static/index.html | 14 -- gateway-ha/src/main/resources/static/logo.svg | 121 ------------- 11 files changed, 2 insertions(+), 1319 deletions(-) delete mode 100644 gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js delete mode 100644 gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js delete mode 100644 gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js delete mode 100644 gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css delete mode 100644 gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js delete mode 100644 gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js delete mode 100644 gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js delete mode 100644 gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js delete mode 100644 gateway-ha/src/main/resources/static/index.html delete mode 100644 gateway-ha/src/main/resources/static/logo.svg diff --git a/.gitignore b/.gitignore index fcd1bfbaa..ce4f1deb1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ target/** .idea/** *.iml /**/var/ + +gateway-ha/**/static/** diff --git a/gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js b/gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js deleted file mode 100644 index fbd18f96c..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-05SkmtNI.js +++ /dev/null @@ -1,169 +0,0 @@ -var Hoe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Hoe((Bmt,j2)=>{function Uoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Woe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var cW={exports:{}},UC={},dW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ay=Symbol.for("react.element"),Goe=Symbol.for("react.portal"),Yoe=Symbol.for("react.fragment"),Koe=Symbol.for("react.strict_mode"),Zoe=Symbol.for("react.profiler"),Xoe=Symbol.for("react.provider"),qoe=Symbol.for("react.context"),Qoe=Symbol.for("react.forward_ref"),Joe=Symbol.for("react.suspense"),ese=Symbol.for("react.memo"),tse=Symbol.for("react.lazy"),eR=Symbol.iterator;function nse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var fW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hW=Object.assign,pW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=pW,this.updater=t||fW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function gW(){}gW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=pW,this.updater=t||fW}var r6=n6.prototype=new gW;r6.constructor=n6;hW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,vW=Object.prototype.hasOwnProperty,a6={current:null},mW={key:!0,ref:!0,__self:!0,__source:!0};function yW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)vW.call(e,r)&&!mW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(CW);SW.exports=CW;var pse=SW.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var wW=D,Fi=pse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,gse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function vse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:gse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function mse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function yse(n,e,t,r){if(e===null||typeof e>"u"||mse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function bse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case EW:return(n.displayName||"Context")+".Consumer";case TW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function _se(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function IW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sse(n){var e=IW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=Sse(n))}function PW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=IW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function DW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){DW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Cse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function LW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function kW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=LW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var wse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(wse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function NW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function FW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Lse(n)/kse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function Vse(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function rG(n,e){switch(n){case"keyup":return hle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function gle(n,e){switch(n){case"compositionend":return aG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function vle(n,e){if(up)return n==="compositionend"||!_6&&rG(n,e)?(n=tG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function lG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?lG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function uG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function Tle(n){var e=uG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&lG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function yG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,_se(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=yG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function bG(n){Ol===null?Ol=[n]:Ol.push(n)}function Fle(n){XC=!0,bG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=OG(!0),IG=OG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function PG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function WG(){return So().memoizedState}function zle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},GG(n))YG(e,t);else if(t=wG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),KG(t,e,r)}}function Ble(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(GG(n))YG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=wG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),KG(t,e,r))}}function GG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function YG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function KG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Hle={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,jG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=zle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=jle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||MG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(LG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,RG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,rY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function qle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,Qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Jle(n,e){if(H3=G2,n=uG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function oY(n){var e=n.alternate;e!==null&&(n.alternate=null,oY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[kle],delete e[Nle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function sY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||sY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)lY(n,e,t),t=t.sibling}function lY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Qle),e.forEach(function(r){var a=lue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function vY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function sue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),vY(n,t)}function lue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),vY(n,t)}var mY;mY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Zle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&_G(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=cue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(eY(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,xG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=IG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return PG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),JG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return tY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return qG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),EG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return nY(n,e,t);case 22:return QG(n,e,t)}throw Error(ue(156,e.tag))};function yY(n,e){return UW(n,e)}function uue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new uue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case OW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case TW:o=10;break e;case EW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=OW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function due(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new due(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function fue(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CY)}catch(n){console.error(n)}}CY(),_W.exports=ji;var Ti=_W.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class mue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||bue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function _ue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function Sue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=wY(n);Cue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),wY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Pue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of xY(i.path))a(i,o,l)}),e}function xY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=xY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Cue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Due(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const wue=/^:\w+$/,xue=3,Tue=2,Eue=1,Oue=10,Iue=-2,fL=n=>n==="*";function Pue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Iue),e&&(r+=Tue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(wue.test(i)?xue:i===""?Eue:Oue),r)}function Due(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Aue(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=kue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Rue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Lue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function kue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function Nue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Fue(t,e):e,search:jue(r),hash:zue(a)}}function Fue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $ue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function TY(n){return $ue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function EY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=Nue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),Vue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Bue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const OY=["post","put","patch","delete"];new Set(OY);const Hue=["get",...OY];new Set(Hue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=EY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function AY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(TY(r));return D.useMemo(()=>EY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Yue(n,e){return Kue(n,e)}function Kue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Sue(n,{pathname:f}),p=Jue(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Zue(){let n=rce(),e=Bue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Xue=D.createElement(Zue,null);class que extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(IY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Jue(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Xue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(Que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(que,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var MY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(MY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function ece(n){let e=D.useContext(q6);return e||dr(!1),e}function tce(n){let e=D.useContext(Uue);return e||dr(!1),e}function nce(n){let e=D.useContext(Kf);return e||dr(!1),e}function RY(n){let e=nce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function rce(){var n;let e=D.useContext(IY),t=tce(hS.UseRouteError),r=RY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function ace(){let{router:n}=ece(MY.UseNavigateStable),e=RY(hS.UseNavigateStable),t=D.useRef(!1);return PY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ice(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function oce(n){let{children:e,location:t}=n;return Yue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function lce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function uce(n,e){return n.button===0&&(!e||e==="_self")&&!lce(n)}const cce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],dce="startTransition",hL=sse[dce];function fce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=yue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ice,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const hce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pL=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=sce(e,cce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&pce.test(u)&&(p=u,hce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Wue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var gL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(gL||(gL={}));var vL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(vL||(vL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=DY(),u=Fy(),c=AY(n,{relative:o});return D.useCallback(d=>{if(uce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,LY=mce,yce=LY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,mL=Ag,kY=Object.prototype,Rce=kY.hasOwnProperty,Lce=kY.toString,Av=mL?mL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,yL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",bL=yL?yL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:bL&&bL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,_L=pi,Qce=Mg,SL=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return SL;if(_L(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=_L(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?SL:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,CL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=CL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(CL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var NY=lde;const J6=Ie(NY);var ude=NY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var FY=pde;const B=Ie(FY);var $Y={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var AL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!PL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;PL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function ZY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:ZY(n)?n:{block:"start",inline:"nearest"}}function ML(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(ZY(e)&&typeof e.behavior=="function")return e.behavior(t?AL(n,e):[]);if(t){var r=lpe(e);return spe(AL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var oK=Age;const F1=Ie(oK);gS.exports;(function(n,e){var t=os,r=oK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,sK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=sK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=LY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,FL=Hy,$L=FL&&FL.isTypedArray,bve=$L?yve($L):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var lK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),hK=Ume,Wme=Wy,Gme=fK,Yme=hK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?DK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=DK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var AK=Ube;const Wbe=Ie(AK);var Gbe=AK,Ybe=fK,Kbe=hK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var MK=Zbe,Xbe=Xf,qbe=ww,Qbe=PK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=MK,r_e=SK,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function $K(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return jK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},zK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function BK(){return document?document.activeElement:null}function HK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class WK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}WK.defaultProps={motion:!0,replayKey:""};const ig=WK;var bk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(UK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new FK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=bk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=bk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>HK(t),getActiveElement:()=>BK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const GK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=GK;x7.exports.default=GK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),YK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function ZK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function _k(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=_k(n),r=_k(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function XK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=qK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function QK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function JK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=qK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=JK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=QK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Ck(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Ck(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Sk(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Sk(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function Sk(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Ck(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var wk=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eZ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return wk(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",wk(a,t)).replace("{{time}}",eZ(i,t))},tCe={p:eZ,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function tZ(n){return nCe.indexOf(n)!==-1}function nZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:KK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=ZK(I),A=XK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&nZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&tZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function rZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function aZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Ek(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function uZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=lZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=lZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=JK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=QK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=Tk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&nZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=XK(G,ZK(G)),Q={},Z=Tk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ok(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ik(n,e){qe(2,arguments);var t=Ok(n),r=Ok(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function dZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(dZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(dZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=rZ(o);return t.setMonth(r,Math.min(i,s)),t}function fZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function hZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Pk(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Pk,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Pk,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:KK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(YK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});pZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(pZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),gZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),vZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),mZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),yZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),bZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),_Z=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),SZ=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,CZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,CZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};wZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=wZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:CZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var xZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),TZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),OZ=typeof WeakMap<"u"?new WeakMap:new xZ,IZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);OZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){IZ.prototype[n]=function(){var e;return(e=OZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:IZ}();const Ak=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Ak(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Ak(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(XY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=XY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,PZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var DZ=R4e;const Rn=Ie(DZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Mk++,a=Mk);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(AZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class MZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},MZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:PZ.PREFIX_OPTION};const LZ=Rw,vb=PZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(LZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=LZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function kZ(n,e){return 1-3*e+3*n}function NZ(n,e){return 3*e-6*n}function FZ(n){return 3*n}function OS(n,e,t){return((kZ(e,t)*n+NZ(e,t))*n+FZ(e))*n}function $Z(n,e,t){return 3*kZ(e,t)*n*n+2*NZ(e,t)*n+FZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Lk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Lk(n,1,10),r=Lk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function kk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function Nk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=kk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=kk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let VZ=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const jZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const BZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(BZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=pK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var WZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=CK,NOe=FY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=WZ,HOe=GZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=ZZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?ZZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function jk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function zk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function XZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function Bk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function QZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Hk(n,e){return[...n].filter(r=>r in e)}function JZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const eX={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function tX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=tX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return XZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const nX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Yk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Kk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function rX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Kk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Yk():0:C=w.scrollHeight>w.clientHeight?Yk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Kk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Gk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?aX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},aX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=rX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Zk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Zk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=eX.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const iX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:sX[0],color:oX[0],closable:!1,type:lX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(sX),color:v.oneOf(oX),type:v.oneOf(lX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Xk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function uX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||uX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function cX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=cX(1),B1=cX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),qk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(qk)?n:n.querySelector(qk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const dX=D.createContext(null);function XIe(n){const e=D.useContext(dX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function fX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function hX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function Qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function pX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Jk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Jk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=fX(Jk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(hX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=Qk(l),c=a.reduce((f,h,p)=>f+fX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(hX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function gX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function vX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=vX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function eN(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||uX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function mX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function yX(n){return Gg(n)?n.scrollX:n.scrollLeft}function bX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:yX(n),y:bX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function _X(n){return!Bw||!n?!1:n===document.scrollingElement}function SX(n){const e={x:0,y:0},t=_X(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=SX(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function CX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+yX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+bX(t),0)}function wX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);mX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=CX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function tN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const xX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&wX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=xX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=SX(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=xX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function nN(n){return!!(n&&"distance"in n)}function rN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,tN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,tN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(rN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(nN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(nN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return rN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class TX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}TX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class EX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}EX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class OX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}OX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const aN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return aN;if(!y||y===aN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function iN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return gX(n,e)}const oN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==oN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):oN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):CX(n):ts,[n,e])}function sN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function IX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=IX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>_X(l)?r:new nA(e(l),l)):g5}}function PX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=PX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:TX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:eN},droppable:{measure:eN,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},DX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(DX),AX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function MX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=gX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=mX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=iN(se,Y.draggable.measure,re),oe=iN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=IX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=MX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=sN(vu),yh=sN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=pX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(dX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(AX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),lN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=lN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===lN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function RX(){return D.useContext(AX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:DX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=PX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=vX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return wX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let uN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return uN++,uN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=RX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=MX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function LX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=LX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},kX="Sortable",NX=x.createContext({activeIndex:-1,containerId:kX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=RX(),d=r0(kX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(NX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return LX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},FX="transform",xDe=Dc.Transition.toString({property:FX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(NX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:FX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=$X(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function $X(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!$X(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Xk.SIZE_SET),validateStatus:v.oneOf(Xk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=eX.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=tX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=JZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,cN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${cN.PREFIX}-wrapper`,{[`${cN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const VX=Zg;var HDe=PK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=UY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),dN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=UZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return UZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(dN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!dN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function jX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,fN=Hy,hN=fN&&fN.isDate,f6e=hN?d6e(hN):c6e,h6e=f6e;const pN=Ie(h6e);function Vl(n){return typeof n=="string"}function gN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return aZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return aZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const zX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>zX;function Zu(n){return n&&zX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},BX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var Fn=BX.exports,BO={exports:{}},HO={exports:{}},HX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(HX);var UX=HX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var WX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(WX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var GX={};function O6e(){return GX}function I6e(n){GX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var YX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(YX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(WX),o=t(D6e),s=t(YX),l=t(KX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var ZX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(ZX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var XX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(XX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var qX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(ZX),a=o(o0),i=o(qX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var QX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var JX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var eq=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(JX),r=i(QX),a=i(eq);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(JX),r=s(Zw),a=s(qX),i=s(o0),o=s(XX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,tq={format:QX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:eq,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],vN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,nq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in vN){const r=vN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},mN={};function o7e(n){if(mN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),mN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>tq.utcToZonedTime(n,nq(e),t),zp=(n,e,t)=>tq.zonedTimeToUtc(n,nq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=cZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ik(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ik(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function rq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const yN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===yN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===yN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=rq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function bN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function _N(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(bN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(_N,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(bN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(_N,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(gZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function aq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=rZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,SN={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return SN[e]&&SN[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=fZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=aq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const CN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:CN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${CN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(yZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=gN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&gN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=uK,x7e=NK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=lq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,wN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:wN(e),t=t===void 0?r:wN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new VZ({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,xN=1e3/60,TN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),TN.test(l.className)&&(l.className="")}),r.className&&!TN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},xN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},xN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/EN),10)*EN-8*cq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(uq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=hZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const ON=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(fZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=hZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(uq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${ON}-yearmonth-header`,u=`${ON}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const dq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=rq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(dq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(vZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(pN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];pN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(dq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=jX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),fq={PREFIX:`${q}-descriptions`},IN={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(IN.ALIGN_SET),row:v.bool,size:v.oneOf(IN.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}hq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},AN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=YZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},pq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(pq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let MN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){MN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${MN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(gq),success:t(vq),error:t(yq),warning:t(mq),confirm:t(bq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(UK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(AN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(AN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(gq(n))};ol.success=function(n){return l0(vq(n))};ol.error=function(n){return l0(yq(n))};ol.warning=function(n){return l0(mq(n))};ol.confirm=function(n){return l0(bq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},RN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,_q=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};_q.propTypes={style:v.object,className:v.string};const V9e=_q,LN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${LN}-title`]:!0,[`${LN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:RN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=RN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,Sq={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);azK(NN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Cq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:Sq.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Cq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:Sq.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),wq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(FN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>zK(FN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=wq;f0.elementType="Layout.Sider";const X9e=f0;var xq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=xq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=xq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(wq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var $N=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const VN={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},jN=n=>{Object.keys(VN).forEach(e=>{n.style.setProperty(e,VN[e],"important")})},zN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),jN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),jN(bi),bi.value=e;let l=zN(bi,n);bi.value="x";const u=zN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=DZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function BN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(BN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(BN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const Tq=jX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),HN="horizontal",UN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[UN,HN],MODE_VERTICAL:UN,MODE_HORIZONTAL:HN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},WN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},WN):this.toggleIcon=Object.assign({},WN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},YN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?GN(i,t):YN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?GN(this._adapter.getOpenKeys(),r):YN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement(VX,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function ZN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:KN(this,"selectedKeys"),removeSelectedKeys:ZN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:KN(this,"openKeys"),removeOpenKeys:ZN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},XN={COLLAPSE:"collapse",SCROLL:"scroll"},qN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(qN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(XN),MODE_MAP:XN,BOUNDARY_MAP:qN,OVERFLOW_DIR:P8e},QN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,JN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:JN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=JN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/QN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/QN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var eF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=eF(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=eF(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Eq={LIST_HEIGHT:270},Fv=iX.PREFIX,Oq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Oq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Oq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=tF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,tF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Iq=z8e;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Pq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new FK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>HK(i),getActiveElement:()=>BK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Pq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Eq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Iq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(BZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Pq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Eq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var rF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(Tq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=rF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=rF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Dq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Dq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Dq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},aF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var iF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=iF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=iF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const oF=MA,Aq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Aq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Aq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Mq=LA;class sMe extends Z1{}sMe.Group=Mq;const u2={PREFIX:`${q}-rating`},Rq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Lq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Lq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Lq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),sF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=sF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=sF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const kq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=RK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=vK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,lF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,uF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,cF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Fq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function fF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function $q(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function jq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function zq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=zq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new Nq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function Bq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&hF.call(s,l,1),hF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function pF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=pF(o,[...s,...r]),u=[...o]}else a=pF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=jq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const gF=$S,Hq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Hq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Uq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Uq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Uq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(SZ,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=Vq(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=Bq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Wq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Wq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=sq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Gq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Gq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Yq="[^"+Gq+"]",Kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Zq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Xq=eLe+"?",qq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Yq,Kq,Zq].join("|")+")"+qq+Xq+")*",rLe=qq+Xq+nLe,aLe="(?:"+[Yq+zI+"?",zI,Kq,Zq,JRe].join("|")+")",vF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=vF.lastIndex=0;vF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:$q(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const mF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(mF).forEach(a=>{t.style[a]=mF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function Qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function yF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new Nq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=dF(o,t),l=s!=null&&qs(n,u=>dF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Fq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=Bq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),bF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?Qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;bF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var _F=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=_F(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Fq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=_F(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?Qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const SF=cx;var CF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=CF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=CF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(SF.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(SF,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>fF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:$q(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=fF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Wq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=jq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new gF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=gF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:yF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=zq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:yF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Hq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,wF=Hy,xF=wF&&wF.isRegExp,nke=xF?tke(xF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Jq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Jq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",eQ="[^"+Jq+"]",tQ="(?:\\ud83c[\\udde6-\\uddff]){2}",nQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",rQ=fke+"?",aQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[eQ,tQ,nQ].join("|")+")"+aQ+rQ+")*",gke=aQ+rQ+pke,vke="(?:"+[eQ+UI+"?",UI,tQ,nQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=GY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},iQ={};function oQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&dQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&fQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function dQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function fQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function hQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(hQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=hQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(iQ);const{default:pQ,DraggableCore:_Ne}=iQ;fx.exports=pQ;fx.exports.default=pQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function OF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function IF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function PF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=vQ($y),zNe=vQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vQ(n){return n&&n.__esModule?n:{default:n}}function mQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(mQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=mQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var yQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=cZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(vZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,AF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],MF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:MF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:MF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(AF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},AF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(_Z,null),info:x.createElement(bZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const bQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(bQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(bQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),_Q={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return jK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=_Q.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(SZ,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement(VX,Object.assign({},r,{isOpen:a}),t)}const RF=n=>n.key;class SQ extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=RF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=RF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}SQ.contextType=p9;const CQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return XZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?Bk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?Bk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(SQ,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Iq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=jk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=jk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=zk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=zk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Hk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Hk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=JZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,LF=`${q}-upload`,kF="picture",NF="list",LFe=.95,wQ={PREFIX:LF,LIST:`${LF}-list`},FF="auto",$F="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:kF,FILE_LIST_DEFAULT:NF,LIST_TYPE:[kF,NF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:FF,TRIGGER_CUSTOM:$F,UPLOAD_TRIGGER:[FF,$F],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:VF,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:jF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?VF:jF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===jF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=VF,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=wQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(oF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(oF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const xQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(xQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=xQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(YK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function zF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){TQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:TQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=UF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;ML(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);ML(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const EQ=x.createContext({});EQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,WF=tu.PREFIX;class OQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[WF+"-section"]:!0},t),o=WF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}OQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function IQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=IQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class PQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}PQ.contextType=b0;const U$e=PQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));IQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(Tq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Mq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(kq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!mk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!mk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(EQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=OQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},DQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function AQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){AQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,MQ={en_US:DQ},GF=Object.keys(MQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",RQ="en_US",ve=DQ,TVe=MQ[_9()];AQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return RQ}}function _9(){const n=EVe(xVe);if(GF.includes(n??""))return n;const e=OVe();for(const t of GF)if(e.includes(t))return t;return RQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const YF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?YF(n):YF;var LQ={exports:{}},kQ={},NQ={exports:{}},FQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;FQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;NQ.exports=FQ;var zVe=NQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;kQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};LQ.exports=kQ;var XVe=LQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const KF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},$Q=n=>n?KF(n):KF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),VQ=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=$Q()(VQ((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const ZF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},jQ=$Q()(VQ((n,e)=>({...ZF,reset(){n(()=>({...ZF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,zQ="sans-serif",Ac=C9+"px "+zQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?JF(s,o):JF(o,s))}function KQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?t$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):t$(n,e,t),t}function t$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(KQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function n$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=r$(r)/r$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var ZQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),XQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=qQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(a$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?ZQ:!0}return!1}function a$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZQ)){e.target=o;break}}}function qQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=XQ;var QQ=32,Gv=7;function Kze(n){for(var e=0;n>=QQ;)e|=n&1,n>>=1;return n+e}function i$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),o$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,s$=!1;function e4(){s$||(s$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function l$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=l$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var JQ;JQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=JQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const eJ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,tJ=1e-4,u$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function c$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+u$*Math.sin(w)))/(3*o),O=(-s+T*(E-u$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function rJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(nJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function aJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function iJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function oJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:eJ[e]||M9(e)},n}();const aBe=rBe;var sJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new sJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new sJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var d$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var lJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=lJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=lJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in d$)return yP(e,d$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var f$=1e-4;function nc(n){return n-f$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function uJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return uJ(n)||gBe(n)}function cJ(n){return n.type==="linear"}function dJ(n){return n.type==="radial"}function fJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function hJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=p$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),cJ(t)?s=wP:dJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===p$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:eJ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=g$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(g$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===gJ&&h$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),v$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},m$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function vJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;vJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){m$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){m$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMoment_$||n<-_$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(b$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):b$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){yJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=UQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const _J=k9;var SJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),wJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>wJ?r:Ln(r,t)}var T$=9007199254740991;function TJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-x$&&n=10&&e++,e}function EJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function E$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,D$,D$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function D$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function VJ(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=$J(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=jJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function jJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var M$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function zJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,zJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(BJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return HJ(n,0,!1,e,t)}function YHe(n,e,t,r){return HJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);UJ.prototype.type="tspan";const iy=UJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var WJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);WJ.prototype.type="image";const Xr=WJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function GJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function YJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},KJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=YJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);KJ.prototype.type="rect";const rt=KJ;var F$={fill:"#000"},$$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},ZJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=F$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=U$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=H$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=B$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=$$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),j$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return qJ(t)&&(r=[t.fontStyle,t.fontWeight,XJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},V$=["fontStyle","fontWeight","fontSize","fontFamily"];function XJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function j$(n,e){for(var t=0;t=0,i=!1;if(n instanceof Ue){var o=QJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=Z$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=Z$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function q$(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,JJ)}function Q$(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,eee)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,JJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,eee)}function nee(n){du(n,H9)}function U9(n){du(n,tee)}function ree(n){du(n,lUe)}function aee(n){du(n,uUe)}function iee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function oee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){tee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var eV=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=aV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=aV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=oV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=oV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);gee.prototype.type="sector";const fi=gee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),vee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);vee.prototype.type="ring";const kx=vee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){uV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(uV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Pee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function cV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Fee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function $ee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}$ee(Q9,_We);$ee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,gV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",vV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],Vee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Fee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function jee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function mV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||jee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function zee(n){return n?"setUTCMonth":"setMonth"}function Bee(n){return n?"setUTCDate":"setDate"}function Hee(n){return n?"setUTCHours":"setHours"}function Uee(n){return n?"setUTCMinutes":"setMinutes"}function Wee(n){return n?"setUTCSeconds":"setSeconds"}function Gee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yee(n){if(!OJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Yee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var yV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Zee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Xee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);FJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var Qee="";typeof navigator<"u"&&(Qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",ete="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},tte=at();function kWe(n){tte(n).datasetMap=ge()}function nte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=tte(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ite(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,_V,SV="\0_ec_inner",BWe=1,ote=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=xV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,xV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?_V(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=MJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[SV],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,TV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=TV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||ete,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};MV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function NV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=yte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),bte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(yte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function VV(n,e,t,r,a){var i=Cte[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),wte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&zV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&zV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ote(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ote(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new bte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Ete(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=Tte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ite(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=Tte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ite(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function BV(n,e,t,r,a,i){if(n){var o=Ete(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ite(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Pte(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Dte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=IJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Ate(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Pte(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new wte(this);i.prepareSource();var o=this.getInitialData(t,a);UV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,HV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);UV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,HV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);FJ(Kx,it);function HV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function UV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mte=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&GV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&GV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Mte(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function WV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function GV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){WV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){WV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Mte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",YV="\0__throttleRate",KV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[KV],s=a[YV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[KV]=r,a[YV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var ZV=at(),XV={itemStyle:jf(Nee,!0),lineStyle:jf(kee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Rte(n,e){var t=n.visualStyleMapper||XV[e];return t||(console.warn("Unknown style type '"+e+"'."),XV.itemStyle)}function Lte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Rte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Lte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Rte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),ZV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=ZV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Lte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return kte(r)}):cYe}var cYe=kte(0);function kte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],ej=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function tj(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function nj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function rj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&rj(n,t),o&&nj(n,t)):(o&&nj(n,t),i&&rj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var aj=["shadowBlur","shadowOffsetX","shadowOffsetY"],ij=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ste;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(_j[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=w$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&LJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}yj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){nee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){ree(p),Gi(d)},h.prototype.leaveSelect=function(p){aee(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(lte))(d)},rne=function(d){function f(h,p){for(var g=0;g=0)){Sj.push(t);var i=$te.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function cne(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(qte,GYe);lne(cte);une(QYe,lGe);cne("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);sne("light",hYe);sne("dark",pYe);var Cj=[],bKe={registerPreprocessor:lne,registerProcessor:une,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:cne,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Cj,n)>=0||(Cj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function wj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||wj,this._newKeyGetter=a||wj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",xj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],Tj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;fne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){Tj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gne(o),l=r===n.dimensionsDefine,u=l?pne(n):hne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new Ste(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!fne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function vne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(nte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(mne);const hu=mne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=EJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=yne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function yne(n){return js(n)+2}function Ej(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Ej(n,0,e),Ej(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var bne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(bne);const C8=bne;var wd=Ln,_ne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function wne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(Ine(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),xne(t)}function xne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function Tne(n,e){var t=Cne(n,e),r=wne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Ene(n){return{seriesType:n,plan:vv(),reset:function(e){if(One(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=Ine(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",gV/2],["year",gV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return mV(a,p,r)===mV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Oj(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return EJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[zee(t)](0);case"day":r[Bee(t)](1);case"hour":r[Hee(t)](0);case"minute":r[Uee(t)](0);case"second":r[Wee(t)](0),r[Gee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=Vee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Ane=T8.prototype;Ane.getMinorTicks=h1.getMinorTicks;Ane.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Mne(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Rne(n,e){var t=n.type,r=Mne(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Cne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=wne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Rne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Dne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Pj(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Dj(s.exterior,a,i,t):M(s.points,function(l){Dj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Aj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Aj(l[0],l.slice(1)))});break;case"LineString":i.push(new Mj([a.coordinates]));break;case"MultiLineString":i.push(new Mj(a.coordinates))}var s=new Nne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=$ne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function $ne(n,e){var t=Vne(n,"labels"),r=O8(e),a=jne(t,r);if(a)return a;var i,o;return me(r)?i=Hne(n,r):(o=r==="auto"?AZe(n):r,i=Bne(n,o)),zne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=Vne(n,"ticks"),r=O8(e),a=jne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Hne(n,r,!0);else if(r==="auto"){var s=$ne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=Bne(n,o,!0);return zne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Vne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function jne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Lne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Hne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Rj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return xJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Lj(r,a.count())),xt(e,Rj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Lj(r,a.count()));var i=xt(e,r,Rj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Lj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Une(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Une(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function Nj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Yne(n,"x","width",e,t,r)}function Kne(n,e,t,r){return Yne(n,"y","height",e,t,r)}function Zne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Lee(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Xne=Math.PI,Td=Math.PI*2,XZe=180/Xne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Xne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $j(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:Qne,"xmlns:xlink":Jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Vj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new qne;return a.reset(hJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tre(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=tre(a,t);return i.replace(o,s)}}function jj(n){return ce(n)?Vj[n]?"cubic-bezier("+Vj[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=tre(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function nre(n){return n&&ce(n.src)}function rre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&fJ(i)?ire(e,n,a,r):o&&R9(i)?ore(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function zj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&zj(e))){var r=t?10:1e4;n.transform=zj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function Bj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=pJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[are(n,t)])}e["clip-path"]=Ox(i)}function Wj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Gj(n,e){n.removeChild(e)}function Yj(n,e){n.appendChild(e)}function sre(n){return n.parentNode}function lre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Kj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=ere(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ure(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),ure(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=sre(t);yy(e),r!==null&&(Gd(r,e.elm,lre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Zj(),this.configLayer=Zj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=$j(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ere("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Uj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return $j(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function Qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Jj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=Qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Jj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Jj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=Qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function fre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=dre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var hre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(hre),pre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function az(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=rz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=rz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new pre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(mre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?cre(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=az(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=kJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=az(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),nz(h,g)>3e3||c&&nz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("line"))}var bre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(bre);const yC=bre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),iz={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},oz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=_re(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function sz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function lz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _re(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function cz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,_re(o),r.get(["label","rotate"]))}Ree(g,p,i.getRawValue(t),function(b){return cre(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),dz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Sre(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:Sre(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,pz=Math.PI/180;function Cre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wre(n,e){var t=Cre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Cre(r,t),s=wre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*pz,h=r.get("minAngle")*pz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),zte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var Tre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Ere={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ere),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ere),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ore={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ore[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=vz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",vz)}function vz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function mz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!mz(t)||!mz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function yz(n){return n.get("coordinateSystem")==="cartesian2d"}function bz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ire(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Rne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ire(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){_z(r,"y",o,i)}),M(r.y,function(o){_z(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Cz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,xz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;xz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=TJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Lne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):wz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):wz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function wz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function xz(n){return n==="middle"||n==="center"}function Pre(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Dz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),kre(n,e,t,r,a))}function kre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function Nre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Az=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Mz=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=Nre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=$re(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Rz[s];if(h&&he(Rz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Nz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Nz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=dee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Rz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Lz(n,i),kz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new xee(e,t,r);return Lz(n,a),kz(n,a),a}};function Lz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function kz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Fre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function Nz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var $z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fre(n,e,t){var r=n.getAttribute("style");if(r){$z.lastIndex=0;for(var a;(a=$z.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&(Vre(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Hz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Uz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Wz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Gz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=zre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Xz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=qz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Xz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=qz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Jz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Kre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Kre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Jz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Jz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var aB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Xre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Xre(n){var e=0;M(n.children,function(r){Xre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,iB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+iB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+iB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;asB||Math.abs(t.dy)>sB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",oB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",oB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=cB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=cB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?uB:lB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?uB:lB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),qre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function dB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function qre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Jre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function fB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return Qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&Qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,hB=Lr,W8=M,eae=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(hB(s.width,l[0]),a),c=ie(hB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Kre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),tae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),nae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function tae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(eae),u=s.get(Het)/2,c=rae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function pB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dT$&&(u=T$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=_B(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_B(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function _B(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function SB(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!SB(n[0])&&!SB(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,CB=Math.abs;function wB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=CB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=wB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=wB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function xB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(xB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){sae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!xB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new uae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,cae("hostGraph","data"));ir(uae,cae("hostGraph","edgeData"));const xtt=wtt;function dae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Gre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=dae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Ate({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];zJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ree(I,{normal:P},_,function(U){return w_(U,F)}),g&&Lee(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,hae=Math.min,pae=Math.max,OB=Math.floor,ynt=Math.ceil,IB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||OB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[OB(IB(h[0]/c,1))+1,ynt(IB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[pae(0,p-h/2)],a[1]=hae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return hae(pae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function Sae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Cae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(MB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(MB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function wae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function xae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function MB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=Tae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(xae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=Tae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function Tae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=_ae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:kB(0),lineY:kB(1),rect:{createCover:function(n,e){function t(r){return r}return Cae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Sae(n);return xae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){wae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function kB(n){return{createCover:function(e,t){return Cae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Sae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=_ae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),wae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Oae(n){return n=rM(n),function(e){return Pee(e,n)}}function Iae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Pae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Oae(d),isTargetByCursor:Pae(d,s,i),getLinearBrushOtherExtent:Iae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Dae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(PB),n.registerComponentView(Knt),wg(n,"parallel",PB,qnt),Xnt(n)}function Qnt(n){He(Dae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),NB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return NB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function NB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=dae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Aae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Mae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(nte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Rae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Rae,Mae,!0);const Ert=Rae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=FB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Lae(f,d,i,u)):d=FB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&$B(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&$B(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),VB(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){VB(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function $B(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var kae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(kae,Mae,!0);const Grt=kae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:jB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=jB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function jB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function zB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Nae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(BJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=$ae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Fae:i?Nae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function BB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],BB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(BB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout($ae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function HB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):HB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(HB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],UB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:UB[+c],categoryDim:UB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=GB(o,h),g=WB(o,h,p,f),m=YB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),ZB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=GB(o,h),y=WB(o,h,m,f),b=Uae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=YB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),ZB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&KB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){KB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function WB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=OJ(r),E=T?r:XB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?XB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function Vae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=Vae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Bae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Hae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function GB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?jae(a,e,t):zae(a,e,t),Bae(a,t,r),Hae(a,e,t,r),a.__pictorialShapeStr=Uae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?jae(n,e,t,!0):zae(n,e,t,!0),Bae(n,t,!0),Hae(n,e,t,!0)}function KB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Uae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function ZB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function XB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const QB=uit;var ID="sunburstRootToNode",JB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:JB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[JB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new QB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new QB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Wae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Wae(n){var e=0;M(n.children,function(r){Wae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var eH=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*eH,p=r.get("minAngle")*eH,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Gae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var tH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Yae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Kae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return nH(o,n),M(o.rich,function(l){nH(l,l)}),{textConfig:a,textContent:i}}function nH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function rH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";aH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){aH(s,s)}),r}function aH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Zae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},iH=Ye(Zae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),sH("shape",e,d),sH("extra",e,d),!i&&s&&(Fit(n,e,c),oH("shape",n,e,c),oH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Xae(n,e),u?n.dirty():n.markRedraw()}function Xae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function oH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=rH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=rH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(tH,L)){var N=e.getItemVisual(k,"style");return N?N[tH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Mee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&eie(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function eie(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&tie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&eie(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){uH(t,null,i),uH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,cH,cH,n).add(dH).update(dH).remove(not).execute()}function cH(n,e){var t=n&&n.name;return t??Hit+e}function dH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function tie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),fH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(hH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}gH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](fH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(fH(t.label));e.add(i),pH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),pH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),gH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){hH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function hH(n,e,t,r){nie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function nie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&nie(n[a],r)}),!!t}else return n===e}function pH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function gH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function rie(n,e,t,r,a){var i=t.get("value"),o=aie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function aie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function iie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function vH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=mH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=mH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function mH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],yH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],yH(n))}}};function yH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function sie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(bH,"click")),t("mousemove",Ae(bH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function bH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function lie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var _H=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=lie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&SH(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,CH(S),CH(y)))),m[y.key]=T}})}),M(m,function(y,b){SH(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function SH(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=_H(r)[a]||{},o=_H(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function CH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Lre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);rie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:vH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:vH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var uie=["radius","angle"],Vot=function(){function n(e){this.dimensions=uie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=wH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=wH(t);return a===this?this.pointToData(r):null},n}();function wH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function xH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:uie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");xH(o,l),xH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function TH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});TH(u),TH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=die(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=cie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=EH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=EH(t);return a===this?this.pointToData(r):null},n}();function EH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:hie};const yst=mst;var OH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[OH[e]],t[OH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),IH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),IH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function IH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function PH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function DH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),qee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var pie=["transition","enterFrom","leaveTo"],Lst=pie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?pie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(AH,n)?AH[n]:q9(n),t=new e({});return to(t).type=n,t}function MH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function RH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var LH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function gie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=kH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=kH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(LH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(LH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=xJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Mne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var FH=!1;function _M(n){FH||(FH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),vie={};function ip(n,e){vie[n]=e}function mie(n){return vie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=mie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function yie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=mie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(yie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var $H="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(VH[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=VH[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),VH={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===$H;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":$H},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return bie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){_ie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=_ie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=jH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:UH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?UH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Oae(a),isTargetByCursor:Pae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Iae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=jH(t,e),i=0;in[1]&&n.reverse(),n}function jH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:BH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:BH.geo})})}},zH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],BH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(HH,0),lineY:Ae(HH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function HH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var UH={lineX:Ae(WH,0),lineY:Ae(WH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function WH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=GH(n),r=GH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function GH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function Sie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Cie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function YH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[wie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Dte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Kee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function KH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;KH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+YH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!Sie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=qH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=lie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(qH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=aie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=NV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=BV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=NV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?BV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Zee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=QH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=QH(h)?d[1]/2:h==="bottom"?d[1]:0),Sie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function qH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function QH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var JH=M;function eU(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return JH(e,function(i){var o=r[i]=a();JH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Tie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&eU(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&eU(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){jte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&iU(e)}};function iU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Eie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return oU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=oU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function oU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const sU=Lut;var Oie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(sU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(sU);ir(Oie,c8.prototype);const kut=Oie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,lU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=uU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),lU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),cU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){cU(d,u._progressLine,s,a,i)}};this._currentPointer=uU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Pie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Pie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Die(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function fU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(fU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),fU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Die(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Pie(r,a,e,n);s=u.valueAxis;var c=vne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(hU(1,t,r,n)||hU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Die(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function pU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(pU(1,t,r)||pU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function gU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var vU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(vU,function(d){return gU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(vU,function(E){return gU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(mU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(mU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function mU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Aie(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Mie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Rie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Rie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Lie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:_U(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:_U(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function _U(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function kie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,SU=7,Kct=1,f3=30,Zct=7,mm="horizontal",CU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-SU-i,width:o.width,height:f3}:{right:SU,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===CU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===CU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:wU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:wU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=gie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function wU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function Nie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(kie),He(Nie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Fie=rdt;var xU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,TU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},TU(p,function(m,y){if(Gr.isValidType(y)){var b=Fie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";TU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=xU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=xU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var EU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=EU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=EU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=OU(this,"outOfRange",this.getExtent()),a=OU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||AU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function zie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),jie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Fie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function kU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Vie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}($ie);const Idt=Odt;function Bie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),jie(n)}function Pdt(n){He(zie),He(Bie)}var Ddt={label:{enabled:!0},decal:{show:!1}},NU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),NU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=NU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Uie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Uie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Yie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;WU(n)&&(u=n,c=e),WU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?GU(c,u):GU(f?e:n,[f?n:e]),p=0,g=0;gKie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function KU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function ZU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=KU(i),c=ZU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=KU(i),u=ZU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function XU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=XU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Zie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Xie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function qie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Xie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):qie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,qie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(kq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",qU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var Qie;function be(){return Qie.apply(null,arguments)}function Nft(n){Qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Jie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var roe={};function ya(n,e){roe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:roe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(aoe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function aoe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var poe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function goe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),voe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function moe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}moe("a",!0);moe("A",!1);ma("hour","h");ya("hour",13);function yoe(n,e){return e._meridiemParse}xe("a",yoe);xe("A",yoe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",soe);xe("hmmss",loe);xe("Hmm",soe);xe("Hmmss",loe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var boe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:uoe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:voe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=boe;if(e.abbr=n,xn[n]!=null)toe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=boe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d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])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _oe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=goe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){_oe(n);return}if(n._f===be.RFC_2822){Soe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=noe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function xoe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Coe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Eoe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function tW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=tW(n,e):(t=tW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Ooe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(toe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ioe(this,a,n),this}}function Ioe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&doe(n,$C(n,"Month")+o*t),i&&aoe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Ooe(1,"add"),Wpt=Ooe(-1,"subtract");function Poe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Poe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Doe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Aoe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Moe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Roe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Loe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Roe:new Date(n,e,t).valueOf()}function koe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Roe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=goe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",ioe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Foe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ooe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,ioe);xe("SS",fT,Bi);xe("SSS",fT,ooe);var sc,$oe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);$oe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Aoe;de.locale=Doe;de.localeData=Moe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=poe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=foe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Foe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=$oe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Eoe;de.isUTC=Eoe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Foe);de.months=Io("months accessor is deprecated. Use month instead",foe);de.years=Io("years accessor is deprecated. Use year instead",poe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function Voe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=Voe;Ft.postformat=Voe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function joe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return joe(n,e,"months")}function nvt(n,e){return joe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function zoe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return zoe(this,n,e,1)}function lvt(n,e){return zoe(this,n,e,-1)}function nW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=nW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(Boe(e)),t+=l,e-=nW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function Boe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+Boe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Doe;Tt.localeData=Moe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Aoe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Xie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:qU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:qU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",rW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",aW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:aW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:aW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=jQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:V.jsx(pL,{to:"/",style:{textDecoration:"none"},children:"Trino Gateway"})},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pL,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(yZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(mZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,iW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,oW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&oW(n,t,e[t]);if(iW)for(var t of iW(e))tmt.call(e,t)&&oW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,sW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,lW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&lW(n,t,e[t]);if(sW)for(var t of sW(e))smt.call(e,t)&&lW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=uW.get("token");e&&(n.updateToken(e),uW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(oce,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(hq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=jQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js b/gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js deleted file mode 100644 index 52e521cfa..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-DjKQuKRX.js +++ /dev/null @@ -1,169 +0,0 @@ -var Hoe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var mmt=Hoe((Hmt,z2)=>{function Uoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Woe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var hW={exports:{}},WC={},pW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ry=Symbol.for("react.element"),Goe=Symbol.for("react.portal"),Yoe=Symbol.for("react.fragment"),Koe=Symbol.for("react.strict_mode"),Zoe=Symbol.for("react.profiler"),Xoe=Symbol.for("react.provider"),qoe=Symbol.for("react.context"),Qoe=Symbol.for("react.forward_ref"),Joe=Symbol.for("react.suspense"),ese=Symbol.for("react.memo"),tse=Symbol.for("react.lazy"),rR=Symbol.iterator;function nse(n){return n===null||typeof n!="object"?null:(n=rR&&n[rR]||n["@@iterator"],typeof n=="function"?n:null)}var gW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vW=Object.assign,mW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function yW(){}yW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}var r6=n6.prototype=new yW;r6.constructor=n6;vW(r6,Og.prototype);r6.isPureReactComponent=!0;var aR=Array.isArray,bW=Object.prototype.hasOwnProperty,a6={current:null},_W={key:!0,ref:!0,__self:!0,__source:!0};function SW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)bW.call(e,r)&&!_W.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(TW);xW.exports=TW;var pse=xW.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var EW=D,Fi=pse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w3=Object.prototype.hasOwnProperty,gse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oR={},sR={};function vse(n){return w3.call(sR,n)?!0:w3.call(oR,n)?!1:gse.test(n)?sR[n]=!0:(oR[n]=!0,!1)}function mse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function yse(n,e,t,r){if(e===null||typeof e>"u"||mse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{TT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?Cm(n):""}function bse(n){switch(n.tag){case 5:return Cm(n.type);case 16:return Cm("Lazy");case 13:return Cm("Suspense");case 19:return Cm("SuspenseList");case 0:case 2:case 15:return n=ET(n.type,!1),n;case 11:return n=ET(n.type.render,!1),n;case 1:return n=ET(n.type,!0),n;default:return""}}function O3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case x3:return"Profiler";case u6:return"StrictMode";case T3:return"Suspense";case E3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case PW:return(n.displayName||"Context")+".Consumer";case IW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:O3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return O3(n(e))}catch{}}return null}function _se(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return O3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function AW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sse(n){var e=AW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=Sse(n))}function MW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=AW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function B2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function I3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function uR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function RW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function P3(n,e){RW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?D3(n,e.type,t):e.hasOwnProperty("defaultValue")&&D3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function cR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function D3(n,e,t){(e!=="number"||B2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var wm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function C1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var zm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cse=["Webkit","ms","Moz","O"];Object.keys(zm).forEach(function(n){Cse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),zm[e]=zm[n]})});function FW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||zm.hasOwnProperty(n)&&zm[n]?(""+e).trim():e+"px"}function $W(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=FW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var wse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function R3(n,e){if(e){if(wse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function L3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var N3=null,Rp=null,Lp=null;function hR(n){if(n=Ny(n)){if(typeof N3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=XC(e),N3(n.stateNode,n.type,e))}}function VW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function jW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,hR(n),e)for(n=0;n>>=0,n===0?32:31-(Lse(n)/kse|0)|0}var Q0=64,J0=4194304;function xm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function G2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=xm(s):(i&=o,i!==0&&(r=xm(i)))}else o=t&~a,o!==0?r=xm(o):i!==0&&(r=xm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function Ly(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function Vse(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=Hm),CR=" ",wR=!1;function oG(n,e){switch(n){case"keyup":return hle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function gle(n,e){switch(n){case"compositionend":return sG(e);case"keypress":return e.which!==32?null:(wR=!0,CR);case"textInput":return n=e.data,n===CR&&wR?null:n;default:return null}}function vle(n,e){if(up)return n==="compositionend"||!_6&&oG(n,e)?(n=aG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=OR(t)}}function dG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?dG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function fG(){for(var n=window,e=B2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=B2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function Tle(n){var e=fG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&dG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=IR(t,i);var o=IR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,B3=null,Wm=null,H3=!1;function PR(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;H3||cp==null||cp!==B2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wm&&I1(Wm,r)||(Wm=r,r=Z2(B3,"onSelect"),0hp||(n.current=Z3[hp],Z3[hp]=null,hp--)}function dn(n,e){hp++,Z3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),Pf=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function q2(){bn(oi),bn(fa)}function NR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function SG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,_se(n)||"Unknown",a));return Nn({},t,r)}function Q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,Pf=fa.current,dn(fa,n),dn(oi,oi.current),!0}function FR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=SG(n,e,Pf),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,qC=!1,jT=!1;function CG(n){Ol===null?Ol=[n]:Ol.push(n)}function Fle(n){qC=!0,CG(n)}function Hc(){if(!jT&&Ol!==null){jT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Dd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Dd(y,E),C}function g(y,b,_,S){var C=Tv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Dd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Dd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&UR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Dv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=pf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Dv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=KT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(wm(_))return p(y,b,_,S);if(Tv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=YT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=DG(!0),AG=DG(!1),Fy={},Ws=Bc(Fy),M1=Bc(Fy),R1=Bc(Fy);function Qd(n){if(n===Fy)throw Error(ue(174));return n}function D6(n,e){switch(dn(R1,e),dn(M1,n),dn(Ws,Fy),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:M3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=M3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(M1),bn(R1)}function MG(n){Qd(R1.current);var e=Qd(Ws.current),t=M3(e,n.type);e!==t&&(dn(M1,n),dn(Ws,t))}function A6(n){M1.current===n&&(bn(Ws),bn(M1))}var An=Bc(0);function aS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var zT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=BT.transition;BT.transition={};try{n(!1),e()}finally{qt=t,BT.transition=r}}function KG(){return So().memoizedState}function zle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},ZG(n))XG(e,t);else if(t=EG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),qG(t,e,r)}}function Ble(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(ZG(n))XG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=EG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),qG(t,e,r))}}function ZG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function XG(n,e){Gm=iS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function qG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var oS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Hle={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:GR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,HG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=zle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:WR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=WR(!1),e=n[0];return n=jle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Af&30||kG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,GR(FG.bind(null,r,i,n),[n]),r.flags|=2048,N1(9,NG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=L1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[A1]=r,oY(n,e,!1,!1),e.stateNode=n;e:{switch(o=L3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304)}else{if(!r)if(n=aS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Av(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function qle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&q2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,Qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function sO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var tL=!1;function Jle(n,e){if(U3=Y2,n=fG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(W3={focusedElem:n,selectionRange:t},Y2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=tL,tL=!1,p}function Ym(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&sO(e,t,i)}a=a.next}while(a!==r)}}function ew(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function lO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function uY(n){var e=n.alternate;e!==null&&(n.alternate=null,uY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[A1],delete e[K3],delete e[kle],delete e[Nle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function cY(n){return n.tag===5||n.tag===3||n.tag===4}function nL(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||cY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=X2));else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}function cO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(cO(n,e,t),n=n.sibling;n!==null;)cO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)dY(n,e,t),t=t.sibling}function dY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(GC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?VT(n.parentNode,t):n.nodeType===1&&VT(n,t),E1(n)):VT(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&sO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function rL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Qle),e.forEach(function(r){var a=lue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,uS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?hf(n,0):j6|=t),li(n,e)}function bY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(Ly(n,e,t),li(n,t))}function sue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),bY(n,t)}function lue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),bY(n,t)}var _Y;_Y=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Zle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&wG(e,eS,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,Q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=QC,e.stateNode=a,a._reactInternals=e,eO(e,r,n,t),e=rO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=cue(r),n=zo(r,n),a){case 0:e=nO(null,e,r,n,t);break e;case 1:e=QR(null,e,r,n,t);break e;case 11:e=XR(null,e,r,n,t);break e;case 14:e=qR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),nO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),QR(n,e,r,a,t);case 3:e:{if(rY(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,OG(n,e),rS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=JR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=JR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=AG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return MG(e),n===null&&q3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,G3(r,a)?o=null:i!==null&&G3(r,i)&&(e.flags|=32),nY(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&q3(e),null;case 13:return aY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),XR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(tS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),Q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),qR(n,e,r,a,t);case 15:return eY(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,Q2(e)):n=!1,Np(e,t),PG(e,r,a),eO(e,r,a,t),rO(null,e,r,!0,n,t);case 19:return iY(n,e,t);case 22:return tY(n,e,t)}throw Error(ue(156,e.tag))};function SY(n,e){return YW(n,e)}function uue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new uue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return pf(t.children,a,i,e);case u6:o=8,a|=8;break;case x3:return n=ho(12,t,e,a|2),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(13,t,e,a),n.elementType=T3,n.lanes=i,n;case E3:return n=ho(19,t,e,a),n.elementType=E3,n.lanes=i,n;case DW:return nw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case IW:o=10;break e;case PW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function pf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function nw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=DW,n.lanes=t,n.stateNode={isHidden:!1},n}function YT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function KT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function due(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=IT(0),this.expirationTimes=IT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=IT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new due(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function fue(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TY)}catch(n){console.error(n)}}TY(),wW.exports=ji;var Ti=wW.exports;const ui=Ie(Ti);var dL=Ti;C3.createRoot=dL.createRoot,C3.hydrateRoot=dL.hydrateRoot;class mue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $1(){return $1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function sw(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bue(){return Math.random().toString(36).substr(2,8)}function hL(n,e){return{usr:n.state,key:n.key,idx:e}}function gO(n,e,t,r){return t===void 0&&(t=null),$1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Kf(e):e,{state:t,key:e&&e.key||r||bue()})}function fS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Kf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function _ue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState($1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=gO(g.location,m,y);t&&t(b,m),u=c()+1;let _=hL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=gO(g.location,m,y);t&&t(b,m),u=c();let _=hL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:fS(m);return ar(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(fL,d),l=m,()=>{a.removeEventListener(fL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var pL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(pL||(pL={}));function Sue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Kf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=EY(n);Cue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ar(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(ar(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),EY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Pue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of OY(i.path))a(i,o,l)}),e}function OY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=OY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Cue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Due(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const wue=/^:\w+$/,xue=3,Tue=2,Eue=1,Oue=10,Iue=-2,gL=n=>n==="*";function Pue(n,e){let t=n.split("/"),r=t.length;return t.some(gL)&&(r+=Iue),e&&(r+=Tue),t.filter(a=>!gL(a)).reduce((a,i)=>a+(wue.test(i)?xue:i===""?Eue:Oue),r)}function Due(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Aue(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=kue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Rue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),sw(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Lue(n){try{return decodeURI(n)}catch(e){return sw(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function kue(n,e){try{return decodeURIComponent(n)}catch(t){return sw(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function Nue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Kf(n):n;return{pathname:t?t.startsWith("/")?t:Fue(t,e):e,search:jue(r),hash:zue(a)}}function Fue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function ZT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $ue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function q6(n){return $ue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function Q6(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Kf(n):(a=$1({},n),ar(!a.pathname||!a.pathname.includes("?"),ZT("?","pathname","search",a)),ar(!a.pathname||!a.pathname.includes("#"),ZT("#","pathname","hash",a)),ar(!a.search||!a.search.includes("#"),ZT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=Nue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),Vue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Bue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const IY=["post","put","patch","delete"];new Set(IY);const Hue=["get",...IY];new Set(Hue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function hS(){return hS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=Q6(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function AY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Uc),{pathname:a}=Mg(),i=JSON.stringify(q6(r));return D.useMemo(()=>Q6(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Yue(n,e){return Kue(n,e)}function Kue(n,e,t){Ag()||ar(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Uc),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Mg(),u;if(e){var c;let g=typeof e=="string"?Kf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||ar(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Sue(n,{pathname:f}),p=Jue(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(lw.Provider,{value:{location:hS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Zue(){let n=rce(),e=Bue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Xue=D.createElement(Zue,null);class que extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Uc.Provider,{value:this.props.routeContext},D.createElement(PY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(J6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Uc.Provider,{value:e},r)}function Jue(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ar(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Xue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(Que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(que,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var MY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(MY||{}),pS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(pS||{});function ece(n){let e=D.useContext(J6);return e||ar(!1),e}function tce(n){let e=D.useContext(Uue);return e||ar(!1),e}function nce(n){let e=D.useContext(Uc);return e||ar(!1),e}function RY(n){let e=nce(),t=e.matches[e.matches.length-1];return t.route.id||ar(!1),t.route.id}function rce(){var n;let e=D.useContext(PY),t=tce(pS.UseRouteError),r=RY(pS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function ace(){let{router:n}=ece(MY.UseNavigateStable),e=RY(pS.UseNavigateStable),t=D.useRef(!1);return DY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,hS({fromRouteId:e},i)))},[n,e])}function ice(n){let{to:e,replace:t,state:r,relative:a}=n;Ag()||ar(!1);let{matches:i}=D.useContext(Uc),{pathname:o}=Mg(),s=e7(),l=Q6(e,q6(i),o,a==="path"),u=JSON.stringify(l);return D.useEffect(()=>s(JSON.parse(u),{replace:t,state:r,relative:a}),[s,u,a,t,r]),null}function X_(n){ar(!1)}function oce(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ag()&&ar(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Kf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(lw.Provider,{children:t,value:p}))}function sce(n){let{children:e,location:t}=n;return Yue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==X_&&ar(!1),!r.props.index||!r.props.children||ar(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function uce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function cce(n,e){return n.button===0&&(!e||e==="_self")&&!uce(n)}const dce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fce="startTransition",vL=sse[fce];function hce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=yue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&vL?vL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(oce,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const pce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mL=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=lce(e,dce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&gce.test(u)&&(p=u,pce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Wue(u,{relative:a}),y=vce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var yL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(yL||(yL={}));var bL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(bL||(bL={}));function vce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=e7(),u=Mg(),c=AY(n,{relative:o});return D.useCallback(d=>{if(cce(d,t)){d.preventDefault();let f=r!==void 0?r:fS(u)===fS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function mce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=mce;const oa=Ie(pi);var yce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,LY=yce,bce=LY,_ce=typeof self=="object"&&self&&self.Object===Object&&self,Sce=bce||_ce||Function("return this")(),os=Sce,Cce=os,wce=function(){return Cce.Date.now()},xce=wce,Tce=/\s/;function Ece(n){for(var e=n.length;e--&&Tce.test(n.charAt(e)););return e}var Oce=Ece,Ice=Oce,Pce=/^\s+/;function Dce(n){return n&&n.slice(0,Ice(n)+1).replace(Pce,"")}var Ace=Dce,Mce=os,Rce=Mce.Symbol,Rg=Rce,_L=Rg,kY=Object.prototype,Lce=kY.hasOwnProperty,kce=kY.toString,Rv=_L?_L.toStringTag:void 0;function Nce(n){var e=Lce.call(n,Rv),t=n[Rv];try{n[Rv]=void 0;var r=!0}catch{}var a=kce.call(n);return r&&(e?n[Rv]=t:delete n[Rv]),a}var Fce=Nce,$ce=Object.prototype,Vce=$ce.toString;function jce(n){return Vce.call(n)}var zce=jce,SL=Rg,Bce=Fce,Hce=zce,Uce="[object Null]",Wce="[object Undefined]",CL=SL?SL.toStringTag:void 0;function Gce(n){return n==null?n===void 0?Wce:Uce:CL&&CL in Object(n)?Bce(n):Hce(n)}var ss=Gce;function Yce(n){return n!=null&&typeof n=="object"}var gi=Yce,Kce=ss,Zce=gi,Xce="[object Symbol]";function qce(n){return typeof n=="symbol"||Zce(n)&&Kce(n)==Xce}var Lg=qce,Qce=Ace,wL=pi,Jce=Lg,xL=NaN,ede=/^[-+]0x[0-9a-f]+$/i,tde=/^0b[01]+$/i,nde=/^0o[0-7]+$/i,rde=parseInt;function ade(n){if(typeof n=="number")return n;if(Jce(n))return xL;if(wL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=wL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Qce(n);var t=tde.test(n);return t||nde.test(n)?rde(n.slice(2),t?2:8):ede.test(n)?xL:+n}var t7=ade;const lo=Ie(t7);var ide=pi,XT=xce,TL=t7,ode="Expected a function",sde=Math.max,lde=Math.min;function ude(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ode);e=TL(e)||0,ide(t)&&(c=!!t.leading,d="maxWait"in t,i=d?sde(TL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?lde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=XT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(XT())}function C(){var w=XT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var NY=ude;const n7=Ie(NY);var cde=NY,dde=pi,fde="Expected a function";function hde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(fde);return dde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),cde(n,e,{leading:r,maxWait:e,trailing:a})}var pde=hde;const yO=Ie(pde);function gde(){}var FY=gde;const B=Ie(FY);var $Y={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Kfe=Yfe,Zfe=dw;function Xfe(n,e){var t=this.__data__,r=Zfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var qfe=Xfe,Qfe=Lfe,Jfe=Bfe,ehe=Wfe,the=Kfe,nhe=qfe;function Fg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var LL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!ML(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;ML(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&QT(h)&&!QT(document.documentElement)||h!=null&&QT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function ZY(n){return n===Object(n)&&Object.keys(n).length!==0}function lpe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function upe(n){return n===!1?{block:"end",inline:"nearest"}:ZY(n)?n:{block:"start",inline:"nearest"}}function kL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(ZY(e)&&typeof e.behavior=="function")return e.behavior(t?LL(n,e):[]);if(t){var r=upe(e);return lpe(LL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:cpe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&cpe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=xge}var p7=Tge,Ege=uw,Oge=p7;function Ige(n){return n!=null&&Oge(n.length)&&!Ege(n)}var ls=Ige,Pge=ls,Dge=gi;function Age(n){return Dge(n)&&Pge(n)}var g7=Age,vS={exports:{}};function Mge(){return!1}var oK=Mge;const V1=Ie(oK);vS.exports;(function(n,e){var t=os,r=oK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(vS,vS.exports);var By=vS.exports,Rge=ss,Lge=h7,kge=gi,Nge="[object Object]",Fge=Function.prototype,$ge=Object.prototype,sK=Fge.toString,Vge=$ge.hasOwnProperty,jge=sK.call(Object);function zge(n){if(!kge(n)||Rge(n)!=Nge)return!1;var e=Lge(n);if(e===null)return!0;var t=Vge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==jge}var v7=zge;const m7=Ie(v7);var Bge=ss,Hge=p7,Uge=gi,Wge="[object Arguments]",Gge="[object Array]",Yge="[object Boolean]",Kge="[object Date]",Zge="[object Error]",Xge="[object Function]",qge="[object Map]",Qge="[object Number]",Jge="[object Object]",eve="[object RegExp]",tve="[object Set]",nve="[object String]",rve="[object WeakMap]",ave="[object ArrayBuffer]",ive="[object DataView]",ove="[object Float32Array]",sve="[object Float64Array]",lve="[object Int8Array]",uve="[object Int16Array]",cve="[object Int32Array]",dve="[object Uint8Array]",fve="[object Uint8ClampedArray]",hve="[object Uint16Array]",pve="[object Uint32Array]",yn={};yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=yn[pve]=!0;yn[Wge]=yn[Gge]=yn[ave]=yn[Yge]=yn[ive]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=yn[rve]=!1;function gve(n){return Uge(n)&&Hge(n.length)&&!!yn[Bge(n)]}var vve=gve;function mve(n){return function(e){return n(e)}}var Qf=mve,mS={exports:{}};mS.exports;(function(n,e){var t=LY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(mS,mS.exports);var Hy=mS.exports,yve=vve,bve=Qf,jL=Hy,zL=jL&&jL.isTypedArray,_ve=zL?bve(zL):yve,bw=_ve;function Sve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var lK=Sve,Cve=d7,wve=Vy,xve=Object.prototype,Tve=xve.hasOwnProperty;function Eve(n,e,t){var r=n[e];(!(Tve.call(n,e)&&wve(r,t))||t===void 0&&!(e in n))&&Cve(n,e,t)}var _w=Eve,Ove=_w,Ive=d7;function Pve(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=$me)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Bme=zme,Hme=Fme,Ume=Bme,Wme=Ume(Hme),hK=Wme,Gme=Wy,Yme=fK,Kme=hK;function Zme(n,e){return Kme(Yme(n,e,Gme),n+"")}var Cw=Zme,Xme=Vy,qme=ls,Qme=Sw,Jme=pi;function e1e(n,e,t){if(!Jme(t))return!1;var r=typeof e;return(r=="number"?qme(t)&&Qme(e,t.length):r=="string"&&e in t)?Xme(t[e],n):!1}var ww=e1e,t1e=Cw,n1e=ww;function r1e(n){return t1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&n1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?DK(s,e-1,t,r,a):Bbe(a,s):r||(a[a.length]=s)}return a}var C7=DK,Ube=C7;function Wbe(n){var e=n==null?0:n.length;return e?Ube(n,1):[]}var AK=Wbe;const Gbe=Ie(AK);var Ybe=AK,Kbe=fK,Zbe=hK;function Xbe(n){return Zbe(Kbe(n,void 0,Ybe),n+"")}var MK=Xbe,qbe=Xf,Qbe=xw,Jbe=PK,e_e=Vg,t_e=Jf,n_e=Fbe,r_e=MK,a_e=SK,i_e=1,o_e=2,s_e=4,l_e=r_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=qbe(e,function(i){return i=e_e(i,n),r||(r=i.length>1),i}),t_e(n,a_e(n),t),r&&(t=Qbe(t,i_e|o_e|s_e,n_e));for(var a=e.length;a--;)Jbe(t,e[a]);return t}),u_e=l_e;const fr=Ie(u_e);function c_e(n){return n===void 0}var d_e=c_e;const Vt=Ie(d_e);var f_e="__lodash_hash_undefined__";function h_e(n){return this.__data__.set(n,f_e),this}var p_e=h_e;function g_e(n){return this.__data__.has(n)}var v_e=g_e,m_e=o7,y_e=p_e,b_e=v_e;function yS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new m_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&E_e?new C_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function $K(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function K2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function X2e(n){n.length>0&&Yy(n,n[n.length-1])}function q2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function Q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function J2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function eSe(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function tSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),qc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),Qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),sr=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":Qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":Qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const rSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function bS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function Q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return bS("semi")}}function Lf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),ySe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=mSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},bSe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},_Se=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},SSe=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=ySe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=bSe({chunks:i});return _Se({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return jK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const E7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=SSe(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},zK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function BK(){return document?document.activeElement:null}function HK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function CSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const wSe=x.createContext({}),Fr=wSe,xSe=()=>document.body;class Ow extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||xSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=TSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},OSe=ESe;var ISe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=ISe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},DSe=PSe,ASe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class WK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}WK.defaultProps={motion:!0,replayKey:""};const ig=WK;var Ck=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(DSe,null):x.createElement(OSe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${J_}-animation-show`:`${J_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${J_}-content`},y),C)});return x.createElement(UK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||LSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new nSe(this.adapter),this.eventManager=new FK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=Ck(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=Y2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=Ck(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>HK(t),getActiveElement:()=>BK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Lf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||kSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(MSe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(RSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:ASe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:J_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var O7={exports:{}};const GK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};O7.exports=GK;O7.exports.default=GK;var NSe=O7.exports;const FSe=Ie(NSe);function Ht(){}const $Se=x.createContext(null),YK=$Se;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?jSe(s,function(d){return d.test(o)}):VSe(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function VSe(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function jSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function zSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var BSe={};function Hg(){return BSe}function ZK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function wk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function _S(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var I7=6e4,P7=36e5,HSe=1e3;function D7(n,e){qe(2,arguments);var t=wk(n),r=wk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Rd(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function USe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function WSe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function XK(n,e){qe(2,arguments);var t=fn(e);return zSe(n,-t)}var GSe=864e5;function YSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/GSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function KSe(n){qe(1,arguments);var e=qK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var ZSe=6048e5;function QK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-KSe(e).getTime();return Math.round(t/ZSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function XSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=A7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var qSe=6048e5;function JK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-XSe(t,e).getTime();return Math.round(r/qSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=QSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},JSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=A7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=qK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=JK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=QK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=YSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Tk(o);case"XXXX":case"XX":return Ld(o);case"XXXXX":case"XXX":default:return Ld(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Tk(o);case"xxxx":case"xx":return Ld(o);case"xxxxx":case"xxx":default:return Ld(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+xk(o,":");case"OOOO":default:return"GMT"+Ld(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+xk(o,":");case"zzzz":default:return"GMT"+Ld(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function xk(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Tk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Ld(n,e)}function Ld(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const eCe=JSe;var Ek=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eZ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},tCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ek(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ek(a,t)).replace("{{time}}",eZ(i,t))},nCe={p:eZ,P:tCe};const EO=nCe;var rCe=["D","DD"],aCe=["YY","YYYY"];function tZ(n){return rCe.indexOf(n)!==-1}function nZ(n){return aCe.indexOf(n)!==-1}function SS(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var iCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oCe=function(e,t,r){var a,i=iCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const sCe=oCe;var lCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},uCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},dCe={date:$p({formats:lCe,defaultWidth:"full"}),time:$p({formats:uCe,defaultWidth:"full"}),dateTime:$p({formats:cCe,defaultWidth:"full"})};const fCe=dCe;var hCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pCe=function(e,t,r,a){return hCe[e]};const gCe=pCe;var vCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},mCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},bCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},SCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},CCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},wCe={ordinalNumber:CCe,era:Ds({values:vCe,defaultWidth:"wide"}),quarter:Ds({values:mCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:yCe,defaultWidth:"wide"}),day:Ds({values:bCe,defaultWidth:"wide"}),dayPeriod:Ds({values:_Ce,defaultWidth:"wide",formattingValues:SCe,defaultFormattingWidth:"wide"})};const xCe=wCe;var TCe=/^(\d+)(th|st|nd|rd)?/i,ECe=/\d+/i,OCe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ICe={any:[/^b/i,/^(a|c)/i]},PCe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},DCe={any:[/1/i,/2/i,/3/i,/4/i]},ACe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},MCe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},RCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},LCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},kCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},NCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},FCe={ordinalNumber:KK({matchPattern:TCe,parsePattern:ECe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:OCe,defaultMatchWidth:"wide",parsePatterns:ICe,defaultParseWidth:"any"}),quarter:As({matchPatterns:PCe,defaultMatchWidth:"wide",parsePatterns:DCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:ACe,defaultMatchWidth:"wide",parsePatterns:MCe,defaultParseWidth:"any"}),day:As({matchPatterns:RCe,defaultMatchWidth:"wide",parsePatterns:LCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:kCe,defaultMatchWidth:"any",parsePatterns:NCe,defaultParseWidth:"any"})};const $Ce=FCe;var VCe={code:"en-US",formatDistance:sCe,formatLong:fCe,formatRelative:gCe,localize:xCe,match:$Ce,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M7=VCe;var jCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,BCe=/^'([^]*?)'?$/,HCe=/''/g,UCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=Hg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:M7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=ZK(I),A=XK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(zCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(jCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return WCe(k);var z=eCe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&nZ(k)&&SS(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&tZ(k)&&SS(k,e,String(n)),z(A,k,T.localize,R);if(N.match(UCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function WCe(n){var e=n.match(BCe);return e?e[1].replace(HCe,"'"):n}function GCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function rZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function KCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function ZCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function aZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function wS(n,e){return wS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&wS(n,e)}function xS(n){return xS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xS(n)}function qCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=qCe();return function(){var r=xS(n),a;if(e){var i=xS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return QCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function JCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iZ(n){var e=JCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Pk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function uZ(n){return n%400===0||n%4===0&&n%100!==0}var awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=lZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=A7(a,s);if(o.isTwoDigitYear){var u=lZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),owe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function fwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=JK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var hwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(fwe(a,o,s),s)}}]),t}(jt);function pwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=QK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var gwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(pwe(a,o))}}]),t}(jt),vwe=[31,28,31,30,31,30,31,31,30,31,30,31],mwe=[31,29,31,30,31,30,31,31,30,31,30,31],ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=mwe[l]:i>=1&&i<=vwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),bwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function L7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=Hg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function wwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=wwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Twe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new nwe],L=T.match(zwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(jwe),k=[],N=Ik(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&nZ(re)&&SS(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tZ(re)&&SS(re,T,n);var te=re[0],oe=Vwe[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Wwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Gwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Uwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=XK(G,ZK(G)),Q={},Z=Ik(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],GCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Gwe(n){return n.match(Bwe)[1].replace(Hwe,"'")}function Dk(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ak(n,e){qe(2,arguments);var t=Dk(n),r=Dk(e);return t.getTime()===r.getTime()}function Ywe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=qwe(n),i;if(a.date){var o=Qwe(a.date,r);i=Jwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=exe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=txe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Kwe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Zwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Xwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function qwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function Qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Jwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Kwe);if(!t)return new Date(NaN);var r=!!t[4],a=Lv(t[1]),i=Lv(t[2])-1,o=Lv(t[3]),s=Lv(t[4]),l=Lv(t[5])-1;if(r)return oxe(e,s,l)?nxe(e,s,l):new Date(NaN);var u=new Date(0);return!axe(e,i,o)||!ixe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Lv(n){return n?parseInt(n):1}function exe(n){var e=n.match(Zwe);if(!e)return NaN;var t=t5(e[1]),r=t5(e[2]),a=t5(e[3]);return sxe(t,r,a)?t*P7+r*I7+a*1e3:NaN}function t5(n){return n&&parseFloat(n.replace(",","."))||0}function txe(n){if(n==="Z")return 0;var e=n.match(Xwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return lxe(r,a)?t*(r*P7+a*I7):NaN}function nxe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var rxe=[31,null,31,30,31,30,31,31,30,31,30,31];function dZ(n){return n%400===0||n%4===0&&n%100!==0}function axe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(rxe[e]||(dZ(n)?29:28))}function ixe(n,e){return e>=1&&e<=(dZ(n)?366:365)}function oxe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function sxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function lxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=rZ(o);return t.setMonth(r,Math.min(i,s)),t}function fZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function hZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function cxe(n,e){qe(2,arguments);var t=fn(e);return _S(n,-t)}function dxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var fxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},hxe=function(e,t,r){var a,i=fxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const pxe=hxe;var gxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},vxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},mxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},yxe={date:$p({formats:gxe,defaultWidth:"full"}),time:$p({formats:vxe,defaultWidth:"full"}),dateTime:$p({formats:mxe,defaultWidth:"full"})};const bxe=yxe;function Mk(n,e,t){var r="eeee p";return dxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var _xe={lastWeek:Mk,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Mk,other:"PP p"},Sxe=function(e,t,r,a){var i=_xe[e];return typeof i=="function"?i(t,r,a):i};const Cxe=Sxe;var wxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},xxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Txe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Exe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Pxe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Dxe={ordinalNumber:Pxe,era:Ds({values:wxe,defaultWidth:"wide"}),quarter:Ds({values:xxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:Txe,defaultWidth:"wide"}),day:Ds({values:Exe,defaultWidth:"wide"}),dayPeriod:Ds({values:Oxe,defaultWidth:"wide",formattingValues:Ixe,defaultFormattingWidth:"wide"})};const Axe=Dxe;var Mxe=/^(第\s*)?\d+(日|时|分|秒)?/i,Rxe=/\d+/i,Lxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},kxe={any:[/^(前)/i,/^(公元)/i]},Nxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Fxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},$xe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Vxe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},jxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},zxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Bxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Hxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Uxe={ordinalNumber:KK({matchPattern:Mxe,parsePattern:Rxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Lxe,defaultMatchWidth:"wide",parsePatterns:kxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:Nxe,defaultMatchWidth:"wide",parsePatterns:Fxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:$xe,defaultMatchWidth:"wide",parsePatterns:Vxe,defaultParseWidth:"any"}),day:As({matchPatterns:jxe,defaultMatchWidth:"wide",parsePatterns:zxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:Bxe,defaultMatchWidth:"any",parsePatterns:Hxe,defaultParseWidth:"any"})};const Wxe=Uxe;var Gxe={code:"zh-CN",formatDistance:pxe,formatLong:bxe,formatRelative:Cxe,localize:Axe,match:Wxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const k7=Gxe,Yxe={code:"zh-CN",dateFnsLocale:k7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Yxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(YK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Kxe="semi";var Zxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Kxe,type:l,size:u="default"}=n,c=Zxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});pZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(pZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Xxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const qxe=Qe(Xxe,"alert_circle"),z1=qxe;function Qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Jxe=Qe(Qxe,"alert_triangle"),Iw=Jxe;function eTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const tTe=Qe(eTe,"calendar"),gZ=tTe;function nTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const rTe=Qe(nTe,"calendar_clock"),aTe=rTe;function iTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const oTe=Qe(iTe,"caretdown"),sTe=oTe;function lTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const uTe=Qe(lTe,"caretup"),cTe=uTe;function dTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const fTe=Qe(dTe,"checkbox_indeterminate"),hTe=fTe;function pTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const gTe=Qe(pTe,"checkbox_tick"),vTe=gTe;function mTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const yTe=Qe(mTe,"chevron_down"),kf=yTe;function bTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const _Te=Qe(bTe,"chevron_left"),N7=_Te;function STe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const CTe=Qe(STe,"chevron_right"),sg=CTe;function wTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const xTe=Qe(wTe,"chevron_up"),TTe=xTe;function ETe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const OTe=Qe(ETe,"clear"),Gc=OTe;function ITe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const PTe=Qe(ITe,"clock"),vZ=PTe;function DTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const ATe=Qe(DTe,"close"),Ky=ATe;function MTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const RTe=Qe(MTe,"copy"),LTe=RTe;function kTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const NTe=Qe(kTe,"double_chevron_left"),mZ=NTe;function FTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const $Te=Qe(FTe,"double_chevron_right"),yZ=$Te;function VTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const jTe=Qe(VTe,"eye_closed_solid"),zTe=jTe;function BTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const HTe=Qe(BTe,"eye_opened"),UTe=HTe;function WTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const GTe=Qe(WTe,"file"),IO=GTe;function YTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const KTe=Qe(YTe,"filter"),ZTe=KTe;function XTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const qTe=Qe(XTe,"folder"),QTe=qTe;function JTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const e5e=Qe(JTe,"folder_open"),t5e=e5e;function n5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const r5e=Qe(n5e,"github_logo"),a5e=r5e;function i5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const o5e=Qe(i5e,"handle"),s5e=o5e;function l5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const u5e=Qe(l5e,"help_circle"),e2=u5e;function c5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const d5e=Qe(c5e,"id_card"),f5e=d5e;function h5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const p5e=Qe(h5e,"info_circle"),bZ=p5e;function g5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const v5e=Qe(g5e,"mark"),m5e=v5e;function y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const b5e=Qe(y5e,"moon"),_5e=b5e;function S5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const C5e=Qe(S5e,"radio"),w5e=C5e;function x5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const T5e=Qe(x5e,"refresh"),E5e=T5e;function O5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const I5e=Qe(O5e,"search"),P5e=I5e;function D5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const A5e=Qe(D5e,"sidebar"),M5e=A5e;function R5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const L5e=Qe(R5e,"star"),k5e=L5e;function N5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const F5e=Qe(N5e,"sun"),$5e=F5e;function V5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const j5e=Qe(V5e,"tick"),lg=j5e;function z5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const B5e=Qe(z5e,"tick_circle"),_Z=B5e;function H5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const U5e=Qe(H5e,"tree_triangle_down"),SZ=U5e;function W5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const G5e=Qe(W5e,"tree_triangle_right"),Y5e=G5e;function K5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const Z5e=Qe(K5e,"upload"),X5e=Z5e,q5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},F7="Enter",Rr=q5e;function ha(n){return H(n,"key")===F7}const n5=vw.PREFIX;class $7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=FSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${n5}-action-copy-icon`},x.createElement(LTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${n5}-action-copy`]:!i,[`${n5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}$7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};$7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const Q5e=$7,CZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},gf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var J5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=J5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,CZ.ARROW),l=H(r,"borderOpacity",gf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",gf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",gf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};wZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const e4e=wZ;var t4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=t4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(e4e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Pw.contextType=Fr;Pw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(n4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(r4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Pw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:CZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Pw;let Xn;function r5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function a4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const i4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=a4e(s),u=r5(s.lineHeight),c=Math.round(u*(e+1)+r5(s.paddingTop)+r5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},o4e=i4e;var xZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),f4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=d4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),TZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new S4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new C4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),OZ=typeof WeakMap<"u"?new WeakMap:new xZ,IZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=h4e.getInstance(),r=new w4e(e,t,this);OZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){IZ.prototype[n]=function(){var e;return(e=OZ.get(this))[n].apply(e,arguments)}});var x4e=function(){return typeof ES.ResizeObserver<"u"?ES.ResizeObserver:IZ}();const Lk=x4e;class vf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Lk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Lk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}vf.propTypes={onResize:v.func,observeParent:v.bool};vf.defaultProps={onResize:()=>{},observeParent:!1};var T4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Ug extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=o4e(this.wrapperRef.current,e,String(a),s,E4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(Q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=T4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=O4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(XY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(vf,{onResize:this.onResize,observeParent:!0},e):e}}Ug.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Ug.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Aw=class extends D.PureComponent{render(){return x.createElement(Ug,Object.assign({component:"span"},this.props))}};Aw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Aw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var I4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?a5(this.content).map(e=>i5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?a5(this.content).filter(e=>i5(e)).map(e=>this.truncatePrecision(e)).join(","):a5(this.content).map(e=>i5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new D4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Ug,Object.assign({component:"span"},e))}}j7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};j7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=XY;Zy.Text=Aw;Zy.Title=V7;Zy.Paragraph=Mw;Zy.Numeral=j7;const Nf=Zy,PZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},z7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:kg};var A4e=ss,M4e=gi,R4e="[object Number]";function L4e(n){return typeof n=="number"||M4e(n)&&A4e(n)==R4e}var DZ=L4e;const Rn=Ie(DZ);class k4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const N4e=k4e,F4e=`${q}-spin`,$4e={PREFIX:F4e},V4e={SIZE:["small","middle","large"]};class B7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},B7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const j4e=B7;var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=z4e(n,["id","className"]);let a=e;ct(a)&&(kk++,a=kk);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var B4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${td}-wrapper`},e?x.createElement("div",{className:`${td}-animate`,"x-semi-prop":"indicator"},e):x.createElement(AZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=B4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(td,a,{[`${td}-${o}`]:o,[`${td}-block`]:t,[`${td}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${td}-children`,style:i,"x-semi-prop":"children"},t))}}H7.propTypes={size:v.oneOf(V4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};H7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=H7,Rw={PREFIX:`${q}-input`},Yc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},H4e={};let U4e=class MZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},MZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===F7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const W4e=U4e;var G4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new W4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Gc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(zTe,null):x.createElement(UTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=G4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}U7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(Z4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(Y4e),className:v.string,style:v.object,validateStatus:v.oneOf(K4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};U7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const X4e=x.forwardRef((n,e)=>x.createElement(U7,Object.assign({},n,{forwardRef:e}))),Ri=X4e;var q4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Lw.isSelectOption=!0;Lw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Lw.defaultProps={prefixCls:PZ.PREFIX_OPTION};const LZ=Lw,vb=PZ.PREFIX,Q4e=z7.SIZE,J4e=z7.POSITION,eEe=z7.STATUS;class kw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new N4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Wg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(LZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}kw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(J4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(Q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(eEe),zIndex:v.number};kw.Option=LZ;kw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const tEe=kw,nEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class rEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var aEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new rEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=aEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(sEe),shape:v.oneOf(oEe),size:v.oneOf(iEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var lEe=4,uEe=.001,cEe=1e-7,dEe=10,Em=11,mb=1/(Em-1),fEe=typeof Float32Array=="function";function kZ(n,e){return 1-3*e+3*n}function NZ(n,e){return 3*e-6*n}function FZ(n){return 3*n}function IS(n,e,t){return((kZ(e,t)*n+NZ(e,t))*n+FZ(e))*n}function $Z(n,e,t){return 3*kZ(e,t)*n*n+2*NZ(e,t)*n+FZ(e)}function hEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=IS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>cEe&&++s=uEe?pEe(l,h,e,r):p===0?h:hEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:IS(s(u),t,a)}};const o5=Ie(vEe);function Fk(n,e,t){return Math.min(Math.max(n,e),t)}function mEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Fk(n,1,10),r=Fk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const s5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function $k(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=mEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?o5(...t.length?t:s5.linear):((!e||typeof e!="string"||typeof e=="string"&&s5[e]==null)&&(e="linear"),r=s5[e],typeof r=="function"?r(...t):t.length?o5(...t):o5(...r))}class yEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function B1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function bEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(B1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function Vk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(B1(e)){const r=$k(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},CEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(B1(n)){const r=$k(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const kv=()=>Date.now(),_u=1e3/60;let VZ=class extends yEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=wEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=_Ee(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=kv();if(bEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:W7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(EEe),type:v.oneOf(IEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(OEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var PEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};G7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);G7.elementType="Button";const Jt=G7;var AEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=AEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(MEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const jZ={PREFIX:`${q}-card`},REe={SHADOWS:["hover","always"],TYPE:["grid"]};var LEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Gg extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=NEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Gg.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(FEe),shape:v.oneOf($Ee)};Gg.defaultProps={prefixCls:Y7.PREFIX,size:"medium",shape:"circle"};const VEe=Fw("avatar")(Gg),jEe=Fw("image")(Gg),zEe=Fw("title")(Gg),BEe=Fw("button")(Gg);class K7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}K7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};K7.defaultProps={prefixCls:Y7.PREFIX,rows:4};var HEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===WEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=UEe.PREFIX;class Z7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):r7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===kd.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===kd.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===kd.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===kd.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===kd.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===kd.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}Z7.propTypes={wrap:v.bool,align:v.oneOf(kd.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};Z7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const BZ=Z7;var GEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(Nf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(l5.Title,null),x.createElement("br",null),x.createElement(l5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(l5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(BZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=GEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}$w.Meta=kEe;$w.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(REe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};$w.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=$w;function YEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&p3e(n,e,t)>-1}var S3e=_3e;const Fs=Ie(S3e);var C3e=xw,w3e=1,x3e=4;function T3e(n){return C3e(n,w3e|x3e)}var E3e=T3e;const Ii=Ie(E3e);var O3e=_w,I3e=Jf,P3e=pK,D3e=ls,A3e=jy,M3e=Wc,R3e=Object.prototype,L3e=R3e.hasOwnProperty,k3e=P3e(function(n,e){if(A3e(e)||D3e(e)){I3e(e,M3e(e),n);return}for(var t in e)L3e.call(e,t)&&O3e(n,t,e[t])}),N3e=k3e;const F3e=Ie(N3e);var $3e=q7;function V3e(n,e){var t=n==null?0:n.length;return!!t&&$3e(n,e,0)>-1}var WZ=V3e;function j3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=Y3e&&(i=G3e,o=!1,e=new z3e(e));e:for(;++ae}var DOe=POe,AOe=IOe,MOe=DOe,ROe=Wy;function LOe(n){return n&&n.length?AOe(n,ROe,MOe):void 0}var kOe=LOe;const NOe=Ie(kOe);var u5=CK,FOe=FY,$Oe=T7,VOe=1/0,jOe=u5&&1/$Oe(new u5([,-0]))[1]==VOe?function(n){return new u5(n)}:FOe,zOe=jOe,BOe=w7,HOe=WZ,UOe=GZ,WOe=x7,GOe=zOe,YOe=T7,KOe=200;function ZOe(n,e,t){var r=-1,a=HOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=UOe;else if(i>=KOe){var u=e?null:GOe(n);if(u)return YOe(u);o=!1,a=WOe,l=new BOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=ZZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function tIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?ZZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function nIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return tIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function Nd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!Vw(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;Vw(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function rIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Q7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),rIe(eIe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function aIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=aIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Q7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=NOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Hk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function Uk(n,e,t,r){const a=Nd(n,r,t);return new Set($l(a,e,!1))}function iIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function XZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function oIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!Vw(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function Wk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Q7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function QZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Q7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function PS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&Vw(n)?PS(n,t):n}function Gk(n,e){return[...n].filter(r=>r in e)}function JZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const eX={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},ur={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function sIe(n,e){return`${n}-${e}`}function lIe(n){return!ql(n)&&!Vt(n)}function t2(n){return Array.isArray(n)?n:[n]}function uIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?sIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function tX(n){const e={};return uIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=t2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=ur.LEAF_ONLY_MERGE_TYPE:n?t=ur.AUTO_MERGE_VALUE_MERGE_TYPE:t=ur.NONE_MERGE_TYPE,t}class cIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return t2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=tX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;lIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?t2(e).map(m=>m.value):t2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=F3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===ur.LEAF_ONLY_MERGE_TYPE,m=p===ur.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return XZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var dIe=ss,fIe=gi,hIe="[object Boolean]";function pIe(n){return n===!0||n===!1||fIe(n)&&dIe(n)==hIe}var gIe=pIe;const nX=Ie(gIe),n2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},vIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class mIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const yIe=mIe,J7=x.createContext({});class jw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||n2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},n2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(vTe,null):e?x.createElement(hTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:n2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}jw.contextType=J7;jw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};jw.defaultProps={onChange:B};const bIe=jw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new yIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||n2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(bIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=J7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Ff=e0;class eA extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},eA.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const _Ie=eA;class tA extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new _Ie(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||vIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Ff,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Ff,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(J7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}tA.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};tA.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const nA=tA;class RO extends Ff{}RO.Group=nA;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var c5=-1;function Xk(n){if(n===void 0&&(n=!1),c5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),c5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return c5}var xh=null;function qk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var EIe=150,OIe=function(e,t){return e};function rX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){SIe(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Jd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Jd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Jd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(qk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Xk():0:C=w.scrollHeight>w.clientHeight?Xk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(qk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Zk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?OIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var IIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},PIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},DIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?aX(e,t,i,0,r):AIe(e,t,Math.max(0,i),r)},aX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},AIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},MIe=rX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Qk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Qk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},LIe=RIe,Ut=eX.PREFIX_OPTION;let Bw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===ur.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(zw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},LIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};Bw.contextType=Fr;Bw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};Bw.defaultProps={empty:!1};const iX={PREFIX:`${q}-tag`},Yg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var kIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:sX[0],color:oX[0],closable:!1,type:lX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(sX),color:v.oneOf(oX),type:v.oneOf(lX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(NIe),"aria-label":v.string};const FIe={PREFIX:`${q}-tagInput`},Jk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},$Ie=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(r7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=VIe(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const zIe=jIe;function BIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Hw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function rA(n){return"nodeType"in n}function ja(n){var e,t;return n?Kg(n)?n:rA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function aA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Kg(n)?!1:n instanceof ja(n).HTMLElement}function uX(n){return n instanceof ja(n).SVGElement}function Zg(n){return n?Kg(n)?n.document:rA(n)?aA(n)?n:t0(n)||uX(n)?n.ownerDocument:document:document:document}const Co=Hw?D.useLayoutEffect:D.useEffect;function Uw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function H1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function DS(n){const e=Uw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function AS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let d5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=d5[n]==null?0:d5[n]+1;return d5[n]=t,n+"-"+t},[n,e])}function cX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=cX(1),U1=cX(-1);function UIe(n){return"clientX"in n&&"clientY"in n}function Ww(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function WIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function MS(n){if(WIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return UIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),eN="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function GIe(n){return n.matches(eN)?n:n.querySelector(eN)}const YIe={display:"none"};function KIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:YIe},t)}function ZIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function XIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const dX=D.createContext(null);function qIe(n){const e=D.useContext(dX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function QIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const JIe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},ePe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function tPe(n){let{announcements:e=ePe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=JIe}=n;const{announce:i,announcement:o}=XIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),qIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(KIe,{id:r,value:a.draggable}),x.createElement(ZIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function RS(){}function f5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function nPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function fX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function rPe(n,e){const t=MS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function hX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function aPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function tN(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function pX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function nN(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=nN(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=fX(nN(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(hX)},oPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=tN(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=tN(l),c=a.reduce((f,h,p)=>f+fX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(hX)};function sPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=sPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(aPe)};function uPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function gX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function cPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const dPe=cPe(1);function vX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function fPe(n,e,t){const r=vX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const hPe={ignoreTransform:!1};function Xg(n,e){e===void 0&&(e=hPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=fPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function rN(n){return Xg(n,{ignoreTransform:!0})}function pPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function gPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function vPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Gw(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(aA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||uX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&vPe(a,i)&&t.push(a),gPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function mX(n){const[e]=Gw(n,1);return e??null}function h5(n){return!Hw||!n?null:Kg(n)?n:rA(n)?aA(n)||n===Zg(n).scrollingElement?window:t0(n)?n:null:null}function yX(n){return Kg(n)?n.scrollX:n.scrollLeft}function bX(n){return Kg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:yX(n),y:bX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function _X(n){return!Hw||!n?!1:n===document.scrollingElement}function SX(n){const e={x:0,y:0},t=_X(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const mPe={x:.2,y:.2};function yPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=mPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=SX(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function bPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function CX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function SPe(n){return n.reduce((e,t)=>e+bX(t),0)}function wX(n,e){if(e===void 0&&(e=Xg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);mX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const CPe=[["x",["left","right"],_Pe],["y",["top","bottom"],SPe]];let iA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Gw(t),a=CX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of CPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Xm{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function wPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Zg(n)}function p5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function aN(n){n.preventDefault()}function xPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const xX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},TPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class oA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Xm(Zg(t)),this.windowListeners=new Xm(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&wX(r),t(ts)}handleKeyDown(e){if(Ww(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=xX,coordinateGetter:o=TPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=U1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=SX(g),T=bPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(U1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}oA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=xX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function iN(n){return!!(n&&"distance"in n)}function oN(n){return!!(n&&"delay"in n)}class sA{constructor(e,t,r){var a;r===void 0&&(r=wPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Zg(o),this.documentListeners=new Xm(this.document),this.listeners=new Xm(r),this.windowListeners=new Xm(ja(o)),this.initialCoordinates=(a=MS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,aN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,aN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(oN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(iN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,xPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=MS(e))!=null?t:ts,u=U1(a,l);if(!r&&s){if(iN(s)){if(s.tolerance!=null&&p5(u,s.tolerance))return this.handleCancel();if(p5(u,s.distance))return this.handleStart()}return oN(s)&&p5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const EPe={move:{name:"pointermove"},end:{name:"pointerup"}};class TX extends sA{constructor(e){const{event:t}=e,r=Zg(t.target);super(e,EPe,r)}}TX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const OPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class EX extends sA{constructor(e){super(e,OPe,Zg(e.event.target))}}EX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const g5={move:{name:"touchmove"},end:{name:"touchend"}};class OX extends sA{constructor(e){super(e,g5)}static setup(){return window.addEventListener(g5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(g5.move.name,e)};function e(){}}}OX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var qm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(qm||(qm={}));var W1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(W1||(W1={}));function IPe(n){let{acceleration:e,activator:t=qm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=W1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=DPe({delta:d,disabled:!i}),[p,g]=HIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case qm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case qm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===W1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=yPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const PPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function DPe(n){let{delta:e,disabled:t}=n;const r=AS(e);return n0(a=>{if(t||!r||!a)return PPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function APe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function MPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var G1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(G1||(G1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const sN=new Map;function RPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=H1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return sN;if(!y||y===sN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new iA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case G1.Always:return!1;case G1.BeforeDragging:return t;default:return!t}}}function lA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function LPe(n,e){return lA(n,e)}function kPe(n){let{callback:e,disabled:t}=n;const r=Uw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Yw(n){let{callback:e,disabled:t}=n;const r=Uw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function NPe(n){return new iA(Xg(n),n)}function lN(n,e,t){e===void 0&&(e=NPe);const[r,a]=D.useReducer(s,null),i=kPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Yw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function FPe(n){const e=lA(n);return gX(n,e)}const uN=[];function $Pe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==uN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Gw(n):uN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function VPe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=h5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=h5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=h5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):CX(n):ts,[n,e])}function cN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?U1(n,t.current):ts}function jPe(n){D.useEffect(()=>{if(!Hw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function zPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function IX(n){return D.useMemo(()=>n?pPe(n):null,[n])}const v5=[];function BPe(n,e){e===void 0&&(e=Xg);const[t]=n,r=IX(t?ja(t):null),[a,i]=D.useReducer(s,v5),o=Yw({callback:i});return n.length>0&&a===v5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>_X(l)?r:new iA(e(l),l)):v5}}function PX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function HPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Yw({callback:a}),o=D.useCallback(u=>{const c=PX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=DS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const UPe=[{sensor:TX,options:{}},{sensor:oA,options:{}}],WPe={current:{}},r2={draggable:{measure:rN},droppable:{measure:rN,strategy:G1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Xg}};class Qm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const GPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:RS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:r2,measureDroppableContainers:RS,windowRect:null,measuringScheduled:!1},DX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:RS,draggableNodes:new Map,over:null,measureDroppableContainers:RS},a0=D.createContext(DX),AX=D.createContext(GPe);function YPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qm}}}function KPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Qm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Qm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Qm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function ZPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=AS(r),o=AS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Ww(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=GIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function MX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function XPe(n){return D.useMemo(()=>({draggable:{...r2.draggable,...n==null?void 0:n.draggable},droppable:{...r2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...r2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function qPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=gX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=mX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Kw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const QPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=UPe,collisionDetection:d=lPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(KPe,void 0,YPe),[m,y]=g,[b,_]=QIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:WPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=H1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=XPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=RPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=APe(E,T),ee=D.useMemo(()=>z?MS(z):null,[z]),ne=Qc(),re=LPe(se,Y.draggable.measure);qPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=lN(se,Y.draggable.measure,re),oe=lN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=HPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=FPe(Mt?null:te),Vn=IX(Je?ja(Je):null),on=$Pe(w?We??se:null),wn=BPe(on),mi=MX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=VPe(on),mh=cN(vu),yh=cN(vu,[te]),fs=jp(mi,mh),qr=Ve?dPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=pX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=uPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:sr,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new sr({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Jc=L.current;if(Jc==null)return;const ut=E.get(Jc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Jc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Jc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(sr,zn)=>{const Bn=sr.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(sr,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(sr,jn))},[E,hl]),pl=MPe(c,mu);jPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:sr,collisions:zn,over:Bn}=pe.current;if(!jn||!sr)return;const pr={active:jn,activatorEvent:sr,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:sr,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:sr,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),IPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const qc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(dX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(AX.Provider,{value:qc},x.createElement(Kw.Provider,{value:ba},u)),x.createElement(ZPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(tPe,{...s,hiddenTextDescribedById:U}));function Qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,sr=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:sr}:{enabled:sr}}}),JPe=D.createContext(null),dN="button",eDe="Droppable";function tDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(eDe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=dN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Kw:JPe),[b,_]=DS(),[S,C]=DS(),w=zPe(o,e),T=H1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===dN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function RX(){return D.useContext(AX)}const nDe="Droppable",rDe={timeout:25};function aDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(nDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...rDe,...a},y=H1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Yw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=DS(S),T=H1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function iDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=AS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const oDe={x:0,y:0,scaleX:1,scaleY:1};function sDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:DX},x.createElement(Kw.Provider,{value:oDe},e))}const lDe={position:"fixed",touchAction:"none"},uDe=n=>Ww(n)?"transform 250ms ease":void 0,cDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=uDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...lDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?rPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),dDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},fDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},hDe={duration:250,easing:"ease",keyframes:fDe,sideEffects:dDe({styles:{active:{opacity:"0"}}})};function pDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Uw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=PX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=vX(c);if(!d)return;const f=typeof e=="function"?e:gDe(e);return wX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function gDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...hDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let fN=0;function vDe(n){return D.useMemo(()=>{if(n!=null)return fN++,fN},[n])}const mDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=RX(),w=D.useContext(Kw),T=vDe(d==null?void 0:d.id),E=MX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=lA(f),I=pDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(sDe,null,x.createElement(iDe,{animation:I},d&&T?x.createElement(cDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function LX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function yDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function bDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=LX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},kX="Sortable",NX=x.createContext({activeIndex:-1,containerId:kX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:uA,disabled:{draggable:!1,droppable:!1}});function SDe(n){let{children:e,id:t,items:r,strategy:a=uA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=RX(),d=r0(kX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!bDe(h,y.current),_=m!==-1&&g===-1||b,S=_De(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:yDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(NX.Provider,{value:C},e)}const CDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return LX(t,r,a).indexOf(e)},wDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},xDe={duration:200,easing:"ease"},FX="transform",TDe=Dc.Transition.toString({property:FX,duration:0,easing:"linear"}),EDe={roleDescription:"sortable"};function ODe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Xg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function IDe(n){let{animateLayoutChanges:e=wDe,attributes:t,disabled:r,data:a,getNewIndex:i=CDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=xDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(NX),_=PDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=aDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=tDe({id:o,data:C,attributes:{...EDe,...t},disabled:_.draggable}),G=BIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=ODe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return TDe;if(!(Z&&!Ww(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:FX})}}function PDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function LS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const DDe=[wt.Down,wt.Right,wt.Up,wt.Left],ADe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(DDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Gw(p).some((w,T)=>s[T]!==w),y=$X(d,f),b=MDe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:U1(S,_)}}}};function $X(n,e){return!LS(n)||!LS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function MDe(n,e){return!LS(n)||!LS(e)||!$X(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(QPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:W1.ReversedTreeOrder}},x.createElement(SDe,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(FDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(mDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function FDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=IDe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var $De=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(s5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Mw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new zIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return r7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Gc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(NDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:VDe,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=$De(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}cA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Jk.SIZE_SET),validateStatus:v.oneOf(Jk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};cA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const dA=cA,pt=eX.PREFIX,jDe=0;class Zw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===ur.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(Bw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===ur.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,ur.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===ur.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Wg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Gc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:jDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new cIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=tX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Gbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=JZ(c));const C=MO(l,s)===ur.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===ur.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(dA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,ur.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Zw.contextType=Fr;Zw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(ur.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(ur.VALIDATE_STATUS),showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Zw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(kf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:ur.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const zDe=Zw;class BDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const HDe=BDe,hN={PREFIX:`${q}-collapsible`};class qg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=qg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new HDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${hN.PREFIX}-wrapper`,{[`${hN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}qg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};qg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};qg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const VX=qg;var UDe=PK;function WDe(n,e){return n==null?!0:UDe(n,e)}var GDe=WDe;const $O=Ie(GDe);var YDe=Xf,KDe=yw,ZDe=Tr,XDe=Lg,qDe=UY,QDe=qf,JDe=pw;function e6e(n){return ZDe(n)?YDe(n,QDe):XDe(n)?[n]:KDe(qDe(JDe(n)))}var t6e=e6e;const Y1=Ie(t6e),pN=n=>{const e=Y1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function n6e(n){if(oa(n)){const e=UZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function fA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||n6e(t))&&$O(n,e),fA(n,e.slice(0,e.length-1))}function r6e(n){return UZ(n).length===0}function Ea(n,e){return H(n,e)}function a2(n,e){$O(n,e);let t=Y1(e);t=t.slice(0,t.length-1),fA(n,t)}function m5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(pN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=Y1(e);a=a.slice(0,a.length-1),fA(n,a)}else!pN(e)&&Ea(n,e)!==void 0&&a2(n,e)}function jX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const a6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},a6e),i6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:kg,POSITION_SET:gf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},i6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var o6e=ss,s6e=gi,l6e="[object Date]";function u6e(n){return s6e(n)&&o6e(n)==l6e}var c6e=u6e,d6e=c6e,f6e=Qf,gN=Hy,vN=gN&&gN.isDate,h6e=vN?f6e(vN):d6e,p6e=h6e;const mN=Ie(p6e);function Vl(n){return typeof n=="string"}function yN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return ZCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return aZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return aZ(i,o)&&Ywe(a,{start:i,end:o})&&!CS(a,i)&&!CS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return D7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function g6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return g6e(n)&&yo(new Date(n))}const zX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},v6e=n=>zX;function Zu(n){return n&&zX[n]}const m6e=v6e,y6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},b6e=y6e,_6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=_6e;var jO={exports:{}},zO={exports:{}},BX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var Fn=BX.exports,BO={exports:{}},HO={exports:{}},HX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(HX);var UX=HX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var S6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(S6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var C6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var w6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(w6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var x6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var T6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var WX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(WX),a=t(hA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var E6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(hA),i=t(E6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var O6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=I6e;nh.setDefaultOptions=P6e;var GX={};function I6e(){return GX}function P6e(n){GX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var pA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var YX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(YX),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var D6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(pA),i=t(D6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var A6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var M6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(T6e),a=t(O6e),i=t(WX),o=t(A6e),s=t(YX),l=t(KX),u=t(M6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var R6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var L6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var ZX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=F6e;i0.isProtectedWeekYearToken=$6e;i0.throwProtectedError=V6e;var k6e=["D","DD"],N6e=["YY","YYYY"];function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n){return N6e.indexOf(n)!==-1}function V6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var j6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var z6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(z6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var B6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var H6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var U6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(U6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var W6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var Y6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(G6e),a=t(Y6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var K6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a=t(B6e),i=t(H6e),o=t(W6e),s=t(K6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var Z6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Z6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var X6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(C6e),a=t(x6e),i=t(il),o=t(R6e),s=t(L6e),l=t(ZX),u=i0,c=t(th),d=t(za),f=nh,h=t(X6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var q6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var Q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var J6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var XX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(J6e),r=a(XX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var e7e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var qX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(ZX),a=o(o0),i=o(qX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Xw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(q6e),r=i(e7e),a=i(Xw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var QX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var t7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(t7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var JX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Xw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var eq=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(JX),r=i(QX),a=i(eq);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var n7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var r7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(JX),r=s(Xw),a=s(qX),i=s(o0),o=s(XX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var a7e=MI.exports,tq={format:QX,formatInTimeZone:n7e,getTimezoneOffset:r7e,toDate:Xw,utcToZonedTime:eq,zonedTimeToUtc:a7e};const i7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],bN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},o7e=/([\-\+]{1})(\d{2})\:(\d{2})/,nq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(o7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in bN){const r=bN[n];if(s7e(r))return r}const t=i7e.find(r=>r[0]===n);return t&&t[1][0]}},_N={};function s7e(n){if(_N[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),_N[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>tq.utcToZonedTime(n,nq(e),t),zp=(n,e,t)=>tq.zonedTimeToUtc(n,nq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=cZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function i2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function o2(n){return["string","number"].includes(typeof n)&&n!==""}class l7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(o2(r)&&(o=zp(o,r)),a.push(o2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ak(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ak(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");o2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;CS(s,i)||a.push(s),CS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function rq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const SN="Enter",u7e="Tab";let c7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===SN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===SN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===u7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=i2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=rq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=i2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=i2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function CN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function wN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var d7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new c7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Gc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(CN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(wN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(CN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(wN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=d7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(gZ,{"aria-hidden":!0}),U=x.createElement(aTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}kS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};kS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function aq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function f7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=rZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=KCe(n),s=WSe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=f7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},p7e=h7e,xN={month:Rd,year:USe},g7e={prevMonth:uxe,nextMonth:Ku,prevYear:cxe,nextYear:_S};class v7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Rd(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Rd(c,r.pickerDate))>0,f=Math.abs(Rd(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Rd(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Rd(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=_S(o,-1);break;case"nextYear":s=_S(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return xN[e]&&xN[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");o2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=g7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=fZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;D7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Rd(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||m6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=aq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const TN=Ge.NAVIGATION;class gA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:TN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(N7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${TN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(yZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}gA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};gA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const m7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=y7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const _7e=Ge.PREFIX;class vA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new b7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=yN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&yN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${_7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}vA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};vA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,weeksRowNum:0};const wb="time",y5="timeRange",S7e=" ~ ",C7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,y5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:y5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:S7e,DEFAULT_MULTIPLE_SEPARATOR:C7e,SIZE:Yc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:kg,DEFAULT_POSITION:{[wb]:"bottomLeft",[y5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},w7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var x7e=uK,T7e=NK,E7e=Qy,O7e=9007199254740991,b5=4294967295,I7e=Math.min;function P7e(n,e){if(n=E7e(n),n<1||n>O7e)return[];var t=b5,r=I7e(n,b5);e=T7e(e),n-=b5;for(var a=x7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var zAe=jAe,BAe=zAe,HAe=lq,UAe=BAe(HAe),WAe=UAe;const qs=Ie(WAe);var GAe=S7,YAe=ww,EN=Qy;function KAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&YAe(n,e,t)?(e=0,t=r):(e=e==null?0:EN(e),t=t===void 0?r:EN(t)),GAe(n,e,t)):[]}var ZAe=KAe;const s2=Ie(ZAe);let XAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;s2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const qAe=(n,e,t)=>{const r=new VZ({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},QAe=qAe,ON=1e3/60,IN=/^\s*$/,l2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===l2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");K1(o,l=>{l.className=l.className&&l.className.replace(s," "),IN.test(l.className)&&(l.className="")}),r.className&&!IN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=QAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==l2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=NS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=NS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new XAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},ON),this.debouncedSelect=n7((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},ON*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===l2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(w7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:l2};class JAe extends ze{}var e9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function S5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/PN),10)*PN-8*cq)}}const n9e=t9e;class yA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new n9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>_5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>_5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>_5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(uq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}yA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};yA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=yA;class r9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=hZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const DN=`${q}-datepicker`;class bA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:b6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new r9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(fZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=hZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(uq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${DN}-yearmonth-header`,u=`${DN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(N7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}bA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};bA.defaultProps={disabledDate:V1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const dq=bA,yi=Ge.PREFIX;class _A extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=rq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new v7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(gA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(vA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&D7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(dq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(vZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}_A.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};_A.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:a9e}=Nf;class SA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(a9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}SA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};SA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const i9e=SA;function o9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var s9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(o9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(mN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];mN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(dq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new l7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(_A,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(i9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(kS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Wg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(kS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=s9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Z1.contextType=Fr;Z1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(gf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Z1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,disabledTime:V1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const l9e=jX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Z1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Z1),fq={PREFIX:`${q}-descriptions`},AN={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},u9e=x.createContext(null),CA=u9e;var c9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);am7(f)?x.createElement(qw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(CA.Provider,{value:{align:t}},d))))}}s0.Item=qw;s0.contextType=CA;s0.propTypes={align:v.oneOf(AN.ALIGN_SET),row:v.bool,size:v.oneOf(AN.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const f9e=s0,h9e={PREFIX:`${q}-empty`};var p9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=p9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,nd,{[`${nd}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${nd}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${nd}-content`},o?x.createElement(Nf.Title,Object.assign({},m,{className:`${nd}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${nd}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${nd}-footer`,"x-semi-prop":"children"},l):null))}}hq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},LN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function g9e(n){return n!==null&&typeof n=="object"}function $f(n){return g9e(n)&&typeof n.then=="function"}class v9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);$f(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);$f(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class wA extends ze{constructor(e){super(Object.assign(Object.assign({},wA.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var m9e=YZ,y9e=Cw,b9e=g7,_9e=y9e(function(n,e){return b9e(n)?m9e(n,e):[]}),S9e=_9e;const C9e=Ie(S9e);class Jm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=C9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=Jm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=Jm;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=C5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(Nf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=C5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new wA(this.adapter),this.dialogId=`dialog-${w9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=C5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}Qw.contextType=Fr;Qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};Qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var x9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=x9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},pq=T9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;E9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(pq,Object.assign({},a,{afterClose:o}))},I9e=x.forwardRef(O9e);let kN=0;function P9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function D9e(){const[n,e]=P9e();function t(r){return function(i){kN+=1;const o=x.createRef();let s;const l=x.createElement(I9e,{key:`semi-modal-${kN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(gq),success:t(vq),error:t(yq),warning:t(mq),confirm:t(bq)},x.createElement(x.Fragment,null,n)]}var A9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=A9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(UK,{style:m,getPopupContainer:c}," ",x.createElement(Qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new v9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=CSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(LN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(LN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=D9e;ol.info=function(n){return l0(gq(n))};ol.success=function(n){return l0(vq(n))};ol.error=function(n){return l0(yq(n))};ol.warning=function(n){return l0(mq(n))};ol.confirm=function(n){return l0(bq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Jw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},NN={SPACING:4,NESTED_SPACING:2};class M9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&X2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class R9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&tSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=J2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=eSe(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":q2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":Q2e(this.menuItemNodes,r),Ra(e);break;default:K2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const L9e=x.createContext({level:0}),hg=L9e;var k9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}xA.propTypes={children:v.node,className:v.string,style:v.object};xA.contextType=hg;const F9e=xA,rd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${rd}-item`]:!0,[`${rd}-item-disabled`]:t,[`${rd}-item-hover`]:d,[`${rd}-item-withTick`]:h,[`${rd}-item-${o}`]:o,[`${rd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${rd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Jw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const $9e=d0,V9e=c0.PREFIX,_q=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${V9e}-divider`,t),style:e})};_q.propTypes={style:v.object,className:v.string};const j9e=_q,FN=c0.PREFIX;class TA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${FN}-title`]:!0,[`${FN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}TA.propTypes={children:v.node,className:v.string,style:v.object};TA.contextType=hg;const z9e=TA;var w5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new M9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=w5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=w5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=w5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:NN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=NN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=F9e;Di.Item=$9e;Di.Divider=j9e;Di.Title=z9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(B9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(H9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Jw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,Sq={PREFIX:`${q}`};var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);azK(VN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o<$N.length;o++){const s=$N[o];if(this.state.screens[s]&&a[s]!==void 0){t[i]=a[s];break}}else t[i]=a||0}),t}render(){const e=this.props,{prefixCls:t,type:r,justify:a,align:i,className:o,style:s,children:l}=e,u=U9e(e,["prefixCls","type","justify","align","className","style","children"]),c=this.getGutter(),d=`${t}-row`,f=$({[d]:r!=="flex",[`${d}-${r}`]:r,[`${d}-${r}-${a}`]:r&&a,[`${d}-${r}-${i}`]:r&&i},o),h=Object.assign(Object.assign(Object.assign({},c[0]>0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Cq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}ex.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};ex.defaultProps={prefixCls:Sq.PREFIX};ex.RowContext={gutters:v.any};const FI=ex;var W9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}tx.contextType=Cq;tx.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};tx.defaultProps={prefixCls:Sq.PREFIX};const ii=tx,nx={PREFIX:`${q}-layout`},G9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},Y9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),wq=Y9e;var K9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${nx.PREFIX}-sider-${n}`)})(),X9e=G9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=Z9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(jN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>zK(jN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=K9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(X9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:nx.PREFIX};f0.contextType=wq;f0.elementType="Layout.Sider";const q9e=f0;var xq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=xq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:nx.PREFIX};const J9e=EA("Header")(h0),e8e=EA("Footer")(h0),t8e=EA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=xq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(wq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:nx.PREFIX,tagName:"section"};jl.Header=J9e;jl.Footer=e8e;jl.Content=t8e;jl.Sider=q9e;const tu={PREFIX:`${q}-form`},Om={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var zN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}OA.propTypes={className:v.string,children:v.node,size:v.oneOf(n8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};OA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const BN={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},HN=n=>{Object.keys(BN).forEach(e=>{n.style.setProperty(e,BN[e],"important")})},UN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function r8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),HN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),HN(bi),bi.value=e;let l=UN(bi,n);bi.value="x";const u=UN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const a8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],i8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,a8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},o8e=i8e;class IA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},IA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=o8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=r8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var s8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new IA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Gc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=s8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}PA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};PA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const l8e=x.forwardRef((n,e)=>x.createElement(PA,Object.assign({},n,{forwardRef:e}))),u8e=l8e;var c8e=DZ;function d8e(n){return c8e(n)&&n!=+n}var f8e=d8e;const h8e=Ie(f8e),p8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},g8e=p8e,v8e=Object.assign({},Rw),ef=Object.assign(Object.assign({},H4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),m8e=Object.assign({},Yc);function y8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function WN(n,e){return y8e(n,-e)}class b8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||ef.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||ef.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===ef.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(WN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(WN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const _8e=b8e;var S8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(TTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(kf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new _8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!g8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else h8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=S8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}FS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};FS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:v8e.PREFIX,pressInterval:ef.DEFAULT_PRESS_TIMEOUT,pressTimeout:ef.DEFAULT_PRESS_TIMEOUT,shiftStep:ef.DEFAULT_SHIFT_STEP,size:m8e.DEFAULT_SIZE,step:ef.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const Tq=jX(x.forwardRef(function(e,t){return x.createElement(FS,Object.assign({},e,{forwardedRef:t}))}),FS),GN="horizontal",YN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[YN,GN],MODE_VERTICAL:YN,MODE_HORIZONTAL:GN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},KN={open:"chevron_up",closed:"chevron_down"};let C8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},KN):this.toggleIcon=Object.assign({},KN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new C8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const ZN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},XN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?ZN(i,t):XN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?ZN(this._adapter.getOpenKeys(),r):XN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class x8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const T8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),Jg=T8e,Sa=`${Wo.PREFIX}-item`;class ev extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new x8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=NS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}ev.contextType=Jg;ev.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};ev.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(kf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(kf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=NS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement(VX,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(ev,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(Jg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=Jg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function E8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(M5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(E8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=Jg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=Jg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var O8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function QN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:I8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return I8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:qN(this,"selectedKeys"),removeSelectedKeys:QN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:qN(this,"openKeys"),removeOpenKeys:QN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(ev,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=O8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(Jg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=ev;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const x5=rh,P8e={PREFIX:q+"-overflow-list"},JN={COLLAPSE:"collapse",SCROLL:"scroll"},eF={START:"start",END:"end"},D8e={NONE:0,GROW:1,SHRINK:2},mf={BOUNDARY_SET:Object.values(eF),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(JN),MODE_MAP:JN,BOUNDARY_MAP:eF,OVERFLOW_DIR:D8e},tF={MINIMUM_HTML_ELEMENT_WIDTH:4};class DA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}DA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};DA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const A8e=mf.BOUNDARY_MAP;class M8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===A8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const R8e=M8e,Fv=P8e.PREFIX,T5=mf.BOUNDARY_MAP,nF=mf.OVERFLOW_DIR,$v=mf.MODE_MAP;class AA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===$v.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(vf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${Fv}-overflow`},g))}const h=l===$v.SCROLL?[f[0],x.createElement("div",{className:$(a,`${Fv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${Fv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===T5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(vf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${Fv}-item`},_))}),u===T5.END?f:null];return x.createElement("div",{className:$(`${Fv}`,r),style:Object.assign(Object.assign({},o),l===$v.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:nF.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new R8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=nF.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===$v.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/tF.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/tF.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===T5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===$v.SCROLL?x.createElement(DA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(vf,{onResize:this.resize},e)}}AA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};AA.propTypes={className:v.string,collapseFrom:v.oneOf(mf.BOUNDARY_SET),direction:v.oneOf(mf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(mf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const L8e=AA,k8e={PREFIX:`${q}-page`},MA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class N8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=MA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const F8e=N8e;var rF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=rF(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=rF(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===F7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const RA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},E5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:kg},Eq={LIST_HEIGHT:270},Vv=iX.PREFIX,Oq=Yg.TAG_SIZE,V8e=Yg.AVATAR_SHAPE;class X1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Vv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Vv}-group`]:!0,[`${Vv}-group-max`]:r,[`${Vv}-group-small`]:a==="small",[`${Vv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}X1.defaultProps={style:{},className:"",size:Oq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};X1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Oq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf(V8e)};var j8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},z8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=aF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=j8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,aF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},B8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Iq=B8e;var iF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};rx.isSelectOption=!0;rx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};rx.defaultProps={prefixCls:RA.PREFIX_OPTION};const u2=rx,H8e=RA.PREFIX_GROUP;class LA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[H8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}LA.isSelectOptionGroup=!0;LA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Pq=LA;var U8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:W8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new FK,this.foundation=new $8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=z8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>HK(i),getActiveElement:()=>BK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Lf(),this.selectID=this.props.id||Lf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(u2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(u2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(u2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Pq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(zw,{ref:this.virtualizeListRef,height:a||Eq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Iq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Aw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(BZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(L8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}tv.contextType=Fr;tv.Option=u2;tv.OptGroup=Pq;tv.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(E5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(E5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(E5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};tv.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Eq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(kf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=tv;var oF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new F8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(N7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(G8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(Tq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(zw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=oF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=oF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}ax.contextType=Fr;ax.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};ax.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:MA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Dq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},Y8e={SPACING:4,DEFAULT_Z_INDEX:1030};class K8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);$f(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);$f(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var Z8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new K8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=Z8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Dq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}nv.contextType=Fr;nv.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};nv.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Iw,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Dq.PREFIX,zIndex:Y8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const X8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function q8e(n,e,t){try{const r=Q8e(n,e,t);if(r.length!==0)return r}catch{return}}function Q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?J8e({startColor:jv(o.color),endColor:jv(i.color),size:i.percent-o.percent-1},e-o.percent-1):jv(o.color)}}function J8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},sF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var lF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=lF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=q8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=lF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}kA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};kA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const uF=kA,Aq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},eMe={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class tMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class nMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class rMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const aMe=x.createContext(null),NA=aMe;class ix extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new rMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Aq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(w5e,null):null))}}ix.contextType=NA;ix.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ix.defaultProps={onChange:B,isButtonRadio:!1};const iMe=ix;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new nMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=oMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Aq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(iMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=NA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const q1=v0;var sMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new tMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=sMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||eMe.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(q1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(q1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(NA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}FA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};FA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Mq=FA;class lMe extends q1{}lMe.Group=Mq;const c2={PREFIX:`${q}-rating`},Rq={SIZE_SET:["default","small"]};class $A extends ze{constructor(e){super(Object.assign(Object.assign({},$A.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class VA extends ze{constructor(e){super(Object.assign(Object.assign({},VA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Lq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new VA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(k5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${c2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${c2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${c2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Lq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var uMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Lq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new $A(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=uMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ox.contextType=Fr;ox.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ox.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:c2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},cMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),cF=cMe;class jA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},jA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=cF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=cF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var dMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new jA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=fMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=dMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}zA.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};zA.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class hMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},pMe={SIZE_MAP:["default","small","large"]};var gMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new hMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=gMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}BA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(pMe.SIZE_MAP),uncheckedText:v.node,id:v.string};BA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const kq=BA;var vMe=C7,mMe=1/0;function yMe(n){var e=n==null?0:n.length;return e?vMe(n,mMe):[]}var bMe=yMe;const _Me=Ie(bMe);var SMe=Ew;function CMe(n,e){var t;return SMe(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var wMe=CMe,xMe=RK,TMe=Qg,EMe=wMe,OMe=Tr,IMe=ww;function PMe(n,e,t){var r=OMe(n)?xMe:EMe;return t&&IMe(n,e,t)&&(e=void 0),r(n,TMe(e))}var DMe=PMe;const d2=Ie(DMe);var AMe=Ew;function MMe(n,e){var t=[];return AMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var RMe=MMe,LMe=vK,kMe=RMe,NMe=Qg,FMe=Tr;function $Me(n,e){var t=FMe(n)?LMe:kMe;return t(n,NMe(e))}var VMe=$Me;const pg=Ie(VMe);var jMe=Tw;function zMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?jMe(n,e,void 0,t):!!r}var BMe=zMe;const HMe=Ie(BMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,HA=0,UA=16,WA=16,GA=12,YA=12,KA=8,ZA=8,sx=20,dF=sx+ah+HA+UA+WA,UMe=UA+WA+ah,fF=sx+ah+HA+GA+YA,WMe=GA+YA+ah,hF=sx+ah+HA+ZA+KA,GMe=KA+ZA+ah,lr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:UA,DEFAULT_CELL_PADDING_BOTTOM:WA,DEFAULT_CELL_MIDDLE_PADDING_TOP:GA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:YA,DEFAULT_CELL_SMALL_PADDING_TOP:KA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:ZA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:sx,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:WMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:hF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:hF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:GMe};class YMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function f2(n){return["left",!0].includes(H(n,"fixed"))}function h2(n){return["right"].includes(H(n,"fixed"))}function ZMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Fq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function qMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function XA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function O5(n,e){return e!=null&&Fs(n,e)}function QMe(n,e){return e!==null&&n.has(e)}function JMe(n,e){return e!==null&&n.has(e)}function gF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function eRe(n,e){return e===void 0&&(e="children"),H(n,e)}function $q(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function tRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(aRe(r),t.push(r));return t}function $S(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&$S(r,e,t+1),n}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=p2(a[t],e,t)),r)return!1}),r}function nRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function jq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function rRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function zq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=zq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function aRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new Nq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function iRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function Bq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function qA(n){return n===!0||H(n,"showTitle",!0)}class oRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const sRe=oRe;function lRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&vF.call(s,l,1),vF.call(n,l,1);return n}var mRe=vRe,yRe=mRe;function bRe(n,e){return n&&n.length&&e&&e.length?yRe(n,e):n}var _Re=bRe,SRe=Cw,CRe=_Re,wRe=SRe(CRe),xRe=wRe;const TRe=Ie(xRe);function ERe(n){return new Set(n)}function ORe(n,e){if(n===e&&(e=ERe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function mF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ORe(t,r);return Array.from(a)}return n}function IRe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class VS extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{VS.initFilteredValue(t),VS.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Jd(t,Ke),this.memoizedFilterColumns=Jd(XA),this.memoizedFlattenFnsColumns=Jd(Bp),this.memoizedPagination=Jd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&j1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&j1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&TRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(IRe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=lr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=s2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:lr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{d2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=mF(o,[...s,...r]),u=[...o]}else a=mF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=jq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const yF=VS,Hq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Hq);tt.elementType="Column";function jS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=jS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const PRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=PRe,DRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},ARe=DRe;class MRe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class zS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new MRe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Ff,Object.assign({"aria-label":s},l)))}}zS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};zS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class QA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(ax,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}QA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};QA.defaultProps={prefixCls:pa.PREFIX};function Uq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Ff,{checked:m},y):x.createElement(q1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Uq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function RRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(ZTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Uq(u,l),o}class JA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(cTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(sTe,{size:o}))))}}JA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};JA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function e9(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(SZ,{size:"small"}):x.createElement(Y5e,{size:"small"}):u=e&&!l?x.createElement(kf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}e9.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};e9.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class lx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}lx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};lx.defaultProps={columns:[],prefixCls:pa.PREFIX};var LRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(K1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=Vq(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=K1(t,(y,b)=>{const{column:_}=y,S=LRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=Bq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=h2(_),E=f2(_),O=jI(d,_),I=VI(d,_)):(T=f2(_),E=h2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(f2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(h2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}ux.contextType=ih;ux.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};ux.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function kRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return qA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class t9 extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=kRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(ux,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}t9.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};t9.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Wq=x.forwardRef((n,e)=>x.createElement(t9,Object.assign({},n,{forwardedRef:e})));class n9 extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(lx,{columns:o,prefixCls:t}),b=x.createElement(Wq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}n9.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};n9.defaultProps={handleBodyScroll:B};const NRe=x.forwardRef((n,e)=>x.createElement(n9,Object.assign({},n,{forwardedRef:e})));var FRe=sq,$Re=FRe("length"),VRe=$Re,jRe="\\ud800-\\udfff",zRe="\\u0300-\\u036f",BRe="\\ufe20-\\ufe2f",HRe="\\u20d0-\\u20ff",URe=zRe+BRe+HRe,WRe="\\ufe0e\\ufe0f",GRe="\\u200d",YRe=RegExp("["+GRe+jRe+URe+WRe+"]");function KRe(n){return YRe.test(n)}var r9=KRe,Gq="\\ud800-\\udfff",ZRe="\\u0300-\\u036f",XRe="\\ufe20-\\ufe2f",qRe="\\u20d0-\\u20ff",QRe=ZRe+XRe+qRe,JRe="\\ufe0e\\ufe0f",eLe="["+Gq+"]",zI="["+QRe+"]",BI="\\ud83c[\\udffb-\\udfff]",tLe="(?:"+zI+"|"+BI+")",Yq="[^"+Gq+"]",Kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Zq="[\\ud800-\\udbff][\\udc00-\\udfff]",nLe="\\u200d",Xq=tLe+"?",qq="["+JRe+"]?",rLe="(?:"+nLe+"(?:"+[Yq,Kq,Zq].join("|")+")"+qq+Xq+")*",aLe=qq+Xq+rLe,iLe="(?:"+[Yq+zI+"?",zI,Kq,Zq,eLe].join("|")+")",bF=RegExp(BI+"(?="+BI+")|"+iLe+aLe,"g");function oLe(n){for(var e=bF.lastIndex=0;bF.test(n);)++e;return e}var sLe=oLe,lLe=VRe,uLe=r9,cLe=sLe;function dLe(n){return uLe(n)?cLe(n):lLe(n)}var fLe=dLe,hLe=y7,pLe=Bg,gLe=ls,vLe=c7,mLe=fLe,yLe="[object Map]",bLe="[object Set]";function _Le(n){if(n==null)return 0;if(gLe(n))return vLe(n)?mLe(n):n.length;var e=pLe(n);return e==yLe||e==bLe?n.size:hLe(n).length}var SLe=_Le;const Ob=Ie(SLe);var CLe=X7,wLe=Qg,xLe=Qy,TLe=Math.max,ELe=Math.min;function OLe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=xLe(t),a=t<0?TLe(r+a,0):ELe(a,r-1)),CLe(n,wLe(e),a,!0)}var ILe=OLe;const PLe=Ie(ILe);class DLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=nRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&j1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=PLe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=eRe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:$q(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var ALe=xw,MLe=4;function RLe(n){return ALe(n,MLe)}var LLe=RLe;const kLe=Ie(LLe);let I5,P5;const _F={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function NLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&I5)return I5;if(!e&&P5)return P5;const t=document.createElement("div");Object.keys(_F).forEach(a=>{t.style[a]=_F[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,I5=r):(r=t.offsetHeight-t.clientHeight,P5=r),document.body.removeChild(t),r}function Qq(n){return typeof n=="number"?n-lr.DEFAULT_CELL_PADDING_LEFT-lr.DEFAULT_CELL_PADDING_RIGHT-lr.DEFAULT_CELL_BORDER_WIDTH_LEFT-lr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-NLe("vertical"):void 0}function SF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const e1=new Nq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:kLe;return K1(e,o=>{o=Object.assign({},o);const s=pF(o,t),l=s!=null&&qs(n,u=>pF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function FLe(){return!0}var $Le=FLe;const VLe=Ie($Le);function jLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new BLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=qMe(r),o=Fq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=Bq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),CF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?Qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(qA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;CF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}Q1.contextType=ih;Q1.defaultProps={indent:0,indentSize:lr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};Q1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var wF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=wF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!jLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(ZMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Fq(O)&&!T)w.push(x.createElement(Q1,{key:I,colIndex:I,isSection:d}));else if(!XMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(Q1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:f2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:h2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=wF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:VLe,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?Qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}cx.contextType=ih;cx.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};cx.defaultProps={record:{},prefixCls:pa.PREFIX};var ULe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=ULe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=XA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}dx.contextType=ih;dx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};dx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const xF=dx;var TF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=tRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=TF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=TF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||e1.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(MIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(xF.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(xF,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>gF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(cx,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:$q(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=O5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=gF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(lx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:j1(w)||ke(T)||iRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Wq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},j1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new DLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=O5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:QMe(c,g),disabled:JMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=O5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}a9.contextType=ih;a9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const WLe=x.forwardRef(function(e,t){return x.createElement(a9,Object.assign({},e,{forwardedRef:t}))});var GLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=jq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",lr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ad2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;KMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?_Me(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>d2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&d2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&e1.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?jS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(zS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(zS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(e9,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=qA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(JA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(RRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(QA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(NRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(WLe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return $S(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new yF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=yF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=m7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:SF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new sRe({hoveredRowKey:null}),this.debouncedWindowResize=n7(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&e1.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=jS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=zq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:SF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=GLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(ARe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};fx.contextType=ih;fx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Hq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};fx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:lr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const i9=fx;var YLe=S7;function KLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:YLe(n,e,t)}var ZLe=KLe,XLe=ss,qLe=gi,QLe="[object RegExp]";function JLe(n){return qLe(n)&&XLe(n)==QLe}var eke=JLe,tke=eke,nke=Qf,EF=Hy,OF=EF&&EF.isRegExp,rke=OF?nke(OF):tke,ake=rke;function ike(n){return n.split("")}var oke=ike,Jq="\\ud800-\\udfff",ske="\\u0300-\\u036f",lke="\\ufe20-\\ufe2f",uke="\\u20d0-\\u20ff",cke=ske+lke+uke,dke="\\ufe0e\\ufe0f",fke="["+Jq+"]",UI="["+cke+"]",WI="\\ud83c[\\udffb-\\udfff]",hke="(?:"+UI+"|"+WI+")",eQ="[^"+Jq+"]",tQ="(?:\\ud83c[\\udde6-\\uddff]){2}",nQ="[\\ud800-\\udbff][\\udc00-\\udfff]",pke="\\u200d",rQ=hke+"?",aQ="["+dke+"]?",gke="(?:"+pke+"(?:"+[eQ,tQ,nQ].join("|")+")"+aQ+rQ+")*",vke=aQ+rQ+gke,mke="(?:"+[eQ+UI+"?",UI,tQ,nQ,fke].join("|")+")",yke=RegExp(WI+"(?="+WI+")|"+mke+vke,"g");function bke(n){return n.match(yke)||[]}var _ke=bke,Ske=oke,Cke=r9,wke=_ke;function xke(n){return Cke(n)?wke(n):Ske(n)}var Tke=xke,Eke=GY,Oke=ZLe,Ike=r9,Pke=ww,Dke=ake,Ake=Tke,Mke=pw,Rke=4294967295;function Lke(n,e,t){return t&&typeof t!="number"&&Pke(n,e,t)&&(e=t=void 0),t=t===void 0?Rke:t>>>0,t?(n=Mke(n),n&&(typeof e=="string"||e!=null&&!Dke(e))&&(e=Eke(e),!e&&Ike(n))?Oke(Ake(n),0,t):n.split(e,t)):[]}var kke=Lke;const t1=Ie(kke);function Nke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Fke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var o9={exports:{}},m0={},hx={exports:{}},iQ={};function oQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function iNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function oNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&dQ(n.body,"react-draggable-transparent-selection")}function sNe(n){if(n)try{if(n.body&&fQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function dQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function fQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=cNe;ll.canDragY=dNe;ll.createCoreData=hNe;ll.createDraggableData=pNe;ll.getBoundPosition=lNe;ll.getControlPosition=fNe;ll.snapToGrid=uNe;var Ci=sl,Tp=Zn;function lNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:gNe(r);const a=l9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function uNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function cNe(n){return n.props.axis==="both"||n.props.axis==="x"}function dNe(n){return n.props.axis==="both"||n.props.axis==="y"}function fNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=l9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function hNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=l9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function pNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function gNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function l9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var px={},gx={};Object.defineProperty(gx,"__esModule",{value:!0});gx.default=vNe;function vNe(){}Object.defineProperty(px,"__esModule",{value:!0});px.default=void 0;var A5=yNe(D),Wa=u9($y),mNe=u9(Ti),ra=Zn,wu=ll,M5=sl,zv=u9(gx);function u9(n){return n&&n.__esModule?n:{default:n}}function hQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(hQ=function(r){return r?t:e})(n)}function yNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=hQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=bNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function bNe(n){var e=_Ne(n,"string");return typeof e=="symbol"?e:String(e)}function _Ne(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,vx=class extends A5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,zv.default)("DraggableCore: handleDragStart: %j",l),(0,zv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,zv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,zv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,zv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:mNe.default.findDOMNode(this)}render(){return A5.cloneElement(A5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};px.default=vx;Ta(vx,"displayName","DraggableCore");Ta(vx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:M5.dontSetMe,style:M5.dontSetMe,transform:M5.dontSetMe});Ta(vx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c(Vke),i=Zn,o=ll,s=sl,l=c(px),u=c(gx);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(iQ);const{default:pQ,DraggableCore:SNe}=iQ;hx.exports=pQ;hx.exports.default=pQ;hx.exports.DraggableCore=SNe;var CNe=hx.exports,c9={};c9.__esModule=!0;c9.cloneElement=INe;var wNe=xNe(D);function xNe(n){return n&&n.__esModule?n:{default:n}}function DF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function AF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function MF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function R5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return Bv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=R5({ref:i},s?{}:{handleAxis:a});return Bv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=NNe(i,LNe);return(0,MNe.cloneElement)(o,R5(R5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=Bv.createRef();return Bv.createElement(ANe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(Bv.Component);m0.default=d9;d9.propTypes=RNe.resizableProps;d9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var mx={};mx.__esModule=!0;mx.default=void 0;var L5=WNe(D),zNe=vQ($y),BNe=vQ(m0),HNe=y0,UNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vQ(n){return n&&n.__esModule?n:{default:n}}function mQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(mQ=function(a){return a?t:e})(n)}function WNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=mQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function XNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var yQ=function(n){XNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(qNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const eFe=JNe;var tFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=tFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:jS(n.children),d=$S(ti(c),o),f=$S(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:lr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",lr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=rRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:eFe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=p2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=p2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=p2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Fke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(i9,Object.assign({},i,{columns:w,components:g,ref:e}))},rFe=x.forwardRef(nFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(rFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(i9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},i9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const yx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=cZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;return Lt(n,e,{locale:t})},aFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},iFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},oFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},k5=n=>Array.isArray(n)?[...n]:[],sFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=YCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=k5(i);if(o=k5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=t1(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!sFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=k5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?t1(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=t1(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const uFe=lFe;class cFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const dFe=cFe;var fFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new dFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=fFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(vZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}f9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};f9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const hFe=f9,LF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},pFe={},gFe=[v.string,v.number,v.instanceOf(Date)],kF=v.oneOfType([...gFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var vFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new uFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=vFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Wg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(hFe,Object.assign({},re)))))}}rv.contextType=Fr;rv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:kF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:kF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(LF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},LF),{inputStyle:v.object,preventScroll:v.bool});rv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},pFe);class h9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(rv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}h9.propTypes=rv.propTypes;h9.defaultProps=rv.defaultProps;class p9 extends ze{constructor(e){super(Object.assign(Object.assign({},p9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const N5=`${q}-toast`,ep={PREFIX:N5,WRAPPER:`${N5}-wrapper`,LIST:`${N5}-list`},g2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},mFe={duration:3};class g9 extends ze{constructor(e){super(Object.assign(Object.assign({},g9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let bx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new g9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Iw,null),success:x.createElement(_Z,null),info:x.createElement(bZ,null),error:x.createElement(z1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};bx.contextType=Fr;bx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(g2.themes),type:v.oneOf(g2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(g2.directions)};bx.defaultProps={onClose:B,content:"",close:B,duration:mFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const bQ=bx;var yFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=yFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(bQ,Object.assign({},r,{close:o})):null},_Fe=x.forwardRef(bFe),Hv={motion:!0,zIndex:1010,duration:3};function SFe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function CFe(){const[n,e]=SFe(),t=D.useRef(new Map),r=i=>{const o=bS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(_Fe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const wFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new p9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:bS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=bS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(bQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(g2.directions),stack:v.bool},n.defaultProps={},n};class xFe{static create(e){const t=wFe();return t.useToast=CFe,e&&t.config(e),t}}const Es=xFe.create(),_Q={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function TFe(n){return jK(n,e=>{if(m7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const EFe=_Q.PREFIX;class v9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(vf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${EFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}v9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};v9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const OFe=x.createContext(null),m9=OFe;var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?E7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=n7(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(SZ,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Ff,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(t5e,{className:`${rn}-item-icon`}):x.createElement(QTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=IFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=m9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var PFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement(VX,Object.assign({},r,{isOpen:a}),t)}const NF=n=>n.key;class SQ extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=NF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=NF(l[0]);return x.createElement(DFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}SQ.contextType=m9;const CQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:kg};class AFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return oIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=PS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:PS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return XZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?Wk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?Wk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var MFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(X1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Gc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=MFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Wg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=PS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(dA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(P5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(SQ,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(v9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(zw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Iq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(m9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(nA,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:RFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new AFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=nIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Hk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=iIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Hk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=Uk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=Uk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=Nd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Gk(t.selectedKeys,u));else{let m;if(o("value")?m=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=Nd(Su(e.value,l,i)||[],c,g):m=Gk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=JZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?TFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}_x.contextType=Fr;_x.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};_x.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(kf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const LFe=_x,FF=`${q}-upload`,$F="picture",VF="list",kFe=.95,wQ={PREFIX:FF,LIST:`${FF}-list`},jF="auto",zF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:$F,FILE_LIST_DEFAULT:VF,LIST_TYPE:[$F,VF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:jF,TRIGGER_CUSTOM:zF,UPLOAD_TRIGGER:[jF,zF],VALIDATE_STATUS:kg,PROMPT_POSITION:["left","right","bottom"]},NFe={PROGRESS_COEFFICIENT:kFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,F5=1048576;function qI(n){if(n=Ep&&n=F5)return`${(n/F5).toFixed(1)}MB`}function FFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function $Fe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function VFe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield $Fe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var jFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:BF,FILE_STATUS_SUCCESS:zFe,FILE_STATUS_UPLOAD_FAIL:BFe,FILE_STATUS_VALID_FAIL:$5,FILE_STATUS_WAIT_UPLOAD:HF,DRAG_AREA_DEFAULT:V5,DRAG_AREA_LEGAL:HFe,TRIGGER_AUTO:Ab}=_t;class UFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=Q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=$5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=Q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=$5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?BF:HF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=Q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=$5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===HF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&$f(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*NFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=BF,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=zFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=BFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(HFe)}handleDirectoryDrop(e){return jFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield VFe(r);this.handleChange(a),this._adapter.updateDragAreaStatus(V5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus(V5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus(V5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return FFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const WFe=UFe;class GFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const YFe=GFe,un=wQ.PREFIX,KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},XFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class y9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new YFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(z1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(KFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(E5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(ZFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Gc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(uF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(XFe,null),className:_})))),S?x.createElement(uF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}y9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};y9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const xQ=y9;var qFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(xQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(X5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new WFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=qFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}Sx.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};Sx.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};Sx.FileCard=xQ;const QFe=Sx;class b9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(YK.Provider,{value:t},e)}}b9.propTypes={locale:v.object,children:v.node};b9.defaultProps={locale:OO};function tf(){return tf=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function v2(n,e,t){return e$e()?v2=Reflect.construct:v2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&J1(u,o.prototype),u},v2.apply(null,arguments)}function t$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!t$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return v2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),J1(a,r)},JI(n)}var n$e=/%[sdj%]/g,r$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function a$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||a$e(e)&&typeof n=="string"&&!n)}function i$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function UF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Im={integer:function(e){return Im.number(e)&&parseInt(e,10)===e},float:function(e){return Im.number(e)&&!Im.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Im.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(j5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(j5.url)},hex:function(e){return typeof e=="string"&&!!e.match(j5.hex)}};function u$e(n,e,t,r,a){if(n.required&&e===void 0){TQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Im[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function c$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function d$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function f$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:TQ,whitespace:l$e,type:u$e,range:c$e,enum:d$e,pattern:f$e};function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function S$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var C$e="enum";function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[C$e](n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function T$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function E$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function z5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function O$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var n1={string:h$e,method:p$e,number:g$e,boolean:v$e,regexp:m$e,integer:y$e,float:b$e,array:_$e,object:S$e,enum:w$e,pattern:x$e,date:T$e,url:z5,hex:z5,email:z5,required:E$e,any:O$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var _9=tP();function _c(n){this.rules=null,this._messages=_9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=YF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function A$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function nf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>nf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function M$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Om.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function R$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function L$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function k$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=I$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=A$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class N$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(a2(this.data.values,e),a2(this.data.errors,e),a2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)$f(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=Y1(i),s=Y1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;m5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;m5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;m5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);nf(i)||(t=!1)}):t=!!r6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;kL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);kL(r,t)}}}const S9=x.createContext({});S9.displayName="FormState";const EQ=x.createContext({});EQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const F$e=x.createContext({shouldUseInitValue:!0}),B5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[B5+"-field-error-message"]:!!e,[B5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Iw,null),error:x.createElement(z1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${B5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(z1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var $$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;$$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Uv}-field`]:!0,[`${Uv}-slot`]:!0},u),g=$({[`${Uv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Uv}-field-main`]:!0,[`${Uv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},j$e=V$e,KF=tu.PREFIX;class OQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[KF+"-section"]:!0},t),o=KF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}OQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function IQ(){return D.useContext(S9)}function z$e(){return D.useContext(b0)}function H5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function B$e(){return D.useContext(F$e)}var H$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=IQ(),r=e.map(a=>Ea(t.errors,a));return nf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class PQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=H$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(OA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(U$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}PQ.contextType=b0;const W$e=PQ,ms=tu.PREFIX,U5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=k$e(r),{options:G,shouldInject:Y}=L$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));IQ();const Q=z$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=R$e(L,Z.stopValidateWithError,!1),pe=M$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=B$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=H5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=H5(),[Ba,vu]=D.useState(),[mh,yh,fs]=H5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),nf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=D$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,CT)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let ed=ml.map(xv=>xv.message);ed.length===1&&(ed=ed[0]),ba(ed,tn),nf(ed)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},qc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):$f(sn)?sn.then(vn=>{Hi.current===nn&&(nf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):nf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?qc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},Qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),U5(()=>{Vn&&gs(Ve)},[]),U5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:Qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let xv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=xv,x.createElement(n,Object.assign({},nn))}let CT=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let xv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},xv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),ed=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},CT?ed:x.createElement(x.Fragment,null,ml,G0))},Jc=[...Object.values(sr),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Jc]):Ha()};return t=D.forwardRef(t),t.displayName=P$e(n),t}const G$e=$r(Ri,{maintainCursor:!0}),Y$e=$r(Tq,{maintainCursor:!0}),K$e=$r(u8e,{maintainCursor:!0}),C9=$r(g0);C9.Option=g0.Option;C9.OptGroup=g0.OptGroup;const Z$e=$r(nA),X$e=$r(Ff,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),q$e=$r(Mq,{valuePath:"target.value"}),Q$e=$r(q1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),J$e=$r(l9e),eVe=$r(kq,{valueKey:"checked"}),tVe=$r(zA),nVe=$r(h9),rVe=$r(LFe),aVe=$r(zDe),iVe=$r(ox),oVe=$r(tEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),sVe=$r(QFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),lVe=$r(dA);var uVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!_k(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!_k(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new N$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:Q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=uVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(W5,b,{[W5+"-vertical"]:m==="vertical",[W5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(EQ.Provider,{value:this.formApi},x.createElement(S9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Om.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Om.LAYOUT),labelPosition:v.oneOf(Om.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Om.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=G$e;gn.TextArea=K$e;gn.InputNumber=Y$e;gn.Select=C9;gn.Checkbox=X$e;gn.CheckboxGroup=Z$e;gn.Radio=Q$e;gn.RadioGroup=q$e;gn.DatePicker=J$e;gn.TimePicker=nVe;gn.Switch=eVe;gn.Slider=tVe;gn.TreeSelect=rVe;gn.Cascader=aVe;gn.Rating=iVe;gn.AutoComplete=oVe;gn.Upload=sVe;gn.TagInput=lVe;gn.Slot=j$e;gn.ErrorMessage=_0;gn.InputGroup=W$e;gn.Label=Ys;gn.Section=OQ;const Ze=gn,cVe="_main_1w0iy_1",dVe="_login_1w0iy_8",fVe="_component66_1w0iy_20",hVe="_logo_1w0iy_28",pVe="_header_1w0iy_33",gVe="_title_1w0iy_41",vVe="_text_1w0iy_50",mVe="_form_1w0iy_59",yVe="_inputs_1w0iy_67",bVe="_button_1w0iy_75",_Ve="_oauth_1w0iy_79",Ca={main:cVe,login:dVe,component66:fVe,logo:hVe,header:pVe,title:gVe,text:vVe,form:mVe,inputs:yVe,button:bVe,oauth:_Ve,undefined:"_undefined_1w0iy_88"},DQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function AQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){AQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const SVe={code:"en-US",dateFnsLocale:M7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},CVe=SVe,MQ={en_US:DQ},ZF=Object.keys(MQ),wVe={en_US:"en_US"},xVe={en_US:CVe},TVe="lang",RQ="en_US",ve=DQ,EVe=MQ[w9()];AQ(ve,EVe);function OVe(n){try{return localStorage.getItem(n)}catch{return null}}function IVe(){try{return navigator.language.toLowerCase()}catch{return RQ}}function w9(){const n=OVe(TVe);if(ZF.includes(n??""))return n;const e=IVe();for(const t of ZF)if(e.includes(t))return t;return RQ}function PVe(){return wVe[w9()]}function DVe(){return xVe[w9()]}var AVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const XF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(AVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},MVe=n=>n?XF(n):XF;var LQ={exports:{}},kQ={},NQ={exports:{}},FQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function RVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var LVe=typeof Object.is=="function"?Object.is:RVe,kVe=mg.useState,NVe=mg.useEffect,FVe=mg.useLayoutEffect,$Ve=mg.useDebugValue;function VVe(n,e){var t=e(),r=kVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return FVe(function(){a.value=t,a.getSnapshot=e,G5(a)&&i({inst:a})},[n,t,e]),NVe(function(){return G5(a)&&i({inst:a}),n(function(){G5(a)&&i({inst:a})})},[n]),$Ve(t),t}function G5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!LVe(n,t)}catch{return!0}}function jVe(n,e){return e()}var zVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jVe:VVe;FQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:zVe;NQ.exports=FQ;var BVe=NQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Cx=D,HVe=BVe;function UVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var WVe=typeof Object.is=="function"?Object.is:UVe,GVe=HVe.useSyncExternalStore,YVe=Cx.useRef,KVe=Cx.useEffect,ZVe=Cx.useMemo,XVe=Cx.useDebugValue;kQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=YVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=ZVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,WVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=GVe(n,i[0],i[1]);return KVe(function(){o.hasValue=!0,o.value=s},[s]),XVe(s),s};LQ.exports=kQ;var qVe=LQ.exports;const QVe=Ie(qVe);var JVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:eje}=QVe;function tje(n,e=n.getState,t){const r=eje(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const qF=n=>{(JVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?MVe(n):n,t=(r,a)=>tje(e,r,a);return Object.assign(t,e),t},$Q=n=>n?qF(n):qF;var nje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function rje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const ey=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return ey(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return ey(r)(t)}}}},aje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=ey(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},ije=(n,e)=>(t,r,a)=>{let i={storage:rje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},oje=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((nje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),aje(n,e)):ije(n,e),VQ=oje;var x9=(n=>(n.Access="access-control",n.Config="app-config",n))(x9||{}),av=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(av||{});let Y5=0;const $i=$Q()(VQ((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&Y5>0||(Y5=1,fje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{Y5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:x9.Access,version:1,migrate(n,e){return n}}));var Fd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Fd||{});const QF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},jQ=$Q()(VQ((n,e)=>({...QF,reset(){n(()=>({...QF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:x9.Config,version:1,migrate(n,e){return n}}));var sje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class lje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:K5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...K5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:K5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[sje.VITE_PROXY_PATH,e].join("")}}const Er=new lje;function K5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":PVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function uje(n){return Er.post("/login",n)}async function cje(n){return Er.post("/logout",n)}async function dje(n){return Er.post("/sso",n)}async function fje(){return Er.post("/userinfo",{})}async function hje(){return Er.post("/loginType",{})}function pje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{hje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{uje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{dje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const gje="_header_k9z2y_1",vje="_navigationHeaderLogo_k9z2y_10",mje="_dIV_k9z2y_14",yje="_semiIconsBell_k9z2y_20",bje="_avatar_k9z2y_24",_je="_sider_k9z2y_29",Sje="_collapsed_k9z2y_34",Cje="_nav_k9z2y_10",wje="_icon_k9z2y_52",xje="_content_k9z2y_57",Tje="_userProfile_k9z2y_69",Eje="_banner_k9z2y_77",Oje="_frame4159_k9z2y_82",Ije="_name_k9z2y_91",Pje="_richardHendricks_k9z2y_97",Dje="_aRichardHendricks_k9z2y_104",Aje="_main_k9z2y_112",Mje="_descriptions_k9z2y_123",Rje="_frame4152_k9z2y_130",Lje="_semiIconsMapPin_k9z2y_136",kje="_value_k9z2y_140",Nje="_tags_k9z2y_147",Fje="_tag_k9z2y_147",$je="_tag1_k9z2y_154",Vje="_tag2_k9z2y_155",Rt={header:gje,navigationHeaderLogo:vje,dIV:mje,semiIconsBell:yje,avatar:bje,sider:_je,collapsed:Sje,nav:Cje,icon:wje,content:xje,userProfile:Tje,banner:Eje,frame4159:Oje,name:Ije,richardHendricks:Pje,aRichardHendricks:Dje,main:Aje,descriptions:Mje,frame4152:Rje,semiIconsMapPin:Lje,value:kje,tags:Nje,tag:Fje,tag1:$je,tag2:Vje};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?$d.worker=!0:typeof navigator>"u"?($d.node=!0,$d.svgSupported=!0):aze(navigator.userAgent,$d);function aze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=$d;var T9=12,zQ="sans-serif",Ac=T9+"px "+zQ,ize=20,oze=100,sze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Aze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?n$(s,o):n$(o,s))}function KQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Mze=/([&<>"'])/g,Rze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Mze,function(e,t){return Rze[t]})}var Lze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,X5=[],kze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?a$(n,e,t):kze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):a$(n,e,t),t}function a$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(KQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(X5,n,r,a)){t.zrX=X5[0],t.zrY=X5[1];return}}t.zrX=t.zrY=0}function M9(n){return n||window.event}function qi(n,e,t){if(e=M9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=Nze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Lze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Nze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Fze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function i$(n){return n.which===2||n.which===3}var $ze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=o$(r)/o$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Vze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ox(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function R9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function L9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function sv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function jze(n){var e=wo();return R9(e,n),e}var zze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=zze;var Rb=Math.min,Lb=Math.max,id=new Le,od=new Le,sd=new Le,ld=new Le,Wv=new Le,Gv=new Le,Bze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),L9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}id.x=sd.x=t.x,id.y=ld.y=t.y,od.x=ld.x=t.x+t.width,od.y=sd.y=t.y+t.height,id.transform(r),ld.transform(r),od.transform(r),sd.transform(r),e.x=Rb(id.x,od.x,sd.x,ld.x),e.y=Rb(id.y,od.y,sd.y,ld.y);var l=Lb(id.x,od.x,sd.x,ld.x),u=Lb(id.y,od.y,sd.y,ld.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=Bze;var ZQ="silent";function Hze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Uze}}function Uze(){nu(this.event)}var Wze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Yv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Gze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Q5=new $e(0,0,0,0),XQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Yv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Wze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Eze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Gze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=qQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Yv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Hze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Yv(t,r);if(s$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(Q5.copy(f.getBoundingRect()),f.transform&&Q5.applyTransform(f.transform),Q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Yze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?ZQ:!0}return!1}function s$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Yze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZQ)){e.target=o;break}}}function qQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Kze=XQ;var QQ=32,Kv=7;function Zze(n){for(var e=0;n>=QQ;)e|=n&1,n>>=1;return n+e}function l$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Xze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function e4(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function qze(n,e){var t=Kv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Kv||T>=Kv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-J5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Kv||O>=Kv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),u$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Pm=2,tp=4,c$=!1;function t4(){c$||(c$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(t4(),c.z=0),isNaN(c.z2)&&(t4(),c.z2=0),isNaN(c.zlevel)&&(t4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Jze=Qze;var JQ;JQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=JQ;var S2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-S2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?S2.bounceIn(n*2)*.5:S2.bounceOut(n*2-1)*.5+.5}};const eJ=S2;var kb=Math.pow,Sc=Math.sqrt,WS=1e-8,tJ=1e-4,f$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-WS&&nWS||n<-WS}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function h$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function GS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+f$*Math.sin(w)))/(3*o),O=(-s+T*(E-f$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function rJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(nJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function aJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=yf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function iJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ry(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function oJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=yf(Ls,io);h=0&&h=1?1:GS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var aBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:eJ[e]||k9(e)},n}();const iBe=aBe;var sJ=function(){function n(e){this.value=e}return n}(),oBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new sJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),sBe=function(){function n(e){this._list=new oBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new sJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=sBe;var p$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function lBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ay(n){return n<0?0:n>1?1:n}function n4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function bf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ay(parseFloat(e)/100):ay(parseFloat(e))}function r4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var lJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=lJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=lJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in p$)return yP(e,p$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=bf(u.pop());case"rgb":if(u.length>=3)return Xi(e,n4(u[0]),n4(u[1]),n4(u[2]),u.length===3?c:bf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=bf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=bf(n[1]),a=bf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(r4(o,i,t+1/3)*255),Qo(r4(o,i,t)*255),Qo(r4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function uBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function a4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ay(tc(o[3],s[3],l)),t}}function cBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ay(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function a1(n,e,t,r){var a=ki(n);if(n)return a=uBe(a),e!=null&&(a[0]=lBe(e)),t!=null&&(a[1]=bf(t)),r!=null&&(a[2]=bf(r)),Hl(bP(a),"rgba")}function YS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ay(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function KS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var ZS=Math.round;function iy(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var g$=1e-4;function nc(n){return n-g$}function $b(n){return ZS(n*1e3)/1e3}function SP(n){return ZS(n*1e4)/1e4}function dBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var fBe={left:"start",right:"end",center:"middle",middle:"middle"};function hBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function pBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function gBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function uJ(n){return n&&!!n.image}function vBe(n){return n&&!!n.svgElement}function N9(n){return uJ(n)||vBe(n)}function cJ(n){return n.type==="linear"}function dJ(n){return n.type==="radial"}function fJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ix(n){return"url(#"+n+")"}function hJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*m2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+ZS(o*m2)+"deg, "+ZS(s*m2)+"deg)"),l.join(" ")}var mBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function i4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=m$,l=t;if(ga(t)){var u=SBe(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ny(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Dm)}else if(Tx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),cJ(t)?s=wP:dJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===m$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:eJ[r]||k9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=y$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Zv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===w2?i4(b,h[a],p[a],y):yBe(b,h[a],p[a],y);else if(y$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:C2(i4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)i4(b,h[a],p[a],y),r||(e[l]=C2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Dm?(ki(e[r],Zv),Vb(Zv,Zv,a,1),e[r]=C2(Zv)):t===w2?Vb(e[r],e[r],a,1):t===gJ&&v$(e[r],e[r],a,1)},n}(),F9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){I9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,i1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,i1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var wBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new F9(t,r.loop);return this.addAnimator(a),a},e}(To);const xBe=wBe;var TBe=300,o4=ot.domSupported,s4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),b$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function EBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function l4(n){n&&(n.zrByTouch=!0)}function OBe(n,e){return qi(n.dom,new IBe(n,e),!0)}function vJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var IBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;vJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){_$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){_$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),l4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),l4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),l4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentw$||n<-w$}var cd=[],Rh=[],c4=wo(),d4=Math.abs,LBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ud(this.rotation)||ud(this.x)||ud(this.y)||ud(this.scaleX-1)||ud(this.scaleY-1)||ud(this.skewX)||ud(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(C$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):C$(r),e&&(t?Bl(r,e,r):R9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(cd);var r=cd[0]<0?-1:1,a=cd[1]<0?-1:1,i=((cd[0]-r)*t+r)/cd[0]||0,o=((cd[1]-a)*t+a)/cd[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),sv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(c4[4]=r,c4[5]=a,Bl(Rh,t,c4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&d4(e[0]-1)>1e-10&&d4(e[3]-1)>1e-10?Math.sqrt(d4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){yJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function qS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var f4="__zr_normal__",h4=el.concat(["ignore"]),kBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},NBe=new $e(0,0,0,0),$9=function(){function n(e){this.id=UQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=NBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):qS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(f4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===f4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){I9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=i1(t[y]),$Be(t,r,y)}}var C=new F9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const _J=$9;var SJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?WBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),wJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return GBe(n)}function GBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function YBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function KBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>wJ?r:Ln(r,t)}var I$=9007199254740991;function TJ(n){var e=Math.PI*2;return(n%e+e)%e}function QS(n){return n>-O$&&n=10&&e++,e}function EJ(n,e){var t=V9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function v4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function P$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var _He=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SHe=zf(_He),CHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return SHe(this,e,t)},n}(),AP=new S0(50);function wHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function H9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Ax(e)&&i.pending.push(o)):(e=Mc.loadImage(n,R$,R$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function R$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function VJ(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?THe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function THe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=$J(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&y4(t,n.substring(s,u),e,o),y4(t,l[2],e,o,l[1]),s=m4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=wHe(k),Ax(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=jJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var AHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function MHe(n){return DHe(n)?!!AHe[n]:!0}function jJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),_f={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Mx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_f[MP]=!0;var k$=["z","z2","invisible"],RHe=["invisible"],LHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=C4(a)*t+n,Bb[1]=S4(a)*r+e,Hb[0]=C4(i)*t+n,Hb[1]=S4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%fd,a<0&&(a=a+fd),i=i%fd,i<0&&(i=i+fd),a>i&&!o?i+=fd:aa&&(Ub[0]=C4(h)*t+n,Ub[1]=S4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hd=[],pd=[],ys=[],Tu=[],bs=[],_s=[],w4=Math.min,x4=Math.max,gd=Math.cos,vd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,T4=typeof Float32Array<"u",Xv=[];function E4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function zJ(n,e){var t=E4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-E4(t-a)):e&&t0&&(this._ux=bl(r/XS/e)||0,this._uy=bl(r/XS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Xv[0]=a,Xv[1]=i,zJ(Xv,o),a=Xv[0],i=Xv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=gd(i)*r+e,this._yi=vd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&T4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=eBe(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=nBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=gd(A)*I+E,l=vd(A)*P+O),g=x4(I,P)*w4(Lu,Math.abs(R)),i=gd(L)*I+E,o=vd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,hd),Rc(c,k,z,j,A,pd),e.bezierCurveTo(hd[1],pd[1],hd[2],pd[2],hd[3],pd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ry(u,L,N,A,hd),ry(c,k,z,A,pd),e.quadraticCurveTo(hd[1],pd[1],hd[2],pd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=gd(Z)*Y+U,l=vd(Z)*Q+G),u=gd(te)*Y+U,c=vd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+w4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+w4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+x4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+x4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=qv);var f=Math.atan2(l,s);return f<0&&(f+=qv),f>=r&&f<=a||f+qv>=r&&f+qv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,md=Math.PI*2,zHe=1e-4;function BHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&HHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=md-1e-4){r=0,a=md;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=md,a+=md);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=md+g),(g>=r&&g<=a||g+md>=r&&g+md<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if(VHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(BJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=WHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(jHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=GHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!BHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function YHe(n,e,t){return HJ(n,0,!1,e,t)}function KHe(n,e,t,r){return HJ(n,e,!0,t,r)}var JS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_f),ZHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Mx.style)},O4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),XHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?RBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=KS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),KHe(s,l/u,t,r)))return!0}if(this.hasFill())return YHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Ex(JS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Ex(qHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);UJ.prototype.type="tspan";const sy=UJ;var QHe=_e({x:0,y:0},_f),JHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Mx.style)};function eUe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var WJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Ex(QHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=eUe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return JHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);WJ.prototype.type="image";const Xr=WJ;function tUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function GJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=af(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=af(i,s,!0))),n}}function YJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=af(r,s,!0),n.y=af(a,s,!0),n.width=Math.max(af(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(af(a+o,s,!1)-n.y,o===0?0:1)),n}}function af(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var nUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),rUe={},KJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=YJ(rUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?tUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);KJ.prototype.type="rect";const rt=KJ;var j$={fill:"#000"},z$=2,aUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Mx.style)},ZJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=j$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&I4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=Y$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(sy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=G$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=W$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=z$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),H$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Am(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return qJ(t)&&(r=[t.fontStyle,t.fontWeight,XJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),iUe={left:!0,right:1,center:1},oUe={top:1,bottom:1,middle:1},B$=["fontStyle","fontWeight","fontSize","fontFamily"];function XJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?T9+"px":n+"px"}function H$(n,e){for(var t=0;t=0,i=!1;if(n instanceof Ue){var o=QJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=Q$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=Q$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??uv)}return r}function hUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??lUe)}return t}function pUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:dUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function P4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return fUe(this,n,e,t);if(n==="blur")return pUe(this,n,t);if(n==="select")return hUe(this,n,t)}return t}function Bf(n){n.stateProxy=P4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=P4),t&&(t.stateProxy=P4)}function eV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,JJ)}function tV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,eee)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,JJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,eee)}function nee(n){du(n,G9)}function Y9(n){du(n,tee)}function ree(n){du(n,uUe)}function aee(n){du(n,cUe)}function iee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function oee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=U9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){tee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Cf(n,e,t){of(n,!0),du(n,Bf),FP(n,e,t)}function _Ue(n){of(n,!1)}function En(n,e,t,r){r?_Ue(n):Cf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var rV=["emphasis","blur","select"],SUe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=D4(p),s*=D4(p));var g=(a===i?-1:1)*D4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=sV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=sV(C,w);if(VP(C,w)<=-1&&(T=Qv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Qv*1e6)/1e6;T=Qv*2+E%2*Qv}c.addData(u,b,_,o,s,S,T,d,i)}var OUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,IUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(OUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function NUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function FUe(n,e){var t,r=Mm(e.r,0),a=Mm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=uV(u-l),p=h>A4&&h%A4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>A4-$o)n.moveTo(c+r*Fh(l),d+r*yd(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*yd(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*yd(l),z=a*Fh(u),F=a*yd(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=NUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=uV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Mm(_,S),I=E=Mm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*yd(u),R=a*Fh(l),L=a*yd(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){FUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);gee.prototype.type="sector";const fi=gee;var VUe=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),vee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new VUe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);vee.prototype.type="ring";const Nx=vee;function jUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=jUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s_d[1]){if(s=!1,i)return s;var c=Math.abs(_d[0]-bd[1]),d=Math.abs(bd[0]-_d[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){J9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){J9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fV(n){return!n.isGroup}function oWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){fV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return oWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(fV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Pee(n,e){return J(n,function(t){var r=t[0];r=nC(r,e.x),r=rC(r,e.x+e.width);var a=t[1];return a=nC(a,e.y),a=rC(a,e.y+e.height),[r,a]})}function sWe(n,e){var t=nC(n.x,e.x),r=rC(n.x+n.width,e.x+e.width),a=nC(n.y,e.y),i=rC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):$x(n.replace("path://",""),r,t,"center")}function Rm(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=M4(h,p,c,d)/f;return!(m<0||m>1)}function M4(n,e,t,r){return n*r-t*e}function lWe(n){return n<=1e-6&&n>=-1e-6}function dv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function hV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Zc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Xc(n,e){return Fe(Fe({},n,!0),e,!0)}const SWe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},CWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var iC="ZH",t8="EN",dy=t8,P2={},n8={},Fee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(iC)>-1?iC:dy}():dy;function $ee(n,e){n=n.toUpperCase(),n8[n]=new Xt(e),P2[n]=e}function wWe(n){if(ce(n)){var e=P2[n.toUpperCase()]||{};return n===iC||n===t8?Ee(e):Fe(Ee(e),Ee(P2[dy]),!1)}else return Fe(Ee(n),Ee(P2[dy]),!1)}function BP(n){return n8[n]}function xWe(){return n8[dy]}$ee(t8,SWe);$ee(iC,CWe);var r8=1e3,a8=r8*60,d1=a8*60,fo=d1*24,yV=fo*365,Lm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",bV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Lm.hour,minute:Xb+" "+Lm.minute,second:Xb+" "+Lm.second,millisecond:Lm.none},k4=["year","month","day","hour","minute","second","millisecond"],Vee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function TWe(n){return n===Gp(n)}function EWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function zx(n,e,t,r){var a=tl(n),i=a[i8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[Bx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[fy(t)](),d=(c-1)%12+1,f=a[Hx(t)](),h=a[Ux(t)](),p=a[Wx(t)](),g=r instanceof Xt?r:BP(r||Fee)||xWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function OWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Lm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return zx(new Date(n.value),i,a,r)}function jee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[Bx(e)](),i=t[fy(e)](),o=t[Hx(e)](),s=t[Ux(e)](),l=t[Wx(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function _V(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||jee(n,t),e){case"year":return r[i8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[Bx(t)]();case"half-day":return r[fy(t)]()/24;case"hour":return r[fy(t)]();case"minute":return r[Hx(t)]();case"second":return r[Ux(t)]();case"millisecond":return r[Wx(t)]()}}function i8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function Bx(n){return n?"getUTCDate":"getDate"}function fy(n){return n?"getUTCHours":"getHours"}function Hx(n){return n?"getUTCMinutes":"getMinutes"}function Ux(n){return n?"getUTCSeconds":"getSeconds"}function Wx(n){return n?"getUTCMilliseconds":"getMilliseconds"}function IWe(n){return n?"setUTCFullYear":"setFullYear"}function zee(n){return n?"setUTCMonth":"setMonth"}function Bee(n){return n?"setUTCDate":"setDate"}function Hee(n){return n?"setUTCHours":"setHours"}function Uee(n){return n?"setUTCMinutes":"setMinutes"}function Wee(n){return n?"setUTCSeconds":"setSeconds"}function Gee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yee(n){if(!OJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var pv=A9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return zx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Yee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var SV=["a","b","c","d","e","f","g"],N4=function(n,e){return"{"+n+(e??"")+"}"};function Zee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Hf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function oC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var D2=M,Xee=["left","right","top","bottom","width","height"],sf=[["width","left","right"],["height","top","bottom"]];function o8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var xf=o8;Ae(o8,"vertical");Ae(o8,"horizontal");function AWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=pv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=pv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Gx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function MWe(n,e){return n[sf[e][0]]!=null||n[sf[e][1]]!=null&&n[sf[e][2]]!=null}function hy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(sf[0],0),i=o(sf[1],1);u(sf[0],n,a),u(sf[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(D2(c,function(_){p[_]=n[_]}),D2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);FJ(vv,Xt);Dx(vv);bWe(vv);_We(vv,LWe);function LWe(n){var e=[];return M(vv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=vv;var Qee="";typeof navigator<"u"&&(Qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const kWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",ete="unknown",Zs="column",mv="row",zr={Must:1,Might:2,Not:3},tte=at();function NWe(n){tte(n).datasetMap=ge()}function nte(n,e,t){var r={},a=l8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=tte(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ite(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:zWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function BWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,Jv,wV,xV="\0_ec_inner",HWe=1,ote=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=OV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,OV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?wV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;NWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=VWe(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=MJ(h,f,p);iHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!oy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[xV],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function eGe(n,e){return n.join(",")===e.join(",")}const tGe=XWe;var ko=M,py=we,IV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function $4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=IV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=KBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Yx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||ete,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};kV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+mv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function VV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function f1(n){return new yGe(n)}var yGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},_Ge=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=yte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),bte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),SGe=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function CGe(n,e){return n==="eq"||n==="ne"?new SGe(n==="eq",e):he(yte,n)?new _Ge(n,e):null}var wGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function xGe(n,e){var t=new wGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?MGe:RGe}function Vh(){return[1/0,-1/0]}function LGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function BV(n,e,t,r,a){var i=Cte[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(tm(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}z4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),wte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&UV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&UV(d),s.push(c),l.push(u._getVersionSign())}),r?o=DGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[dGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ote(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function FGe(n,e,t,r){var a=e.noHeader,i=VGe(Ote(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new bte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Ete(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=Tte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ite(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function $Ge(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=Tte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ite(n,f,b))+(o?"":BGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":jGe(f,!s,b))+(o?"":zGe(p,g,m,_)),t)}}function WV(n,e,t,r,a,i){if(n){var o=Ete(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function VGe(n){return{html:kGe[n],richText:NGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function jGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function zGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ite(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function BGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Pte(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Hf(r)}function Dte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var B4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=IJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=DWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Ate(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Pte(e,t),c,d,f,h;if(o>1||l&&!o){var p=HGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=j9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function HGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var A2="__universalTransitionEnabled",Zx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=f1({count:WGe,reset:GGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new wte(this);i.prepareSource();var o=this.getInitialData(t,a);YV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=hy(this),i=a?gv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),Vf(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=hy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);YV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=u8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[A2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);or(Zx,h8);or(Zx,u8);FJ(Zx,it);function GV(n){var e=n.name;j9(n)||(n.name=UGe(n)||e)}function UGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function WGe(n){return n.model.getRawData().count()}function GGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),YGe}function YGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function YV(n,e){M(US(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(KGe,e))})}function KGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Zx;var g8=function(){function n(){this.group=new Oe,this.uid=hv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();B9(g8);Dx(g8);const On=g8;function yv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mte=at(),ZGe=yv(),v8=function(){function n(){this.group=new Oe,this.uid=hv("viewChart"),this.renderTask=f1({plan:XGe,reset:qGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Zc(this.group,e)},n.markUpdateMethod=function(e,t){Mte(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function KV(n,e,t){n&&uy(n)&&(e==="emphasis"?au:iu)(n,t)}function ZV(n,e,t){var r=jf(n,e),a=e&&e.highlightKey!=null?wUe(e.highlightKey):null;r!=null?M(kt(r),function(i){KV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){KV(i,t,a)})}B9(v8);Dx(v8);function XGe(n){return ZGe(n.model)}function qGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Mte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),QGe[l]}var QGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=v8;var sC="\0__throttleOriginMethod",XV="\0__throttleRate",qV="\0__throttleType";function m8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function bv(n,e,t,r){var a=n[e];if(a){var i=a[sC]||a,o=a[qV],s=a[XV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=m8(i,t,r==="debounce"),a[sC]=i,a[qV]=r,a[XV]=t}return a}}function gy(n,e){var t=n[e];t&&t[sC]&&(t.clear&&t.clear(),n[e]=t[sC])}var QV=at(),JV={itemStyle:zf(Nee,!0),lineStyle:zf(kee,!0)},JGe={lineStyle:"stroke",itemStyle:"fill"};function Rte(n,e){var t=n.visualStyleMapper||JV[e];return t||(console.warn("Unknown style type '"+e+"'."),JV.itemStyle)}function Lte(n,e){var t=n.visualDrawType||JGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Rte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Lte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},nm=new Xt,tYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Rte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){nm.option=l[r];var u=a(nm),c=o.ensureUniqueItemVisual(s,"style");K(c,u),nm.option.decal&&(o.setItemVisual(s,"decal",nm.option.decal),nm.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},nYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),QV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=QV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Lte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function rYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new q9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var aYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||f1({plan:uYe,reset:cYe,count:fYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||f1({reset:iYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,f1({reset:oYe,onDirty:lYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:hYe(e)}),e.uid=hv("stageHandler"),t&&(e.visualType=t),e},n}();function iYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function oYe(n){return n.overallProgress&&sYe}function sYe(){this.agent.dirty(),this.getDownstream().dirty()}function lYe(){this.agent&&this.agent.dirty()}function uYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function cYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return kte(r)}):dYe}var dYe=kte(0);function kte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],rj=qP.concat(["symbolKeepAspect"]),mYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&uf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?RYe(n,e,t):MYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function b8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&kYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var NYe=new nl(!0);function cC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function aj(n){return typeof n=="string"&&n!=="none"}function dC(n){var e=n.fill;return e!=null&&e!=="none"}function ij(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function oj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=H9(e.image,e.__image,t);if(Ax(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*m2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function FYe(n,e,t,r){var a,i=cC(t),o=dC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||NYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=b8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&oj(n,t),o&&ij(n,t)):(o&&ij(n,t),i&&oj(n,t))),E&&n.setLineDash([])}function $Ye(n,e,t){var r=e.__image=H9(t.image,e.__image,e,e.onload);if(!(!r||!Ax(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function VYe(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=b8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(cC(t)&&n.strokeText(a,t.x,t.y),dC(t)&&n.fillText(a,t.x,t.y)):(dC(t)&&n.fillText(a,t.x,t.y),cC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var sj=["shadowBlur","shadowOffsetX","shadowOffsetY"],lj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?_f.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||_f.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new tGe(this._api),u=this._theme,c=this._model=new ste;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(wj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(p1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=E$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return Y4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return Y4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=s1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=s1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?y8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(dKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&lf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(h1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),bYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&LJ(this.getDom(),C8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete p1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=h1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!fC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;Z4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),rm.call(this,a),am.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),G4(d,!0),G4(d,!1),f.plan()},G4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&xUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}Sj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){nee(p),Gi(d)},h.prototype.leaveBlur=function(p){Y9(p),Gi(d)},h.prototype.enterSelect=function(p){ree(p),Gi(d)},h.prototype.leaveSelect=function(p){aee(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(lte))(d)},rne=function(d){function f(h,p){for(var g=0;g=0)){xj.push(t);var i=$te.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function cne(n,e){nD[n]=e}function yKe(n,e,t){var r=XYe("registerMap");r&&r(n,e,t)}var bKe=PGe;fh(_8,eYe);fh(Xx,tYe);fh(Xx,nYe);fh(_8,mYe);fh(Xx,yYe);fh(qte,YYe);lne(cte);une(JYe,uGe);cne("default",rYe);cl({type:Sf,event:Sf,update:Sf},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:l1,event:l1,update:l1},Yn);cl({type:O2,event:O2,update:O2},Yn);cl({type:u1,event:u1,update:u1},Yn);sne("light",pYe);sne("dark",gYe);var Tj=[],_Ke={registerPreprocessor:lne,registerProcessor:une,registerPostInit:pKe,registerPostUpdate:gKe,registerUpdateLifecycle:w8,registerAction:cl,registerCoordinateSystem:vKe,registerLayout:mKe,registerVisual:fh,registerTransform:bKe,registerLoading:cne,registerMap:yKe,registerImpl:ZYe,PRIORITY:lKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){UBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Tj,n)>=0||(Tj.push(n),me(n)&&(n={install:n}),n.install(_Ke))}function im(n){return n==null?0:n.length||1}function Ej(n){return n}var SKe=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Ej,this._newKeyGetter=a||Ej,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var om=we,Du=J,IKe=typeof Int32Array>"u"?Array:Int32Array,PKe="e\0\0",Oj=-1,DKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AKe=["_approximateExtent"],Ij,i_,sm,lm,Q4,o_,J4,MKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;fne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():om(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,om(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){om(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),Q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(D9(arguments)))})},n.internalField=function(){Ij=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new IKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=MKe;function A0(n,e){c8(n)||(n=d8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=LKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gne(o),l=r===n.dimensionsDefine,u=l?pne(n):hne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new Ste(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function LKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function kKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var NKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function FKe(n){var e=n.get("coordinateSystem"),t=new NKe(e),r=$Ke[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var $Ke={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function VKe(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;jKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function jKe(n){return!fne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function vne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function zKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=pC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function BKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=d8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=FKe(e),s=zKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(nte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=BKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=VKe(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&HKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function HKe(n){if(n.sourceFormat===Eo){var e=UKe(n.data||[]);return!X(lv(e))}}function UKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Dx(mne);const hu=mne;var WKe=0,GKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,YKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function YKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=GKe;function aD(n){return n.type==="interval"||n.type==="log"}function KKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=EJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=yne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return ZKe(l,n),a}function eE(n){var e=Math.pow(10,V9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function yne(n){return js(n)+2}function Pj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function ZKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Pj(n,0,e),Pj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function qx(n,e){return n>=e[0]&&n<=e[1]}function Qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Jx(n,e){return n*(e[1]-e[0])+e[0]}var bne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),qx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Jx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(bne);const T8=bne;var xd=Ln,_ne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return qx(t,this._extent)},e.prototype.normalize=function(t){return Qx(t,this._extent)},e.prototype.scale=function(t){return Jx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:xd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function wne(n){var e=QKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(Ine(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:O8(i),stackId:E8(r)})}),xne(t)}function xne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function JKe(n,e,t){if(n&&e){var r=n[O8(e)];return r!=null&&t!=null?r[E8(t)]:r}}function Tne(n,e){var t=Cne(n,e),r=wne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=E8(a),u=r[O8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Ene(n){return{seriesType:n,plan:yv(),reset:function(e){if(One(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=eZe(a,i),p=Ine(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(tZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return qx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Jx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",r8],["minute",a8],["hour",d1],["quarter-day",d1*6],["half-day",d1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",yV/2],["year",yV]];function nZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return _V(a,p,r)===_V(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function rZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function aZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function iZe(n){return n/=d1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Dj(n,e){return n/=e?a8:r8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function oZe(n){return EJ(n,!0)}function sZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[zee(t)](0);case"day":r[Bee(t)](1);case"hour":r[Hee(t)](0);case"minute":r[Uee(t)](0);case"second":r[Wee(t)](0),r[Gee(t)](0)}return r.getTime()}function lZe(n,e,t,r){var a=1e4,i=Vee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(dZe(r[0]/i)*i),Ln(cZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){g1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),Qx(t,this._extent)},e.prototype.scale=function(t){return t=Jx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Ane=I8.prototype;Ane.getMinorTicks=g1.getMinorTicks;Ane.getLabel=g1.getLabel;function u_(n,e){return uZe(n,js(e))}hu.registerClass(I8);const fZe=I8;var hZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[gZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=pZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),pZe={min:"_determinedMin",max:"_determinedMax"},gZe={min:"_dataMin",max:"_dataMax"};function Mne(n,e,t){var r=n.rawExtentInfo;return r||(r=new hZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ny(e)?NaN:n.parse(e)}function Rne(n,e){var t=n.type,r=Mne(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Cne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=wne(s),c=vZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function vZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=JKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Rne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof fZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function eT(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new T8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Dne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function mZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(P8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function P8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function yZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof T8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),SZe=1e-8;function Mj(n,e){return Math.abs(n-e)a&&(r=o,a=l)}if(r)return wZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Rj(s.exterior,a,i,t):M(s.points,function(l){Rj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function EZe(n,e){return n=TZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Lj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Lj(l[0],l.slice(1)))});break;case"LineString":i.push(new kj([a.coordinates]));break;case"MultiLineString":i.push(new kj(a.coordinates))}var s=new Nne(r[e||"name"],i,r.cp);return s.properties=r,s})}var yy=at();function OZe(n){return n.type==="category"?PZe(n):AZe(n)}function IZe(n,e){return n.type==="category"?DZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function PZe(n){var e=n.getLabelModel(),t=$ne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function $ne(n,e){var t=Vne(n,"labels"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;return me(r)?i=Hne(n,r):(o=r==="auto"?MZe(n):r,i=Bne(n,o)),zne(t,r,{labels:i,labelCategoryInterval:o})}function DZe(n,e){var t=Vne(n,"ticks"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Hne(n,r,!0);else if(r==="auto"){var s=$ne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=Bne(n,o,!0);return zne(t,r,{ticks:i,tickCategoryInterval:o})}function AZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Vne(n,e){return yy(n)[e]||(yy(n)[e]=[])}function jne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=yy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function LZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Lne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Hne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Nj=[0,1],kZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return xJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count())),xt(e,Nj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count()));var i=xt(e,r,Nj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=IZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return NZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return OZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return RZe(this)},n}();function Fj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function NZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=um);var h=Math.atan2(s,o);if(h<0&&(h+=um),h>=r&&h<=a||h+um>=r&&h+um<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function vC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Une(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function jZe(n,e,t){var r=Une(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function zZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function BZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function Vj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function HZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=b2([],r[1],r[0],o/a),l=b2([],r[1],r[2],o/i),u=b2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function UZe(n,e,t,r){return Yne(n,"x","width",e,t,r)}function Kne(n,e,t,r){return Yne(n,"y","height",e,t,r)}function Zne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!fv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Lee(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=YZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const ZZe=KZe;var aE=at();function XZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=aE(t).labelManager;a||(a=aE(t).labelManager=new ZZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=aE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var iE=Math.sin,oE=Math.cos,Xne=Math.PI,Ed=Math.PI*2,qZe=180/Xne,QZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Ed)||(c?u>=Ed:-u>=Ed),h=u>0?u%Ed:u%Ed+Ed,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Xne==!!c;var g=e+r*oE(o),m=t+a*iE(o);this._start&&this._add("M",g,m);var y=Math.round(i*qZe);if(f){var b=1/this._p,_=(c?1:-1)*(Ed-b);this._add("A",r,a,y,1,+c,e+r*oE(o+_),t+a*iE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*oE(s),C=t+a*iE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function sXe(n){return""}function R8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return oXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+sXe(o)}return r(n)}function lXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:Qne,"xmlns:xlink":Jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Bj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Vd="transform-origin";function uXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new qne;return a.reset(hJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function cXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[Vd]=t+"px "+r+"px")}var dXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tre(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function fXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,tT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=tre(a,t);return i.replace(o,s)}}function Hj(n){return ce(n)?Bj[n]?"cubic-bezier("+Bj[n]+")":k9(n)?n:"":""}function tT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Q9){var s=fXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=tre(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var by=Math.round;function nre(n){return n&&ce(n.src)}function rre(n){return n&&me(n.toDataURL)}function L8(n,e,t,r){rXe(function(a,i){var o=a==="fill"||a==="stroke";o&&fJ(i)?ire(e,n,a,r):o&&N9(i)?ore(t,n,a,r):n[a]=i},e,t,!1),bXe(t,n,r)}function Uj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function hXe(n){return nc(n[4])&&nc(n[5])}function k8(n,e,t){if(e&&!(hXe(e)&&Uj(e))){var r=t?10:1e4;n.transform=Uj(e)?"translate("+by(e[4]*r)/r+" "+by(e[5]*r)/r+")":dBe(e)}}function Wj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=H9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=pJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=R8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ix(O)}}function _Xe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[are(n,t)])}e["clip-path"]=Ix(i)}function Kj(n){return document.createTextNode(n)}function Yd(n,e,t){n.insertBefore(e,t)}function Zj(n,e){n.removeChild(e)}function Xj(n,e){n.appendChild(e)}function sre(n){return n.parentNode}function lre(n){return n.nextSibling}function sE(n,e){n.textContent=e}var qj=58,SXe=120,CXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function wXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Nm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function _y(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=ere(r);if(N8(CXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ure(n,p,t,a,l)):yC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(N8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&xXe(t,r,a):Os(a)?(Os(n.text)&&sE(t,""),ure(t,null,a,0,a.length-1)):Os(r)?yC(t,r,0,r.length-1):Os(n.text)&&sE(t,""):n.text!==e.text&&(Os(r)&&yC(t,r,0,r.length-1),sE(t,e.text)))}function TXe(n,e){if(Nm(n,e))rp(n,e);else{var t=n.elm,r=sre(t);_y(e),r!==null&&(Yd(r,e.elm,lre(t)),yC(r,[n],0,0))}return e}var EXe=0,OXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Qj(),this.configLayer=Qj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+EXe++,this._oldVNode=zj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ere("svg");N8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",TXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Yj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=IXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=lXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return zj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},R8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||I9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const VXe=$Xe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var jXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ir(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return _v(t.getItemVisual(r,"symbolSize"))},e}(Oe);function zXe(n,e){this.parent.drift(n,e)}const L0=jXe;function uE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function tz(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function nz(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var BXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=tz(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=nz(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(uE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!uE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nz(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=tz(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function fre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function UXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function WXe(n,e,t,r,a,i,o,s){for(var l=UXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=dre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(Tf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||Tf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var hre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),GXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Tf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?GS(s,h,g,y,t,c):GS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),YXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(hre),pre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new YXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Tf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function XXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=ZXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function qXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&QXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function QXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function JXe(n,e){return isNaN(n)||isNaN(e)}function eqe(n){for(var e=n.length/2;e>0&&JXe(n[e*2-2],n[e*2-1]);e--);return e-1}function sz(n,e){return[n[e*2],n[e*2+1]]}function tqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=oz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=oz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;eC(this._polyline,t),r&&eC(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new GXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new pre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(mre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=eqe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?cre(o,h):Cg(o,d)},enableTextSetter:!0},nqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=tqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=sz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=kJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=sz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=fv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=WXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),iz(h,g)>3e3||c&&iz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=iqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,oqe))}}}}}function sqe(n){n.registerChartView(aqe),n.registerSeriesModel(VXe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("line"))}var bre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(bre);const bC=bre;var lqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Xc(bC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(bC);const uqe=lqe;var cqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),dqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new cqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){cy(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),lz={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=dE(e.x,n.x),s=fE(e.x+e.width,a),l=dE(e.y,n.y),u=fE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=fE(e.r,n.r),i=dE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},uz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?_C:fi,c=new u({shape:r,z2:1});c.name="item";var d=_re(a);if(c.calculateTextPosition=fqe(d,{isRoundCap:u===_C}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function vqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function cz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function dz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function bqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _re(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function hz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=df(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,hqe(n,m==="outside"?h:m,_re(o),r.get(["label","rotate"]))}Ree(g,p,i.getRawValue(t),function(b){return cre(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),bqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function _qe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var Sqe=function(){function n(){}return n}(),pz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Sqe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Cqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Sre(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function wqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:Sre(e,t,n),silent:!0,z2:0})}const xqe=gqe;function Tqe(n){n.registerChartView(xqe),n.registerSeriesModel(uqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,mz=Math.PI/180;function Cre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wre(n,e){var t=Cre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Eqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Cre(r,t),s=wre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*mz,h=r.get("minAngle")*mz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function hE(n){return n.position==="center"}function Pqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Oqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Iqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Mqe=Aqe;function Sv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Rqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Rqe;var Lqe=at(),kqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Lqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=YBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const Nqe=kqe;function Fqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function $qe(n){n.registerChartView(Mqe),n.registerSeriesModel(Nqe),zte("pie",n.registerAction),n.registerLayout(Ae(Eqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Fqe("pie"))}var Vqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const jqe=Vqe;var Tre=4,zqe=function(){function n(){}return n}(),Bqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new zqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Uqe=Hqe;var Wqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Uqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Gqe=Wqe;var Yqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Kqe=Yqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);or(cD,R0);var Ere={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Zqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ere),F8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ere),Xqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},F8),qqe=_e({logBase:10},F8);const Ore={category:Zqe,value:F8,time:Xqe,log:qqe};var Qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(Qqe,function(a,i){var o=Fe(Fe({},Ore[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=hy(this),h=f?gv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=bz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",bz)}function bz(n){return n.type||(n.data?"category":"value")}var Jqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const eQe=Jqe;var dD=["x","y"];function _z(n){return n.type==="interval"||n.type==="time"}var tQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!_z(t)||!_z(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=sv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(eQe),nQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const rQe=nQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function Sz(n){return n.get("coordinateSystem")==="cartesian2d"}function Cz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var pE=Math.log;function Ire(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Rne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=pE(n.base);u=[pE(u[0])/f,pE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=eE(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=eE(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var aQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ire(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){wz(r,"y",o,i)}),M(r.y,function(o){wz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=yZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),iQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):QS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Tz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ir(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=uQe(t,r,e,n),i=dQe(t,r,e,n);if(lQe(e,i,a),cQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Oz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;Oz(i)?f=Ef.innerTextLayout(n.rotation,h??n.rotation,o):(f=sQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Ef.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(dv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Ef.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function sQe(n,e,t,r){var a=TJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return QS(a-rc/2)?(o=l?"bottom":"top",i="center"):QS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function lQe(n,e,t){if(!Lne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Ez(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Ez(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Ez(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ox([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function Oz(n){return n==="middle"||n==="center"}function Pre(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function mQe(n){var e=$8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return or(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},cm.axisLine),axisLabel:y_(cm.axisLabel,!1),axisTick:y_(cm.axisTick,!1),splitLine:y_(cm.splitLine,!0),splitArea:y_(cm.splitArea,!0),indicator:[]},e}(it);const RQe=MQe;var LQe=["axisLine","axisTickLabel","axisName"],kQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(LQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new Nx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;mE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);mE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Rz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;mE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function mE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),kre(n,e,t,r,a))}function kre(n,e,t,r,a){a.isAvailableBehavior=fe(R2,null,t,r),n.trigger(e,a)}function R2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=WQe;function j8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function z8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var GQe={axisPointer:1,tooltip:1,brush:1};function rT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!GQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function Nre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var yE,SC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Lz=Ye(SC),CC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kz=Ye(CC),YQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=Nre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;XQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=aT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=$re(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=yE[s];if(c&&he(yE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Nz[s];if(h&&he(Nz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new sy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),KQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){yE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new X9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=dee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Nz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Fz(n,i),$z(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new xee(e,t,r);return Fz(n,a),$z(n,a),a}};function Fz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function $z(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Fre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function Vz(n){for(var e=aT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=aT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":L9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*bE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*bE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*bE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var zz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fre(n,e,t){var r=n.getAttribute("style");if(r){zz.lastIndex=0;for(var a;(a=zz.exec(r))!=null;){var i=a[1],o=he(SC,i)?SC[i]:null;o&&(e[o]=a[2]);var s=he(CC,i)?CC[i]:null;s&&(t[s]=a[2])}}}function eJe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&(Vre(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Gz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Yz(n,e,t,r,a){n.data||dv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Kz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&CUe(e,a,t),o}function Zz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const CJe=SJe;function wJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function IJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var PJe=function(){function n(){this.dimensions=zre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Jz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=eB,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Jz(s,s,K({nameMap:P9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=eB,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,IJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function $Je(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){zJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=BJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function VJe(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function nB(n){return arguments.length?n:WJe}function Fm(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function jJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function zJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function BJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=_E(s),i=SE(i),s&&i;){a=_E(a),o=SE(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(UJe(HJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!_E(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!SE(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function _E(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function SE(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function HJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function UJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function WJe(n,e){return n.parentNode===e.parentNode?1:2}var GJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),YJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?US(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),ZJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||eC(t.__edge,L)}})}function ZJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Fx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Kre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function G8(n,e){var t=Kre(n);return Be(t,e)>=0}function iT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var oet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=W8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=iT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const set=oet;function uet(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function cet(n,e){n.eachSeriesByType("tree",function(t){det(t,e)})}function det(n,e){var t=jJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=nB(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=nB());var s=n.getData().tree.root,l=s.children[0];if(l){FJe(s),uet(l,$Je,o),s.hierNode.modifier=-l.hierNode.prelim,fm(l,VJe);var u=l,c=l,d=l;fm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=Fm(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),fm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function fet(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function het(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function pet(n){n.registerChartView(XJe),n.registerSeriesModel(set),n.registerLayout(cet),n.registerVisual(fet),het(n)}var sB=["treemapZoomToNode","treemapRender","treemapMove"];function get(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var vet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Xre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=met(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=W8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=iT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Xre(n){var e=0;M(n.children,function(r){Xre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function met(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const yet=vet;var bet=8,lB=8,CE=5,_et=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Gx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=dr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+bet*2,t.emptyItemWidth);t.totalWidth+=s+lB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=AWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:Cet(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:uv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),wet(S,e,y),l+=b+lB}},n.prototype.remove=function(){this.group.removeAll()},n}();function Cet(n,e,t,r,a,i){var o=[[a?n:n-CE,e],[n+t,e],[n+t,e+r],[a?n:n-CE,e+r]];return!i&&o.splice(2,0,[n+t+CE,e+r/2]),!a&&o.push([n,e+r/2]),o}function wet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&iT(t,e)}}const xet=_et;var Tet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;acB||Math.abs(t.dy)>cB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),L9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&oC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new xet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(G8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function hm(){return{nodeGroup:[],background:[],content:[]}}function Aet(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),wC(P).nodeWidth=h,wC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",uB,u,Iet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)uy(P)&&of(P,!1),A&&(of(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",uB,u,Pet);F&&U(P,F),A.disableMorphing=!0,A&&uy(A)&&of(A,!1),of(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=hB(w);We.fill=pe;var Ce=zd(T);Ce.fill=T.get("borderColor");var Je=zd(E);Je.fill=E.get("borderColor");var Ve=zd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,Bf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=hB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=zd(T),Ve=zd(E),Mt=zd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,Bf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?fB:dB),pe=dr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?fB:dB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=A9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Met(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Met(n,e){return n*Oet+e}const Ret=Det;var wy=M,Let=we,xC=-1,Y8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Fet[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(wE(a),ket(a)):t==="category"?a.categories?Net(a):wE(a,!0):(Na(t!=="linear"||a.dataExtent),wE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&wy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Let(e)){var t=[];wy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function wE(n,e){var t=n.visual,r=[];we(t)?wy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),qre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function pB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function pm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function $m(n){var e=this.option.visual;return e[this.option.loop&&n!==xC?n%e.length:n]}function Bd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:$m,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:Bd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Y8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function qre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Fet={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Y8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??xC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Het(a,l,g,m,p,r);Jre(g,y,t,r)}})}}}function jet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function gB(n){var e=xE(n,"color");if(e){var t=xE(n,"colorAlpha"),r=xE(n,"colorSaturation");return r&&(e=a1(e,null,null,r)),t&&(e=YS(e,t)),e}}function zet(n,e){return e!=null?a1(e,null,null,n):null}function xE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function Bet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=TE(e,"color")||a.color!=null&&a.color!=="none"&&(TE(e,"colorAlpha")||TE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return Qre(f).drColorMappingBy=c,f}}}function TE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Het(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&Qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var xy=Math.max,TC=Math.min,vB=Lr,K8=M,eae=["itemStyle","borderWidth"],Uet=["itemStyle","gapWidth"],Wet=["upperLabel","show"],Get=["upperLabel","height"];const Yet={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(vB(s.width,l[0]),a),c=ie(vB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Cy(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Kre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Jet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),tae(g,_,!1,0),S=g.getLayout(),K8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(ett(s,p,h),!0),n.setLayoutInfo(s),nae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function tae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(eae),u=s.get(Uet)/2,c=rae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=xy(a-2*f,0),i=xy(i-f-h,0);var p=a*i,g=Ket(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=TC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?xy(u*r/l,l/(u*a)):1/0}function mB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dI$&&(u=I$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Q8=btt;var _tt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Q8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=wB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=wB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!Stt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function wB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function xB(n){return isNaN(n[0])||isNaN(n[1])}function DE(n){return n&&!xB(n[0])&&!xB(n[1])}const J8=_tt;var AE=[],ME=[],RE=[],Wh=Mr,LE=yf,TB=Math.abs;function EB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){AE[0]=Wh(r[0],a[0],i[0],c),AE[1]=Wh(r[1],a[1],i[1],c);var d=TB(LE(AE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function kE(n,e){var t=[],r=ry,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=jm(s.node1),p=EB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=jm(s.node2),p=EB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),rf(o,i[1],i[0]),ov(o,o),c&&c!=="none"){var h=jm(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=jm(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function OB(n){return n.type==="view"}var Ctt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new J8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(OB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}kE(t.getGraph(),Vm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),q8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),X8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){sae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!rT(u,a,t)}),!OB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){j8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){z8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),kE(t.getGraph(),Vm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Vm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){kE(t.getGraph(),Vm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const wtt=Ctt;function Gh(n){return"_EC_"+n}var xtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Hd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Hd||(e=a[Gh(e)]),t instanceof Hd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new uae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Hd&&(e=e.id),t instanceof Hd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Hd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}or(Hd,cae("hostGraph","data"));or(uae,cae("hostGraph","edgeData"));const Ttt=xtt;function dae(n,e,t,r,a){for(var i=new Ttt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Gre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ett=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Vf(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){stt(this);var s=dae(i,a,this,!0,l);return M(s.edges,function(u){ltt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Ate({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ott=Ett;var Itt={type:"graphRoam",event:"graphRoam",update:"none"};function Ptt(n){n.registerChartView(wtt),n.registerSeriesModel(Ott),n.registerProcessor(ntt),n.registerVisual(rtt),n.registerVisual(att),n.registerLayout(utt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,dtt),n.registerLayout(htt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:gtt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Itt,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Dtt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Att=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Dtt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Mtt=Att;function Rtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Ltt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Rtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?_C:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];zJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ir(N,F-L/2,j-k,L,k,null,U):G=new Mtt({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?_C:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ir(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ree(I,{normal:P},_,function(U){return w_(U,F)}),g&&Lee(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const ktt=Ltt;var Ntt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return Sv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ftt=Ntt;function $tt(n){n.registerChartView(ktt),n.registerSeriesModel(Ftt)}var Vtt=["itemStyle","opacity"],jtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Vtt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),A8(a,M8(l),{stroke:f})},e}(hi),ztt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new jtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);cy(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const Btt=ztt;var Htt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Utt=Htt;function Wtt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Gtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();odnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!FE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function FE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const pnt=fnt;var gnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const vnt=gnt;var mnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const ynt=mnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=$E(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=$E(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function $E(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var VE=M,hae=Math.min,pae=Math.max,DB=Math.floor,bnt=Math.ceil,AB=Ln,_nt=Math.PI,Snt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;VE(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new ynt(o,eT(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();VE(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||DB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[DB(AB(h[0]/c,1))+1,bnt(AB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),VE(r,function(o,s){var l=(a.axisExpandable?wnt:Cnt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:_nt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[pae(0,p-h/2)],a[1]=hae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return hae(pae(n,e[0]),e[1])}function Cnt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function wnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iDnt}function Sae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Cae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:rM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(kB,n,e,a,["n","s","w","e"]),ondragend:Ae(Wf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(kB,n,e,a,i),ondragend:Ae(Wf,e,{isEnd:!0})}))}),a}function wae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Ant),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(rM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):$nt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Rnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(jnt(aM(n,e,[[r,a],[r+i,a+o]])))}function rM(n){return _e({strokeNoScale:!0},n.brushStyle)}function xae(n,e,t,r){var a=[Ey(n,t),Ey(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Fnt(n){return wf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=Vx(t[e],Fnt(n));return r[a]}function $nt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function kB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=Tae(e,a,i);M(r,function(u){var c=Mnt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(xae(s[0][0],s[1][0],s[0][1],s[1][1])),eM(e,t),Wf(e,{isEnd:!1})}function Vnt(n,e,t,r){var a=e.__brushOption.range,i=Tae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),eM(n,e),Wf(n,{isEnd:!1})}function Tae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function aM(n,e,t){var r=_ae(n,e);return r&&r!==Uf?r.clipPath(t,n._transform):Ee(t)}function jnt(n){var e=Ey(n[0][0],n[1][0]),t=Ey(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function znt(n,e,t){if(!(!n._brushType||Hnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=nM(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var sT={lineX:$B(0),lineY:$B(1),rect:{createCover:function(n,e){function t(r){return r}return Cae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Sae(n);return xae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){wae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:rM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae(Vnt,n,e),ondragend:Ae(Wf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:aM(n,e,t)})},updateCommon:xD,contain:OD}};function $B(n){return{createCover:function(e,t){return Cae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Sae(e),r=Ey(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=_ae(e,t);if(o!==Uf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),wae(e,t,l,a)},updateCommon:xD,contain:OD}}const iM=knt;function Oae(n){return n=oM(n),function(e){return Pee(e,n)}}function Iae(n,e){return n=oM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Pae(n,e,t){var r=oM(n);return function(a,i){return r.contain(i[0],i[1])&&!rT(a,e,t)}}function oM(n){return $e.create(n)}var Unt=["axisLine","axisTickLabel","axisName"],Wnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Gnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Knt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Unt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Oae(d),isTargetByCursor:Pae(d,s,i),getLinearBrushOtherExtent:Iae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Ynt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Gnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Ynt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Knt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Znt=Wnt;var Xnt={type:"axisAreaSelect",event:"axisAreaSelected"};function qnt(n){n.registerAction(Xnt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Dae(n){n.registerComponentView(pnt),n.registerComponentModel(vnt),n.registerCoordinateSystem("parallel",Ont),n.registerPreprocessor(lnt),n.registerComponentModel(MB),n.registerComponentView(Znt),wg(n,"parallel",MB,Qnt),qnt(n)}function Jnt(n){He(Dae),n.registerChartView(ent),n.registerSeriesModel(ant),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,snt)}var ert=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),trt=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ert},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),nrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new trt,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),VB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return VB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(rrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function VB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function rrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const art=nrt;var irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=dae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const ort=irt;function srt(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=lrt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;crt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");urt(u,c,r,a,o,s,f,h,p)})}function lrt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function urt(n,e,t,r,a,i,o,s,l){drt(n,e,t,a,i,s,l),grt(n,e,i,a,r,o,s),xrt(n,s)}function crt(n){M(n,function(e){var t=xc(e.outEdges,EC),r=xc(e.inEdges,EC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function drt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&frt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;prt(n,E,i)}function Aae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function frt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,yrt(s,l,o),jE(s,a,t,r,o),wrt(s,l,o),jE(s,a,t,r,o)}function vrt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function mrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function yrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,brt,t)/xc(a.outEdges,EC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,_rt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function brt(n,e){return $c(n.node2,e)*n.getValue()}function _rt(n,e){return $c(n.node2,e)}function Srt(n,e){return $c(n.node1,e)*n.getValue()}function Crt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function EC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Ert(n){n.registerChartView(art),n.registerSeriesModel(ort),n.registerLayout(srt),n.registerVisual(Trt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Mae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:pC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:pC(g),dimsDef:b.slice()}];return Sv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(nte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Rae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);or(Rae,Mae,!0);const Ort=Rae;var Irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=jB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Lae(f,d,i,u)):d=jB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Prt=function(){function n(){}return n}(),Drt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Prt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var $rt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Frt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Vrt(n){n.registerSeriesModel(Ort),n.registerChartView(Mrt),n.registerLayout(Rrt),n.registerTransform($rt)}var jrt=["color","borderColor"],zrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&zB(u,d))return;var f=zE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),BE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&zB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=zE(h),BE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),BB(t,this.group);var r=t.get("clip",!0)?nT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=zE(s);BE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){BB(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),Brt=function(){function n(){}return n}(),Hrt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Brt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function zE(n,e,t){var r=n.ends;return new Hrt({shape:{points:t?Urt(r,n):r},z2:100})}function zB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(jrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Grt=zrt;var kae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);or(kae,Mae,!0);const Yrt=kae;function Krt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Zrt=["itemStyle","borderColor"],Xrt=["itemStyle","borderColor0"],qrt=["itemStyle","borderColorDoji"],Qrt=["itemStyle","color"],Jrt=["itemStyle","color0"],eat={seriesType:"candlestick",plan:yv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?Qrt:Jrt)}function r(i,o){return o.get(i===0?qrt:i>0?Zrt:Xrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const tat=eat;var nat={seriesType:"candlestick",plan:yv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=rat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:HB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=I2(Z[a]+r/2,1,!1),ae[a]=I2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=I2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=HB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function HB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function rat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const aat=nat;function iat(n){n.registerChartView(Grt),n.registerSeriesModel(Yrt),n.registerPreprocessor(Krt),n.registerVisual(tat),n.registerLayout(aat)}function UB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var oat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Nae);const vat=gat;var mat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),yat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(BJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const _at=bat;var Sat={seriesType:"lines",plan:yv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&nT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=$ae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new _at:new J8(o?i?vat:Fae:i?Nae:Q8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const wat=Cat;var xat=typeof Uint32Array>"u"?Array:Uint32Array,Tat=typeof Float64Array>"u"?Array:Float64Array;function WB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),P9([a,t[0],t[1]])}))}var Eat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],WB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(WB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=US(this._flatCoords,r.flatCoords),this._flatCoordsOffset=US(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Oat=Eat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Iat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Pat=Iat;function Dat(n){n.registerChartView(wat),n.registerSeriesModel(Oat),n.registerLayout($ae),n.registerVisual(Pat)}var Aat=256,Mat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Rat=Mat;function Lat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function GB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Nat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):GB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(GB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Rat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?kat(S,a.option.range):Lat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Fat=Nat;var $at=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Vat=$at;function jat(n){n.registerChartView(Fat),n.registerSeriesModel(Vat)}var zat=["itemStyle","borderWidth"],YB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],WE=new rl,Bat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:YB[+c],categoryDim:YB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=ZB(o,h),g=KB(o,h,p,f),m=XB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),QB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=ZB(o,h),y=KB(o,h,m,f),b=Uae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Zat(g,f,y):g=XB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),QB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&qB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){qB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function KB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Hat(t,i,a,r,f),Uat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Wat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Gat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Hat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[GE(s,o[0])-l,GE(s,o[1])-l];d[1]0?1:-1}function GE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Uat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Wat(n,e,t,r,a){var i=n.get(zat)||0;i&&(WE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),WE.updateTransform(),i/=WE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Gat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=OJ(r),E=T?r:JB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?JB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function Vae(n){var e=n.symbolPatternSize,t=ir(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(sM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=Vae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Bae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Hae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function ZB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Yat,t.isAnimationEnabled=Kat,t}function Yat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Kat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function XB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?jae(a,e,t):zae(a,e,t),Bae(a,t,r),Hae(a,e,t,r),a.__pictorialShapeStr=Uae(n,t),a.__pictorialSymbolMeta=t,a}function Zat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?jae(n,e,t,!0):zae(n,e,t,!0),Bae(n,t,!0),Hae(n,e,t,!0)}function qB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];sM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Uae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function QB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");sM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function JB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Xat=Bat;var qat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Xc(bC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(bC);const Qat=qat;function Jat(n){n.registerChartView(Xat),n.registerSeriesModel(Qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("pictorialBar"))}var eit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function sit(n){n.registerChartView(nit),n.registerSeriesModel(ait),n.registerLayout(iit),n.registerProcessor(F0("themeRiver"))}var lit=2,uit=4,cit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=lit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:uit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=df(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=df(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const tH=cit;var ID="sunburstRootToNode",nH="sunburstHighlight",dit="sunburstUnhighlight";function fit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=Cy(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=G8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:nH,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Cy(e,[nH],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:dit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var hit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new tH(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new tH(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";oC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const pit=hit;var git=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Wae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=W8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=iT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Wae(n){var e=0;M(n.children,function(r){Wae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const vit=git;var rH=Math.PI/180;function mit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*rH,p=r.get("minAngle")*rH,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Gae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function _it(n){n.registerChartView(pit),n.registerSeriesModel(vit),n.registerLayout(Ae(mit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(bit),fit(n)}var aH={color:"fill",borderColor:"stroke"},Sit={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Cit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const wit=Cit;function xit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Tit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(xit,n)}}}function Eit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Oit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Eit,n)}}}function Iit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Pit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Iit,n)}}}function Dit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Ait(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Dit,n)}}}function Mit(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Yae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Kae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return iH(o,n),M(o.rich,function(l){iH(l,l)}),{textConfig:a,textContent:i}}function iH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function oH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";sH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){sH(s,s)}),r}function sH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Zae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lH=Ye(Zae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var OC=["","style","shape","extra"],Tg=at();function lM(n,e,t,r,a){var i=n+"Animation",o=cv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Fit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function L2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if(Vit(n,e,d),cH("shape",e,d),cH("extra",e,d),!i&&s&&($it(n,e,c),uH("shape",n,e,c),uH("extra",n,e,c),jit(n,e,u,c)),d.style=u,Rit(n,d,o),kit(n,e),s)if(i){var f={};M(OC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=lM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Lit(n,e,a||0,t,c);Xae(n,e),u?n.dirty():n.markRedraw()}function Xae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function kit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},Nit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Fit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(Nit)}}function uH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Of(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=aC(G,U,!1);return O(L,j),j=oH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=aC(z,null,!0);return O(L,N),N=oH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(aH,L)){var N=e.getItemVisual(k,"style");return N?N[aH[L]]:null}if(he(Sit,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return qKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Mee(L,t)}}function qit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function XE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=hM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function hM(n,e,t,r,a,i){var o=-1,s=e;e&&eie(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=dM(r),s&&Git(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Jit(u,t,r,a,l,Zi),Qit(u,t,r,a,l),fM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function eie(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&aot(i)&&tie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function Qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&eie(o,i,r)&&(o=null),o||(o=dM(i),n.setClipPath(o)),fM(null,o,e,i,null,r,a)}}function Jit(n,e,t,r,a,i){if(!n.isGroup){fH(t,null,i),fH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=dM(o),n.setTextContent(c)),fM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);tot(e,p,a)}}}function tot(n,e,t){e&&lT(e,Ul(n).option,t)}function not(n){new ou(n.oldChildren,n.newChildren,hH,hH,n).add(pH).update(pH).remove(rot).execute()}function hH(n,e){var t=n&&n.name;return t??Uit+e}function pH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;hM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function rot(n){var e=this.context,t=e.oldChildren[n];t&&lT(t,Ul(t).option,e.seriesModel)}function tie(n){return n&&(n.pathData||n.d)}function aot(n){return n&&(he(n,"pathData")||he(n,"d"))}function iot(n){n.registerChartView(Kit),n.registerSeriesModel(wit)}var Kd=at(),gH=Ee,qE=fe,oot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(vH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}yH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=$8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Kd(e).pointerEl=new I0[i.type](gH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Kd(e).labelEl=new st(gH(t.label));e.add(i),mH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Kd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Kd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),mH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:qE(this._onHandleDragMove,this,0,0),drift:qE(this._onHandleDragMove,this),ondragend:qE(this._onHandleDragEnd,this)}),r.add(a)),yH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,bv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){vH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,QE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(QE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(QE(a)),Kd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),gy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function vH(n,e,t,r){nie(Kd(t).lastProp,r)||(Kd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function nie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&nie(n[a],r)}),!!t}else return n===e}function mH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function QE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function yH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const gM=oot;function vM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function rie(n,e,t,r,a){var i=t.get("value"),o=aie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=pv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),sot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function sot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function aie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:P8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function mM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function iie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rie(e,r,a,i,{position:mM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function bH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var lot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=_H(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=vM(i),h=uot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=_H(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(gM);function _H(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var uot={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],SH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],SH(n))}}};function SH(n){return n.dim==="x"?0:1}const cot=lot;var dot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const fot=dot;var Rl=at(),hot=M;function sie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),pot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function pot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(CH,"click")),t("mousemove",Ae(CH,"mousemove")),t("globalout",vot);function t(r,a){n.on(r,function(i){var o=mot(e);hot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),got(o.pendings,e)})}}function got(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function vot(n,e,t){n.handler("leave",null,t)}function CH(n,e,t,r){e.handler(n,t,r)}function mot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const bot=yot;function lie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=jf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var wH=at();function _ot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){k2(a)&&(a=lie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=k2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||k2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Cot,h),showTooltip:Ae(wot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Oot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&xH(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,TH(S),TH(y)))),m[y.key]=T}})}),M(m,function(y,b){xH(c[b],y,g,!0,f)}),xot(h,c,f),Tot(p,a,n,o),Eot(c,o,t),f}}function xH(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=Sot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function Sot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Cot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function wot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Sy(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function xot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Tot(n,e,t,r){if(k2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Eot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=wH(r)[a]||{},o=wH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Oot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function TH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function k2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",cot),n.registerComponentModel(fot),n.registerComponentView(bot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_ot)}function Iot(n){He(Lre),He(z0)}var Pot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=vM(i),p=Aot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Dot(r,a,i,l,g);rie(t,a,i,o,m)},e}(gM);function Dot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Aot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:yM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:bH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:bH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Mot=Pot;var Rot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Lot=Rot;var bM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);or(bM,R0);var kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(bM),Not=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(bM),_M=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);_M.prototype.dataToRadius=cs.prototype.dataToCoord;_M.prototype.radiusToData=cs.prototype.coordToData;const Fot=_M;var $ot=at(),SM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=$ot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);SM.prototype.dataToAngle=cs.prototype.dataToCoord;SM.prototype.angleToData=cs.prototype.coordToData;const Vot=SM;var uie=["radius","angle"],jot=function(){function n(e){this.dimensions=uie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fot,this._angleAxis=new Vot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=EH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=EH(t);return a===this?this.pointToData(r):null},n}();function EH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const zot=jot;function Bot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Hot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(gC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(gC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Uot(n){return n.mainType==="angleAxis"}function OH(n,e){if(n.type=e.get("type"),n.scale=eT(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Uot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Wot={dimensions:uie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new zot(a+"");i.update=Hot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");OH(o,l),OH(s,u),Bot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Got=Wot;var Yot=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function IH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});IH(u),IH(s),M(Yot,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Zot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Zot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Nx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function ast(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=die(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=cie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=PH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=PH(t);return a===this?this.pointToData(r):null},n}();function PH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function mst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new vst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var yst={create:mst,dimensions:hie};const bst=yst;var DH=["x","y"],_st=["width","height"],Sst=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=e3(l,1-DC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=vM(i),h=Cst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=DC(o),u=e3(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=e3(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(gM),Cst={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],DC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],DC(n))}}};function DC(n){return n.isHorizontal()?0:1}function e3(n,e){var t=n.getRect();return[t[DH[e]],t[DH[e]]+t[_st[e]]]}const wst=Sst;var xst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function Tst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",wst),n.registerComponentView(xst),n.registerComponentView(hst),n.registerComponentModel(JE),wg(n,"single",JE,JE.defaultOption),n.registerCoordinateSystem("single",bst)}var Est=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=gv(t);n.prototype.init.apply(this,arguments),AH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),AH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function AH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return MWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Ost=Est;var Ist=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?PWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/t3)-Math.floor(t[0].time/t3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function MH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Ast=Dst;function Mst(n){n.registerComponentModel(Ost),n.registerComponentView(Pst),n.registerCoordinateSystem("calendar",Ast)}function Rst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Lst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),qee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var pie=["transition","enterFrom","leaveTo"],kst=pie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?pie:kst,a=0;a=0;c--){var d=a[c],f=dr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Gx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){N2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(LH,n)?LH[n]:e8(n),t=new e({});return to(t).type=n,t}function kH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function N2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){N2(i,e,t,r)}),lT(n,e,r),t.removeKey(to(n).id))}function NH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function Vst(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xee),function(e){delete n[e]}),n}function jst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function zst(n){n.registerComponentModel(Fst),n.registerComponentView($st),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var FH=["x","y","radius","angle","single"],Bst=["cartesian2d","polar","singleAxis"];function Hst(n){var e=n.get("coordinateSystem");return Be(Bst,e)>=0}function ic(n){return n+"Axis"}function Ust(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function gie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var n3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=$H(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=$H(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(FH,function(a){var i=this.getReferringComponents(ic(a),uHe);if(i.specified){r=!0;var o=new n3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new n3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(FH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new n3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=xJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function Qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){_Ze(r,o.getData(),e)});var a=n.getAxisModel(),i=Mne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Jst=qst;var elt={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Jst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const tlt=elt;function nlt(n){n.registerAction("dataZoom",function(e,t){var r=Ust(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jH=!1;function wM(n){jH||(jH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,tlt),nlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rlt(n){n.registerComponentModel(Yst),n.registerComponentView(Xst),wM(n)}var oo=function(){function n(){}return n}(),vie={};function ip(n,e){vie[n]=e}function mie(n){return vie[n]}var alt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=mie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const ilt=alt;function olt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);xf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Gx(n,r,i,a)}function yie(n,e){var t=pv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var slt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(llt(m))S={onclick:_.option.onclick,featureName:m};else{var C=mie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=hv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),dv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}olt(o,t,a),o.add(yie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function llt(n){return n.indexOf("my")===0}const ult=slt;var clt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const dlt=clt;var zH="__ec_magicType_stack__",flt=[["line","bar"],["stack"]],hlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(BH[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=BH[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(flt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),BH={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===zH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":zH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const plt=hlt;var uT=new Array(60).join("-"),Eg=" ";function glt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function vlt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function _lt(n){for(var e=n.split(/\n+/g),t=AC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Olt(n){var e=xM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return bie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Ilt(n){_ie(n).snapshots=null}function Plt(n){return xM(n).length}function xM(n){var e=_ie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Dlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Ilt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Alt=Dlt;var Mlt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Rlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=HH(t,e);M(Llt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=r3[r.brushType](0,i,a);r.__rangeOffset={offset:YH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=r3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=r3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?YH[r.brushType](i.values,o.offset,klt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Oae(a),isTargetByCursor:Pae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Iae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=HH(t,e),i=0;in[1]&&n.reverse(),n}function HH(n,e){return s1(n,e,{includeMainTypes:Mlt})}var Llt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:WH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:WH.geo})})}},UH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],WH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(wf(n)),e}},r3={lineX:Ae(GH,0),lineY:Ae(GH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function GH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var YH={lineX:Ae(KH,0),lineY:Ae(KH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function KH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function klt(n,e){var t=ZH(n),r=ZH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function ZH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const TM=Rlt;var ND=M,Nlt=aHe("toolbox-dataZoom_"),Flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new iM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),jlt(t,r,this,i,a),Vlt(t,r)},e.prototype.onclick=function(t,r,a){$lt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new TM(EM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Elt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),$lt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Olt(this.ecModel))}};function EM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Vlt(n,e){n.setIconStatus("back",Plt(e)>1?"emphasis":"normal")}function jlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new TM(EM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}$We("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=EM(r),o=s1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Nlt+u+d};f[c]=d,a.push(f)}return a});const zlt=Flt;function Blt(n){n.registerComponentModel(ilt),n.registerComponentView(ult),ip("saveAsImage",dlt),ip("magicType",plt),ip("dataView",Tlt),ip("dataZoom",zlt),ip("restore",Alt),He(rlt)}var Hlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Ult=Hlt;function Sie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Cie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function qlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+OM+r:",left"+r+",top"+r),Ylt+":"+a}function XH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+OM+":"+o+";":[["top",0],["left",0],[wie,o]]}function Qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Jlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Dte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(qlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Kee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(Qlt(c)),d!=null&&r.push("padding:"+pv(d).join("px ")+"px"),r.join(";")+";"}function qH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Pze(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var eut=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;qH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Glt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Klt+Jlt(e,!this._firstShow,this._longHide)+XH(i[0],i[1],!0)+("border-color:"+Hf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!Sie(r)&&(s=Xlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=eU(i,a);this._ticket="";var s=i.dataByCoordSys,l=uut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=aut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=lie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(eU(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=gm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;lf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=gm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new B4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=aie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=P8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Hf(P.color),l);var A=VV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=gm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=WV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=gm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new B4;y.marker=b.makeTooltipMarker("item",Hf(y.color),h);var _=VV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?WV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=gm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new B4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=zx(y.axisValue,h,m)),h=Zee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=lut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=out(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=tU(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=tU(h)?d[1]/2:h==="bottom"?d[1]:0),Sie(t)){var y=sut(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(gy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function gm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function eU(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function out(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function sut(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function lut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function tU(n){return n==="center"||n==="middle"}function uut(n,e,t){var r=z9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const cut=iut;function dut(n){He(z0),n.registerComponentModel(Ult),n.registerComponentView(cut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var fut=["rect","polygon","keep","clear"];function hut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),put(s),e&&!s.length&&s.push.apply(s,fut)}}function put(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var nU=M;function rU(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return nU(e,function(i){var o=r[i]=a();nU(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Tie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])?n[a]=Ee(e[a]):delete n[a]})}function gut(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return y8(t,s,d)}function u(d,f){jte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&lU(e)}};function lU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var wut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Eie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const xut=wut;var Tut="#ddd",Eut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Tut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return uU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=uU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function uU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Out=Eut;var Iut=["rect","polygon","lineX","lineY","keep","clear"],Put=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Iut.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Dut=Put;function Aut(n){n.registerComponentView(xut),n.registerComponentModel(Out),n.registerPreprocessor(hut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,yut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Dut)}var Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Rut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){oC(p,"_"+t.get("target"))}),g&&h.on("click",function(){oC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Lut(n){n.registerComponentModel(Mut),n.registerComponentView(Rut)}var kut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=dr(lv(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const cU=kut;var Oie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Xc(cU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(cU);or(Oie,h8.prototype);const Nut=Oie;var Fut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const $ut=Fut;var Vut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const jut=Vut;var i3=Math.PI,dU=at(),zut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=Hut(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:i3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*i3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-i3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=But(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new jut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=fU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Cf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Cf(y),dU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Uut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Cf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),hU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){hU(d,u._progressLine,s,a,i)}};this._currentPointer=fU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var o3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Iy(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!Qut(e)&&!X(e.coord)&&X(a)){var i=Pie(e,t,r,n);if(e=Ee(e),e.type&&o3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=o3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)o3[u[c]]&&(u[c]=PM(t,t.mapDimension(a[c]),u[c]));return e}}function Pie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Jut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Jut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Py(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function ect(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Die(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function PM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var s3=at(),tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){s3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!s3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){s3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nee(l):Y9(l))})}})},e.type="marker",e}(On);const DM=tct;function gU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(gU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=rct(o,t,r);r.setData(d),gU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(DM);function rct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Iy,e));n&&(i=It(i,Ae(Py,n)));var o=Die(!!n,r);return a.initData(i,null,o),a}const act=nct;function ict(n){n.registerComponentModel(qut),n.registerComponentView(act),n.registerPreprocessor(function(e){IM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var oct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const sct=oct;var M_=at(),lct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Pie(r,a,e,n);s=u.valueAxis;var c=vne(a,u.valueDataDim);l=PM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Iy(n,i[0]),Iy(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function MC(n){return!isNaN(n)&&!isFinite(n)}function vU(n,e,t,r){var a=1-n,i=r.dimensions[n];return MC(e[a])&&MC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function uct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(vU(1,t,r,n)||vU(0,t,r,n)))return!0}return Py(n,e[0])&&Py(n,e[1])}function l3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;MC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):MC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){l3(l,c,!0,i,a),l3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new J8);this.group.add(c.group);var d=dct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);l3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(DM);function dct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(lct,e,n,t));n&&(s=It(s,Ae(uct,n)));var l=Die(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const fct=cct;function hct(n){n.registerComponentModel(sct),n.registerComponentView(fct),n.registerPreprocessor(function(e){IM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var pct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const gct=pct;var R_=at(),vct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Iy(n,a),s=Iy(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=P9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function RC(n){return!isNaN(n)&&!isFinite(n)}function mU(n,e,t,r){var a=1-n;return RC(e[a])&&RC(t[a])}function mct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(mU(1,t,r)||mU(0,t,r))?!0:ect(n,a,i):Py(n,a)||Py(n,i)}function yU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);RC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):RC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var bU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(bU,function(d){return yU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=bct(o,t,r);r.setData(d),d.each(function(f){var h=J(bU,function(E){return yU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=YS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?YS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(DM);function bct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(vct,e,n,t));n&&(s=It(s,Ae(mct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const _ct=yct;function Sct(n){n.registerComponentModel(gct),n.registerComponentView(_ct),n.registerPreprocessor(function(e){IM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Cct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Cct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=wct;var Kh=Ae,zD=M,L_=Oe,xct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(_U,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(_U,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Cf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=Tct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Ect({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&dv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Cf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){xf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function Tct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Ect(n){var e=n.icon||"roundRect",t=ir(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function _U(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Aie(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=u3[o],l=c3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Mie);const Mct=Act;function Rct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Lct(n){He(Rie),n.registerComponentModel(Dct),n.registerComponentView(Mct),Rct(n)}function kct(n){He(Rie),He(Lct)}var Nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Xc(Oy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Oy);const Fct=Nct;var AM=at();function $ct(n,e,t){AM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function Vct(n,e){for(var t=AM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Uct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=AM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,jct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Lie(a,i);return}var c=Hct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),bv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),$ct(a,t,{pan:fe(d3.pan,this),zoom:fe(d3.zoom,this),scrollMove:fe(d3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Vct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(CM),d3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=f3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:wU(function(n,e,t,r,a,i){var o=f3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:wU(function(n,e,t,r,a,i){var o=f3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function wU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var f3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Gct=Wct;function kie(n){wM(n),n.registerComponentModel(Fct),n.registerComponentView(Gct),Uct(n)}var Yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Xc(Oy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Oy);const Kct=Yct;var ym=rt,xU=7,Zct=1,h3=30,Xct=7,bm="horizontal",TU="vertical",qct=5,Qct=["line","bar","candlestick","scatter"],Jct={easing:"cubicOut",duration:100,delay:0},edt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),bv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Xct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bm?{right:s.width-o.x-o.width,top:s.height-h3-xU-i,width:o.width,height:h3}:{right:xU,top:o.y,width:h3,height:o.height},u=gv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===TU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bm&&!o?{scaleY:l?1:-1,scaleX:1}:a===bm&&o?{scaleY:l?1:-1,scaleX:-1}:a===TU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new ym({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ym({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(Qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=tdt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new ym({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new ym({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Zct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!uC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ir(S,-1,0,2,2,null,!0);C.attr({cursor:EU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Cf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ir(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:EU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new ym({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Jct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=gie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(CM);function tdt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function EU(n){return n==="vertical"?"ns-resize":"ew-resize"}const ndt=edt;function Nie(n){n.registerComponentModel(Kct),n.registerComponentView(ndt),wM(n)}function rdt(n){He(kie),He(Nie)}var adt={get:function(n,e,t){var r=Ee((idt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},idt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Fie=adt;var OU=Gr.mapVisual,odt=Gr.eachVisual,sdt=X,IU=M,ldt=go,udt=xt,cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=ldt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){sdt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},IU(p,function(m,y){if(Gr.isValidType(y)){var b=Fie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";IU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=OU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;odt(S,function(w){w>C&&(C=w)}),_.symbolSize=OU(S,function(w){return udt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const LC=cdt;var PU=[20,140],ddt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=PU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=PU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=DU(this,"outOfRange",this.getExtent()),a=DU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();pdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],wf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,wf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||LU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=sHe(f,h);this._dispatchHighDown("downplay",F2(p[0],a)),this._dispatchHighDown("highlight",F2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(lf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function wdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(_dt,Sdt),M(Cdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(xdt))}function zie(n){n.registerComponentModel(fdt),n.registerComponentView(bdt),jie(n)}var Tdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Edt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Fie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Xc(LC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(LC),Edt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function $U(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Odt=Tdt;var Idt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),xf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:F2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Vie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ir(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}($ie);const Pdt=Idt;function Bie(n){n.registerComponentModel(Odt),n.registerComponentView(Pdt),jie(n)}function Ddt(n){He(zie),He(Bie)}var Adt={label:{enabled:!0},decal:{show:!1}},VU=at(),Mdt={};function Rdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Adt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),VU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Mdt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=VU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ndt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):yze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),$dt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function Qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Uie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Uie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function tft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function nft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),nft(e,u,c)}function kC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);kC(n,i[0],a,r),kC(n,i[1],t-a,r)}return r}function rft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function $C(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:fft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Yie(n){return oft(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function hft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var gft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;KU(n)&&(u=n,c=e),KU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(NC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;RM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:gft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?hft(w,T,P):pft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?ZU(c,u):ZU(f?e:n,[f?n:e]),p=0,g=0;gKie))for(var a=r.getIndices(),i=mft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function qU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function QU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function _ft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=qU(i),c=QU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=qU(i),u=QU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function JU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=JU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Zie(a,i,r)}function Cft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{wft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:nR(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(e2,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(e2,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(e2,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(f9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Eft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:LM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Eft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:LM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Oft="_description_1a8jp_1",Ift="_card_1a8jp_5",Pft={description:Oft,card:Ift};async function Xie(n){return Er.post("/webapp/getAllBackends",n)}async function Dft(n){return Er.post("/webapp/saveBackend",n)}async function qie(n){return Er.post("/webapp/updateBackend",n)}async function Aft(n){return Er.post("/webapp/deleteBackend",n)}function Mft(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Xie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Rft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Aft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Pft.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Dft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):qie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Rft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,qie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(kq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(av.ADMIN),"aria-label":"active switch"})},Lft="_description_1a8jp_1",kft="_card_1a8jp_5",eW={description:Lft,card:kft};async function Nft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var Qie;function be(){return Qie.apply(null,arguments)}function Fft(n){Qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function If(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function kM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Jie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var VM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,b3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function Bft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Hft(n){var e=n.match(VM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Uft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(VM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Gft="Invalid date";function Yft(){return this._invalidDate}var Kft="%d",Zft=/\d{1,2}/;function Xft(n){return this._ordinal.replace("%d",n)}var qft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Jft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var b1={};function ma(n,e){var t=n.toLowerCase();b1[t]=b1[t+"s"]=b1[e]=n}function Po(n){return typeof n=="string"?b1[n]||b1[n.toLowerCase()]:void 0}function jM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var roe={};function ya(n,e){roe[n]=e}function eht(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:roe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function dT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function Cv(n,e){return function(t){return t!=null?(aoe(this,n,t),be.updateOffset(this,e),this):VC(this,n)}}function VC(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function aoe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&dT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),mT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function tht(n){return n=Po(n),fl(this[n])?this[n]():this}function nht(n,e){if(typeof n=="object"){n=jM(n);var t=eht(n),r,a=t.length;for(r=0;r68?1900:2e3)};var poe=Cv("FullYear",!0);function Sht(){return dT(this.year())}function Cht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Dy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function zC(n,e,t){var r=7+e-t,a=(7+Dy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function goe(n,e,t,r,a){var i=(7+t-r)%7,o=zC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=_1(l)+s):s>_1(n)?(l=n+1,u=s-_1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Ay(n,e,t){var r=zC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=zC(n,e,t),a=zC(n+1,e,t);return(_1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function wht(n){return Ay(n,this._week.dow,this._week.doy).week}var xht={dow:0,doy:6};function Tht(){return this._week.dow}function Eht(){return this._week.doy}function Oht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Iht(n){var e=Ay(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Pht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Dht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function HM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Aht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),voe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rht=U0,Lht=U0,kht=U0;function Nht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?HM(t,this._week.dow):n?t[n.day()]:t}function Fht(n){return n===!0?HM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function $ht(n){return n===!0?HM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Vht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function jht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return Vht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Pht(n,this.localeData()),this.add(n-e,"d")):e}function Bht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Hht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Dht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Rht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ght(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function UM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function WM(){return this.hours()%12||12}function Yht(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,WM);Re("k",["kk",2],0,Yht);Re("hmm",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function moe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}moe("a",!0);moe("A",!1);ma("hour","h");ya("hour",13);function yoe(n,e){return e._meridiemParse}xe("a",yoe);xe("A",yoe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",soe);xe("hmmss",loe);xe("Hmm",soe);xe("Hmmss",loe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Kht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Zht=/[ap]\.?m?\.?/i,Xht=Cv("Hours",!0);function qht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var boe={calendar:jft,longDateFormat:Uft,invalidDate:Gft,ordinal:Kft,dayOfMonthOrdinalParse:Zft,relativeTime:qft,months:dht,monthsShort:uoe,week:xht,weekdays:Aht,weekdaysMin:Mht,weekdaysShort:voe,meridiemParse:Zht},xn={},_m={},My;function Qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=yT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&Qht(i,r)>=t-1)break;t--}e++}return My}function ept(n){return n.match("^[^/\\\\]*$")!=null}function yT(n){var e=null,t;if(xn[n]===void 0&&typeof z2<"u"&&z2&&z2.exports&&ept(n))try{e=My._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=GM(n,e),t?My=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),My._abbr}function GM(n,e){if(e!==null){var t,r=boe;if(e.abbr=n,xn[n]!=null)toe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=yT(e.parentLocale),t!=null)r=t._config;else return _m[e.parentLocale]||(_m[e.parentLocale]=[]),_m[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new $M(KD(r,e)),_m[n]&&_m[n].forEach(function(a){GM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function tpt(n,e){if(e!=null){var t,r,a=boe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=yT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new $M(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return My;if(!as(n)){if(e=yT(n),e)return e;n=[n]}return Jht(n)}function npt(){return ZD(xn)}function YM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>mT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[ff]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[ff]<0||t[ff]>999?ff:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=lht),nt(n)._overflowWeekday&&e===-1&&(e=uht),nt(n).overflow=e),n}var rpt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ipt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],opt=/^\/?Date\((-?\d+)/i,spt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lpt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _oe(n){var e,t,r=n._i,a=rpt.exec(r)||apt.exec(r),i,o,s,l,u=N_.length,c=_3.length;if(a){for(nt(n).iso=!0,e=0,t=u;e_1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Dy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[ff]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Dy:Cht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function vpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Ay(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Ay(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=goe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function ZM(n){if(n._f===be.ISO_8601){_oe(n);return}if(n._f===be.RFC_2822){Soe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=noe(n._f,n._locale).match(VM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),sht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=mpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),KM(n),YM(n)}function mpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function ypt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:cT()});function xoe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vpt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return FM(n,this),n=Coe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Dpt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jpt(){return this.isValid()?!this._isUTC:!1}function zpt(){return this.isValid()?this._isUTC:!1}function Eoe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return V2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[ff]*1e3))*a}):(r=Hpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Pd(r[2],a),M:Pd(r[3],a),w:Pd(r[4],a),d:Pd(r[5],a),h:Pd(r[6],a),m:Pd(r[7],a),s:Pd(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Upt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new bT(t),V2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),V2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=bT.prototype;ds.invalid=Ppt;function Pd(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function aW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Upt(n,e){var t;return n.isValid()&&e.isValid()?(e=qM(e,n),n.isBefore(e)?t=aW(n,e):(t=aW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Ooe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(toe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ioe(this,a,n),this}}function Ioe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&doe(n,VC(n,"Month")+o*t),i&&aoe(n,"Date",VC(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Wpt=Ooe(1,"add"),Gpt=Ooe(-1,"subtract");function Poe(n){return typeof n=="string"||n instanceof String}function Ypt(n){return is(n)||B0(n)||Poe(n)||uu(n)||Zpt(n)||Kpt(n)||n===null||n===void 0}function Kpt(n){var e=If(n)&&!kM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?$2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",$2(t,"Z")):$2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ugt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function cgt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=$2(this,n);return this.localeData().postformat(e)}function dgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fgt(n){return this.from(Sn(),n)}function hgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function pgt(n){return this.to(Sn(),n)}function Doe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Aoe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Moe(){return this._locale}var BC=1e3,Xp=60*BC,HC=60*Xp,Roe=(365*400+97)*24*HC;function qp(n,e){return(n%e+e)%e}function Loe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Roe:new Date(n,e,t).valueOf()}function koe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Roe:Date.UTC(n,e,t)}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),HC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,BC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=HC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),HC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=BC-qp(e,BC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function mgt(){return this._d.valueOf()-(this._offset||0)*6e4}function ygt(){return Math.floor(this.valueOf()/1e3)}function bgt(){return new Date(this.valueOf())}function _gt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Sgt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Cgt(){return this.isValid()?this.toISOString():null}function wgt(){return NM(this)}function xgt(){return oc({},nt(this))}function Tgt(){return nt(this).overflow}function Egt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",QM);xe("NN",QM);xe("NNN",QM);xe("NNNN",Fgt);xe("NNNNN",$gt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",wv);xe("yy",wv);xe("yyy",wv);xe("yyyy",wv);xe("yo",Vgt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Ogt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Pgt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Dgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Ggt.call(this,n,e,t,r,a))}function Ggt(n,e,t,r,a){var i=goe(n,e,t,r,a),o=Dy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",ioe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ygt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Foe=Cv("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",hT);xe("DDDD",ooe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Kgt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Zgt=Cv("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Xgt=Cv("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",hT,ioe);xe("SS",hT,Bi);xe("SSS",hT,ooe);var sc,$oe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,wv);function qgt(n,e){e[ff]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,qgt);$oe=Cv("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function Qgt(){return this._isUTC?"UTC":""}function Jgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Wpt;de.calendar=Qpt;de.clone=Jpt;de.diff=ogt;de.endOf=vgt;de.format=cgt;de.from=dgt;de.fromNow=fgt;de.to=hgt;de.toNow=pgt;de.get=tht;de.invalidAt=Tgt;de.isAfter=egt;de.isBefore=tgt;de.isBetween=ngt;de.isSame=rgt;de.isSameOrAfter=agt;de.isSameOrBefore=igt;de.isValid=wgt;de.lang=Aoe;de.locale=Doe;de.localeData=Moe;de.max=wpt;de.min=Cpt;de.parsingFlags=xgt;de.set=nht;de.startOf=ggt;de.subtract=Gpt;de.toArray=_gt;de.toObject=Sgt;de.toDate=bgt;de.toISOString=lgt;de.inspect=ugt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Cgt;de.toString=sgt;de.unix=ygt;de.valueOf=mgt;de.creationData=Egt;de.eraName=Dgt;de.eraNarrow=Agt;de.eraAbbr=Mgt;de.eraYear=Rgt;de.year=poe;de.isLeapYear=Sht;de.weekYear=jgt;de.isoWeekYear=zgt;de.quarter=de.quarters=Ygt;de.month=foe;de.daysInMonth=yht;de.week=de.weeks=Oht;de.isoWeek=de.isoWeeks=Iht;de.weeksInYear=Ugt;de.weeksInWeekYear=Wgt;de.isoWeeksInYear=Bgt;de.isoWeeksInISOWeekYear=Hgt;de.date=Foe;de.day=de.days=zht;de.weekday=Bht;de.isoWeekday=Hht;de.dayOfYear=Kgt;de.hour=de.hours=Xht;de.minute=de.minutes=Zgt;de.second=de.seconds=Xgt;de.millisecond=de.milliseconds=$oe;de.utcOffset=Mpt;de.utc=Lpt;de.local=kpt;de.parseZone=Npt;de.hasAlignedHourOffset=Fpt;de.isDST=$pt;de.isLocal=jpt;de.isUtcOffset=zpt;de.isUtc=Eoe;de.isUTC=Eoe;de.zoneAbbr=Qgt;de.zoneName=Jgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Foe);de.months=Io("months accessor is deprecated. Use month instead",foe);de.years=Io("years accessor is deprecated. Use year instead",poe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vpt);function evt(n){return Sn(n*1e3)}function tvt(){return Sn.apply(null,arguments).parseZone()}function Voe(n){return n}var Ft=$M.prototype;Ft.calendar=zft;Ft.longDateFormat=Wft;Ft.invalidDate=Yft;Ft.ordinal=Xft;Ft.preparse=Voe;Ft.postformat=Voe;Ft.relativeTime=Qft;Ft.pastFuture=Jft;Ft.set=Vft;Ft.eras=Ogt;Ft.erasParse=Igt;Ft.erasConvertYear=Pgt;Ft.erasAbbrRegex=kgt;Ft.erasNameRegex=Lgt;Ft.erasNarrowRegex=Ngt;Ft.months=pht;Ft.monthsShort=ght;Ft.monthsParse=mht;Ft.monthsRegex=_ht;Ft.monthsShortRegex=bht;Ft.week=wht;Ft.firstDayOfYear=Eht;Ft.firstDayOfWeek=Tht;Ft.weekdays=Nht;Ft.weekdaysMin=$ht;Ft.weekdaysShort=Fht;Ft.weekdaysParse=jht;Ft.weekdaysRegex=Uht;Ft.weekdaysShortRegex=Wht;Ft.weekdaysMinRegex=Ght;Ft.isPM=Kht;Ft.meridiem=qht;function UC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function joe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return UC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=UC(n,r,t,"month");return a}function eR(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return UC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=UC(e,(o+i)%7,r,"day");return s}function nvt(n,e){return joe(n,e,"months")}function rvt(n,e){return joe(n,e,"monthsShort")}function avt(n,e,t){return eR(n,e,t,"weekdays")}function ivt(n,e,t){return eR(n,e,t,"weekdaysShort")}function ovt(n,e,t){return eR(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function svt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function zoe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function lvt(n,e){return zoe(this,n,e,1)}function uvt(n,e){return zoe(this,n,e,-1)}function iW(n){return n<0?Math.floor(n):Math.ceil(n)}function cvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=iW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(Boe(e)),t+=l,e-=iW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function Boe(n){return n*4800/146097}function JD(n){return n*146097/4800}function dvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+Boe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function fvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var hvt=gu("ms"),pvt=gu("s"),gvt=gu("m"),vvt=gu("h"),mvt=gu("d"),yvt=gu("w"),bvt=gu("M"),_vt=gu("Q"),Svt=gu("y");function Cvt(){return ds(this)}function wvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var xvt=vh("milliseconds"),Tvt=vh("seconds"),Evt=vh("minutes"),Ovt=vh("hours"),Ivt=vh("days"),Pvt=vh("months"),Dvt=vh("years");function Avt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mvt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Rvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Mvt.apply(null,f)}function Lvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function kvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function Nvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Rvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var S3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function ST(){if(!this.isValid())return this.localeData().invalidDate();var n=S3(this._milliseconds)/1e3,e=S3(this._days),t=S3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=bT.prototype;Tt.isValid=Ipt;Tt.abs=svt;Tt.add=lvt;Tt.subtract=uvt;Tt.as=dvt;Tt.asMilliseconds=hvt;Tt.asSeconds=pvt;Tt.asMinutes=gvt;Tt.asHours=vvt;Tt.asDays=mvt;Tt.asWeeks=yvt;Tt.asMonths=bvt;Tt.asQuarters=_vt;Tt.asYears=Svt;Tt.valueOf=fvt;Tt._bubble=cvt;Tt.clone=Cvt;Tt.get=wvt;Tt.milliseconds=xvt;Tt.seconds=Tvt;Tt.minutes=Evt;Tt.hours=Ovt;Tt.days=Ivt;Tt.weeks=Avt;Tt.months=Pvt;Tt.years=Dvt;Tt.humanize=Nvt;Tt.toISOString=ST;Tt.toString=ST;Tt.toJSON=ST;Tt.locale=Doe;Tt.localeData=Moe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ST);Tt.lang=Aoe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",gT);xe("X",aht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Fft(Sn);be.fn=de;be.min=xpt;be.max=Tpt;be.now=Ept;be.utc=dl;be.unix=evt;be.months=nvt;be.isDate=B0;be.locale=Tc;be.invalid=cT;be.duration=ds;be.isMoment=is;be.weekdays=avt;be.parseZone=tvt;be.localeData=pu;be.isDuration=V2;be.monthsShort=rvt;be.weekdaysMin=ovt;be.defineLocale=GM;be.updateLocale=tpt;be.locales=npt;be.weekdaysShort=ivt;be.normalizeUnits=Po;be.relativeTimeRounding=Lvt;be.relativeTimeThreshold=kvt;be.calendarFormat=qpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Fvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function $vt(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Xie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),Nft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Fvt(b)}),y=b=>V.jsx(Nf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(av.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const Vvt="_description_1a8jp_1",jvt="_card_1a8jp_5",oW={description:Vvt,card:jvt};async function zvt(n){return Er.post("/webapp/findSelector",n)}async function Bvt(n){return Er.post("/webapp/saveSelector",n)}async function Hvt(n){return Er.post("/webapp/updateSelector",n)}async function Uvt(n){return Er.post("/webapp/deleteSelector",n)}function Wvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{zvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Uvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Bvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Hvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Gvt="_description_1a8jp_1",Yvt="_card_1a8jp_5",sW={description:Gvt,card:Yvt};async function Kvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function qvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function Qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Kvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{qvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsxs(yx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Xvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const tR=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Zje,{className:Rt.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(xft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Wje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Mft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Hje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(Qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Yje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Wvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(zje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx($vt,{})}}],e6=tR.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function nR(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Jvt=n=>{const e=$i(),t=jQ(),r=Mg(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{cje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Fd.Auto,Fd.Light,Fd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(x5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:V.jsx(mL,{to:"/",style:{textDecoration:"none"},children:"Trino Gateway"})},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Fd.Auto?V.jsx(m5e,{className:Rt.semiIconsBell}):p===Fd.Light?V.jsx($5e,{className:Rt.semiIconsBell}):p===Fd.Dark?V.jsx(_5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(a5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(x5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(mL,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:tR.filter(m=>nR(m,e)),children:V.jsx(x5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(yZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(mZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(f5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var emt=Object.defineProperty,lW=Object.getOwnPropertySymbols,tmt=Object.prototype.hasOwnProperty,nmt=Object.prototype.propertyIsEnumerable,uW=(n,e,t)=>e in n?emt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,rmt=(n,e)=>{for(var t in e||(e={}))tmt.call(e,t)&&uW(n,t,e[t]);if(lW)for(var t of lW(e))nmt.call(e,t)&&uW(n,t,e[t]);return n};function amt(n){return D.createElement("svg",rmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var imt=amt,omt=Object.defineProperty,cW=Object.getOwnPropertySymbols,smt=Object.prototype.hasOwnProperty,lmt=Object.prototype.propertyIsEnumerable,dW=(n,e,t)=>e in n?omt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,umt=(n,e)=>{for(var t in e||(e={}))smt.call(e,t)&&dW(n,t,e[t]);if(cW)for(var t of cW(e))lmt.call(e,t)&&dW(n,t,e[t]);return n};function cmt(n){return D.createElement("svg",umt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var dmt=cmt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=fW.get("token");e&&(n.updateToken(e),fW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Jvt,{children:V.jsxs(sce,{children:[tR.flatMap(e=>nR(e,n)?[D.createElement(X_,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(X_,{path:"/",element:V.jsx(ice,{to:"/dashboard"})}),V.jsx(X_,{path:"*",element:V.jsx(gmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(pje,{})})})}function gmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(hq,{image:V.jsx(dmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(imt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function vmt(){const n=jQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=LM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}C3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(hmt,{})}))});export default mmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js b/gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js deleted file mode 100644 index c01443e29..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-LPSIbY_J.js +++ /dev/null @@ -1,169 +0,0 @@ -var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css b/gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css deleted file mode 100644 index d11631625..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-WjKhXYTT.css +++ /dev/null @@ -1 +0,0 @@ -@keyframes slide-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in-from-top{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.light{--login-shadow: 0px 4px 14px 0px #0000001a, 0px 0px 1px 0px #0000004d;--semi-color-bg-0: rgba(245, 245, 245, 1)}.dark{--login-shadow: 0px 4px 14px 0px #FFFFFF1a, 0px 0px 1px 0px #FFFFFF4d}:root{--login-shadow: 0px 4px 14px 0px #0000001a, 0px 0px 1px 0px #0000004d;--semi-color-bg-0: rgba(245, 245, 245, 1);font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif}@media (prefers-color-scheme: dark){:root{--login-shadow: 0px 4px 14px 0px #FFFFFF1a, 0px 0px 1px 0px #FFFFFF4d}}body{padding:0;margin:0;color:var(--semi-color-text-0);background:var(--semi-color-bg-0)}body{--semi-transition_duration-slowest:0ms;--semi-transition_duration-slower:0ms;--semi-transition_duration-slow:0ms;--semi-transition_duration-normal:0ms;--semi-transition_duration-fast:0ms;--semi-transition_duration-faster:0ms;--semi-transition_duration-fastest:0ms;--semi-transition_duration-none:0ms;--semi-transition_function-linear:linear;--semi-transition_function-ease:ease;--semi-transition_function-easeIn:ease-in;--semi-transition_function-easeOut:ease-out;--semi-transition_function-easeInIOut:ease-in-out;--semi-transition_delay-none: 0ms;--semi-transition_delay-slowest:0ms;--semi-transition_delay-slower:0ms;--semi-transition_delay-slow:0ms;--semi-transition_delay-normal:0ms;--semi-transition_delay-fast:0ms;--semi-transition_delay-faster:0ms;--semi-transition_delay-fastest:0ms;--semi-transform_scale-none:scale(1,1);--semi-transform_scale-small:scale(1,1);--semi-transform_scale-medium:scale(1,1);--semi-transform_scale-large:scale(1,1);--semi-transform-rotate-none:rotate(0deg);--semi-transform_rotate-clockwise90deg:rotate(90deg);--semi-transform_rotate-clockwise180deg:rotate(180deg);--semi-transform_rotate-clockwise270deg:rotate(270deg);--semi-transform_rotate-clockwise360deg:rotate(360deg);--semi-transform_rotate-anticlockwise90deg:rotate(-90deg);--semi-transform_rotate-anticlockwise180deg:rotate(-180deg);--semi-transform_rotate-anticlockwise270deg:rotate(-270deg);--semi-transform_rotate-anticlockwise360deg:rotate(-360deg)}body,body .semi-always-light{--semi-amber-0: 254,251,235;--semi-amber-1: 252,245,206;--semi-amber-2: 249,232,158;--semi-amber-3: 246,216,111;--semi-amber-4: 243,198,65;--semi-amber-5: 240,177,20;--semi-amber-6: 200,138,15;--semi-amber-7: 160,102,10;--semi-amber-8: 120,70,6;--semi-amber-9: 80,43,3;--semi-black: 0,0,0;--semi-blue-0: 234,245,255;--semi-blue-1: 203,231,254;--semi-blue-2: 152,205,253;--semi-blue-3: 101,178,252;--semi-blue-4: 50,149,251;--semi-blue-5: 0,100,250;--semi-blue-6: 0,98,214;--semi-blue-7: 0,79,179;--semi-blue-8: 0,61,143;--semi-blue-9: 0,44,107;--semi-cyan-0: 229,247,248;--semi-cyan-1: 194,239,240;--semi-cyan-2: 138,221,226;--semi-cyan-3: 88,203,211;--semi-cyan-4: 44,184,197;--semi-cyan-5: 5,164,182;--semi-cyan-6: 3,134,152;--semi-cyan-7: 1,105,121;--semi-cyan-8: 0,77,91;--semi-cyan-9: 0,50,61;--semi-green-0: 236,247,236;--semi-green-1: 208,240,209;--semi-green-2: 164,224,167;--semi-green-3: 125,209,130;--semi-green-4: 90,194,98;--semi-green-5: 59,179,70;--semi-green-6: 48,149,59;--semi-green-7: 37,119,47;--semi-green-8: 27,89,36;--semi-green-9: 17,60,24;--semi-grey-0: 249,249,249;--semi-grey-1: 230,232,234;--semi-grey-2: 198,202,205;--semi-grey-3: 167,171,176;--semi-grey-4: 136,141,146;--semi-grey-5: 107,112,117;--semi-grey-6: 85,91,97;--semi-grey-7: 65,70,76;--semi-grey-8: 46,50,56;--semi-grey-9: 28,31,35;--semi-indigo-0: 236,239,248;--semi-indigo-1: 209,216,240;--semi-indigo-2: 167,179,225;--semi-indigo-3: 128,144,211;--semi-indigo-4: 94,111,196;--semi-indigo-5: 63,81,181;--semi-indigo-6: 51,66,161;--semi-indigo-7: 40,52,140;--semi-indigo-8: 31,40,120;--semi-indigo-9: 23,29,99;--semi-light-blue-0: 233,247,253;--semi-light-blue-1: 201,236,252;--semi-light-blue-2: 149,216,248;--semi-light-blue-3: 98,195,245;--semi-light-blue-4: 48,172,241;--semi-light-blue-5: 0,149,238;--semi-light-blue-6: 0,123,202;--semi-light-blue-7: 0,99,167;--semi-light-blue-8: 0,75,131;--semi-light-blue-9: 0,53,95;--semi-light-green-0: 243,248,236;--semi-light-green-1: 227,240,208;--semi-light-green-2: 200,226,165;--semi-light-green-3: 173,211,126;--semi-light-green-4: 147,197,91;--semi-light-green-5: 123,182,60;--semi-light-green-6: 100,152,48;--semi-light-green-7: 78,121,38;--semi-light-green-8: 57,91,27;--semi-light-green-9: 37,61,18;--semi-lime-0: 242,250,230;--semi-lime-1: 227,246,197;--semi-lime-2: 203,237,142;--semi-lime-3: 183,227,91;--semi-lime-4: 167,218,44;--semi-lime-5: 155,209,0;--semi-lime-6: 126,174,0;--semi-lime-7: 99,139,0;--semi-lime-8: 72,104,0;--semi-lime-9: 47,70,0;--semi-orange-0: 255,248,234;--semi-orange-1: 254,238,204;--semi-orange-2: 254,217,152;--semi-orange-3: 253,193,101;--semi-orange-4: 253,166,51;--semi-orange-5: 252,136,0;--semi-orange-6: 210,103,0;--semi-orange-7: 168,74,0;--semi-orange-8: 126,49,0;--semi-orange-9: 84,29,0;--semi-pink-0: 253,236,239;--semi-pink-1: 251,207,216;--semi-pink-2: 246,160,181;--semi-pink-3: 242,115,150;--semi-pink-4: 237,72,123;--semi-pink-5: 233,30,99;--semi-pink-6: 197,19,86;--semi-pink-7: 162,11,72;--semi-pink-8: 126,5,58;--semi-pink-9: 90,1,43;--semi-purple-0: 247,233,247;--semi-purple-1: 239,202,240;--semi-purple-2: 221,155,224;--semi-purple-3: 201,111,209;--semi-purple-4: 180,73,194;--semi-purple-5: 158,40,179;--semi-purple-6: 135,30,158;--semi-purple-7: 113,22,138;--semi-purple-8: 92,15,117;--semi-purple-9: 73,10,97;--semi-red-0: 254,242,237;--semi-red-1: 254,221,210;--semi-red-2: 253,183,165;--semi-red-3: 251,144,120;--semi-red-4: 250,102,76;--semi-red-5: 249,57,32;--semi-red-6: 213,37,21;--semi-red-7: 178,20,12;--semi-red-8: 142,8,5;--semi-red-9: 106,1,3;--semi-teal-0: 228,247,244;--semi-teal-1: 192,240,232;--semi-teal-2: 135,224,211;--semi-teal-3: 84,209,193;--semi-teal-4: 39,194,176;--semi-teal-5: 0,179,161;--semi-teal-6: 0,149,137;--semi-teal-7: 0,119,111;--semi-teal-8: 0,89,85;--semi-teal-9: 0,60,58;--semi-violet-0: 243,237,249;--semi-violet-1: 226,209,244;--semi-violet-2: 196,167,233;--semi-violet-3: 166,127,221;--semi-violet-4: 136,91,210;--semi-violet-5: 106,58,199;--semi-violet-6: 87,47,179;--semi-violet-7: 70,37,158;--semi-violet-8: 54,28,138;--semi-violet-9: 40,20,117;--semi-white: 255,255,255;--semi-yellow-0: 255,253,234;--semi-yellow-1: 254,251,203;--semi-yellow-2: 253,243,152;--semi-yellow-3: 252,232,101;--semi-yellow-4: 251,218,50;--semi-yellow-5: 250,200,0;--semi-yellow-6: 208,170,0;--semi-yellow-7: 167,139,0;--semi-yellow-8: 125,106,0;--semi-yellow-9: 83,72,0}body[theme-mode=dark],body .semi-always-dark{--semi-red-0: 108,9,11;--semi-red-1: 144,17,16;--semi-red-2: 180,32,25;--semi-red-3: 215,51,36;--semi-red-4: 251,73,50;--semi-red-5: 252,114,90;--semi-red-6: 253,153,131;--semi-red-7: 253,190,172;--semi-red-8: 254,224,213;--semi-red-9: 255,243,239;--semi-pink-0: 92,7,48;--semi-pink-1: 128,14,65;--semi-pink-2: 164,23,81;--semi-pink-3: 199,34,97;--semi-pink-4: 235,47,113;--semi-pink-5: 239,86,134;--semi-pink-6: 243,126,159;--semi-pink-7: 247,168,188;--semi-pink-8: 251,211,220;--semi-pink-9: 253,238,241;--semi-purple-0: 74,16,97;--semi-purple-1: 94,23,118;--semi-purple-2: 115,31,138;--semi-purple-3: 137,40,159;--semi-purple-4: 160,51,179;--semi-purple-5: 181,83,194;--semi-purple-6: 202,120,209;--semi-purple-7: 221,160,225;--semi-purple-8: 239,206,240;--semi-purple-9: 247,235,247;--semi-violet-0: 64,27,119;--semi-violet-1: 76,36,140;--semi-violet-2: 88,46,160;--semi-violet-3: 100,57,181;--semi-violet-4: 114,70,201;--semi-violet-5: 136,101,212;--semi-violet-6: 162,136,223;--semi-violet-7: 190,173,233;--semi-violet-8: 221,212,244;--semi-violet-9: 241,238,250;--semi-indigo-0: 23,30,101;--semi-indigo-1: 32,41,122;--semi-indigo-2: 41,54,142;--semi-indigo-3: 52,68,163;--semi-indigo-4: 64,83,183;--semi-indigo-5: 95,113,197;--semi-indigo-6: 129,145,212;--semi-indigo-7: 167,180,226;--semi-indigo-8: 209,216,241;--semi-indigo-9: 237,239,248;--semi-blue-0: 5,49,112;--semi-blue-1: 10,70,148;--semi-blue-2: 19,92,184;--semi-blue-3: 29,117,219;--semi-blue-4: 41,144,255;--semi-blue-5: 84,169,255;--semi-blue-6: 127,193,255;--semi-blue-7: 169,215,255;--semi-blue-8: 212,236,255;--semi-blue-9: 239,248,255;--semi-light-blue-0: 0,55,97;--semi-light-blue-1: 0,77,133;--semi-light-blue-2: 3,102,169;--semi-light-blue-3: 10,129,204;--semi-light-blue-4: 19,159,240;--semi-light-blue-5: 64,180,243;--semi-light-blue-6: 110,200,246;--semi-light-blue-7: 157,220,249;--semi-light-blue-8: 206,238,252;--semi-light-blue-9: 235,248,254;--semi-cyan-0: 4,52,61;--semi-cyan-1: 7,79,92;--semi-cyan-2: 10,108,123;--semi-cyan-3: 14,137,153;--semi-cyan-4: 19,168,184;--semi-cyan-5: 56,187,198;--semi-cyan-6: 98,205,212;--semi-cyan-7: 145,223,227;--semi-cyan-8: 198,239,241;--semi-cyan-9: 231,247,248;--semi-teal-0: 2,60,57;--semi-teal-1: 4,90,85;--semi-teal-2: 7,119,111;--semi-teal-3: 10,149,136;--semi-teal-4: 14,179,161;--semi-teal-5: 51,194,176;--semi-teal-6: 94,209,193;--semi-teal-7: 142,225,211;--semi-teal-8: 196,240,232;--semi-teal-9: 230,247,244;--semi-green-0: 18,60,25;--semi-green-1: 28,90,37;--semi-green-2: 39,119,49;--semi-green-3: 50,149,61;--semi-green-4: 62,179,73;--semi-green-5: 93,194,100;--semi-green-6: 127,209,132;--semi-green-7: 166,225,168;--semi-green-8: 208,240,209;--semi-green-9: 236,247,236;--semi-light-green-0: 38,61,19;--semi-light-green-1: 59,92,29;--semi-light-green-2: 81,123,40;--semi-light-green-3: 103,153,52;--semi-light-green-4: 127,184,64;--semi-light-green-5: 151,198,95;--semi-light-green-6: 176,212,129;--semi-light-green-7: 201,227,167;--semi-light-green-8: 228,241,209;--semi-light-green-9: 243,248,237;--semi-lime-0: 49,70,3;--semi-lime-1: 75,105,5;--semi-lime-2: 103,141,9;--semi-lime-3: 132,176,12;--semi-lime-4: 162,211,17;--semi-lime-5: 174,220,58;--semi-lime-6: 189,229,102;--semi-lime-7: 207,237,150;--semi-lime-8: 229,246,201;--semi-lime-9: 243,251,233;--semi-yellow-0: 84,73,3;--semi-yellow-1: 126,108,6;--semi-yellow-2: 168,142,10;--semi-yellow-3: 210,175,15;--semi-yellow-4: 252,206,20;--semi-yellow-5: 253,222,67;--semi-yellow-6: 253,235,113;--semi-yellow-7: 254,245,160;--semi-yellow-8: 254,251,208;--semi-yellow-9: 255,254,236;--semi-amber-0: 81,46,9;--semi-amber-1: 121,75,15;--semi-amber-2: 161,107,22;--semi-amber-3: 202,143,30;--semi-amber-4: 242,183,38;--semi-amber-5: 245,202,80;--semi-amber-6: 247,219,122;--semi-amber-7: 250,234,166;--semi-amber-8: 252,246,210;--semi-amber-9: 254,251,237;--semi-orange-0: 85,31,3;--semi-orange-1: 128,53,6;--semi-orange-2: 170,80,10;--semi-orange-3: 213,111,15;--semi-orange-4: 255,146,20;--semi-orange-5: 255,174,67;--semi-orange-6: 255,199,114;--semi-orange-7: 255,221,161;--semi-orange-8: 255,239,208;--semi-orange-9: 255,249,237;--semi-grey-0: 28,31,35;--semi-grey-1: 46,50,56;--semi-grey-2: 65,70,76;--semi-grey-3: 85,91,97;--semi-grey-4: 107,112,117;--semi-grey-5: 136,141,146;--semi-grey-6: 167,171,176;--semi-grey-7: 198,202,205;--semi-grey-8: 230,232,234;--semi-grey-9: 249,249,249;--semi-white: 255, 255, 255;--semi-black: 0, 0, 0}body,body[theme-mode=dark] .semi-always-light{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;--semi-color-white: rgba(var(--semi-white), 1);--semi-color-black: rgba(var(--semi-black), 1);--semi-color-primary: rgba(var(--semi-blue-5), 1);--semi-color-primary-hover: rgba(var(--semi-blue-6), 1);--semi-color-primary-active: rgba(var(--semi-blue-7), 1);--semi-color-primary-disabled: rgba(var(--semi-blue-2), 1);--semi-color-primary-light-default: rgba(var(--semi-blue-0), 1);--semi-color-primary-light-hover: rgba(var(--semi-blue-1), 1);--semi-color-primary-light-active: rgba(var(--semi-blue-2), 1);--semi-color-secondary: rgba(var(--semi-light-blue-5), 1);--semi-color-secondary-hover: rgba(var(--semi-light-blue-6), 1);--semi-color-secondary-active: rgba(var(--semi-light-blue-7), 1);--semi-color-secondary-disabled: rgba(var(--semi-light-blue-2), 1);--semi-color-secondary-light-default: rgba(var(--semi-light-blue-0), 1);--semi-color-secondary-light-hover: rgba(var(--semi-light-blue-1), 1);--semi-color-secondary-light-active: rgba(var(--semi-light-blue-2), 1);--semi-color-tertiary: rgba(var(--semi-grey-5), 1);--semi-color-tertiary-hover: rgba(var(--semi-grey-6), 1);--semi-color-tertiary-active: rgba(var(--semi-grey-7), 1);--semi-color-tertiary-light-default: rgba(var(--semi-grey-0), 1);--semi-color-tertiary-light-hover: rgba(var(--semi-grey-1), 1);--semi-color-tertiary-light-active: rgba(var(--semi-grey-2), 1);--semi-color-default: rgba(var(--semi-grey-0), 1);--semi-color-default-hover: rgba(var(--semi-grey-1), 1);--semi-color-default-active: rgba(var(--semi-grey-2), 1);--semi-color-info: rgba(var(--semi-blue-5), 1);--semi-color-info-hover: rgba(var(--semi-blue-6), 1);--semi-color-info-active: rgba(var(--semi-blue-7), 1);--semi-color-info-disabled: rgba(var(--semi-blue-2), 1);--semi-color-info-light-default: rgba(var(--semi-blue-0), 1);--semi-color-info-light-hover: rgba(var(--semi-blue-1), 1);--semi-color-info-light-active: rgba(var(--semi-blue-2), 1);--semi-color-success: rgba(var(--semi-green-5), 1);--semi-color-success-hover: rgba(var(--semi-green-6), 1);--semi-color-success-active: rgba(var(--semi-green-7), 1);--semi-color-success-disabled: rgba(var(--semi-green-2), 1);--semi-color-success-light-default: rgba(var(--semi-green-0), 1);--semi-color-success-light-hover: rgba(var(--semi-green-1), 1);--semi-color-success-light-active: rgba(var(--semi-green-2), 1);--semi-color-danger: rgba(var(--semi-red-5), 1);--semi-color-danger-hover: rgba(var(--semi-red-6), 1);--semi-color-danger-active: rgba(var(--semi-red-7), 1);--semi-color-danger-light-default: rgba(var(--semi-red-0), 1);--semi-color-danger-light-hover: rgba(var(--semi-red-1), 1);--semi-color-danger-light-active: rgba(var(--semi-red-2), 1);--semi-color-warning: rgba(var(--semi-orange-5), 1);--semi-color-warning-hover: rgba(var(--semi-orange-6), 1);--semi-color-warning-active: rgba(var(--semi-orange-7), 1);--semi-color-warning-light-default: rgba(var(--semi-orange-0), 1);--semi-color-warning-light-hover: rgba(var(--semi-orange-1), 1);--semi-color-warning-light-active: rgba(var(--semi-orange-2), 1);--semi-color-focus-border: rgba(var(--semi-blue-5), 1);--semi-color-disabled-text: rgba(var(--semi-grey-9), .35);--semi-color-disabled-border: rgba(var(--semi-grey-1), 1);--semi-color-disabled-bg: rgba(var(--semi-grey-1), 1);--semi-color-disabled-fill: rgba(var(--semi-grey-8), .04);--semi-color-shadow: rgba(var(--semi-black), .04);--semi-color-link: rgba(var(--semi-blue-5), 1);--semi-color-link-hover: rgba(var(--semi-blue-6), 1);--semi-color-link-active: rgba(var(--semi-blue-7), 1);--semi-color-link-visited: rgba(var(--semi-blue-5), 1);--semi-color-border: rgba(var(--semi-grey-9), .08);--semi-color-nav-bg: rgba(var(--semi-white), 1);--semi-color-overlay-bg: rgba(22, 22, 26, .6);--semi-color-fill-0: rgba(var(--semi-grey-8), .05);--semi-color-fill-1: rgba(var(--semi-grey-8), .09);--semi-color-fill-2: rgba(var(--semi-grey-8), .13);--semi-color-bg-0: rgba(var(--semi-white), 1);--semi-color-bg-1: rgba(var(--semi-white), 1);--semi-color-bg-2: rgba(var(--semi-white), 1);--semi-color-bg-3: rgba(var(--semi-white), 1);--semi-color-bg-4: rgba(var(--semi-white), 1);--semi-color-text-0: rgba(var(--semi-grey-9), 1);--semi-color-text-1: rgba(var(--semi-grey-9), .8);--semi-color-text-2: rgba(var(--semi-grey-9), .62);--semi-color-text-3: rgba(var(--semi-grey-9), .35);--semi-shadow-elevated: 0 0 1px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .1);--semi-border-radius-extra-small: 3px;--semi-border-radius-small: 3px;--semi-border-radius-medium: 6px;--semi-border-radius-large: 12px;--semi-border-radius-circle: 50%;--semi-border-radius-full: 9999px;--semi-color-highlight-bg: rgba(var(--semi-yellow-4), 1);--semi-color-highlight: rgba(var(--semi-black), 1);--semi-color-data-0:rgba(22, 100, 255, 1);--semi-color-data-1:rgba(178, 207, 255, 1);--semi-color-data-2:rgba(26, 198, 255, 1);--semi-color-data-3:rgba(148, 239, 255, 1);--semi-color-data-4:rgba(255, 138, 0, 1);--semi-color-data-5:rgba(255, 206, 122, 1);--semi-color-data-6:rgba(60, 199, 128, 1);--semi-color-data-7:rgba(185, 237, 205, 1);--semi-color-data-8:rgba(116, 66, 212, 1);--semi-color-data-9:rgba(221, 197, 250, 1);--semi-color-data-10:rgba(255, 196, 0, 1);--semi-color-data-11:rgba(250, 232, 120, 1);--semi-color-data-12:rgba(48, 77, 119, 1);--semi-color-data-13:rgba(139, 149, 158, 1);--semi-color-data-14:rgba(180, 141, 235, 1);--semi-color-data-15:rgba(239, 227, 255, 1);--semi-color-data-16:rgba(0, 148, 136, 1);--semi-color-data-17:rgba(89, 186, 168, 1);--semi-color-data-18:rgba(255, 125, 218, 1);--semi-color-data-19:rgba(255, 207, 238, 1)}body[theme-mode=dark],body .semi-always-dark{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;--semi-color-white: rgba(228, 231, 245, 1);--semi-color-black: rgba(var(--semi-black), 1);--semi-color-primary: rgba(var(--semi-blue-5), 1);--semi-color-primary-hover: rgba(var(--semi-blue-6), 1);--semi-color-primary-active: rgba(var(--semi-blue-7), 1);--semi-color-primary-disabled: rgba(var(--semi-blue-2), 1);--semi-color-primary-light-default: rgba(var(--semi-blue-5), .2);--semi-color-primary-light-hover: rgba(var(--semi-blue-5), .3);--semi-color-primary-light-active: rgba(var(--semi-blue-5), .4);--semi-color-secondary: rgba(var(--semi-light-blue-5), 1);--semi-color-secondary-hover: rgba(var(--semi-light-blue-6), 1);--semi-color-secondary-active: rgba(var(--semi-light-blue-7), 1);--semi-color-secondary-disabled: rgba(var(--semi-light-blue-2), 1);--semi-color-secondary-light-default: rgba(var(--semi-light-blue-5), .2);--semi-color-secondary-light-hover: rgba(var(--semi-light-blue-5), .3);--semi-color-secondary-light-active: rgba(var(--semi-light-blue-5), .4);--semi-color-tertiary: rgba(var(--semi-grey-5), 1);--semi-color-tertiary-hover: rgba(var(--semi-grey-6), 1);--semi-color-tertiary-active: rgba(var(--semi-grey-7), 1);--semi-color-tertiary-light-default: rgba(var(--semi-grey-5), .2);--semi-color-tertiary-light-hover: rgba(var(--semi-grey-5), .3);--semi-color-tertiary-light-active: rgba(var(--semi-grey-5), .4);--semi-color-default: rgba(var(--semi-grey-0), 1);--semi-color-default-hover: rgba(var(--semi-grey-1), 1);--semi-color-default-active: rgba(var(--semi-grey-2), 1);--semi-color-info: rgba(var(--semi-blue-5), 1);--semi-color-info-hover: rgba(var(--semi-blue-6), 1);--semi-color-info-active: rgba(var(--semi-blue-7), 1);--semi-color-info-disabled: rgba(var(--semi-blue-2), 1);--semi-color-info-light-default: rgba(var(--semi-blue-5), .2);--semi-color-info-light-hover: rgba(var(--semi-blue-5), .3);--semi-color-info-light-active: rgba(var(--semi-blue-5), .4);--semi-color-success: rgba(var(--semi-green-5), 1);--semi-color-success-hover: rgba(var(--semi-green-6), 1);--semi-color-success-active: rgba(var(--semi-green-7), 1);--semi-color-success-disabled: rgba(var(--semi-green-2), 1);--semi-color-success-light-default: rgba(var(--semi-green-5), .2);--semi-color-success-light-hover: rgba(var(--semi-green-5), .3);--semi-color-success-light-active: rgba(var(--semi-green-5), .4);--semi-color-danger: rgba(var(--semi-red-5), 1);--semi-color-danger-hover: rgba(var(--semi-red-6), 1);--semi-color-danger-active: rgba(var(--semi-red-7), 1);--semi-color-danger-light-default: rgba(var(--semi-red-5), .2);--semi-color-danger-light-hover: rgba(var(--semi-red-5), .3);--semi-color-danger-light-active: rgba(var(--semi-red-5), .4);--semi-color-warning: rgba(var(--semi-orange-5), 1);--semi-color-warning-hover: rgba(var(--semi-orange-6), 1);--semi-color-warning-active: rgba(var(--semi-orange-7), 1);--semi-color-warning-light-default: rgba(var(--semi-orange-5), .2);--semi-color-warning-light-hover: rgba(var(--semi-orange-5), .3);--semi-color-warning-light-active: rgba(var(--semi-orange-5), .4);--semi-color-focus-border: rgba(var(--semi-blue-5), 1);--semi-color-disabled-text: rgba(var(--semi-grey-9), .35);--semi-color-disabled-border: rgba(var(--semi-grey-1), 1);--semi-color-disabled-bg: rgba(var(--semi-grey-1), 1);--semi-color-disabled-fill: rgba(var(--semi-grey-8), .04);--semi-color-link: rgba(var(--semi-blue-5), 1);--semi-color-link-hover: rgba(var(--semi-blue-6), 1);--semi-color-link-active: rgba(var(--semi-blue-7), 1);--semi-color-link-visited: rgba(var(--semi-blue-5), 1);--semi-color-nav-bg: rgba(35, 36, 41, 1);--semi-shadow-elevated: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 14px rgba(0, 0, 0, .25);--semi-color-overlay-bg: rgba(22, 22, 26, .6);--semi-color-fill-0: rgba(var(--semi-white), .12);--semi-color-fill-1: rgba(var(--semi-white), .16);--semi-color-fill-2: rgba(var(--semi-white), .2);--semi-color-border: rgba(var(--semi-white), .08);--semi-color-shadow: rgba(var(--semi-black), .04);--semi-color-bg-0: rgba(22, 22, 26, 1);--semi-color-bg-1: rgba(35, 36, 41, 1);--semi-color-bg-2: rgba(53, 54, 60, 1);--semi-color-bg-3: rgba(67, 68, 74, 1);--semi-color-bg-4: rgba(79, 81, 89, 1);--semi-color-text-0: rgba(var(--semi-grey-9), 1);--semi-color-text-1: rgba(var(--semi-grey-9), .8);--semi-color-text-2: rgba(var(--semi-grey-9), .6);--semi-color-text-3: rgba(var(--semi-grey-9), .35);--semi-border-radius-extra-small: 3px;--semi-border-radius-small: 3px;--semi-border-radius-medium: 6px;--semi-border-radius-large: 12px;--semi-border-radius-circle: 50%;--semi-border-radius-full: 9999px;--semi-color-highlight-bg: rgba(var(--semi-yellow-2), 1);--semi-color-highlight: rgba(var(--semi-white), 1);--semi-color-data-0:rgba(22, 100, 255, 1);--semi-color-data-1:rgba(178, 207, 255, 1);--semi-color-data-2:rgba(26, 198, 255, 1);--semi-color-data-3:rgba(148, 239, 255, 1);--semi-color-data-4:rgba(255, 138, 0, 1);--semi-color-data-5:rgba(255, 206, 122, 1);--semi-color-data-6:rgba(60, 199, 128, 1);--semi-color-data-7:rgba(185, 237, 205, 1);--semi-color-data-8:rgba(116, 66, 212, 1);--semi-color-data-9:rgba(221, 197, 250, 1);--semi-color-data-10:rgba(255, 196, 0, 1);--semi-color-data-11:rgba(250, 232, 120, 1);--semi-color-data-12:rgba(48, 77, 119, 1);--semi-color-data-13:rgba(139, 149, 158, 1);--semi-color-data-14:rgba(180, 141, 235, 1);--semi-color-data-15:rgba(239, 227, 255, 1);--semi-color-data-16:rgba(0, 148, 136, 1);--semi-color-data-17:rgba(89, 186, 168, 1);--semi-color-data-18:rgba(255, 125, 218, 1);--semi-color-data-19:rgba(255, 207, 238, 1)}.semi-light-scrollbar::-webkit-scrollbar,.semi-light-scrollbar *::-webkit-scrollbar{width:8px;height:8px}.semi-light-scrollbar::-webkit-scrollbar-track,.semi-light-scrollbar *::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.semi-light-scrollbar::-webkit-scrollbar-corner,.semi-light-scrollbar *::-webkit-scrollbar-corner{background-color:#0000}.semi-light-scrollbar::-webkit-scrollbar-thumb,.semi-light-scrollbar *::-webkit-scrollbar-thumb{border-radius:6px;background:transparent;transition:all 1s}.semi-light-scrollbar:hover::-webkit-scrollbar-thumb,.semi-light-scrollbar *:hover::-webkit-scrollbar-thumb{background:var(--semi-color-fill-2)}.semi-light-scrollbar::-webkit-scrollbar-thumb:hover,.semi-light-scrollbar *::-webkit-scrollbar-thumb:hover{background:var(--semi-color-fill-1)}.semi-typography{color:var(--semi-color-text-0);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-typography.semi-typography-secondary{color:var(--semi-color-text-1)}.semi-typography.semi-typography-tertiary{color:var(--semi-color-text-2)}.semi-typography.semi-typography-quaternary{color:var(--semi-color-text-3)}.semi-typography.semi-typography-warning{color:var(--semi-color-warning)}.semi-typography.semi-typography-success{color:var(--semi-color-success)}.semi-typography.semi-typography-danger{color:var(--semi-color-danger)}.semi-typography.semi-typography-link{color:var(--semi-color-link);font-weight:600}.semi-typography.semi-typography-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed;-webkit-user-select:none;user-select:none}.semi-typography.semi-typography-disabled.semi-typography-link{color:var(--semi-color-link)}.semi-typography-icon{margin-right:4px;vertical-align:middle;color:inherit}.semi-typography-small{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.semi-typography-small.semi-typography-paragraph{font-weight:400}.semi-typography code{border:1px solid var(--semi-color-border);border-radius:2px;color:var(--semi-color-text-2);background-color:var(--semi-color-fill-1);padding:2px 4px}.semi-typography mark{background-color:var(--semi-color-primary-light-default)}.semi-typography u{text-decoration:underline;text-decoration-skip-ink:auto}.semi-typography del{text-decoration:line-through}.semi-typography strong{font-weight:600}.semi-typography a{display:inline;color:var(--semi-color-link);cursor:pointer;text-decoration:none}.semi-typography a:visited{color:var(--semi-color-link-visited)}.semi-typography a:hover{color:var(--semi-color-link-hover)}.semi-typography a:active{color:var(--semi-color-link-active)}.semi-typography a .semi-typography-link-underline:hover{border-bottom:1px solid var(--semi-color-link-hover);margin-bottom:-1px}.semi-typography a .semi-typography-link-underline:active{border-bottom:1px solid var(--semi-color-link-active);margin-bottom:-1px}.semi-typography-ellipsis-single-line{overflow:hidden}.semi-typography-ellipsis-multiple-line{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}.semi-typography-ellipsis-multiple-line.semi-typography-ellipsis-multiple-line-text{display:-webkit-inline-box}.semi-typography-ellipsis-overflow-ellipsis{display:block;white-space:nowrap;text-overflow:ellipsis}.semi-typography-ellipsis-overflow-ellipsis.semi-typography-ellipsis-overflow-ellipsis-text{display:inline-block;max-width:100%;vertical-align:top}.semi-typography-ellipsis-expand{display:inline;margin-left:8px}.semi-typography-action-copy{display:inline-flex;vertical-align:middle;padding:0;margin-left:4px}.semi-typography a.semi-typography-action-copy-icon{display:inline-flex}.semi-typography-action-copied{display:inline-flex;padding:0;margin-left:4px;color:var(--semi-color-text-2)}.semi-typography-action-copied .semi-icon{vertical-align:middle;color:var(--semi-color-success)}.semi-typography-paragraph{margin:0}h1.semi-typography,.semi-typography-h1.semi-typography{font-size:32px;line-height:44px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h1.semi-typography.semi-typography-h1-weight-light,.semi-typography-h1.semi-typography.semi-typography-h1-weight-light{font-weight:200}h1.semi-typography.semi-typography-h1-weight-regular,.semi-typography-h1.semi-typography.semi-typography-h1-weight-regular{font-weight:400}h1.semi-typography.semi-typography-h1-weight-medium,.semi-typography-h1.semi-typography.semi-typography-h1-weight-medium{font-weight:500}h1.semi-typography.semi-typography-h1-weight-semibold,.semi-typography-h1.semi-typography.semi-typography-h1-weight-semibold{font-weight:600}h1.semi-typography.semi-typography-h1-weight-bold,.semi-typography-h1.semi-typography.semi-typography-h1-weight-bold{font-weight:700}h2.semi-typography,.semi-typography-h2.semi-typography{font-size:28px;line-height:40px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h2.semi-typography.semi-typography-h2-weight-light,.semi-typography-h2.semi-typography.semi-typography-h2-weight-light{font-weight:200}h2.semi-typography.semi-typography-h2-weight-regular,.semi-typography-h2.semi-typography.semi-typography-h2-weight-regular{font-weight:400}h2.semi-typography.semi-typography-h2-weight-medium,.semi-typography-h2.semi-typography.semi-typography-h2-weight-medium{font-weight:500}h2.semi-typography.semi-typography-h2-weight-semibold,.semi-typography-h2.semi-typography.semi-typography-h2-weight-semibold{font-weight:600}h2.semi-typography.semi-typography-h2-weight-bold,.semi-typography-h2.semi-typography.semi-typography-h2-weight-bold{font-weight:700}h3.semi-typography,.semi-typography-h3.semi-typography{font-size:24px;line-height:32px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h3.semi-typography.semi-typography-h3-weight-light,.semi-typography-h3.semi-typography.semi-typography-h3-weight-light{font-weight:200}h3.semi-typography.semi-typography-h3-weight-regular,.semi-typography-h3.semi-typography.semi-typography-h3-weight-regular{font-weight:400}h3.semi-typography.semi-typography-h3-weight-medium,.semi-typography-h3.semi-typography.semi-typography-h3-weight-medium{font-weight:500}h3.semi-typography.semi-typography-h3-weight-semibold,.semi-typography-h3.semi-typography.semi-typography-h3-weight-semibold{font-weight:600}h3.semi-typography.semi-typography-h3-weight-bold,.semi-typography-h3.semi-typography.semi-typography-h3-weight-bold{font-weight:700}h4.semi-typography,.semi-typography-h4.semi-typography{font-size:20px;line-height:28px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h4.semi-typography.semi-typography-h4-weight-light,.semi-typography-h4.semi-typography.semi-typography-h4-weight-light{font-weight:200}h4.semi-typography.semi-typography-h4-weight-regular,.semi-typography-h4.semi-typography.semi-typography-h4-weight-regular{font-weight:400}h4.semi-typography.semi-typography-h4-weight-medium,.semi-typography-h4.semi-typography.semi-typography-h4-weight-medium{font-weight:500}h4.semi-typography.semi-typography-h4-weight-semibold,.semi-typography-h4.semi-typography.semi-typography-h4-weight-semibold{font-weight:600}h4.semi-typography.semi-typography-h4-weight-bold,.semi-typography-h4.semi-typography.semi-typography-h4-weight-bold{font-weight:700}h5.semi-typography,.semi-typography-h5.semi-typography{font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h5.semi-typography.semi-typography-h5-weight-light,.semi-typography-h5.semi-typography.semi-typography-h5-weight-light{font-weight:200}h5.semi-typography.semi-typography-h5-weight-regular,.semi-typography-h5.semi-typography.semi-typography-h5-weight-regular{font-weight:400}h5.semi-typography.semi-typography-h5-weight-medium,.semi-typography-h5.semi-typography.semi-typography-h5-weight-medium{font-weight:500}h5.semi-typography.semi-typography-h5-weight-semibold,.semi-typography-h5.semi-typography.semi-typography-h5-weight-semibold{font-weight:600}h5.semi-typography.semi-typography-h5-weight-bold,.semi-typography-h5.semi-typography.semi-typography-h5-weight-bold{font-weight:700}h6.semi-typography,.semi-typography-h6.semi-typography{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin:0}h6.semi-typography.semi-typography-h6-weight-light,.semi-typography-h6.semi-typography.semi-typography-h6-weight-light{font-weight:200}h6.semi-typography.semi-typography-h6-weight-regular,.semi-typography-h6.semi-typography.semi-typography-h6-weight-regular{font-weight:400}h6.semi-typography.semi-typography-h6-weight-medium,.semi-typography-h6.semi-typography.semi-typography-h6-weight-medium{font-weight:500}h6.semi-typography.semi-typography-h6-weight-semibold,.semi-typography-h6.semi-typography.semi-typography-h6-weight-semibold{font-weight:600}h6.semi-typography.semi-typography-h6-weight-bold,.semi-typography-h6.semi-typography.semi-typography-h6-weight-bold{font-weight:700}p.semi-typography-extended,.semi-typography-paragraph.semi-typography-extended{line-height:24px;font-weight:400}.semi-rtl .semi-typography,.semi-portal-rtl .semi-typography{direction:rtl}.semi-rtl .semi-typography-link a,.semi-rtl .semi-typography a,.semi-portal-rtl .semi-typography-link a,.semi-portal-rtl .semi-typography a{display:inline-block}.semi-rtl .semi-typography-icon,.semi-portal-rtl .semi-typography-icon{margin-right:auto;margin-left:4px}.semi-rtl .semi-typography-ellipsis-expand,.semi-portal-rtl .semi-typography-ellipsis-expand{margin-left:auto}.semi-rtl .semi-typography-action-copy,.semi-portal-rtl .semi-typography-action-copy,.semi-rtl .semi-typography-action-copied,.semi-portal-rtl .semi-typography-action-copied{margin-left:auto;margin-right:4px}@keyframes semi-tooltip-zoomIn{0%{opacity:0;transform:scale(.8)}50%{opacity:1}}@keyframes semi-tooltip-bounceIn{0%{opacity:0;transform:scale(.6)}70%{opacity:1;transform:scale(1.01)}to{opacity:1;transform:scale(1);animation-timing-function:cubic-bezier(.215,.61,.355,1)}}@keyframes semi-tooltip-zoomOut{0%{opacity:1}60%{opacity:0;transform:scale(.8)}to{opacity:0}}.semi-tooltip-wrapper{position:relative;background-color:rgba(var(--semi-grey-7),1);color:var(--semi-color-bg-0);border-radius:var(--semi-border-radius-medium);padding:8px 12px;left:0;top:0;word-wrap:break-word;overflow-wrap:break-word;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;opacity:0;max-width:240px}.semi-tooltip-wrapper-show{opacity:1}.semi-tooltip-content{min-width:0}.semi-tooltip-trigger{display:inline-block;width:auto;height:auto}.semi-tooltip-with-arrow{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.semi-tooltip-animation-show{animation:semi-tooltip-zoomIn .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-tooltip-animation-hide{animation:semi-tooltip-zoomOut .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-tooltip-wrapper .semi-tooltip-icon-arrow{height:7px;width:24px;position:absolute;color:rgba(var(--semi-grey-7),1)}.semi-tooltip-wrapper[x-placement=top] .semi-tooltip-icon-arrow{left:50%;transform:translate(-50%);bottom:-6px}.semi-tooltip-wrapper[x-placement=top].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=top] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=topLeft] .semi-tooltip-icon-arrow{bottom:-6px;left:6px}.semi-tooltip-wrapper[x-placement=topLeft].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=topLeft] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=topRight] .semi-tooltip-icon-arrow{bottom:-6px;right:6px}.semi-tooltip-wrapper[x-placement=topRight].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=topRight] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=leftTop] .semi-tooltip-icon-arrow{width:7px;height:24px;right:-6px;top:5px}.semi-tooltip-wrapper[x-placement=leftTop].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=leftTop] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=left] .semi-tooltip-icon-arrow{width:7px;height:24px;right:-6px;top:50%;transform:translateY(-50%)}.semi-tooltip-wrapper[x-placement=left].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=left] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=leftBottom] .semi-tooltip-icon-arrow{width:7px;height:24px;right:-6px;bottom:5px}.semi-tooltip-wrapper[x-placement=leftBottom].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=leftBottom] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=rightTop] .semi-tooltip-icon-arrow{width:7px;height:24px;left:-6px;top:5px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=rightTop].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=rightTop] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=right] .semi-tooltip-icon-arrow{width:7px;height:24px;left:-6px;top:50%;transform:translateY(-50%) rotate(180deg)}.semi-tooltip-wrapper[x-placement=right].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=right] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=rightBottom] .semi-tooltip-icon-arrow{width:7px;height:24px;left:-6px;bottom:5px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=rightBottom].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=rightBottom] .semi-tooltip-with-arrow{min-height:34px}.semi-tooltip-wrapper[x-placement=bottomLeft] .semi-tooltip-icon-arrow{top:-6px;left:6px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=bottomLeft].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=bottomLeft] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=bottom] .semi-tooltip-icon-arrow{top:-6px;left:50%;transform:translate(-50%) rotate(180deg)}.semi-tooltip-wrapper[x-placement=bottom].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=bottom] .semi-tooltip-with-arrow{min-width:36px}.semi-tooltip-wrapper[x-placement=bottomRight] .semi-tooltip-icon-arrow{right:6px;top:-6px;transform:rotate(180deg)}.semi-tooltip-wrapper[x-placement=bottomRight].semi-tooltip-with-arrow,.semi-tooltip-wrapper[x-placement=bottomRight] .semi-tooltip-with-arrow{min-width:36px}.semi-rtl .semi-tooltip-wrapper,.semi-portal-rtl .semi-tooltip-wrapper{direction:rtl;padding-right:12px;padding-left:12px;left:auto;right:0}.semi-portal{position:absolute;top:0;left:0;width:100%;z-index:1}.semi-portal-inner{position:absolute;background-color:transparent;min-width:max-content}.semi-icon{display:inline-block;font-style:normal;line-height:0;text-align:center;text-transform:none;text-rendering:optimizeLegibility;fill:currentColor}.semi-icon-extra-small{font-size:8px}.semi-icon-small{font-size:12px}.semi-icon-default{font-size:16px}.semi-icon-large{font-size:20px}.semi-icon-extra-large{font-size:24px}.semi-icon-spinning{animation:.6s linear infinite semi-icon-animation-rotate;animation-fill-mode:forwards}@keyframes semi-icon-animation-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes semi-popover-zoomIn{0%{opacity:0;transform:scale(.8)}50%{opacity:1}}@keyframes semi-popover-zoomOut{0%{opacity:1}60%{opacity:0;transform:scale(.8)}to{opacity:0}}.semi-popover-wrapper{position:relative;background-color:var(--semi-color-bg-3);box-shadow:var(--semi-shadow-elevated);z-index:1030;border-radius:var(--semi-border-radius-medium);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;opacity:0}.semi-popover-wrapper-show{opacity:1}.semi-popover-trigger{display:inline-block;width:auto;height:auto}.semi-popover-title{padding:8px;border-bottom:1px solid var(--semi-color-border)}.semi-popover-confirm{position:absolute}.semi-popover-with-arrow{padding:12px;box-sizing:border-box}.semi-popover-animation-show{animation:semi-popover-zoomIn .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-popover-animation-hide{animation:semi-popover-zoomOut .1s cubic-bezier(.215,.61,.355,1);animation-fill-mode:forwards}.semi-popover-wrapper .semi-popover-icon-arrow{height:8px;width:24px;position:absolute;color:unset}.semi-popover-wrapper[x-placement=top] .semi-popover-icon-arrow{left:50%;transform:translate(-50%);bottom:-7px}.semi-popover-wrapper[x-placement=top].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=top] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=topLeft] .semi-popover-icon-arrow{bottom:-7px;left:6px}.semi-popover-wrapper[x-placement=topLeft].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=topLeft] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=topRight] .semi-popover-icon-arrow{bottom:-7px;right:6px}.semi-popover-wrapper[x-placement=topRight].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=topRight] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=leftTop] .semi-popover-icon-arrow{width:8px;height:24px;right:-7px;top:6px}.semi-popover-wrapper[x-placement=leftTop].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=leftTop] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=left] .semi-popover-icon-arrow{width:8px;height:24px;right:-7px;top:50%;transform:translateY(-50%)}.semi-popover-wrapper[x-placement=left].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=left] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=leftBottom] .semi-popover-icon-arrow{width:8px;height:24px;right:-7px;bottom:6px}.semi-popover-wrapper[x-placement=leftBottom].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=leftBottom] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=rightTop] .semi-popover-icon-arrow{width:8px;height:24px;left:-7px;top:6px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=rightTop].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=rightTop] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=right] .semi-popover-icon-arrow{width:8px;height:24px;left:-7px;top:50%;transform:translateY(-50%) rotate(180deg)}.semi-popover-wrapper[x-placement=right].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=right] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=rightBottom] .semi-popover-icon-arrow{width:8px;height:24px;left:-7px;bottom:6px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=rightBottom].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=rightBottom] .semi-popover-with-arrow{min-height:36px}.semi-popover-wrapper[x-placement=bottomLeft] .semi-popover-icon-arrow{top:-7px;left:6px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=bottomLeft].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=bottomLeft] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=bottom] .semi-popover-icon-arrow{top:-7px;left:50%;transform:translate(-50%) rotate(180deg)}.semi-popover-wrapper[x-placement=bottom].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=bottom] .semi-popover-with-arrow{min-width:36px}.semi-popover-wrapper[x-placement=bottomRight] .semi-popover-icon-arrow{right:6px;top:-7px;transform:rotate(180deg)}.semi-popover-wrapper[x-placement=bottomRight].semi-popover-with-arrow,.semi-popover-wrapper[x-placement=bottomRight] .semi-popover-with-arrow{min-width:36px}.semi-popover.semi-popover-rtl{direction:rtl}.semi-spin{position:relative;display:inline-block;width:20px;height:20px}@keyframes semi-animation-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.semi-spin-wrapper{text-align:center;position:absolute;width:100%;transform:translateY(-50%);top:50%;color:var(--semi-color-primary)}.semi-spin-wrapper>svg{animation:.6s linear infinite semi-animation-rotate;animation-fill-mode:forwards;vertical-align:top;width:20px;height:20px}.semi-spin-animate{display:inline-flex;animation:1.6s linear infinite semi-animation-rotate;animation-fill-mode:forwards}.semi-spin-children{opacity:.5;-webkit-user-select:none;user-select:none}.semi-spin-block{display:block}.semi-spin-block:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.semi-spin-block .semi-spin-wrapper{display:block}.semi-spin-block.semi-spin{height:auto;width:auto}.semi-spin-hidden:after{content:none}.semi-spin-hidden>.semi-spin-children{opacity:1;-webkit-user-select:auto;user-select:auto}.semi-spin-small{width:14px;height:14px}.semi-spin-small>.semi-spin-wrapper svg{width:14px;height:14px}.semi-spin-middle{width:20px;height:20px}.semi-spin-middle>.semi-spin-wrapper svg{width:20px;height:20px}.semi-spin-large{width:32px;height:32px}.semi-spin-large>.semi-spin-wrapper svg{width:32px;height:32px}.semi-spin-container{overflow:hidden}.semi-rtl .semi-spin,.semi-portal-rtl .semi-spin,.semi-rtl .semi-spin-container,.semi-portal-rtl .semi-spin-container{direction:rtl}@keyframes semi-input-active{0%{transform:scale(1)}to{transform:scale(.97)}}@keyframes semi-input-inactive{0%{transform:scale(.97)}to{transform:scale(1)}}.semi-input{transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-input-wrapper{display:inline-block;position:relative;vertical-align:middle;box-shadow:none;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:var(--semi-color-fill-0);border:1px transparent solid;border-radius:var(--semi-border-radius-small);width:100%;outline:none;cursor:text;box-sizing:border-box;color:var(--semi-color-text-0);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-input-wrapper-default{height:32px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:30px}.semi-input-wrapper-small{height:24px;font-size:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:22px}.semi-input-wrapper-large{height:40px;font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:38px}.semi-input-wrapper:hover{background-color:var(--semi-color-fill-1);border-color:transparent}.semi-input-wrapper-focus{background-color:var(--semi-color-fill-0);border:var(--semi-color-focus-border) solid 1px}.semi-input-wrapper-focus:hover{background-color:var(--semi-color-fill-0);border-color:var(--semi-color-focus-border)}.semi-input-wrapper-focus:active{background-color:var(--semi-color-fill-2);border-color:var(--semi-color-focus-border)}.semi-input-wrapper.semi-input-readonly{cursor:default}.semi-input-wrapper-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-input-wrapper-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-input-wrapper-error.semi-input-wrapper-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-wrapper-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger)}.semi-input-wrapper-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-input-wrapper-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-input-wrapper-warning.semi-input-wrapper-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-wrapper-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning)}.semi-input-wrapper__with-prefix{display:inline-flex;align-items:center}.semi-input-wrapper__with-prefix .semi-input{padding-left:0}.semi-input-wrapper__with-suffix{display:inline-flex;align-items:center}.semi-input-wrapper__with-suffix .semi-input{padding-right:0}.semi-input-wrapper-clearable,.semi-input-wrapper-modebtn{display:inline-flex;align-items:center}.semi-input-wrapper-hidden{border:none}.semi-input-wrapper .semi-icon{color:var(--semi-color-text-2)}.semi-input-wrapper .semi-input-clearbtn,.semi-input-wrapper .semi-input-modebtn{color:var(--semi-color-primary-hover)}.semi-input-wrapper .semi-input-clearbtn>svg,.semi-input-wrapper .semi-input-modebtn>svg{pointer-events:none}.semi-input-wrapper .semi-input-clearbtn:hover,.semi-input-wrapper .semi-input-modebtn:hover{cursor:pointer}.semi-input-wrapper .semi-input-clearbtn:hover .semi-icon,.semi-input-wrapper .semi-input-modebtn:hover .semi-icon{color:var(--semi-color-primary-hover)}.semi-input-wrapper .semi-input-clearbtn:focus-visible,.semi-input-wrapper .semi-input-modebtn:focus-visible{border-radius:var(--semi-border-radius-small);outline:2px solid var(--semi-color-primary-light-active);outline-offset:-1px}.semi-input-wrapper__with-suffix-icon.semi-input-wrapper-clearable:not(.semi-input-wrapper__with-suffix-hidden) .semi-input-clearbtn{min-width:24px;justify-content:flex-end}.semi-input-wrapper-modebtn.semi-input-wrapper-clearable .semi-input-clearbtn{min-width:16px;justify-content:center}.semi-input-wrapper.semi-input-wrapper__with-append-only .semi-input{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper.semi-input-wrapper__with-append-only .semi-input:not(:last-child){border-right-style:none;border-radius:0}.semi-input-wrapper.semi-input-wrapper__with-prepend-only .semi-input{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-input-wrapper.semi-input-wrapper__with-prepend-only .semi-input:not(:last-child){border-right-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend,.semi-input-wrapper.semi-input-wrapper__with-append{display:inline-flex;align-items:center;background-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend:hover,.semi-input-wrapper.semi-input-wrapper__with-append:hover{background-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-focus,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-focus{border:1px transparent solid;background-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input{background-color:var(--semi-color-fill-0);border:1px transparent solid}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:hover,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:hover{background-color:var(--semi-color-fill-1)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:hover~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:hover~.semi-input-modebtn{background-color:var(--semi-color-fill-1)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus{border:1px var(--semi-color-focus-border) solid;background-color:var(--semi-color-fill-0)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus.semi-input-sibling-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus.semi-input-sibling-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus.semi-input-sibling-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus.semi-input-sibling-modebtn{border-right-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus.semi-input-sibling-modebtn+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus.semi-input-sibling-modebtn+.semi-input-clearbtn{border-right-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus~.semi-input-modebtn{box-sizing:border-box;background-color:var(--semi-color-fill-0)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus+.semi-input-clearbtn{border:1px var(--semi-color-focus-border) solid;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;border-left-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus+.semi-input-clearbtn:not(:last-child),.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus+.semi-input-clearbtn:not(:last-child){border-radius:0}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus~.semi-input-modebtn{border:1px var(--semi-color-focus-border) solid;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;border-left-style:none}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:focus~.semi-input-modebtn:not(:last-child),.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:focus~.semi-input-modebtn:not(:last-child){border-radius:0}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:active,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:active{background-color:var(--semi-color-fill-2)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input:active~.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input:active~.semi-input-modebtn{background-color:var(--semi-color-fill-2)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn:hover{background-color:var(--semi-color-fill-0)}.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend .semi-input-modebtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append .semi-input-modebtn:hover:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error{border-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:hover+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:hover+.semi-input-modebtn{background-color:var(--semi-color-danger-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:focus,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:focus+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:focus+.semi-input-modebtn{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:active,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:active{background-color:var(--semi-color-danger-light-active)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input:active+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input:active+.semi-input-modebtn{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn:hover{background-color:var(--semi-color-danger-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-error .semi-input-modebtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-error .semi-input-modebtn:hover:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning{border-color:transparent}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:hover+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:hover+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:hover+.semi-input-modebtn{background-color:var(--semi-color-warning-light-hover)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:focus,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:focus+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:focus+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:focus+.semi-input-modebtn{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:active,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:active{background-color:var(--semi-color-warning-light-active)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input:active+.semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:active+.semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input:active+.semi-input-modebtn{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn:hover,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn:hover{background-color:var(--semi-color-warning-light-default)}.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-prepend.semi-input-wrapper-warning .semi-input-modebtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-clearbtn:hover:last-child,.semi-input-wrapper.semi-input-wrapper__with-append.semi-input-wrapper-warning .semi-input-modebtn:hover:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-wrapper-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:var(--semi-color-disabled-fill);-webkit-text-fill-color:var(--semi-color-disabled-text)}.semi-input-wrapper-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-input-wrapper-disabled .semi-input-append,.semi-input-wrapper-disabled .semi-input-prepend,.semi-input-wrapper-disabled .semi-input-suffix,.semi-input-wrapper-disabled .semi-input-prefix,.semi-input-wrapper-disabled .semi-icon{color:var(--semi-color-disabled-text)}.semi-input{border:none;outline:none;width:100%;color:inherit;padding-left:12px;padding-right:12px;background-color:transparent;box-sizing:border-box}.semi-input[type=password]::-ms-reveal,.semi-input[type=password]::-ms-clear{display:none}.semi-input[type=search]::-webkit-search-cancel-button{display:none}.semi-input::placeholder{color:var(--semi-color-text-2)}.semi-input-large{height:38px;font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:38px}.semi-input-small{height:22px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:22px}.semi-input-default{height:30px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:30px}.semi-input-disabled{cursor:not-allowed;color:inherit}.semi-input-inset-label{margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-input-prefix,.semi-input-suffix{display:flex;justify-content:center;align-items:center}.semi-input-prefix-text,.semi-input-suffix-text{margin:0 12px;color:var(--semi-color-text-2);font-weight:600;white-space:nowrap}.semi-input-prefix-icon,.semi-input-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-input-suffix{display:flex;justify-content:center;align-items:center}.semi-input-clearbtn,.semi-input-modebtn{display:flex;align-items:center;height:100%;justify-content:center;min-width:32px}.semi-input-clearbtn+.semi-input-suffix+.semi-input-suffix-text{margin-left:0}.semi-input-clearbtn+.semi-input-suffix+.semi-input-suffix-icon{margin-left:0}.semi-input-suffix-hidden{display:none}.semi-input-prepend,.semi-input-append{height:100%;display:flex;align-items:center;background-color:var(--semi-color-fill-0);color:var(--semi-color-text-2);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;flex-shrink:0}.semi-input-prepend-icon,.semi-input-prepend-text,.semi-input-append-icon,.semi-input-append-text{padding:0 12px}.semi-input-append{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0;border-left:1px transparent solid}.semi-input-prepend{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small);border-right:1px transparent solid}.semi-input-disabled::placeholder{color:var(--semi-color-disabled-text)}.semi-input-group{display:inline-flex;align-items:center;align-content:center;flex-wrap:wrap}.semi-input-group .semi-select,.semi-input-group .semi-tagInput,.semi-input-group .semi-cascader,.semi-input-group .semi-tree-select,.semi-input-group>.semi-input-wrapper{border-radius:0}.semi-input-group .semi-select:first-child,.semi-input-group .semi-tagInput:first-child,.semi-input-group .semi-cascader:first-child,.semi-input-group .semi-tree-select:first-child,.semi-input-group>.semi-input-wrapper:first-child{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-input-group .semi-select:last-child,.semi-input-group .semi-tagInput:last-child,.semi-input-group .semi-cascader:last-child,.semi-input-group .semi-tree-select:last-child,.semi-input-group>.semi-input-wrapper:last-child{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-group .semi-select:not(:last-child),.semi-input-group .semi-tagInput:not(:last-child),.semi-input-group .semi-cascader:not(:last-child),.semi-input-group .semi-tree-select:not(:last-child),.semi-input-group>.semi-input-wrapper:not(:last-child){position:relative}.semi-input-group .semi-select:not(:last-child):after,.semi-input-group .semi-tagInput:not(:last-child):after,.semi-input-group .semi-cascader:not(:last-child):after,.semi-input-group .semi-tree-select:not(:last-child):after,.semi-input-group>.semi-input-wrapper:not(:last-child):after{content:"";background-color:var(--semi-color-border);width:1px;position:absolute;right:-1px;top:1px;bottom:1px}.semi-input-group .semi-select{overflow-y:visible}.semi-input-group .semi-input-number,.semi-input-group .semi-datepicker,.semi-input-group .semi-timepicker,.semi-input-group .semi-autocomplete,.semi-input-group .semi-input-number .semi-datepicker-range-input,.semi-input-group .semi-datepicker .semi-datepicker-range-input,.semi-input-group .semi-timepicker .semi-datepicker-range-input,.semi-input-group .semi-autocomplete .semi-datepicker-range-input{border-radius:0}.semi-input-group .semi-input-number:first-child .semi-input-wrapper,.semi-input-group .semi-input-number:first-child .semi-datepicker-range-input,.semi-input-group .semi-datepicker:first-child .semi-input-wrapper,.semi-input-group .semi-datepicker:first-child .semi-datepicker-range-input,.semi-input-group .semi-timepicker:first-child .semi-input-wrapper,.semi-input-group .semi-timepicker:first-child .semi-datepicker-range-input,.semi-input-group .semi-autocomplete:first-child .semi-input-wrapper,.semi-input-group .semi-autocomplete:first-child .semi-datepicker-range-input{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-input-group .semi-input-number:last-child .semi-input-wrapper,.semi-input-group .semi-input-number:last-child .semi-datepicker-range-input,.semi-input-group .semi-datepicker:last-child .semi-input-wrapper,.semi-input-group .semi-datepicker:last-child .semi-datepicker-range-input,.semi-input-group .semi-timepicker:last-child .semi-input-wrapper,.semi-input-group .semi-timepicker:last-child .semi-datepicker-range-input,.semi-input-group .semi-autocomplete:last-child .semi-input-wrapper,.semi-input-group .semi-autocomplete:last-child .semi-datepicker-range-input{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-input-group .semi-input-number:not(:last-child),.semi-input-group .semi-datepicker:not(:last-child),.semi-input-group .semi-timepicker:not(:last-child),.semi-input-group .semi-autocomplete:not(:last-child){position:relative}.semi-input-group .semi-input-number:not(:last-child):after,.semi-input-group .semi-datepicker:not(:last-child):after,.semi-input-group .semi-timepicker:not(:last-child):after,.semi-input-group .semi-autocomplete:not(:last-child):after{content:"";background-color:var(--semi-color-border);width:1px;position:absolute;right:-1px;top:1px;bottom:1px}.semi-input-group-wrapper-with-top-label{margin-top:16px;margin-bottom:16px}.semi-input-group-wrapper-with-top-label .semi-input-group{display:flex}.semi-input-group-wrapper-with-top-label .semi-input-group .semi-form-field{margin-top:0;margin-bottom:0}.semi-input-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-input-borderless:focus-within:not(:active){background-color:transparent}.semi-input-borderless.semi-input-wrapper-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-input-borderless.semi-input-wrapper-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-autoComplete-option{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;word-break:break-all;padding:8px 12px;color:var(--semi-color-text-0);border-radius:0;position:relative;display:flex;flex-wrap:nowrap;align-items:center;cursor:pointer;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-autoComplete-option-icon{width:12px;color:transparent;visibility:hidden;margin-right:8px;display:flex;justify-content:center;align-content:center}.semi-autoComplete-option-text{display:flex;flex-wrap:wrap;white-space:pre}.semi-autoComplete-option-keyword{color:var(--semi-color-primary);background-color:inherit;font-weight:600}.semi-autoComplete-option:active{background-color:var(--semi-color-fill-1)}.semi-autoComplete-option-empty{cursor:not-allowed;color:var(--semi-color-disabled-text);justify-content:center}.semi-autoComplete-option-empty:hover,.semi-autoComplete-option-empty:active{background-color:inherit}.semi-autoComplete-option-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-autoComplete-option-disabled:hover{background-color:var(--semi-color-fill-0)}.semi-autoComplete-option-selected{font-weight:600}.semi-autoComplete-option-selected .semi-autoComplete-option-icon{visibility:visible;color:var(--semi-color-text-2)}.semi-autoComplete-option-focused{background-color:var(--semi-color-fill-0)}.semi-autoComplete-option:first-of-type{margin-top:4px}.semi-autoComplete-option:last-of-type{margin-bottom:4px}.semi-autocomplete{cursor:text;display:inline-flex;vertical-align:middle;box-sizing:border-box}.semi-autocomplete-option-list{overflow-x:hidden;overflow-y:auto}.semi-autocomplete-option-list-chosen .semi-autocomplete-option-icon{display:flex}.semi-autocomplete-loading-wrapper{padding-top:8px;padding-bottom:8px;cursor:not-allowed;height:20px}.semi-autocomplete-loading-wrapper .semi-spin{width:100%}.semi-rtl .semi-autocomplete,.semi-portal-rtl .semi-autocomplete{direction:rtl}.semi-avatar{position:relative;display:inline-flex;overflow:hidden;align-items:center;justify-content:center;white-space:nowrap;text-align:center;vertical-align:middle}.semi-avatar:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-avatar-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-avatar-no-focus-visible:focus-visible{outline:none}.semi-avatar .semi-avatar-label{display:flex;align-items:center;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600}.semi-avatar-content{-webkit-user-select:none;user-select:none}.semi-avatar-extra-extra-small{width:20px;height:20px;border-radius:3px}.semi-avatar-extra-extra-small .semi-avatar-content{transform-origin:center;transform:scale(.8)}.semi-avatar-extra-extra-small .semi-avatar-label{font-size:10px;line-height:15px}.semi-avatar-extra-small{width:24px;height:24px;border-radius:3px}.semi-avatar-extra-small .semi-avatar-content{transform-origin:center;transform:scale(.8)}.semi-avatar-extra-small .semi-avatar-label{font-size:10px;line-height:15px}.semi-avatar-small{width:32px;height:32px;border-radius:3px}.semi-avatar-small .semi-avatar-label{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-default{width:40px;height:40px;border-radius:3px}.semi-avatar-default .semi-avatar-label{font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-medium{width:48px;height:48px;border-radius:3px}.semi-avatar-medium .semi-avatar-label{font-size:20px;line-height:28px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-large{width:72px;height:72px;border-radius:6px}.semi-avatar-large .semi-avatar-label{font-size:32px;line-height:44px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-avatar-extra-large{width:128px;height:128px;border-radius:12px}.semi-avatar-extra-large .semi-avatar-label{font-size:64px;line-height:77px}.semi-avatar-circle{border-radius:var(--semi-border-radius-circle)}.semi-avatar-image{background-color:transparent}.semi-avatar>img{display:block;width:100%;height:100%;object-fit:cover}.semi-avatar-hover{position:absolute;left:0;top:0;width:100%;height:100%}.semi-avatar:hover{cursor:pointer}.semi-avatar-group{display:inline-block}.semi-avatar-group .semi-avatar{box-sizing:border-box}.semi-avatar-group .semi-avatar:first-child{margin-left:0}.semi-avatar-group .semi-avatar-extra-large{border:3px var(--semi-color-bg-1) solid;margin-left:-32px}.semi-avatar-group .semi-avatar-large{border:3px var(--semi-color-bg-1) solid;margin-left:-18px}.semi-avatar-group .semi-avatar-medium,.semi-avatar-group .semi-avatar-default,.semi-avatar-group .semi-avatar-small{border:2px var(--semi-color-bg-1) solid;margin-left:-12px}.semi-avatar-group .semi-avatar-extra-small{border:1px var(--semi-color-bg-1) solid;margin-left:-10px}.semi-avatar-group .semi-avatar-extra-extra-small{border:1px var(--semi-color-bg-1) solid;margin-left:-4px}.semi-avatar-group .semi-avatar-item-start-0{z-index:100}.semi-avatar-group .semi-avatar-item-end-0{z-index:80}.semi-avatar-group .semi-avatar-item-start-1{z-index:99}.semi-avatar-group .semi-avatar-item-end-1{z-index:81}.semi-avatar-group .semi-avatar-item-start-2{z-index:98}.semi-avatar-group .semi-avatar-item-end-2{z-index:82}.semi-avatar-group .semi-avatar-item-start-3{z-index:97}.semi-avatar-group .semi-avatar-item-end-3{z-index:83}.semi-avatar-group .semi-avatar-item-start-4{z-index:96}.semi-avatar-group .semi-avatar-item-end-4{z-index:84}.semi-avatar-group .semi-avatar-item-start-5{z-index:95}.semi-avatar-group .semi-avatar-item-end-5{z-index:85}.semi-avatar-group .semi-avatar-item-start-6{z-index:94}.semi-avatar-group .semi-avatar-item-end-6{z-index:86}.semi-avatar-group .semi-avatar-item-start-7{z-index:93}.semi-avatar-group .semi-avatar-item-end-7{z-index:87}.semi-avatar-group .semi-avatar-item-start-8{z-index:92}.semi-avatar-group .semi-avatar-item-end-8{z-index:88}.semi-avatar-group .semi-avatar-item-start-9{z-index:91}.semi-avatar-group .semi-avatar-item-end-9{z-index:89}.semi-avatar-group .semi-avatar-item-start-10,.semi-avatar-group .semi-avatar-item-end-10{z-index:90}.semi-avatar-group .semi-avatar-item-start-11{z-index:89}.semi-avatar-group .semi-avatar-item-end-11{z-index:91}.semi-avatar-group .semi-avatar-item-start-12{z-index:88}.semi-avatar-group .semi-avatar-item-end-12{z-index:92}.semi-avatar-group .semi-avatar-item-start-13{z-index:87}.semi-avatar-group .semi-avatar-item-end-13{z-index:93}.semi-avatar-group .semi-avatar-item-start-14{z-index:86}.semi-avatar-group .semi-avatar-item-end-14{z-index:94}.semi-avatar-group .semi-avatar-item-start-15{z-index:85}.semi-avatar-group .semi-avatar-item-end-15{z-index:95}.semi-avatar-group .semi-avatar-item-start-16{z-index:84}.semi-avatar-group .semi-avatar-item-end-16{z-index:96}.semi-avatar-group .semi-avatar-item-start-17{z-index:83}.semi-avatar-group .semi-avatar-item-end-17{z-index:97}.semi-avatar-group .semi-avatar-item-start-18{z-index:82}.semi-avatar-group .semi-avatar-item-end-18{z-index:98}.semi-avatar-group .semi-avatar-item-start-19{z-index:81}.semi-avatar-group .semi-avatar-item-end-19{z-index:99}.semi-avatar-group .semi-avatar-item-start-20{z-index:80}.semi-avatar-group .semi-avatar-item-end-20{z-index:100}.semi-avatar-group .semi-avatar-item-more{background-color:rgba(var(--semi-grey-5),1)}.semi-avatar-amber{background-color:rgba(var(--semi-amber-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-blue{background-color:rgba(var(--semi-blue-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-cyan{background-color:rgba(var(--semi-cyan-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-green{background-color:rgba(var(--semi-green-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-grey{background-color:rgba(var(--semi-grey-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-indigo{background-color:rgba(var(--semi-indigo-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-light-blue{background-color:rgba(var(--semi-light-blue-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-light-green{background-color:rgba(var(--semi-light-green-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-lime{background-color:rgba(var(--semi-lime-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-orange{background-color:rgba(var(--semi-orange-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-pink{background-color:rgba(var(--semi-pink-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-purple{background-color:rgba(var(--semi-purple-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-red{background-color:rgba(var(--semi-red-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-teal{background-color:rgba(var(--semi-teal-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-violet{background-color:rgba(var(--semi-violet-3),1);color:rgba(var(--semi-white),1)}.semi-avatar-yellow{background-color:rgba(var(--semi-yellow-3),1);color:rgba(var(--semi-white),1)}.semi-rtl .semi-avatar,.semi-portal-rtl .semi-avatar{direction:rtl}.semi-rtl .semi-avatar-extra-extra-small .semi-avatar-content,.semi-portal-rtl .semi-avatar-extra-extra-small .semi-avatar-content,.semi-rtl .semi-avatar-extra-small .semi-avatar-content,.semi-portal-rtl .semi-avatar-extra-small .semi-avatar-content{transform:scale(.8)}.semi-rtl .semi-avatar-hover,.semi-portal-rtl .semi-avatar-hover{left:auto;right:0}.semi-rtl .semi-avatar-group,.semi-portal-rtl .semi-avatar-group{direction:rtl}.semi-rtl .semi-avatar-group .semi-avatar:first-child,.semi-portal-rtl .semi-avatar-group .semi-avatar:first-child{margin-left:auto;margin-right:0}.semi-rtl .semi-avatar-group .semi-avatar-extra-large,.semi-portal-rtl .semi-avatar-group .semi-avatar-extra-large{margin-left:auto;margin-right:-32px}.semi-rtl .semi-avatar-group .semi-avatar-large,.semi-portal-rtl .semi-avatar-group .semi-avatar-large{margin-left:auto;margin-right:-18px}.semi-rtl .semi-avatar-group .semi-avatar-medium,.semi-rtl .semi-avatar-group .semi-avatar-small,.semi-portal-rtl .semi-avatar-group .semi-avatar-medium,.semi-portal-rtl .semi-avatar-group .semi-avatar-small{margin-left:auto;margin-right:-12px}.semi-rtl .semi-avatar-group .semi-avatar-extra-small,.semi-portal-rtl .semi-avatar-group .semi-avatar-extra-small{margin-left:auto;margin-right:-10px}.semi-rtl .semi-avatar-group .semi-avatar-extra-extra-small,.semi-portal-rtl .semi-avatar-group .semi-avatar-extra-extra-small{margin-left:auto;margin-right:-4px}.semi-button-split{display:inline-block}.semi-button-split .semi-button{border-radius:0;margin-right:1px}.semi-button-split .semi-button-first{border-top-left-radius:var(--semi-border-radius-small);border-bottom-left-radius:var(--semi-border-radius-small)}.semi-button-split .semi-button-last{border-top-right-radius:var(--semi-border-radius-small);border-bottom-right-radius:var(--semi-border-radius-small);margin-right:unset}.semi-button-split:hover .semi-button-borderless:active{background-color:var(--semi-color-fill-1)}.semi-button{box-shadow:none;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:32px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;border:0 transparent solid;border-radius:var(--semi-border-radius-small);padding:6px 12px;font-weight:600;outline:none;vertical-align:middle;white-space:nowrap}.semi-button.semi-button-primary:focus-visible,.semi-button.semi-button-secondary:focus-visible,.semi-button.semi-button-tertiary:focus-visible,.semi-button.semi-button-warning:focus-visible,.semi-button.semi-button-danger:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-button-danger{background-color:var(--semi-color-danger);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-danger-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-danger-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-danger:hover{background-color:var(--semi-color-danger-hover)}.semi-button-danger:active{background-color:var(--semi-color-danger-active)}.semi-button-danger.semi-button-light,.semi-button-danger.semi-button-borderless{color:var(--semi-color-danger)}.semi-button-danger:not(.semi-button-borderless):not(.semi-button-light):focus-visible{outline:2px solid var(--semi-color-danger-light-active)}.semi-button-warning{background-color:var(--semi-color-warning);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-warning-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-warning-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-warning:hover{background-color:var(--semi-color-warning-hover)}.semi-button-warning:active{background-color:var(--semi-color-warning-active)}.semi-button-warning.semi-button-light,.semi-button-warning.semi-button-borderless{color:var(--semi-color-warning)}.semi-button-warning:not(.semi-button-borderless):not(.semi-button-light):focus-visible{outline:2px solid var(--semi-color-warning-light-active)}.semi-button-tertiary{background-color:var(--semi-color-tertiary);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-tertiary-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-tertiary-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-tertiary:hover{background-color:var(--semi-color-tertiary-hover)}.semi-button-tertiary:active{background-color:var(--semi-color-tertiary-active)}.semi-button-tertiary.semi-button-light,.semi-button-tertiary.semi-button-borderless{color:var(--semi-color-text-1)}.semi-button-primary{background-color:var(--semi-color-primary);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-primary-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-primary-disabled.semi-button-light{background:var(--semi-color-fill-0)}.semi-button-primary:not(.semi-button-borderless):not(.semi-button-light):hover{background-color:var(--semi-color-primary-hover)}.semi-button-primary:not(.semi-button-borderless):not(.semi-button-light):active{background-color:var(--semi-color-primary-active)}.semi-button-primary.semi-button-light,.semi-button-primary.semi-button-borderless{color:var(--semi-color-primary)}.semi-button-secondary{background-color:var(--semi-color-secondary);outline-color:var(--semi-color-secondary);color:rgba(var(--semi-white),1);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-secondary-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-secondary-disabled.semi-button-light{background-color:var(--semi-color-fill-0)}.semi-button-secondary:hover{background-color:var(--semi-color-secondary-hover)}.semi-button-secondary:active{background-color:var(--semi-color-secondary-active)}.semi-button-secondary.semi-button-light,.semi-button-secondary.semi-button-borderless{color:var(--semi-color-secondary)}.semi-button-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-button-disabled:not(.semi-button-borderless):not(.semi-button-light):hover{color:var(--semi-color-disabled-text)}.semi-button-disabled.semi-button-light,.semi-button-disabled.semi-button-borderless{color:var(--semi-color-disabled-text)}.semi-button-borderless{background-color:transparent;border:0 transparent solid;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-borderless:not(.semi-button-disabled):hover{background-color:var(--semi-color-fill-0);border:0 transparent solid}.semi-button-borderless:not(.semi-button-disabled):active{background-color:var(--semi-color-fill-1);border:0 transparent solid}.semi-button-light{background-color:var(--semi-color-fill-0);border:0 transparent solid;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-button-light:not(.semi-button-disabled):hover{background-color:var(--semi-color-fill-1);border:0 transparent solid}.semi-button-light:not(.semi-button-disabled):active{background-color:var(--semi-color-fill-2);border:0 transparent solid}.semi-button-size-small{height:24px;padding:2px 12px}.semi-button-size-large{height:40px;padding:10px 16px}.semi-button-block{width:100%}.semi-button-group{display:flex;flex-wrap:wrap}.semi-button-group>.semi-button{margin:0;padding-left:0;padding-right:0;border-radius:0}.semi-button-group>.semi-button .semi-button-content{padding-left:12px;padding-right:12px}.semi-button-group>.semi-button-size-large .semi-button-content{padding-left:16px;padding-right:16px}.semi-button-group>.semi-button-size-small .semi-button-content{padding-left:12px;padding-right:12px}.semi-button-group>.semi-button.semi-button-with-icon-only{padding-left:0;padding-right:0}.semi-button-group>.semi-button.semi-button-with-icon-only .semi-button-content{padding-left:8px;padding-right:8px}.semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-small .semi-button-content{padding-left:4px;padding-right:4px}.semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-large .semi-button-content{padding-left:12px;padding-right:12px}.semi-button-group>.semi-button:first-child{border-top-left-radius:var(--semi-border-radius-small);border-bottom-left-radius:var(--semi-border-radius-small)}.semi-button-group>.semi-button:last-child{border-top-right-radius:var(--semi-border-radius-small);border-bottom-right-radius:var(--semi-border-radius-small)}.semi-button-group-line{display:inline-flex;align-items:center;background-color:var(--semi-color-border)}.semi-button-group-line-primary{background-color:var(--semi-color-primary)}.semi-button-group-line-secondary{background-color:var(--semi-color-secondary)}.semi-button-group-line-tertiary{background-color:var(--semi-color-tertiary)}.semi-button-group-line-warning{background-color:var(--semi-color-warning)}.semi-button-group-line-danger{background-color:var(--semi-color-danger)}.semi-button-group-line-disabled{background-color:var(--semi-color-disabled-bg)}.semi-button-group-line-light{background-color:var(--semi-color-fill-0)}.semi-button-group-line-borderless{background-color:transparent}.semi-button-group-line:before{display:block;content:"";width:1px;height:20px;background-color:var(--semi-color-border)}.semi-button.semi-button-with-icon{display:inline-flex;align-items:center}.semi-button.semi-button-with-icon .semi-button-content{display:flex;align-items:center;justify-content:center}.semi-button.semi-button-loading{pointer-events:none;cursor:not-allowed}.semi-button.semi-button-loading .semi-button-content>svg{width:16px;height:16px;animation:.6s linear infinite semi-animation-rotate;animation-fill-mode:forwards}.semi-button.semi-button-with-icon-only{padding:8px;justify-content:center;align-items:center}.semi-button.semi-button-with-icon-only.semi-button-size-small{padding:4px}.semi-button.semi-button-with-icon-only.semi-button-size-large{padding:12px}.semi-button-content-left{margin-right:8px}.semi-button-content-right{margin-left:8px}.semi-rtl .semi-button,.semi-portal-rtl .semi-button{direction:rtl;padding-left:12px;padding-right:12px}.semi-rtl .semi-button-size-small,.semi-portal-rtl .semi-button-size-small{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-size-large,.semi-portal-rtl .semi-button-size-large{padding-left:16px;padding-right:16px}.semi-rtl .semi-button-group,.semi-portal-rtl .semi-button-group{direction:rtl}.semi-rtl .semi-button-group>.semi-button,.semi-portal-rtl .semi-button-group>.semi-button{padding-left:0;padding-right:0}.semi-rtl .semi-button-group>.semi-button .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button .semi-button-content{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-group>.semi-button-size-large .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button-size-large .semi-button-content{padding-left:16px;padding-right:16px}.semi-rtl .semi-button-group>.semi-button-size-small .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button-size-small .semi-button-content{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only{padding-left:0;padding-right:0}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only .semi-button-content{padding-left:8px;padding-right:8px}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-small .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-small .semi-button-content{padding-left:4px;padding-right:4px}.semi-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-large .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button.semi-button-with-icon-only.semi-button-size-large .semi-button-content{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-group>.semi-button:first-child,.semi-portal-rtl .semi-button-group>.semi-button:first-child{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--semi-border-radius-small);border-bottom-right-radius:var(--semi-border-radius-small)}.semi-rtl .semi-button-group>.semi-button:not(:last-child) .semi-button-content,.semi-portal-rtl .semi-button-group>.semi-button:not(:last-child) .semi-button-content{border-left:1px var(--semi-color-border) solid;border-right:0}.semi-rtl .semi-button-group>.semi-button:last-child,.semi-portal-rtl .semi-button-group>.semi-button:last-child{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--semi-border-radius-small);border-bottom-left-radius:var(--semi-border-radius-small)}.semi-rtl .semi-button.semi-button-with-icon-only,.semi-portal-rtl .semi-button.semi-button-with-icon-only{padding-left:8px;padding-right:8px}.semi-rtl .semi-button.semi-button-with-icon-only.semi-button-size-small,.semi-portal-rtl .semi-button.semi-button-with-icon-only.semi-button-size-small{padding-left:4px;padding-right:4px}.semi-rtl .semi-button.semi-button-with-icon-only.semi-button-size-large,.semi-portal-rtl .semi-button.semi-button-with-icon-only.semi-button-size-large{padding-left:12px;padding-right:12px}.semi-rtl .semi-button-content-left,.semi-portal-rtl .semi-button-content-left{margin-left:8px;margin-right:0}.semi-rtl .semi-button-content-right,.semi-portal-rtl .semi-button-content-right{margin-right:8px;margin-left:0}.semi-card{box-sizing:border-box;margin:0;padding:0;border-radius:var(--semi-border-radius-medium);overflow:hidden;background-color:var(--semi-color-bg-0);font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em}.semi-card-shadows{cursor:pointer;transition:box-shadow .3s}.semi-card-shadows-hover:hover{box-shadow:var(--semi-shadow-elevated);z-index:1}.semi-card-shadows-always{box-shadow:var(--semi-shadow-elevated)}.semi-card-bordered{border:1px solid var(--semi-color-border)}.semi-card-header{padding:20px}.semi-card-header-bordered{border-bottom:1px solid var(--semi-color-border)}.semi-card-header-wrapper{display:flex;align-items:flex-start;flex-direction:row-reverse;justify-content:space-between}.semi-card-header-wrapper-spacing{margin-right:20px}.semi-card-header-wrapper-title{width:100%;overflow:hidden}.semi-card-header-wrapper-extra{flex-shrink:0;font-size:16px;font-style:normal;font-weight:700;letter-spacing:0em;color:var(--semi-color-text-0)}.semi-card-cover>*{display:block;width:100%}.semi-card-body{padding:20px;font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em;color:var(--semi-color-text-1)}.semi-card-body-actions{margin-top:20px;padding-top:20px;border-top:1px solid var(--semi-color-border)}.semi-card-footer{padding:20px}.semi-card-footer-bordered{border-top:1px solid var(--semi-color-border)}.semi-card-meta{display:flex;align-items:center;justify-content:flex-start}.semi-card-meta-avatar{margin-right:12px}.semi-card-meta-wrapper-title{font-size:16px;font-style:normal;font-weight:700;line-height:22px;letter-spacing:0em;color:var(--semi-color-text-0)}.semi-card-meta-wrapper-description{font-size:14px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em;color:var(--semi-color-text-2)}.semi-card-group-grid .semi-card{border-radius:0}.semi-card-group-grid .semi-card{margin-left:-1px;margin-top:-1px}.semi-rtl .semi-card,.semi-portal-rtl .semi-card{direction:rtl}.semi-rtl .semi-card-header-wrapper,.semi-portal-rtl .semi-card-header-wrapper{align-items:flex-end}.semi-rtl .semi-card-header-wrapper-title,.semi-portal-rtl .semi-card-header-wrapper-title{display:flex;align-items:flex-end}.semi-rtl .semi-card-header-wrapper-spacing,.semi-portal-rtl .semi-card-header-wrapper-spacing{margin-left:20px;margin-right:0}.semi-rtl .semi-card-meta-avatar,.semi-portal-rtl .semi-card-meta-avatar{margin-left:12px;margin-right:0}.semi-rtl .semi-card-group,.semi-portal-rtl .semi-card-group{direction:rtl}.semi-rtl .semi-card-group-grid .semi-card,.semi-portal-rtl .semi-card-group-grid .semi-card{margin:0 -1px -1px 0}.semi-skeleton-avatar,.semi-skeleton-image,.semi-skeleton-title,.semi-skeleton-button{background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small)}.semi-skeleton-avatar-circle{border-radius:50%}.semi-skeleton-avatar-extra-extra-small{width:20px;height:20px}.semi-skeleton-avatar-extra-small{width:24px;height:24px}.semi-skeleton-avatar-medium{width:48px;height:48px}.semi-skeleton-avatar-small{width:32px;height:32px}.semi-skeleton-avatar-large{width:72px;height:72px}.semi-skeleton-avatar-extra-large{width:128px;height:128px}.semi-skeleton-paragraph{margin:0;padding:0;list-style-type:none}.semi-skeleton-paragraph li{background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small);width:100%;height:16px;margin-bottom:10px}.semi-skeleton-paragraph li:last-child{width:60%;margin-bottom:0}.semi-skeleton-paragraph li:first-child{width:100%}.semi-skeleton-title{width:100%;height:24px}.semi-skeleton-button{width:115px;height:32px}.semi-skeleton-image{width:100%;height:100%}.semi-skeleton-active .semi-skeleton-avatar,.semi-skeleton-active .semi-skeleton-image,.semi-skeleton-active .semi-skeleton-title,.semi-skeleton-active .semi-skeleton-button,.semi-skeleton-active .semi-skeleton-paragraph li{background:linear-gradient(90deg,var(--semi-color-fill-0) 25%,var(--semi-color-fill-1) 44%,var(--semi-color-fill-0) 88%);background-size:400% 100%;animation:1.4s skeleton-loading ease infinite;animation-fill-mode:forwards}@keyframes skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.semi-rtl .semi-skeleton,.semi-portal-rtl .semi-skeleton{direction:rtl}.semi-space{display:inline-flex}.semi-space-vertical{flex-direction:column}.semi-space-horizontal{flex-direction:row}.semi-space-align-center{align-items:center}.semi-space-align-end{align-items:flex-end}.semi-space-align-start{align-items:flex-start}.semi-space-align-baseline{align-items:baseline}.semi-space-wrap{flex-wrap:wrap}.semi-space-tight-horizontal{column-gap:8px}.semi-space-tight-vertical{row-gap:8px}.semi-space-medium-horizontal{column-gap:16px}.semi-space-medium-vertical{row-gap:16px}.semi-space-loose-horizontal{column-gap:24px}.semi-space-loose-vertical{row-gap:24px}.semi-rtl .semi-space,.semi-portal-rtl .semi-space{direction:rtl}.semi-cascader{box-sizing:border-box;border-radius:var(--semi-border-radius-small);border:1px solid transparent;min-width:80px;min-height:32px;height:auto;line-height:32px;font-weight:400;background-color:var(--semi-color-fill-0);display:inline-flex;align-items:center;vertical-align:middle;position:relative;cursor:pointer}.semi-cascader:hover{background-color:var(--semi-color-fill-1);border:1px transparent solid}.semi-cascader:focus:not(.semi-cascader-disabled){border:1px solid var(--semi-color-focus-border);background-color:var(--semi-color-fill-0);outline:0}.semi-cascader:active{background-color:var(--semi-color-fill-2)}.semi-cascader-small{min-height:24px;line-height:24px}.semi-cascader-large{min-height:40px;line-height:40px}.semi-cascader-large .semi-cascader-selection{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-cascader-focus{border:1px solid var(--semi-color-focus-border);outline:0}.semi-cascader-focus:hover{background-color:var(--semi-color-fill-0);border:1px solid var(--semi-color-focus-border)}.semi-cascader-focus:active{background-color:var(--semi-color-fill-2)}.semi-cascader-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-cascader-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-cascader-warning.semi-cascader-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-cascader-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning-light-active)}.semi-cascader-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-cascader-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-cascader-error.semi-cascader-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-cascader-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger-light-active)}.semi-cascader-selection{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;display:inline-flex;align-items:center;flex-wrap:wrap;flex-grow:1;overflow:hidden;padding-left:12px;padding-right:12px;cursor:pointer;color:var(--semi-color-text-0)}.semi-cascader-selection-multiple{padding-left:4px;padding-right:4px}.semi-cascader-selection-placeholder{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--semi-color-text-2)}.semi-cascader-selection-tag{margin:1px 2px 1px 0}.semi-cascader-selection-tag:first-child{margin-left:0}.semi-cascader-selection-tag-disabled.semi-tag{color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-cascader-selection-tag-disabled.semi-tag .semi-tag-close{color:var(--semi-color-disabled-text);cursor:not-allowed;pointer-events:none}.semi-cascader-selection-n{cursor:pointer;font-size:12px;margin-right:4px;color:var(--semi-color-text-0);padding-left:8px;padding-right:8px}.semi-cascader-selection-n-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-cascader-selection span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.semi-cascader-selection .semi-cascader-tagInput-wrapper{border:hidden;background:transparent;margin-left:-4px}.semi-cascader-selection .semi-tagInput{min-height:30px}.semi-cascader-selection .semi-tagInput-small{min-height:22px}.semi-cascader-selection .semi-tagInput-large{min-height:38px}.semi-cascader-selection .semi-tagInput .semi-input-wrapper{margin-left:4px}.semi-cascader-selection .semi-tagInput .semi-input-wrapper .semi-input{padding-left:0}.semi-cascader-selection .semi-tagInput .semi-input-wrapper-default,.semi-cascader-selection .semi-tagInput .semi-input-wrapper-large{margin-top:1px;margin-bottom:1px}.semi-cascader-selection-text-inactive{color:var(--semi-color-text-2)}.semi-cascader-selection-text-hide{display:none}.semi-cascader-arrow,.semi-cascader-clearbtn{display:inline-flex;align-items:center;height:100%;justify-content:center;width:16px;color:var(--semi-color-text-2);margin-right:12px}.semi-cascader-clearbtn:hover{color:var(--semi-color-primary-hover)}.semi-cascader-clearbtn:active{color:var(--semi-color-primary-active)}.semi-cascader-prefix,.semi-cascader-suffix{display:inline;display:flex;justify-content:center;align-items:center}.semi-cascader-prefix-text,.semi-cascader-suffix-text{margin:0 12px}.semi-cascader-prefix-icon,.semi-cascader-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-cascader-inset-label{display:inline;margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-cascader.semi-cascader-with-prefix{display:inline-flex;align-items:center}.semi-cascader.semi-cascader-with-prefix .semi-cascader-selection{padding-left:0}.semi-cascader.semi-cascader-with-suffix .semi-cascader-selection{padding-right:0}.semi-cascader-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;background-color:var(--semi-color-disabled-fill)}.semi-cascader-disabled .semi-cascader-selection{cursor:not-allowed}.semi-cascader-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-cascader-disabled .semi-cascader-selection,.semi-cascader-disabled .semi-cascader-selection-placeholder,.semi-cascader-disabled .semi-cascader-prefix,.semi-cascader-disabled .semi-cascader-suffix{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-cascader-disabled .semi-cascader-arrow{color:var(--semi-color-disabled-text)}.semi-cascader-popover .semi-cascader-search-wrapper{padding:8px 12px;border-bottom:1px solid var(--semi-color-fill-0)}.semi-cascader-popover .semi-cascader-option-empty{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-width:150px;color:var(--semi-color-disabled-text);margin:0;padding:8px 12px;-webkit-user-select:none;user-select:none;text-align:center;cursor:not-allowed}.semi-cascader-single.semi-cascader-filterable{display:inline-flex}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper{width:100%;height:30px;display:flex;align-items:center;position:relative}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper-small{height:22px}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper-large{height:38px}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper .semi-input-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;border:none;background-color:transparent}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper .semi-input-wrapper-focus{border:none}.semi-cascader-single.semi-cascader-filterable .semi-cascader-selection .semi-cascader-search-wrapper .semi-input{padding-left:0;padding-right:0}.semi-cascader-option-lists{display:flex;overflow:hidden;padding:0;margin:0;height:180px}.semi-cascader-option-lists-empty{height:auto}.semi-cascader-option-lists ul,.semi-cascader-option-lists li{list-style-type:none;padding:0;margin:0}.semi-cascader-option-lists ul>li{padding:8px 16px 8px 12px}.semi-cascader-option-lists .semi-cascader-option-list{box-sizing:border-box;display:inline-block;min-width:150px;height:100%;margin:0;padding:4px 0;overflow:auto;list-style:none;border-left:1px solid var(--semi-color-fill-0)}.semi-cascader-option-lists .semi-cascader-option-list:first-child{border-left:none}.semi-cascader-option-lists .semi-cascader-option{display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-width:min-content;word-break:break-all;color:var(--semi-color-text-0);position:relative}.semi-cascader-option-lists .semi-cascader-option:hover{background-color:var(--semi-color-fill-0)}.semi-cascader-option-lists .semi-cascader-option:active{background-color:var(--semi-color-fill-1)}.semi-cascader-option-lists .semi-cascader-option-icon{display:inline-flex;flex-shrink:0;width:16px;color:var(--semi-color-text-2)}.semi-cascader-option-lists .semi-cascader-option-icon-active,.semi-cascader-option-lists .semi-cascader-option-icon-empty{margin-right:8px}.semi-cascader-option-lists .semi-cascader-option-icon-left{margin-left:8px}.semi-cascader-option-lists .semi-cascader-option-spin-icon{width:16px;height:16px;line-height:0}.semi-cascader-option-lists .semi-cascader-option-spin-icon svg{width:16px;height:16px}.semi-cascader-option-lists .semi-cascader-option-label{display:flex;align-items:center;white-space:pre}.semi-cascader-option-lists .semi-cascader-option-label-checkbox{margin-right:8px}.semi-cascader-option-lists .semi-cascader-option-hidden{display:none}.semi-cascader-option-lists .semi-cascader-option-active,.semi-cascader-option-lists .semi-cascader-option-active:hover{background-color:var(--semi-color-primary-light-default)}.semi-cascader-option-lists .semi-cascader-option-select,.semi-cascader-option-lists .semi-cascader-option-label-highlight{font-weight:600;color:var(--semi-color-primary)}.semi-cascader-option-lists .semi-cascader-option-disabled{cursor:not-allowed}.semi-cascader-option-lists .semi-cascader-option-disabled:hover,.semi-cascader-option-lists .semi-cascader-option-disabled:active{background-color:transparent}.semi-cascader-option-lists .semi-cascader-option-disabled .semi-cascader-option-label{color:var(--semi-color-disabled-text)}.semi-cascader-option-lists .semi-cascader-option-flatten{padding-right:64px}.semi-cascader-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-cascader-borderless:not(:focus-within):not(:hover) .semi-cascader-arrow{opacity:0}.semi-cascader-borderless:focus-within:not(:active){background-color:transparent}.semi-cascader-borderless.semi-cascader-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-cascader-borderless.semi-cascader-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-cascader-borderless.semi-cascader-error:focus-within{border-color:var(--semi-color-danger)}.semi-cascader-borderless.semi-cascader-warning:focus-within{border-color:var(--semi-color-warning)}.semi-rtl .semi-cascader,.semi-portal-rtl .semi-cascader{direction:rtl}.semi-rtl .semi-cascader-arrow,.semi-rtl .semi-cascader-clearbtn,.semi-portal-rtl .semi-cascader-arrow,.semi-portal-rtl .semi-cascader-clearbtn{margin-right:0;margin-left:12px}.semi-rtl .semi-cascader-inset-label,.semi-portal-rtl .semi-cascader-inset-label{margin-right:12px;margin-left:12px}.semi-rtl .semi-cascader.semi-cascader-with-prefix .semi-cascader-selection,.semi-portal-rtl .semi-cascader.semi-cascader-with-prefix .semi-cascader-selection{padding-left:auto;padding-right:0}.semi-rtl .semi-cascader.semi-cascader-with-suffix .semi-cascader-selection,.semi-portal-rtl .semi-cascader.semi-cascader-with-suffix .semi-cascader-selection{padding-right:auto;padding-left:0}.semi-rtl .semi-cascader-selection-multiple,.semi-portal-rtl .semi-cascader-selection-multiple{padding-right:4px;padding-left:4px}.semi-rtl .semi-cascader-selection-tag:first-child,.semi-portal-rtl .semi-cascader-selection-tag:first-child{margin-right:0}.semi-rtl .semi-cascader-selection-n,.semi-portal-rtl .semi-cascader-selection-n{margin-right:0;margin-left:4px}.semi-rtl .semi-cascader-selection .semi-cascader-tagInput-wrapper,.semi-portal-rtl .semi-cascader-selection .semi-cascader-tagInput-wrapper{margin-left:0;margin-right:-4px}.semi-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper,.semi-portal-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper{margin-left:0;margin-right:4px}.semi-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper .semi-input,.semi-portal-rtl .semi-cascader-selection .semi-tagInput .semi-input-wrapper .semi-input{padding-right:0}.semi-cascader-option-label-checkbox{margin-right:0;margin-left:8px}.semi-cascader-option-lists-rtl{direction:rtl}.semi-cascader-option-lists .semi-cascader-option-lists-rtl ul>li{padding-right:12px;padding-left:auto}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-list{border-left:0;border-right:1px solid var(--semi-color-fill-0)}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-list:first-child{border-right:none}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-icon-active,.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-icon-empty{margin-right:0;margin-left:8px}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option-flatten{padding-right:0;padding-left:64px}.semi-cascader-option-lists .semi-cascader-option-lists-rtl .semi-cascader-option .semi-icon-chevron_right{transform:scaleX(-1)}.semi-checkbox{box-sizing:border-box;position:relative;display:flex;align-items:flex-start;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none));column-gap:8px}.semi-checkbox input[type=checkbox]{position:absolute;left:0;top:0;width:100%;height:100%;margin:0;opacity:0}.semi-checkbox-content{flex:1;display:flex;flex-direction:column;row-gap:4px}.semi-checkbox-addon{display:flex;flex:1;align-items:center;color:var(--semi-color-text-0);line-height:20px;-webkit-user-select:none;user-select:none}.semi-checkbox:hover .semi-checkbox-inner-display{background:var(--semi-color-fill-0);box-shadow:inset 0 0 0 1px var(--semi-color-focus-border)}.semi-checkbox:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-hover);box-shadow:none}.semi-checkbox:active .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-active);box-shadow:none}.semi-checkbox.semi-checkbox-disabled:hover .semi-checkbox-inner-display,.semi-checkbox.semi-checkbox-disabled:active .semi-checkbox-inner-display{background:var(--semi-color-disabled-fill);box-shadow:inset 0 0 0 1px var(--semi-color-border)}.semi-checkbox.semi-checkbox-disabled:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display,.semi-checkbox.semi-checkbox-disabled:active .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-disabled);box-shadow:none}.semi-checkbox-inner{position:relative;display:flex;align-items:center;width:16px;height:20px;-webkit-user-select:none;user-select:none;cursor:pointer}.semi-checkbox-inner-display{box-sizing:border-box;position:relative;width:16px;height:16px;margin:0;background:transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);box-shadow:inset 0 0 0 1px var(--semi-color-text-3);border-radius:var(--semi-border-radius-extra-small)}.semi-checkbox-inner-display .semi-icon{font-size:16px}.semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary);color:var(--semi-color-white);box-shadow:inset 0 0 0 1px var(--semi-color-primary);border-radius:var(--semi-border-radius-extra-small)}.semi-checkbox-inner-checked>.semi-checkbox-addon{color:var(--semi-color-text-0)}.semi-checkbox:hover .semi-checkbox-inner-display{background:var(--semi-color-fill-0)}.semi-checkbox:hover.semi-checkbox-indeterminate .semi-checkbox-inner-display{background:var(--semi-color-primary-hover);box-shadow:none;color:var(--semi-color-white)}.semi-checkbox:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-hover);border-color:var(--semi-color-primary-hover);color:var(--semi-color-white)}.semi-checkbox:hover.semi-checkbox-cardType.semi-checkbox-unChecked.semi-checkbox-cardType_unDisabled .semi-checkbox-inner-display{background:var(--semi-color-white)}.semi-checkbox:active .semi-checkbox-inner-display{background:var(--semi-color-fill-1)}.semi-checkbox:active.semi-checkbox-indeterminate .semi-checkbox-inner-display{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active);color:var(--semi-color-white);box-shadow:none}.semi-checkbox:active .semi-checkbox-inner-checked .semi-checkbox-inner-display{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active);color:var(--semi-color-white)}.semi-checkbox:active.semi-checkbox-cardType.semi-checkbox-unChecked.semi-checkbox-cardType_unDisabled .semi-checkbox-inner-display{background:var(--semi-color-white)}.semi-checkbox-cardType{flex-wrap:nowrap;align-items:flex-start;border-radius:3px;padding:12px 16px;background:transparent;border:1px solid transparent}.semi-checkbox-cardType .semi-checkbox-inner{position:relative;flex-shrink:0}.semi-checkbox-cardType .semi-checkbox-inner-display{background:var(--semi-color-white)}.semi-checkbox-cardType .semi-checkbox-inner-pureCardType{opacity:0;width:0}.semi-checkbox-cardType .semi-checkbox-addon{font-weight:600;font-size:14px;line-height:20px;color:var(--semi-color-text-0)}.semi-checkbox-cardType .semi-checkbox-extra{font-weight:400;font-size:14px;line-height:20px;color:var(--semi-color-text-2)}.semi-checkbox-cardType .semi-checkbox-extra.semi-checkbox-cardType_extra_noChildren{margin-top:0}.semi-checkbox-cardType:hover{background:var(--semi-color-fill-0)}.semi-checkbox-cardType:active{background:var(--semi-color-fill-1)}.semi-checkbox-cardType_checked{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary)}.semi-checkbox-cardType_checked:hover{background:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary-hover)}.semi-checkbox-cardType_checked:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{box-shadow:none}.semi-checkbox-cardType_checked:active{background:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary-active)}.semi-checkbox-cardType_disabled:active,.semi-checkbox-cardType_disabled:hover{background:transparent}.semi-checkbox-cardType_checked_disabled.semi-checkbox-cardType{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary-disabled)}.semi-checkbox-cardType_checked_disabled.semi-checkbox-cardType:hover .semi-checkbox-inner-checked .semi-checkbox-inner-display{box-shadow:none}.semi-checkbox-indeterminate .semi-checkbox-inner-display,.semi-checkbox-checked .semi-checkbox-inner-display{background:var(--semi-color-primary);color:var(--semi-color-white);box-shadow:inset 0 0 0 1px var(--semi-color-primary);border-radius:var(--semi-border-radius-extra-small)}.semi-checkbox-indeterminate .semi-checkbox-inner-display:hover,.semi-checkbox-checked .semi-checkbox-inner-display:hover{background:var(--semi-color-primary-hover);border-color:var(--semi-color-primary-hover);color:var(--semi-color-white)}.semi-checkbox-indeterminate .semi-checkbox-inner-display:active,.semi-checkbox-checked .semi-checkbox-inner-display:active{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active);color:var(--semi-color-white)}.semi-checkbox-indeterminate .semi-checkbox-inner-addon,.semi-checkbox-checked .semi-checkbox-inner-addon{color:var(--semi-color-text-0)}.semi-checkbox-disabled,.semi-checkbox-disabled .semi-checkbox-inner{cursor:not-allowed}.semi-checkbox-disabled .semi-checkbox-inner-display{color:var(--semi-color-white);background:var(--semi-color-disabled-fill);box-shadow:inset 0 0 0 1px var(--semi-color-border)}.semi-checkbox-disabled .semi-checkbox-inner-display:hover{color:var(--semi-color-white);background:transparent}.semi-checkbox-disabled .semi-checkbox-inner-checked{color:var(--semi-color-white)}.semi-checkbox-disabled .semi-checkbox-inner-checked .semi-checkbox-inner-display{opacity:.75;background:var(--semi-color-primary-disabled);box-shadow:inset 0 0 0 1px var(--semi-color-primary-disabled)}.semi-checkbox-disabled .semi-checkbox-inner-checked .semi-checkbox-inner-display:hover{color:var(--semi-color-white);background:var(--semi-color-primary-disabled)}.semi-checkbox-disabled .semi-checkbox-addon,.semi-checkbox-disabled .semi-checkbox-extra{color:var(--semi-color-disabled-text)}.semi-checkbox.semi-checkbox-disabled.semi-checkbox-indeterminate .semi-checkbox-inner-display{opacity:.75;background:var(--semi-color-primary-disabled);box-shadow:inset 0 0 0 1px var(--semi-color-primary-disabled);color:var(--semi-color-white)}.semi-checkbox-extra{flex-shrink:0;flex-grow:1;flex-basis:100%;box-sizing:border-box;color:var(--semi-color-text-2)}.semi-checkbox-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-checkbox-focus-border{box-shadow:inset 0 0 0 1px var(--semi-color-focus-border)}.semi-checkboxGroup{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:14px}.semi-checkboxGroup .semi-checkbox.semi-checkbox-vertical{margin-bottom:16px}.semi-checkboxGroup-horizontal{display:flex;flex-wrap:wrap;gap:16px}.semi-checkboxGroup-horizontal .semi-checkbox{display:inline-flex}.semi-checkboxGroup-vertical{display:flex;flex-direction:column;row-gap:12px}.semi-checkboxGroup-vertical-cardType{row-gap:16px}.semi-checkboxGroup-vertical-pureCardType .semi-checkbox{column-gap:0}.semi-rtl .semi-checkbox,.semi-portal-rtl .semi-checkbox{direction:rtl}.semi-rtl .semi-checkbox input[type=checkbox],.semi-portal-rtl .semi-checkbox input[type=checkbox]{left:auto;right:0}.semi-rtl .semi-checkboxGroup,.semi-portal-rtl .semi-checkboxGroup{direction:rtl}.semi-tag{box-sizing:border-box;border-radius:var(--semi-border-radius-small);background-color:transparent;position:relative;-webkit-user-select:none;user-select:none;overflow:hidden;white-space:nowrap;vertical-align:bottom;display:flex;justify-content:center;align-items:center;display:inline-flex}.semi-tag-default,.semi-tag-small{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:20px;padding:2px 8px}.semi-tag-default:focus-visible,.semi-tag-small:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-tag-square{border-radius:var(--semi-border-radius-small)}.semi-tag-circle{border-radius:var(--semi-border-radius-full)}.semi-tag-large{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;padding:4px 8px;height:24px}.semi-tag-large:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-tag-invisible{display:none}.semi-tag-prefix-icon{display:flex;padding-right:4px}.semi-tag-suffix-icon{display:flex;padding-left:4px}.semi-tag-content{flex:1}.semi-tag-content-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.semi-tag-content-center{display:flex;justify-content:center;align-items:center;height:100%;min-width:0}.semi-tag-close{display:flex;justify-content:center;align-items:center;color:var(--semi-color-text-2);padding-left:4px;cursor:pointer}.semi-tag-close:hover{color:var(--semi-color-text-1)}.semi-tag-close:active{color:var(--semi-color-text-0)}.semi-tag-closable{padding:4px 4px 4px 8px}.semi-tag-avatar-square .semi-avatar,.semi-tag-avatar-circle .semi-avatar{margin-right:4px}.semi-tag-avatar-square{padding:0 4px 0 0}.semi-tag-avatar-square .semi-avatar>img{background-color:var(--semi-color-default)}.semi-tag-avatar-circle{padding:2px 4px 2px 2px}.semi-tag-avatar-square.semi-tag-default .semi-avatar,.semi-tag-avatar-square.semi-tag-small .semi-avatar{width:20px;height:20px}.semi-tag-avatar-square.semi-tag-large .semi-avatar{width:24px;height:24px}.semi-tag-avatar-circle.semi-tag-small,.semi-tag-avatar-circle.semi-tag-default{border-radius:11px}.semi-tag-avatar-circle.semi-tag-small .semi-avatar,.semi-tag-avatar-circle.semi-tag-default .semi-avatar{width:16px;height:16px}.semi-tag-avatar-circle.semi-tag-large{border-radius:13px}.semi-tag-avatar-circle.semi-tag-large .semi-avatar{width:20px;height:20px}.semi-tag-group{display:block;height:auto}.semi-tag-group .semi-tag{margin-bottom:0;margin-right:8px}.semi-tag-group-max.semi-tag-group-small{height:22px}.semi-tag-group-max.semi-tag-group-large{height:26px}.semi-tag-rest-group-popover .semi-tag{margin-right:8px;margin-bottom:0}.semi-tag-rest-group-popover .semi-tag:last-of-type{margin-right:0}.semi-tag-amber-ghost{background-color:transparent;border:1px solid rgba(var(--semi-amber-4),1);color:rgba(var(--semi-amber-5),1)}.semi-tag-amber-solid{background-color:rgba(var(--semi-amber-5),1);color:rgba(var(--semi-white),1)}.semi-tag-amber-light{background-color:rgba(var(--semi-amber-5),.15);color:rgba(var(--semi-amber-8),1)}.semi-tag-blue-ghost{background-color:transparent;border:1px solid rgba(var(--semi-blue-4),1);color:rgba(var(--semi-blue-5),1)}.semi-tag-blue-solid{background-color:rgba(var(--semi-blue-5),1);color:rgba(var(--semi-white),1)}.semi-tag-blue-light{background-color:rgba(var(--semi-blue-5),.15);color:rgba(var(--semi-blue-8),1)}.semi-tag-cyan-ghost{background-color:transparent;border:1px solid rgba(var(--semi-cyan-4),1);color:rgba(var(--semi-cyan-5),1)}.semi-tag-cyan-solid{background-color:rgba(var(--semi-cyan-5),1);color:rgba(var(--semi-white),1)}.semi-tag-cyan-light{background-color:rgba(var(--semi-cyan-5),.15);color:rgba(var(--semi-cyan-8),1)}.semi-tag-green-ghost{background-color:transparent;border:1px solid rgba(var(--semi-green-4),1);color:rgba(var(--semi-green-5),1)}.semi-tag-green-solid{background-color:rgba(var(--semi-green-5),1);color:rgba(var(--semi-white),1)}.semi-tag-green-light{background-color:rgba(var(--semi-green-5),.15);color:rgba(var(--semi-green-8),1)}.semi-tag-grey-ghost{background-color:transparent;border:1px solid rgba(var(--semi-grey-4),1);color:rgba(var(--semi-grey-5),1)}.semi-tag-grey-solid{background-color:rgba(var(--semi-grey-5),1);color:rgba(var(--semi-white),1)}.semi-tag-grey-light{background-color:rgba(var(--semi-grey-5),.15);color:rgba(var(--semi-grey-8),1)}.semi-tag-indigo-ghost{background-color:transparent;border:1px solid rgba(var(--semi-indigo-4),1);color:rgba(var(--semi-indigo-5),1)}.semi-tag-indigo-solid{background-color:rgba(var(--semi-indigo-5),1);color:rgba(var(--semi-white),1)}.semi-tag-indigo-light{background-color:rgba(var(--semi-indigo-5),.15);color:rgba(var(--semi-indigo-8),1)}.semi-tag-light-blue-ghost{background-color:transparent;border:1px solid rgba(var(--semi-light-blue-4),1);color:rgba(var(--semi-light-blue-5),1)}.semi-tag-light-blue-solid{background-color:rgba(var(--semi-light-blue-5),1);color:rgba(var(--semi-white),1)}.semi-tag-light-blue-light{background-color:rgba(var(--semi-light-blue-5),.15);color:rgba(var(--semi-light-blue-8),1)}.semi-tag-light-green-ghost{background-color:transparent;border:1px solid rgba(var(--semi-light-green-4),1);color:rgba(var(--semi-light-green-5),1)}.semi-tag-light-green-solid{background-color:rgba(var(--semi-light-green-5),1);color:rgba(var(--semi-white),1)}.semi-tag-light-green-light{background-color:rgba(var(--semi-light-green-5),.15);color:rgba(var(--semi-light-green-8),1)}.semi-tag-lime-ghost{background-color:transparent;border:1px solid rgba(var(--semi-lime-4),1);color:rgba(var(--semi-lime-5),1)}.semi-tag-lime-solid{background-color:rgba(var(--semi-lime-5),1);color:rgba(var(--semi-white),1)}.semi-tag-lime-light{background-color:rgba(var(--semi-lime-5),.15);color:rgba(var(--semi-lime-8),1)}.semi-tag-orange-ghost{background-color:transparent;border:1px solid rgba(var(--semi-orange-4),1);color:rgba(var(--semi-orange-5),1)}.semi-tag-orange-solid{background-color:rgba(var(--semi-orange-5),1);color:rgba(var(--semi-white),1)}.semi-tag-orange-light{background-color:rgba(var(--semi-orange-5),.15);color:rgba(var(--semi-orange-8),1)}.semi-tag-pink-ghost{background-color:transparent;border:1px solid rgba(var(--semi-pink-4),1);color:rgba(var(--semi-pink-5),1)}.semi-tag-pink-solid{background-color:rgba(var(--semi-pink-5),1);color:rgba(var(--semi-white),1)}.semi-tag-pink-light{background-color:rgba(var(--semi-pink-5),.15);color:rgba(var(--semi-pink-8),1)}.semi-tag-purple-ghost{background-color:transparent;border:1px solid rgba(var(--semi-purple-4),1);color:rgba(var(--semi-purple-5),1)}.semi-tag-purple-solid{background-color:rgba(var(--semi-purple-5),1);color:rgba(var(--semi-white),1)}.semi-tag-purple-light{background-color:rgba(var(--semi-purple-5),.15);color:rgba(var(--semi-purple-8),1)}.semi-tag-red-ghost{background-color:transparent;border:1px solid rgba(var(--semi-red-4),1);color:rgba(var(--semi-red-5),1)}.semi-tag-red-solid{background-color:rgba(var(--semi-red-5),1);color:rgba(var(--semi-white),1)}.semi-tag-red-light{background-color:rgba(var(--semi-red-5),.15);color:rgba(var(--semi-red-8),1)}.semi-tag-teal-ghost{background-color:transparent;border:1px solid rgba(var(--semi-teal-4),1);color:rgba(var(--semi-teal-5),1)}.semi-tag-teal-solid{background-color:rgba(var(--semi-teal-5),1);color:rgba(var(--semi-white),1)}.semi-tag-teal-light{background-color:rgba(var(--semi-teal-5),.15);color:rgba(var(--semi-teal-8),1)}.semi-tag-violet-ghost{background-color:transparent;border:1px solid rgba(var(--semi-violet-4),1);color:rgba(var(--semi-violet-5),1)}.semi-tag-violet-solid{background-color:rgba(var(--semi-violet-5),1);color:rgba(var(--semi-white),1)}.semi-tag-violet-light{background-color:rgba(var(--semi-violet-5),.15);color:rgba(var(--semi-violet-8),1)}.semi-tag-yellow-ghost{background-color:transparent;border:1px solid rgba(var(--semi-yellow-4),1);color:rgba(var(--semi-yellow-5),1)}.semi-tag-yellow-solid{background-color:rgba(var(--semi-yellow-5),1);color:rgba(var(--semi-white),1)}.semi-tag-yellow-light{background-color:rgba(var(--semi-yellow-5),.15);color:rgba(var(--semi-yellow-8),1)}.semi-tag-white-ghost,.semi-tag-white-solid,.semi-tag-white-light{background-color:var(--semi-color-bg-4);border:1px solid rgba(var(--semi-grey-2),.7);color:var(--semi-color-text-0)}.semi-tag-white-ghost .semi-tag-close,.semi-tag-white-light .semi-tag-close,.semi-tag-white-solid .semi-tag-close{color:var(--semi-color-text-2)}.semi-tag-avatar-square,.semi-tag-avatar-circle{background-color:var(--semi-color-bg-4);border:1px solid var(--semi-color-border);color:var(--semi-color-text-0)}.semi-tag-solid .semi-tag-close{color:var(--semi-color-white);opacity:.8}.semi-tag-solid .semi-tag-close:hover{opacity:1}.semi-tag-solid .semi-tag-close:active{opacity:.9}.semi-rtl .semi-tag,.semi-portal-rtl .semi-tag{direction:rtl}.semi-rtl .semi-tag-close,.semi-portal-rtl .semi-tag-close{padding-left:auto;padding-right:4px}.semi-rtl .semi-tag-closable,.semi-portal-rtl .semi-tag-closable{padding:4px 8px 4px 4px}.semi-rtl .semi-tag-avatar-square .semi-avatar,.semi-rtl .semi-tag-avatar-circle .semi-avatar,.semi-portal-rtl .semi-tag-avatar-square .semi-avatar,.semi-portal-rtl .semi-tag-avatar-circle .semi-avatar{margin-right:auto;margin-left:4px}.semi-rtl .semi-tag-avatar-square,.semi-portal-rtl .semi-tag-avatar-square{padding-right:auto;padding-left:4px}.semi-rtl .semi-tag-avatar-circle,.semi-portal-rtl .semi-tag-avatar-circle{padding:2px 2px 2px 4px}.semi-rtl .semi-tag-group,.semi-portal-rtl .semi-tag-group{direction:rtl}.semi-rtl .semi-tag-group .semi-tag,.semi-portal-rtl .semi-tag-group .semi-tag{margin-right:auto;margin-left:8px}.semi-rtl .semi-tag-rest-group-popover,.semi-portal-rtl .semi-tag-rest-group-popover{direction:rtl}.semi-rtl .semi-tag-rest-group-popover .semi-tag,.semi-portal-rtl .semi-tag-rest-group-popover .semi-tag{margin-right:0;margin-left:8px}.semi-rtl .semi-tag-rest-group-popover .semi-tag:last-of-type,.semi-portal-rtl .semi-tag-rest-group-popover .semi-tag:last-of-type{margin-right:auto;margin-left:0}.semi-tagInput{background-color:var(--semi-color-fill-0);border:1px transparent solid;border-radius:var(--semi-border-radius-small);display:inline-flex;font-weight:400;width:100%;min-height:32px;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-tagInput-small{min-height:24px}.semi-tagInput-large{min-height:40px}.semi-tagInput-drag-item{display:flex;align-items:center}.semi-tagInput-drag-item-move{z-index:2000}.semi-tagInput-drag-handler{color:var(--semi-color-text-2);margin-right:4px;cursor:move}.semi-tagInput-sortable-item{position:relative}.semi-tagInput-sortable-item-over{overflow:visible}.semi-tagInput-sortable-item-over:before{content:"";display:block;height:100%;width:2px;background-color:var(--semi-color-primary);position:absolute;left:-2px;top:0}.semi-tagInput-sortable-item-active{opacity:.5}.semi-tagInput-hover{background-color:var(--semi-color-fill-1);border:1px transparent solid}.semi-tagInput-focus{background-color:var(--semi-color-fill-0);border:1px var(--semi-color-focus-border) solid}.semi-tagInput-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-tagInput-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-tagInput-warning.semi-tagInput-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-tagInput-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-tagInput-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-tagInput-error.semi-tagInput-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-tagInput-disabled{cursor:not-allowed}.semi-tagInput-disabled .semi-tagInput-clearBtn,.semi-tagInput-disabled .semi-tagInput-prefix,.semi-tagInput-disabled .semi-tagInput-suffix{color:var(--semi-color-disabled-text)}.semi-tagInput-disabled .semi-tagInput-wrapper{cursor:not-allowed}.semi-tagInput-disabled .semi-tagInput-wrapper-tag{color:var(--semi-color-disabled-text);background-color:transparent}.semi-tagInput-disabled .semi-tagInput-wrapper-input{cursor:not-allowed}.semi-tagInput-disabled .semi-tagInput-wrapper-input::placeholder{color:var(--semi-color-disabled-text)}.semi-tagInput-wrapper{display:flex;flex-wrap:wrap;flex-grow:1;align-items:center;padding-left:4px;padding-right:4px;overflow:hidden}.semi-tagInput-wrapper-tag{margin-right:4px;white-space:pre}.semi-tagInput-wrapper-tag-size-small{margin-top:1px;margin-bottom:1px}.semi-tagInput-wrapper-tag-size-default{margin-top:2px;margin-bottom:2px}.semi-tagInput-wrapper-tag-size-large{margin-top:3px;margin-bottom:3px}.semi-tagInput-wrapper-tag-icon{padding-left:4px}.semi-tagInput-wrapper-typo{font-size:12px}.semi-tagInput-wrapper-typo-disabled{color:var(--semi-color-disabled-text)}.semi-tagInput-wrapper-n{cursor:pointer;font-size:12px;margin-right:4px;color:var(--semi-color-text-0);padding-left:8px;padding-right:8px}.semi-tagInput-wrapper-n-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-tagInput-wrapper .semi-tagInput-wrapper-input{flex-grow:1;width:min-content;border:none;outline:none;background-color:transparent;font-size:14px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input:hover{background-color:transparent}.semi-tagInput-wrapper .semi-tagInput-wrapper-input:not(:first-child)>input{padding-left:0}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-small{height:20px;margin-top:1px;margin-bottom:1px;line-height:20px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-small .semi-input-small{height:20px;line-height:20px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-default{height:24px;margin-top:2px;margin-bottom:2px;line-height:24px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-default .semi-input-default{height:24px;line-height:24px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-large{height:24px;margin-top:3px;margin-bottom:3px;line-height:24px}.semi-tagInput-wrapper .semi-tagInput-wrapper-input-large .semi-input-large{height:24px;line-height:24px}.semi-tagInput-clearBtn{display:flex;justify-content:center;align-items:center;width:32px;flex-shrink:0;color:var(--semi-color-text-2)}.semi-tagInput-clearBtn:hover{cursor:pointer;color:var(--semi-color-primary-hover)}.semi-tagInput-clearBtn-invisible{visibility:hidden}.semi-tagInput-prefix,.semi-tagInput-suffix{display:flex;justify-content:center;align-items:center}.semi-tagInput-prefix-text,.semi-tagInput-suffix-text{margin:0 12px;font-weight:600;white-space:nowrap}.semi-tagInput-prefix-icon,.semi-tagInput-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-tagInput-prefix-text,.semi-tagInput-suffix-text{color:var(--semi-color-text-2)}.semi-tagInput-tag-content-wrapper{display:flex;align-items:center}.semi-tagInput-sortable-list{display:flex;flex-flow:row wrap;width:100%}.semi-rtl .semi-tagInput,.semi-portal-rtl .semi-tagInput{direction:rtl}.semi-rtl .semi-tagInput-wrapper-tag,.semi-portal-rtl .semi-tagInput-wrapper-tag{margin-left:4px;margin-right:0}.semi-rtl .semi-tagInput-wrapper-input:not(:first-child)>input,.semi-portal-rtl .semi-tagInput-wrapper-input:not(:first-child)>input{padding-right:0}.semi-collapsible-transition{transition:height .25s cubic-bezier(.25,.1,.25,1) var(--semi-transition_delay-none),opacity .25s var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-scrolllist{width:100%;height:100%;background:var(--semi-color-bg-3);box-shadow:0 0 1px #0000004d,0 4px 14px #0000001a;border-radius:var(--semi-border-radius-medium);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column}.semi-scrolllist-header{text-align:center;padding:0 16px}.semi-scrolllist-header-title{padding:16px 0;font-weight:600;color:var(--semi-color-text-0);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-scrolllist-body{display:flex;height:300px;padding:0 16px;overflow:hidden}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle>ul:before,.semi-scrolllist-body .semi-scrolllist-item>ul:before{content:"";display:block;width:100%;height:132px}.semi-scrolllist-body .semi-scrolllist-item{position:relative;flex:1;overflow-x:hidden;overflow-y:auto}.semi-scrolllist-body .semi-scrolllist-item:not(:last-child){border-right:1px solid var(--semi-color-border)}.semi-scrolllist-body .semi-scrolllist-item>ul,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul{box-sizing:border-box;width:100%;margin:0;padding:0 0 132px;list-style:none}.semi-scrolllist-body .semi-scrolllist-item>ul>li,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li{list-style:none;height:36px;box-sizing:border-box;color:var(--semi-color-text-0);text-align:center;display:flex;align-items:center;justify-content:center;cursor:pointer;background-color:transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel{background:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel>svg,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel>svg{color:var(--semi-color-text-2);width:16px;height:16px;margin-right:12px}.semi-scrolllist-body .semi-scrolllist-item>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected),.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected){cursor:pointer}.semi-scrolllist-body .semi-scrolllist-item>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):hover,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):hover{background-color:var(--semi-color-fill-1)}.semi-scrolllist-body .semi-scrolllist-item>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):active,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li:not(.disabled):not(.semi-scrolllist-item-disabled):not(.semi-scrolllist-item-sel):not(.semi-scrolllist-item-selected):active{background-color:var(--semi-color-fill-2)}.semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-disabled,.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-scrolllist-body .semi-scrolllist-item-wheel{position:relative;flex:1;overflow:hidden}.semi-scrolllist-body .semi-scrolllist-item-wheel:not(:last-child){border-right:1px solid var(--semi-color-border)}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-item-selected{font-weight:600;color:var(--semi-color-primary)!important}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer{overflow-x:hidden;overflow-y:auto;height:100%;width:100%;padding-right:18px}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-shade{width:100%;height:50%;pointer-events:none;position:absolute}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-shade-pre{top:0;margin-top:-19px;background:var(--semi-color-bg-3);opacity:.5}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-shade-post{top:50%;margin-top:19px;background:var(--semi-color-bg-3);opacity:.5}.semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-selector{pointer-events:none;position:absolute;top:50%;border-top:1px solid var(--semi-color-border);border-bottom:1px solid var(--semi-color-border);height:36px;width:100%;transform:translateY(-50%)}.semi-scrolllist .semi-scrolllist-footer{border-top:1px solid var(--semi-color-border);padding:10px}.semi-scrolllist .semi-scrolllist-line{background:var(--semi-color-border);height:1px}.semi-rtl .semi-scrolllist,.semi-portal-rtl .semi-scrolllist{direction:rtl}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item:not(:last-child),.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item:not(:last-child){border-right:0;border-left:1px solid var(--semi-color-border)}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel>svg,.semi-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel>svg,.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item>ul>li.semi-scrolllist-item-sel>svg,.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul>li.semi-scrolllist-item-sel>svg{margin-right:0;margin-left:12px}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel:not(:last-child),.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel:not(:last-child){border-right:0;border-left:1px solid var(--semi-color-border)}.semi-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer,.semi-portal-rtl .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer{padding-right:0;padding-left:18px}.semi-datepicker{box-sizing:border-box;display:inline-block}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-item{-ms-overflow-style:none;scrollbar-width:none}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-item::-webkit-scrollbar{display:none;width:0;height:0}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-list-outer{-ms-overflow-style:none;scrollbar-width:none}.semi-datepicker .semi-scrolllist-body .semi-scrolllist-list-outer::-webkit-scrollbar{display:none;width:0;height:0}.semi-datepicker-month-grid{-webkit-user-select:none;user-select:none;display:flex}.semi-datepicker-month-grid-left,.semi-datepicker-month-grid-right{position:relative;padding:0;display:inline-flex;flex-direction:column;justify-content:flex-start}.semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam,.semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-yam{height:100%}.semi-datepicker-month-grid[x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-yam{height:calc(100% - 54px)}.semi-datepicker-month-grid .semi-datepicker-yam-showing{min-height:378px;min-width:284px}.semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam-showing{min-height:325px}.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year],.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time]{min-height:317px}.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-navigation{padding-top:8px;padding-bottom:8px}.semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-tpk{min-height:100%}.semi-datepicker-month-grid[x-insetinput=true][x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-month-grid[x-insetinput=true][x-type=dateTimeRange] .semi-datepicker-yam{height:100%}.semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month,.semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month{height:253px}.semi-datepicker-month-grid .semi-datepicker-yearmonth-header{background:var(--semi-color-bg-3);padding:12px 16px;border-bottom:1px solid var(--semi-color-border);border-radius:var(--semi-border-radius-medium) var(--semi-border-radius-medium) 0 0;display:flex;align-items:center}.semi-datepicker-month-grid .semi-scrolllist{background:var(--semi-color-bg-3);position:relative;box-shadow:none;height:auto;width:100%;height:100%;overflow:hidden;flex:1}.semi-datepicker-month-grid .semi-scrolllist-header,.semi-datepicker-month-grid .semi-scrolllist-body{box-sizing:border-box;width:100%}.semi-datepicker-month-grid .semi-scrolllist-header{border-bottom:1px solid var(--semi-color-border);padding:16px}.semi-datepicker-month-grid .semi-scrolllist-body{height:100%;overflow:hidden;padding:0;flex:1}.semi-datepicker-month-grid .semi-scrolllist-line{display:none}.semi-datepicker-month-grid .semi-scrolllist-header-title{padding:0;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-height:24px;line-height:24px}.semi-datepicker-month-grid[x-panel-yearandmonth-open-type=left] .semi-datepicker-weeks,.semi-datepicker-month-grid[x-panel-yearandmonth-open-type=right] .semi-datepicker-weeks{min-height:216px}.semi-datepicker-panel-yam{max-width:484px}.semi-datepicker-panel-yam[x-type=monthRange]{max-width:584px}.semi-datepicker-panel-yam .semi-datepicker-yearmonth-body{display:flex}.semi-datepicker-panel-yam .semi-datepicker-yearmonth-body .semi-scrolllist:nth-child(2){border-left:1px solid var(--semi-color-border)}.semi-datepicker-panel-yam .semi-scrolllist{box-shadow:none;height:266px}.semi-datepicker-panel-yam .semi-scrolllist-list-outer>ul>li{min-width:64px}.semi-datepicker-panel-yam .semi-scrolllist-item>ul>li{min-width:82px}.semi-datepicker-panel-yam .semi-scrolllist-body{padding:0;overflow:hidden}.semi-datepicker-panel-yam .semi-scrolllist-body .semi-scrolllist-item-wheel:not(#neverExistElement){border:none}.semi-datepicker-footer{padding-top:10px;padding-right:8px;padding-bottom:10px;text-align:right;background-color:var(--semi-color-fill-0)}.semi-datepicker-footer .semi-button:first-of-type{margin-right:12px}.semi-datepicker-footer .semi-button:nth-of-type(2){margin-right:8px}.semi-datepicker-yam{position:absolute;top:0;width:100%;display:flex;flex-direction:column;box-sizing:border-box}.semi-datepicker-tpk{position:absolute;top:0;height:calc(100% - 54px);width:100%;display:flex;flex-direction:column}.semi-datepicker-tpk .semi-datepicker-time{height:100%}.semi-datepicker-navigation{display:flex;align-items:center;box-sizing:content-box;height:32px;padding:12px 16px}.semi-datepicker-navigation-left,.semi-datepicker-navigation-right{width:32px;height:32px;display:flex;justify-content:center;align-items:center}.semi-datepicker-navigation .semi-button{color:var(--semi-color-text-2);min-width:32px}.semi-datepicker-navigation-month{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;flex-grow:1;text-align:center;font-weight:600;color:var(--semi-color-text-0)}.semi-datepicker-navigation-month .semi-button{color:var(--semi-color-text-0)}.semi-datepicker-month{width:252px;box-sizing:content-box;padding:0 16px 16px}.semi-datepicker-weekday{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;color:var(--semi-color-text-2);border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-weekday-item{width:36px;height:36px;line-height:36px;text-align:center;display:inline-block}.semi-datepicker-weeks{color:var(--semi-color-text-0)}.semi-datepicker-week{display:flex;align-items:center}.semi-datepicker-day{box-sizing:border-box;display:inline-block;width:36px;height:36px;display:flex;justify-content:center;align-items:center;cursor:pointer}.semi-datepicker-day-main{display:flex;justify-content:center;align-items:center;width:32px;height:32px;margin:0 auto;box-sizing:border-box;border-radius:var(--semi-border-radius-small)}.semi-datepicker-day-main:hover{background-color:var(--semi-color-fill-0)}.semi-datepicker-day-main:active{background-color:var(--semi-color-fill-1)}.semi-datepicker-day-today .semi-datepicker-day-main{color:var(--semi-color-primary);background-color:var(--semi-color-fill-0);font-weight:600}.semi-datepicker-day-today.semi-datepicker-day-disabled .semi-datepicker-day-main{color:var(--semi-color-primary-disabled)}.semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-day-inhover .semi-datepicker-day-main,.semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main,.semi-datepicker-day-hoverday-around-singleselected .semi-datepicker-day-main{border-radius:0;margin-left:0;margin-right:0;width:36px}.semi-datepicker-day-selected .semi-datepicker-day-main,.semi-datepicker-day-selected-start.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-start.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small)}.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-datepicker-day-hoverday-beforerange .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-datepicker-day-hoverday-afterrange .semi-datepicker-day-main{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{width:34px;margin-left:2px;margin-right:0;border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{width:34px;margin-right:2px;margin-left:0;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-datepicker-day-hoverday-inrange .semi-datepicker-day-main{border-radius:0}.semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{background-color:var(--semi-color-fill-0)}.semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-day-hoverday-offset .semi-datepicker-day-main{background-color:var(--semi-color-fill-1)}.semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-day-inhover .semi-datepicker-day-main{background-color:var(--semi-color-primary-light-default)}.semi-datepicker-day-hoverday-inrange .semi-datepicker-day-main,.semi-datepicker-day-hoverday-beforerange .semi-datepicker-day-main,.semi-datepicker-day-hoverday-afterrange .semi-datepicker-day-main,.semi-datepicker-day-hoverday-around-singleselected .semi-datepicker-day-main{background-color:var(--semi-color-primary-light-active)}.semi-datepicker-day-selected .semi-datepicker-day-main,.semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-day-selected-end .semi-datepicker-day-main{background-color:var(--semi-color-primary);color:var(--semi-color-white)}.semi-datepicker-day-selected .semi-datepicker-day-main:hover,.semi-datepicker-day-selected-start .semi-datepicker-day-main:hover,.semi-datepicker-day-selected-end .semi-datepicker-day-main:hover{background-color:var(--semi-color-primary)}.semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main{background-color:var(--semi-color-primary-light-hover)}.semi-datepicker-day-selected-start-afterhover .semi-datepicker-day-main,.semi-datepicker-day-selected-end-beforehover .semi-datepicker-day-main{border:1px solid var(--semi-color-primary-active)}.semi-datepicker-day-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-datepicker-day-disabled .semi-datepicker-day-main:hover,.semi-datepicker-day-disabled .semi-datepicker-day-main:active{background-color:transparent}.semi-datepicker-day-disabled.semi-datepicker-day-selected .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-inhover .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-hoverday-offset .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-datepicker-day-disabled.semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main{background-color:var(--semi-color-disabled-fill);color:var(--semi-color-disabled-text)}.semi-datepicker-switch{text-align:center;display:flex;border-top:1px solid var(--semi-color-border);margin-top:auto}.semi-datepicker-switch-date,.semi-datepicker-switch-time{width:50%;cursor:pointer;padding-top:16px;padding-bottom:16px;display:flex;justify-content:center;align-items:center;color:var(--semi-color-text-2)}.semi-datepicker-switch-date:not(.semi-datepicker-switch-time-disabled):hover,.semi-datepicker-switch-time:not(.semi-datepicker-switch-time-disabled):hover{background-color:var(--semi-color-fill-0)}.semi-datepicker-switch-date-active,.semi-datepicker-switch-time-active{color:var(--semi-color-text-0);font-weight:600;cursor:auto}.semi-datepicker-switch-date-active:hover,.semi-datepicker-switch-time-active:hover{background-color:inherit}.semi-datepicker-switch-date-disabled,.semi-datepicker-switch-time-disabled{cursor:not-allowed}.semi-datepicker-switch-text{padding-left:8px}.semi-datepicker-time .semi-jumperlist{box-shadow:none;border-radius:0}.semi-datepicker-quick-control{box-sizing:border-box;background-color:transparent}.semi-datepicker-quick-control-header{padding:18px 12px 0;font-weight:600}.semi-datepicker-quick-control-left{border-right:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-right{border-left:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-top{border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-bottom{border-top:1px solid var(--semi-color-border)}.semi-datepicker-quick-control-left-content-wrapper,.semi-datepicker-quick-control-right-content-wrapper{max-width:200px;margin-top:14px;overflow-y:auto}.semi-datepicker-quick-control-top-content-wrapper,.semi-datepicker-quick-control-bottom-content-wrapper{overflow-y:auto;max-height:100px}.semi-datepicker-quick-control-left-content,.semi-datepicker-quick-control-right-content{box-sizing:border-box;display:grid;align-content:flex-start;grid-gap:8px;grid-template-columns:repeat(2,minmax(76.5px,84px));padding:0 12px 12px}.semi-datepicker-quick-control-left-content-item,.semi-datepicker-quick-control-right-content-item{max-width:84px}.semi-datepicker-quick-control-left-content-item-ellipsis,.semi-datepicker-quick-control-right-content-item-ellipsis{width:68px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-top-content,.semi-datepicker-quick-control-bottom-content{display:grid;grid-gap:8px;grid-template-columns:repeat(3,minmax(70.924px,75.924px));align-content:flex-start;padding:8px 20px}.semi-datepicker-quick-control-top-content-item,.semi-datepicker-quick-control-bottom-content-item{max-width:75.924px}.semi-datepicker-quick-control-top-content-item-ellipsis,.semi-datepicker-quick-control-bottom-content-item-ellipsis{width:59.924px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-top-range-content,.semi-datepicker-quick-control-bottom-range-content{box-sizing:border-box;display:grid;align-content:flex-start;grid-template-columns:repeat(5,minmax(96.2px,99.2px));grid-gap:8px;padding:8px 20px}.semi-datepicker-quick-control-top-range-content-item,.semi-datepicker-quick-control-bottom-range-content-item{max-width:99.2px}.semi-datepicker-quick-control-top-range-content-item-ellipsis,.semi-datepicker-quick-control-bottom-range-content-item-ellipsis{width:83.2px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-top-month-content,.semi-datepicker-quick-control-bottom-month-content{box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(51px,58.5px));grid-gap:8px;align-content:flex-start;padding:8px 20px}.semi-datepicker-quick-control-top-month-content-item,.semi-datepicker-quick-control-bottom-month-content-item{max-width:58.5px}.semi-datepicker-quick-control-top-month-content-item-ellipsis,.semi-datepicker-quick-control-bottom-month-content-item-ellipsis{max-width:42.5px;color:var(--semi-color-primary)}.semi-datepicker-quick-control-month{max-width:284px}.semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:258px}.semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper{max-height:214px}.semi-datepicker-quick-control-date{max-width:284px}.semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper{max-height:273px}.semi-datepicker-quick-control-dateTime{max-width:284px}.semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper{max-height:326px}.semi-datepicker-quick-control-dateRange{max-width:568px}.semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper{max-height:273px}.semi-datepicker-quick-control-dateTimeRange{max-width:568px}.semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:309px}.semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper{max-height:326px}.semi-datepicker-topSlot{border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-bottomSlot{border-top:1px solid var(--semi-color-border)}.semi-datepicker .semi-popover-trigger{width:100%}.semi-datepicker .semi-popover-trigger .semi-input-wrapper{font-size:13px}.semi-datepicker .semi-popover-trigger .semi-input-suffix{color:var(--semi-color-primary)}.semi-datepicker .semi-datepicker-input-readonly{cursor:pointer}.semi-datepicker-inset-input-wrapper{display:flex;flex-wrap:nowrap;justify-content:space-between;box-sizing:border-box;column-gap:8px;padding:12px 16px 0;width:284px}.semi-datepicker-inset-input-wrapper[x-type=dateRange],.semi-datepicker-inset-input-wrapper[x-type=dateTimeRange]{width:568px}.semi-datepicker-inset-input-wrapper[x-type=month]{width:165px}.semi-datepicker-inset-input-wrapper[x-type=monthRange]{width:331px}.semi-datepicker-inset-input-wrapper .semi-input-wrapper{flex:1;flex-shrink:0}.semi-datepicker-inset-input-separator{flex-grow:0;flex-shrink:0;height:32px;line-height:32px;padding:0 4px;color:var(--semi-color-text-3)}.semi-datepicker-range-input{display:flex;align-items:center;box-sizing:border-box;border-radius:var(--semi-border-radius-small);height:32px;color:var(--semi-color-text-2);background-color:var(--semi-color-fill-0);border:0px solid transparent}.semi-datepicker-range-input:hover,.semi-datepicker-range-input:active{border-color:transparent}.semi-datepicker-range-input:focus-within{border-color:transparent}.semi-datepicker-range-input .semi-datepicker-monthRange-input{background-color:transparent}.semi-datepicker-range-input-wrapper{box-sizing:border-box;background-color:transparent;padding:0 8px;height:100%;width:100%;border:1px solid transparent;border-radius:var(--semi-border-radius-small);display:flex;align-items:center}.semi-datepicker-range-input-wrapper .semi-input-wrapper{background-color:transparent;border:none}.semi-datepicker-range-input-wrapper-focus{border-color:transparent;background-color:var(--semi-color-fill-1);border-radius:var(--semi-border-radius-small);transition:background-color .16s ease-in-out}.semi-datepicker-range-input-wrapper-focus~.semi-datepicker-range-input-clearbtn{display:flex}.semi-datepicker-range-input-wrapper-focus~.semi-datepicker-range-input-clearbtn~.semi-datepicker-range-input-suffix{display:none}.semi-datepicker-range-input-wrapper .semi-input{padding:2px 4px}.semi-datepicker-range-input-wrapper-icon{flex-shrink:0}.semi-datepicker-range-input-wrapper:hover{background-color:var(--semi-color-fill-1)}.semi-datepicker-range-input-wrapper-start{border-top-right-radius:0;border-bottom-right-radius:0}.semi-datepicker-range-input-wrapper-start-with-prefix,.semi-datepicker-range-input-wrapper-end{border-radius:0}.semi-datepicker-range-input-wrapper-active{border-color:var(--semi-color-focus-border);background-color:var(--semi-color-fill-1)}.semi-datepicker-range-input-separator{display:flex;align-items:center}.semi-datepicker-range-input-separator-active{color:var(--semi-color-text-0)}.semi-datepicker-range-input-small{height:24px}.semi-datepicker-range-input-large{height:40px}.semi-datepicker-range-input-large .semi-input-default{font-size:16px}.semi-datepicker-range-input:hover .semi-datepicker-range-input-clearbtn{display:flex;cursor:pointer}.semi-datepicker-range-input:hover .semi-datepicker-range-input-clearbtn~.semi-datepicker-range-input-suffix{display:none}.semi-datepicker-range-input:hover .semi-datepicker-range-input-clearbtn:hover{color:var(--semi-color-primary-hover)}.semi-datepicker-range-input-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:var(--semi-color-disabled-fill)}.semi-datepicker-range-input-disabled .semi-datepicker-range-input-wrapper:hover{background-color:transparent}.semi-datepicker-range-input-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-datepicker-range-input-disabled .semi-datepicker-range-input-prefix,.semi-datepicker-range-input-disabled .semi-datepicker-range-input-suffix,.semi-datepicker-range-input-disabled .semi-datepicker-range-input-clearbtn{color:var(--semi-color-disabled-text)}.semi-datepicker-range-input-warning{background-color:var(--semi-color-warning-light-default)}.semi-datepicker-range-input-warning .semi-datepicker-range-input-wrapper:hover{background-color:var(--semi-color-warning-light-hover)}.semi-datepicker-range-input-warning .semi-datepicker-range-input-wrapper-active{border-color:var(--semi-color-warning);background-color:var(--semi-color-warning-light-hover)}.semi-datepicker-range-input-error{background-color:var(--semi-color-danger-light-default)}.semi-datepicker-range-input-error .semi-datepicker-range-input-wrapper:hover{background-color:var(--semi-color-danger-light-hover)}.semi-datepicker-range-input-error .semi-datepicker-range-input-wrapper-active{border-color:var(--semi-color-danger);background-color:var(--semi-color-danger-light-hover)}.semi-datepicker-range-input .semi-datepicker-range-input-clearbtn{display:none}.semi-datepicker-range-input-prefix,.semi-datepicker-range-input-suffix,.semi-datepicker-range-input-clearbtn{display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;white-space:nowrap;color:var(--semi-color-text-2)}.semi-datepicker-range-input-prefix{padding-left:12px;padding-right:8px}.semi-datepicker-range-input-suffix{padding-left:8px;padding-right:12px}.semi-datepicker-range-input-suffix-hidden{display:none}.semi-datepicker-range-input-clearbtn{padding-left:8px;padding-right:12px}.semi-datepicker-compact{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-yam{height:calc(100% - 32px)}.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left,.semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left{border-right:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yam-showing{min-height:288px;min-width:216px}.semi-datepicker-compact .semi-datepicker-month-grid[x-type=date] .semi-datepicker-yam-showing{min-height:256px}.semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=left][x-insetinput=false] .semi-datepicker-month,.semi-datepicker-compact .semi-datepicker-month-grid[x-preset-position=right][x-insetinput=false] .semi-datepicker-month{height:220px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-header{box-sizing:border-box;height:48px;padding:12px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-body{display:flex}.semi-datepicker-compact .semi-datepicker-month-grid .semi-datepicker-yearmonth-body .semi-scrolllist:nth-child(2){border:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-header{display:none}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-list-outer>ul>li{height:32px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel{border-right:0}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel .semi-scrolllist-selector{height:32px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel .semi-scrolllist-shade-pre{margin-top:-17px}.semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel .semi-scrolllist-shade-post{margin-top:17px}.semi-datepicker-compact .semi-datepicker-month-grid[x-panel-yearandmonth-open-type=left] .semi-datepicker-weeks,.semi-datepicker-compact .semi-datepicker-month-grid[x-panel-yearandmonth-open-type=right] .semi-datepicker-weeks{min-height:168px}.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=year],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=year],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-left[x-open-type=time],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-month-grid-right[x-open-type=time],.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-yam-showing{min-height:256px}.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true] .semi-datepicker-tpk{min-height:100%}.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTime] .semi-datepicker-yam,.semi-datepicker-compact .semi-datepicker-month-grid[x-insetinput=true][x-type=dateTimeRange] .semi-datepicker-yam{height:100%}.semi-datepicker-compact.semi-datepicker-panel-yam .semi-scrolllist{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-tpk{height:calc(100% - 32px)}.semi-datepicker-compact .semi-datepicker-navigation{height:24px;padding:12px 12px 0}.semi-datepicker-compact .semi-datepicker-navigation-left,.semi-datepicker-compact .semi-datepicker-navigation-right{width:24px;height:24px}.semi-datepicker-compact .semi-datepicker-navigation .semi-button{min-width:24px;min-height:24px}.semi-datepicker-compact .semi-datepicker-navigation-month .semi-button{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:20px}.semi-datepicker-compact .semi-datepicker-month{width:216px;padding:0}.semi-datepicker-compact .semi-datepicker-weeks{padding:6px 10px 10px}.semi-datepicker-compact .semi-datepicker-weekday{box-sizing:border-box;height:36px;padding-left:10px;padding-right:10px;padding-bottom:8px;border-bottom:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-weekday-item{width:28px;height:28px;line-height:28px}.semi-datepicker-compact .semi-datepicker-day{width:28px;height:28px}.semi-datepicker-compact .semi-datepicker-day-main{width:24px;height:24px}.semi-datepicker-compact .semi-datepicker-day-inrange .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-inhover .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-inoffsetrange .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-hoverday .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-selectedrange-hover .semi-datepicker-day-main{width:28px}.semi-datepicker-compact .semi-datepicker-day-selected-start.semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-offsetrange-start.semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:4px}.semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:4px 0 0 4px}.semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:0 4px 4px 0}.semi-datepicker-compact .semi-datepicker-day-hoverday-beforerange .semi-datepicker-day-main{border-radius:4px 0 0 4px}.semi-datepicker-compact .semi-datepicker-day-hoverday-afterrange .semi-datepicker-day-main{border-radius:0 4px 4px 0}.semi-datepicker-compact .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{width:34px;margin-left:2px;margin-right:0;border-radius:4px 0 0 4px}.semi-datepicker-compact .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{width:34px;margin-right:2px;margin-left:0;border-radius:0 4px 4px 0}.semi-datepicker-compact .semi-datepicker-switch{box-sizing:border-box;height:32px}.semi-datepicker-compact .semi-datepicker-switch-date,.semi-datepicker-compact .semi-datepicker-switch-time{padding-top:6px;padding-bottom:6px}.semi-datepicker-compact .semi-datepicker-switch-date{border-right:1px solid var(--semi-color-border)}.semi-datepicker-compact .semi-datepicker-switch-text{padding-left:0}.semi-datepicker-compact .semi-datepicker-quick-control-header{padding:16px 12px 0;font-weight:600}.semi-datepicker-compact .semi-datepicker-quick-control-left-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-right-content-wrapper{margin-top:12px}.semi-datepicker-compact .semi-datepicker-quick-control-left-content,.semi-datepicker-compact .semi-datepicker-quick-control-right-content{box-sizing:border-box;display:grid;align-content:flex-start;grid-gap:8px;grid-template-columns:repeat(2,minmax(76.5px,84px));padding:0 12px 12px}.semi-datepicker-compact .semi-datepicker-quick-control-left-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-right-content-item{max-width:84px}.semi-datepicker-compact .semi-datepicker-quick-control-left-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-right-content-item-ellipsis{width:68px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-top-content,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-content{box-sizing:border-box;display:grid;grid-gap:8px;grid-template-columns:repeat(3,minmax(54.94px,59.94px));align-content:flex-start;padding:8px 10px}.semi-datepicker-compact .semi-datepicker-quick-control-top-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item{max-width:59.94px}.semi-datepicker-compact .semi-datepicker-quick-control-top-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-content-item-ellipsis{width:43.94px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content{display:grid;grid-template-columns:repeat(5,minmax(73px,76px));grid-gap:8px;align-content:flex-start;padding:8px 10px}.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item{max-width:76px}.semi-datepicker-compact .semi-datepicker-quick-control-top-range-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-range-content-item-ellipsis{width:60px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content{display:grid;grid-template-columns:repeat(2,minmax(61px,68.5px));grid-gap:8px;align-content:flex-start;padding:8px 10px}.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item{max-width:68.5px}.semi-datepicker-compact .semi-datepicker-quick-control-top-month-content-item-ellipsis,.semi-datepicker-compact .semi-datepicker-quick-control-bottom-month-content-item-ellipsis{max-width:52.5px;font-size:12px;color:var(--semi-color-primary)}.semi-datepicker-compact .semi-datepicker-quick-control-month{max-width:216px}.semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-month[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:254px}.semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-month .semi-datepicker-quick-control-left-content-wrapper{max-height:218px}.semi-datepicker-compact .semi-datepicker-quick-control-date{max-width:216px}.semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-date[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-date .semi-datepicker-quick-control-left-content-wrapper{max-height:208px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTime{max-width:216px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTime[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTime .semi-datepicker-quick-control-left-content-wrapper{max-height:240px}.semi-datepicker-compact .semi-datepicker-quick-control-dateRange{max-width:432px}.semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateRange .semi-datepicker-quick-control-left-content-wrapper{max-height:208px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange{max-width:432px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange[x-insetinput=true] .semi-datepicker-quick-control-left-content-wrapper{max-height:248px}.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-right-content-wrapper,.semi-datepicker-compact .semi-datepicker-quick-control-dateTimeRange .semi-datepicker-quick-control-left-content-wrapper{max-height:240px}.semi-datepicker-compact .semi-datepicker-footer{padding-top:10px;padding-right:8px;padding-bottom:10px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper{column-gap:4px;padding:8px 8px 0;width:216px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateRange],.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateTimeRange]{width:432px;padding-top:0}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateRange] .semi-input-wrapper,.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=dateTimeRange] .semi-input-wrapper{margin-top:8px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper[x-type=month]{width:195px}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper .semi-input-wrapper{height:28px;box-sizing:border-box}.semi-datepicker-compact .semi-datepicker-inset-input-wrapper .semi-input-wrapper .semi-input{font-size:12px;line-height:26px;height:26px;vertical-align:top}.semi-datepicker-compact .semi-datepicker-inset-input-separator{border-left:1px solid var(--semi-color-border);transform:translate(50%);height:auto}.semi-popover-wrapper[x-placement^=top] .semi-datepicker .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=leftTop] .semi-datepicker .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=rightTop] .semi-datepicker .semi-datepicker-weeks,.semi-popover-wrapper[x-placement*=BottomOver] .semi-datepicker .semi-datepicker-weeks{min-height:216px}.semi-popover-wrapper[x-placement^=top] .semi-datepicker-compact .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=leftTop] .semi-datepicker-compact .semi-datepicker-weeks,.semi-popover-wrapper[x-placement=rightTop] .semi-datepicker-compact .semi-datepicker-weeks,.semi-popover-wrapper[x-placement*=BottomOver] .semi-datepicker-compact .semi-datepicker-weeks{min-height:168px}.semi-datepicker-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-datepicker-borderless:not(:focus-within):not(:hover) .semi-input-suffix,.semi-datepicker-borderless:not(:focus-within):not(:hover) .semi-datepicker-range-input-suffix{opacity:0}.semi-datepicker-borderless:focus-within:not(:active){background-color:transparent}.semi-datepicker-borderless.semi-datepicker-range-input-error .semi-datepicker-range-input-wrapper-active{border-color:transparent}.semi-datepicker-borderless.semi-datepicker-range-input-error:hover{background-color:var(--semi-color-danger-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-error:focus-within{background-color:var(--semi-color-danger-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-error:not(:focus-within){border-width:1px;border-color:var(--semi-color-danger)}.semi-datepicker-borderless.semi-datepicker-range-input-error:focus-within{border-width:1px;border-color:var(--semi-color-danger)}.semi-datepicker-borderless.semi-datepicker-range-input-warning .semi-datepicker-range-input-wrapper-active{border-color:transparent}.semi-datepicker-borderless.semi-datepicker-range-input-warning:hover{background-color:var(--semi-color-warning-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-warning:focus-within{background-color:var(--semi-color-warning-light-default)}.semi-datepicker-borderless.semi-datepicker-range-input-warning:not(:focus-within){border-width:1px;border-color:var(--semi-color-warning)}.semi-datepicker-borderless.semi-datepicker-range-input-warning:focus-within{border-width:1px;border-color:var(--semi-color-warning)}.semi-rtl .semi-datepicker,.semi-portal-rtl .semi-datepicker{direction:rtl}.semi-rtl .semi-datepicker-footer,.semi-portal-rtl .semi-datepicker-footer{padding-right:0;padding-left:8px;text-align:left}.semi-rtl .semi-datepicker-footer .semi-button:first-of-type,.semi-portal-rtl .semi-datepicker-footer .semi-button:first-of-type{margin-left:0;margin-right:0}.semi-rtl .semi-datepicker-footer .semi-button:nth-of-type(2),.semi-portal-rtl .semi-datepicker-footer .semi-button:nth-of-type(2){margin-right:12px;margin-left:0}.semi-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-rtl .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-hoverday-before-selectedrange .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-hoverday-before-selectedrange .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{margin-right:2px;margin-left:auto;border-radius:0 var(--semi-border-radius-small) var(--semi-border-radius-small) 0}.semi-rtl .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-hoverday-after-selectedrange .semi-datepicker-day-main,.semi-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-hoverday-after-selectedrange .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{margin-left:2px;margin-right:auto;border-radius:var(--semi-border-radius-small) 0 0 var(--semi-border-radius-small)}.semi-rtl .semi-datepicker-switch-text,.semi-portal-rtl .semi-datepicker-switch-text{padding-left:0;padding-right:8px}.semi-rtl .semi-datepicker-navigation .semi-icon-chevron_left,.semi-rtl .semi-datepicker-navigation .semi-icon-chevron_right,.semi-rtl .semi-datepicker-navigation .semi-icon-double_chevron_left,.semi-rtl .semi-datepicker-navigation .semi-icon-double_chevron_right,.semi-rtl .semi-datepicker-yam .semi-icon-chevron_left,.semi-rtl .semi-datepicker-yam .semi-icon-chevron_right,.semi-rtl .semi-datepicker-yam .semi-icon-double_chevron_left,.semi-rtl .semi-datepicker-yam .semi-icon-double_chevron_right,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-chevron_left,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-chevron_right,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-double_chevron_left,.semi-portal-rtl .semi-datepicker-navigation .semi-icon-double_chevron_right,.semi-portal-rtl .semi-datepicker-yam .semi-icon-chevron_left,.semi-portal-rtl .semi-datepicker-yam .semi-icon-chevron_right,.semi-portal-rtl .semi-datepicker-yam .semi-icon-double_chevron_left,.semi-portal-rtl .semi-datepicker-yam .semi-icon-double_chevron_right{transform:scaleX(-1)}.semi-rtl .semi-datepicker-range-input-prefix,.semi-portal-rtl .semi-datepicker-range-input-prefix{padding-left:8px;padding-right:12px}.semi-rtl .semi-datepicker-range-input-suffix,.semi-portal-rtl .semi-datepicker-range-input-suffix{padding-left:12px;padding-right:8px}.semi-rtl .semi-datepicker-range-input-suffix-hidden,.semi-portal-rtl .semi-datepicker-range-input-suffix-hidden{display:none}.semi-rtl .semi-datepicker-range-input-clearbtn,.semi-portal-rtl .semi-datepicker-range-input-clearbtn{padding-left:12px;padding-right:8px}.semi-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left,.semi-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateRange] .semi-datepicker-month-grid-left,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-month-grid[x-type=dateTimeRange] .semi-datepicker-month-grid-left{border-left:1px solid var(--semi-color-border);border-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-month-grid .semi-scrolllist-item-wheel{border-left:0;border-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-start .semi-datepicker-day-main{border-radius:0 4px 4px 0}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-offsetrange-end .semi-datepicker-day-main{border-radius:4px 0 0 4px}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-selected-start .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-selected-start .semi-datepicker-day-main{margin-left:0;margin-right:2px;border-radius:0 4px 4px 0}.semi-rtl .semi-datepicker-compact .semi-datepicker-day-selected-end .semi-datepicker-day-main,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-day-selected-end .semi-datepicker-day-main{margin-right:0;margin-left:2px;border-radius:4px 0 0 4px}.semi-rtl .semi-datepicker-compact .semi-datepicker-switch-date,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-switch-date{border-left:1px solid var(--semi-color-border);border-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-switch-text,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-switch-text{padding-left:auto;padding-right:0}.semi-rtl .semi-datepicker-compact .semi-datepicker-footer,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-footer{padding-left:8px;padding-right:auto}.semi-rtl .semi-datepicker-compact .semi-datepicker-inset-input-separator,.semi-portal-rtl .semi-datepicker-compact .semi-datepicker-inset-input-separator{border-right:1px solid var(--semi-color-border);border-left:0;transform:translate(-50%)}.semi-descriptions{line-height:20px}.semi-descriptions table,.semi-descriptions tr,.semi-descriptions th,.semi-descriptions td{margin:0;padding:0;border:0}.semi-descriptions th{padding-right:24px}.semi-descriptions .semi-descriptions-item{margin:0;padding-bottom:12px;text-align:left;vertical-align:top}.semi-descriptions-key{font-weight:400;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-height:14px;white-space:nowrap;color:var(--semi-color-text-2)}.semi-descriptions-value{font-weight:400;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-0)}.semi-descriptions-center .semi-descriptions-item-th{text-align:right}.semi-descriptions-center .semi-descriptions-item-td,.semi-descriptions-left .semi-descriptions-item-th,.semi-descriptions-left .semi-descriptions-item-td,.semi-descriptions-justify .semi-descriptions-item-th{text-align:left}.semi-descriptions-justify .semi-descriptions-item-td{text-align:right}.semi-descriptions-plain .semi-descriptions-key,.semi-descriptions-plain .semi-descriptions-value{display:inline-block}.semi-descriptions-plain .semi-descriptions-value{padding-left:8px}.semi-descriptions-plain .semi-descriptions-value .semi-tag{vertical-align:middle}.semi-descriptions-double tbody{display:flex;flex-wrap:wrap}.semi-descriptions-double tr{display:inline-flex;flex-direction:column}.semi-descriptions-double .semi-descriptions-item{padding:0;flex:1}.semi-descriptions-double .semi-descriptions-value{font-weight:600}.semi-descriptions-double-small .semi-descriptions-item{padding-right:48px}.semi-descriptions-double-small .semi-descriptions-key{line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;padding-bottom:0;font-size:12px}.semi-descriptions-double-small .semi-descriptions-value{line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px}.semi-descriptions-double-medium .semi-descriptions-item{padding-right:60px}.semi-descriptions-double-medium .semi-descriptions-key{padding-bottom:4px;font-size:14px}.semi-descriptions-double-medium .semi-descriptions-value{line-height:28px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:20px}.semi-descriptions-double-large .semi-descriptions-item{padding-right:80px}.semi-descriptions-double-large .semi-descriptions-key{padding-bottom:4px;font-size:14px}.semi-descriptions-double-large .semi-descriptions-value{line-height:40px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:28px}.semi-rtl .semi-descriptions,.semi-portal-rtl .semi-descriptions{direction:rtl}.semi-rtl .semi-descriptions th,.semi-portal-rtl .semi-descriptions th{direction:rtl;padding-right:0;padding-left:24px}.semi-rtl .semi-descriptions .semi-descriptions-item,.semi-portal-rtl .semi-descriptions .semi-descriptions-item{text-align:right}.semi-rtl .semi-descriptions-center .semi-descriptions-item-th,.semi-portal-rtl .semi-descriptions-center .semi-descriptions-item-th{text-align:left}.semi-rtl .semi-descriptions-center .semi-descriptions-item-td,.semi-portal-rtl .semi-descriptions-center .semi-descriptions-item-td{text-align:right}.semi-rtl .semi-descriptions-left .semi-descriptions-item-th,.semi-rtl .semi-descriptions-left .semi-descriptions-item-td,.semi-portal-rtl .semi-descriptions-left .semi-descriptions-item-th,.semi-portal-rtl .semi-descriptions-left .semi-descriptions-item-td{text-align:left}.semi-rtl .semi-descriptions-justify .semi-descriptions-item-th,.semi-portal-rtl .semi-descriptions-justify .semi-descriptions-item-th{text-align:right}.semi-rtl .semi-descriptions-justify .semi-descriptions-item-td,.semi-portal-rtl .semi-descriptions-justify .semi-descriptions-item-td{text-align:left}.semi-rtl .semi-descriptions-plain .semi-descriptions-key,.semi-rtl .semi-descriptions-plain .semi-descriptions-value,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-key,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-value{display:inline-block}.semi-rtl .semi-descriptions-plain .semi-descriptions-value,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-value{padding-left:0;padding-right:8px}.semi-rtl .semi-descriptions-plain .semi-descriptions-value .semi-tag,.semi-portal-rtl .semi-descriptions-plain .semi-descriptions-value .semi-tag{vertical-align:middle}.semi-rtl .semi-descriptions-double,.semi-portal-rtl .semi-descriptions-double{direction:rtl}.semi-rtl .semi-descriptions-double .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double .semi-descriptions-item{text-align:right}.semi-rtl .semi-descriptions-double-small .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double-small .semi-descriptions-item{padding-right:0;padding-left:48px}.semi-rtl .semi-descriptions-double-medium .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double-medium .semi-descriptions-item{padding-right:0;padding-left:60px}.semi-rtl .semi-descriptions-double-large .semi-descriptions-item,.semi-portal-rtl .semi-descriptions-double-large .semi-descriptions-item{padding-right:0;padding-left:80px}.semi-empty{display:flex}.semi-empty-image{display:flex;justify-content:center;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;pointer-events:none}.semi-empty-vertical{align-items:center;flex-direction:column}.semi-empty-vertical .semi-empty-content{margin-top:24px}.semi-empty-vertical .semi-empty-title,.semi-empty-vertical .semi-empty-description{text-align:center}.semi-empty-horizontal .semi-empty-content{margin-left:32px}.semi-empty-title.semi-typography{display:block;font-weight:600}.semi-empty-title+.semi-empty-description{margin-top:16px}.semi-empty-description{color:var(--semi-color-text-1)}.semi-empty-footer{margin-top:24px}.semi-rtl .semi-empty,.semi-portal-rtl .semi-empty{direction:rtl}.semi-rtl .semi-empty-horizontal .semi-empty-content,.semi-portal-rtl .semi-empty-horizontal .semi-empty-content{margin-left:auto;margin-right:32px}.semi-modal{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;position:relative;margin:80px auto;color:var(--semi-color-text-0)}.semi-modal-mask{position:fixed;top:0;right:0;left:0;bottom:0;background-color:var(--semi-color-overlay-bg);height:100%;z-index:1000}.semi-modal-mask-hidden{display:none}.semi-modal-icon-wrapper{display:inline-flex;margin-right:12px;width:24px}.semi-modal-wrap{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;z-index:1000;-webkit-overflow-scrolling:touch;outline:0}.semi-modal-wrap-center{display:flex;align-items:center}.semi-modal-title{display:inline-flex;align-items:flex-start;justify-content:flex-start;width:100%;margin:0}.semi-modal-content{position:relative;display:flex;height:100%;width:100%;box-sizing:border-box;flex-direction:column;background-color:var(--semi-color-bg-2);border:1px solid var(--semi-color-border);border-radius:var(--semi-border-radius-large);padding:0 24px;background-clip:padding-box;overflow:hidden;box-shadow:var(--semi-shadow-elevated)}.semi-modal-content-fullScreen{border-radius:0;border:none;top:0}.semi-modal-header{display:flex;align-items:flex-start;margin:24px 0;padding:0;font-size:14px;font-weight:600;background-color:transparent;color:var(--semi-color-text-0);border-bottom:0 solid transparent}.semi-modal-body-wrapper{display:flex;align-items:flex-start;margin:24px 0}.semi-modal-body{flex:1 1 auto;margin:0;padding:0}.semi-modal-withIcon{margin-left:36px}.semi-modal-footer{margin:24px 0;padding:0;text-align:right;border-radius:0 0 5px 5px;border-top:0 solid transparent;background-color:transparent}.semi-modal-footer .semi-button{margin-left:12px;margin-right:0}.semi-modal-confirm .semi-modal-header{margin-bottom:8px}.semi-modal-confirm-icon-wrapper{display:inline-flex;margin-right:12px;width:24px}.semi-modal-confirm-icon{display:inline-flex;color:var(--semi-color-primary)}.semi-modal-info-icon{color:var(--semi-color-info)}.semi-modal-success-icon{color:var(--semi-color-success)}.semi-modal-error-icon{color:var(--semi-color-danger)}.semi-modal-warning-icon{color:var(--semi-color-warning)}.semi-modal-small{width:448px}.semi-modal-medium{width:684px}.semi-modal-large{width:920px}.semi-modal-full-width{width:calc(100vw - 64px)}.semi-modal-centered{margin:0 auto}.semi-modal-popup .semi-modal-mask,.semi-modal-popup .semi-modal-wrap{position:absolute;overflow:hidden}.semi-modal-fixed .semi-modal-mask,.semi-modal-fixed .semi-modal-wrap{position:fixed;overflow:hidden}.semi-modal-displayNone{display:none}.semi-modal-content-animate-show{animation:.12s semi-modal-content-keyframe-show cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}.semi-modal-content-animate-hide{animation:.12s semi-modal-content-keyframe-hide cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}.semi-modal-mask-animate-show{animation:90ms semi-modal-mask-keyframe-show cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}.semi-modal-mask-animate-hide{animation:90ms semi-modal-mask-keyframe-hide cubic-bezier(.215,.61,.355,1) 0ms forwards;animation-fill-mode:forwards}@keyframes semi-modal-content-keyframe-show{0%{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1)}}@keyframes semi-modal-content-keyframe-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.7)}}@keyframes semi-modal-mask-keyframe-show{0%{opacity:0}to{opacity:1}}@keyframes semi-modal-mask-keyframe-hide{0%{opacity:1}to{opacity:0}}.semi-modal-rtl{direction:rtl}.semi-modal-rtl .semi-modal-icon-wrapper,.semi-modal-confirm-rtl .semi-modal-icon-wrapper{margin-right:0;margin-left:12px}.semi-modal-rtl .semi-modal-withIcon,.semi-modal-confirm-rtl .semi-modal-withIcon{margin-left:0;margin-right:36px}.semi-modal-rtl .semi-modal-footer,.semi-modal-confirm-rtl .semi-modal-footer{text-align:left}.semi-modal-rtl .semi-modal-footer .semi-button,.semi-modal-confirm-rtl .semi-modal-footer .semi-button{margin-left:0;margin-right:12px}.semi-modal-confirm-rtl{direction:rtl}.semi-modal-confirm .semi-modal-confirm-rtl .semi-button{margin-left:0;margin-right:12px}.semi-dropdown{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-dropdown-wrapper{box-shadow:var(--semi-shadow-elevated);position:relative;z-index:1050;border-radius:var(--semi-border-radius-medium);background:var(--semi-color-bg-3);opacity:0}.semi-dropdown-wrapper-show{opacity:1}.semi-dropdown-trigger{display:inline-block}.semi-dropdown-menu{list-style:none;padding:4px 0;margin:0}.semi-dropdown-title{color:var(--semi-color-text-2);padding:8px 16px 4px;font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:default}.semi-dropdown-title-withTick{padding-left:31px}.semi-dropdown-item{padding:8px 16px;color:var(--semi-color-text-0);max-width:280px;display:flex;align-items:center;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-dropdown-item-hover{background-color:var(--semi-color-fill-0)}.semi-dropdown-item:not(.semi-dropdown-item-active):hover{background-color:var(--semi-color-fill-0);cursor:pointer}.semi-dropdown-item:not(.semi-dropdown-item-active):active{background-color:var(--semi-color-fill-1)}.semi-dropdown-item:focus-visible{background-color:var(--semi-color-fill-0);outline:0}.semi-dropdown-item-icon{display:inline-flex;align-items:center;margin-right:8px}.semi-dropdown-item-danger{color:var(--semi-color-danger)}.semi-dropdown-item-secondary{color:var(--semi-color-secondary)}.semi-dropdown-item-warning{color:var(--semi-color-warning)}.semi-dropdown-item-tertiary{color:var(--semi-color-tertiary)}.semi-dropdown-item-primary{color:var(--semi-color-primary)}.semi-dropdown-item-withTick{padding-left:12px}.semi-dropdown-item>.semi-icon{flex-shrink:0;margin-right:9px;font-size:12px}.semi-dropdown-item-active{font-weight:600}.semi-dropdown-item.semi-dropdown-item-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-dropdown-item.semi-dropdown-item-disabled:hover,.semi-dropdown-item.semi-dropdown-item-disabled:active{cursor:not-allowed;background-color:transparent}.semi-dropdown-divider{display:block;height:1px;width:100%;min-width:100%;clear:both;background:var(--semi-color-border);margin:4px 0}.semi-rtl .semi-dropdown-wrapper,.semi-portal-rtl .semi-dropdown-wrapper{direction:rtl}.semi-rtl .semi-dropdown-title-withTick,.semi-portal-rtl .semi-dropdown-title-withTick{padding-left:0;padding-right:31px}.semi-rtl .semi-dropdown-item-withTick,.semi-portal-rtl .semi-dropdown-item-withTick{padding-left:auto;padding-right:12px}.semi-rtl .semi-dropdown-item>.semi-icon,.semi-portal-rtl .semi-dropdown-item>.semi-icon{margin-right:0;margin-left:9px}.semi-row{position:relative;height:auto;margin-right:0;margin-left:0;zoom:1;display:block;box-sizing:border-box}.semi-row:before,.semi-row:after{display:table;content:""}.semi-row:after{clear:both}.semi-row-flex{display:flex;flex-flow:row wrap}.semi-row-flex:before,.semi-row-flex:after{display:flex}.semi-col-0,.semi-col-xs-0,.semi-col-sm-0,.semi-col-md-0,.semi-col-lg-0,.semi-col-xl-0,.semi-col-xxl-0{display:none}.semi-row-flex-start{justify-content:flex-start}.semi-row-flex-center{justify-content:center}.semi-row-flex-end{justify-content:flex-end}.semi-row-flex-space-between{justify-content:space-between}.semi-row-flex-space-around{justify-content:space-around}.semi-row-flex-top{align-items:flex-start}.semi-row-flex-middle{align-items:center}.semi-row-flex-bottom{align-items:flex-end}.semi-col{position:relative}.semi-col-1,.semi-col-xs-1,.semi-col-sm-1,.semi-col-md-1,.semi-col-lg-1,.semi-col-2,.semi-col-xs-2,.semi-col-sm-2,.semi-col-md-2,.semi-col-lg-2,.semi-col-3,.semi-col-xs-3,.semi-col-sm-3,.semi-col-md-3,.semi-col-lg-3,.semi-col-4,.semi-col-xs-4,.semi-col-sm-4,.semi-col-md-4,.semi-col-lg-4,.semi-col-5,.semi-col-xs-5,.semi-col-sm-5,.semi-col-md-5,.semi-col-lg-5,.semi-col-6,.semi-col-xs-6,.semi-col-sm-6,.semi-col-md-6,.semi-col-lg-6,.semi-col-7,.semi-col-xs-7,.semi-col-sm-7,.semi-col-md-7,.semi-col-lg-7,.semi-col-8,.semi-col-xs-8,.semi-col-sm-8,.semi-col-md-8,.semi-col-lg-8,.semi-col-9,.semi-col-xs-9,.semi-col-sm-9,.semi-col-md-9,.semi-col-lg-9,.semi-col-10,.semi-col-xs-10,.semi-col-sm-10,.semi-col-md-10,.semi-col-lg-10,.semi-col-11,.semi-col-xs-11,.semi-col-sm-11,.semi-col-md-11,.semi-col-lg-11,.semi-col-12,.semi-col-xs-12,.semi-col-sm-12,.semi-col-md-12,.semi-col-lg-12,.semi-col-13,.semi-col-xs-13,.semi-col-sm-13,.semi-col-md-13,.semi-col-lg-13,.semi-col-14,.semi-col-xs-14,.semi-col-sm-14,.semi-col-md-14,.semi-col-lg-14,.semi-col-15,.semi-col-xs-15,.semi-col-sm-15,.semi-col-md-15,.semi-col-lg-15,.semi-col-16,.semi-col-xs-16,.semi-col-sm-16,.semi-col-md-16,.semi-col-lg-16,.semi-col-17,.semi-col-xs-17,.semi-col-sm-17,.semi-col-md-17,.semi-col-lg-17,.semi-col-18,.semi-col-xs-18,.semi-col-sm-18,.semi-col-md-18,.semi-col-lg-18,.semi-col-19,.semi-col-xs-19,.semi-col-sm-19,.semi-col-md-19,.semi-col-lg-19,.semi-col-20,.semi-col-xs-20,.semi-col-sm-20,.semi-col-md-20,.semi-col-lg-20,.semi-col-21,.semi-col-xs-21,.semi-col-sm-21,.semi-col-md-21,.semi-col-lg-21,.semi-col-22,.semi-col-xs-22,.semi-col-sm-22,.semi-col-md-22,.semi-col-lg-22,.semi-col-23,.semi-col-xs-23,.semi-col-sm-23,.semi-col-md-23,.semi-col-lg-23,.semi-col-24,.semi-col-xs-24,.semi-col-sm-24,.semi-col-md-24,.semi-col-lg-24{position:relative;min-height:1px;padding-right:0;padding-left:0}.semi-col-1,.semi-col-2,.semi-col-3,.semi-col-4,.semi-col-5,.semi-col-6,.semi-col-7,.semi-col-8,.semi-col-9,.semi-col-10,.semi-col-11,.semi-col-12,.semi-col-13,.semi-col-14,.semi-col-15,.semi-col-16,.semi-col-17,.semi-col-18,.semi-col-19,.semi-col-20,.semi-col-21,.semi-col-22,.semi-col-23,.semi-col-24{flex:0 0 auto;float:left}.semi-col-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-push-1{left:4.1666666667%}.semi-col-pull-1{right:4.1666666667%}.semi-col-offset-1{margin-left:4.1666666667%}.semi-col-order-1{order:1}.semi-col-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-push-2{left:8.3333333333%}.semi-col-pull-2{right:8.3333333333%}.semi-col-offset-2{margin-left:8.3333333333%}.semi-col-order-2{order:2}.semi-col-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-push-3{left:12.5%}.semi-col-pull-3{right:12.5%}.semi-col-offset-3{margin-left:12.5%}.semi-col-order-3{order:3}.semi-col-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-push-4{left:16.6666666667%}.semi-col-pull-4{right:16.6666666667%}.semi-col-offset-4{margin-left:16.6666666667%}.semi-col-order-4{order:4}.semi-col-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-push-5{left:20.8333333333%}.semi-col-pull-5{right:20.8333333333%}.semi-col-offset-5{margin-left:20.8333333333%}.semi-col-order-5{order:5}.semi-col-6{display:block;box-sizing:border-box;width:25%}.semi-col-push-6{left:25%}.semi-col-pull-6{right:25%}.semi-col-offset-6{margin-left:25%}.semi-col-order-6{order:6}.semi-col-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-push-7{left:29.1666666667%}.semi-col-pull-7{right:29.1666666667%}.semi-col-offset-7{margin-left:29.1666666667%}.semi-col-order-7{order:7}.semi-col-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-push-8{left:33.3333333333%}.semi-col-pull-8{right:33.3333333333%}.semi-col-offset-8{margin-left:33.3333333333%}.semi-col-order-8{order:8}.semi-col-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-push-9{left:37.5%}.semi-col-pull-9{right:37.5%}.semi-col-offset-9{margin-left:37.5%}.semi-col-order-9{order:9}.semi-col-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-push-10{left:41.6666666667%}.semi-col-pull-10{right:41.6666666667%}.semi-col-offset-10{margin-left:41.6666666667%}.semi-col-order-10{order:10}.semi-col-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-push-11{left:45.8333333333%}.semi-col-pull-11{right:45.8333333333%}.semi-col-offset-11{margin-left:45.8333333333%}.semi-col-order-11{order:11}.semi-col-12{display:block;box-sizing:border-box;width:50%}.semi-col-push-12{left:50%}.semi-col-pull-12{right:50%}.semi-col-offset-12{margin-left:50%}.semi-col-order-12{order:12}.semi-col-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-push-13{left:54.1666666667%}.semi-col-pull-13{right:54.1666666667%}.semi-col-offset-13{margin-left:54.1666666667%}.semi-col-order-13{order:13}.semi-col-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-push-14{left:58.3333333333%}.semi-col-pull-14{right:58.3333333333%}.semi-col-offset-14{margin-left:58.3333333333%}.semi-col-order-14{order:14}.semi-col-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-push-15{left:62.5%}.semi-col-pull-15{right:62.5%}.semi-col-offset-15{margin-left:62.5%}.semi-col-order-15{order:15}.semi-col-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-push-16{left:66.6666666667%}.semi-col-pull-16{right:66.6666666667%}.semi-col-offset-16{margin-left:66.6666666667%}.semi-col-order-16{order:16}.semi-col-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-push-17{left:70.8333333333%}.semi-col-pull-17{right:70.8333333333%}.semi-col-offset-17{margin-left:70.8333333333%}.semi-col-order-17{order:17}.semi-col-18{display:block;box-sizing:border-box;width:75%}.semi-col-push-18{left:75%}.semi-col-pull-18{right:75%}.semi-col-offset-18{margin-left:75%}.semi-col-order-18{order:18}.semi-col-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-push-19{left:79.1666666667%}.semi-col-pull-19{right:79.1666666667%}.semi-col-offset-19{margin-left:79.1666666667%}.semi-col-order-19{order:19}.semi-col-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-push-20{left:83.3333333333%}.semi-col-pull-20{right:83.3333333333%}.semi-col-offset-20{margin-left:83.3333333333%}.semi-col-order-20{order:20}.semi-col-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-push-21{left:87.5%}.semi-col-pull-21{right:87.5%}.semi-col-offset-21{margin-left:87.5%}.semi-col-order-21{order:21}.semi-col-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-push-22{left:91.6666666667%}.semi-col-pull-22{right:91.6666666667%}.semi-col-offset-22{margin-left:91.6666666667%}.semi-col-order-22{order:22}.semi-col-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-push-23{left:95.8333333333%}.semi-col-pull-23{right:95.8333333333%}.semi-col-offset-23{margin-left:95.8333333333%}.semi-col-order-23{order:23}.semi-col-24{display:block;box-sizing:border-box;width:100%}.semi-col-push-24{left:100%}.semi-col-pull-24{right:100%}.semi-col-offset-24{margin-left:100%}.semi-col-order-24{order:24}.semi-rtl .semi-col-1,.semi-rtl .semi-col-2,.semi-rtl .semi-col-3,.semi-rtl .semi-col-4,.semi-rtl .semi-col-5,.semi-rtl .semi-col-6,.semi-rtl .semi-col-7,.semi-rtl .semi-col-8,.semi-rtl .semi-col-9,.semi-rtl .semi-col-10,.semi-rtl .semi-col-11,.semi-rtl .semi-col-12,.semi-rtl .semi-col-13,.semi-rtl .semi-col-14,.semi-rtl .semi-col-15,.semi-rtl .semi-col-16,.semi-rtl .semi-col-17,.semi-rtl .semi-col-18,.semi-rtl .semi-col-19,.semi-rtl .semi-col-20,.semi-rtl .semi-col-21,.semi-rtl .semi-col-22,.semi-rtl .semi-col-23,.semi-rtl .semi-col-24{float:right}.semi-rtl .semi-col-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-offset-24{margin-left:auto;margin-right:100%}.semi-col-xs-1,.semi-col-xs-2,.semi-col-xs-3,.semi-col-xs-4,.semi-col-xs-5,.semi-col-xs-6,.semi-col-xs-7,.semi-col-xs-8,.semi-col-xs-9,.semi-col-xs-10,.semi-col-xs-11,.semi-col-xs-12,.semi-col-xs-13,.semi-col-xs-14,.semi-col-xs-15,.semi-col-xs-16,.semi-col-xs-17,.semi-col-xs-18,.semi-col-xs-19,.semi-col-xs-20,.semi-col-xs-21,.semi-col-xs-22,.semi-col-xs-23,.semi-col-xs-24{flex:0 0 auto;float:left}.semi-col-xs-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-xs-push-1{left:4.1666666667%}.semi-col-xs-pull-1{right:4.1666666667%}.semi-col-xs-offset-1{margin-left:4.1666666667%}.semi-col-xs-order-1{order:1}.semi-col-xs-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-xs-push-2{left:8.3333333333%}.semi-col-xs-pull-2{right:8.3333333333%}.semi-col-xs-offset-2{margin-left:8.3333333333%}.semi-col-xs-order-2{order:2}.semi-col-xs-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-xs-push-3{left:12.5%}.semi-col-xs-pull-3{right:12.5%}.semi-col-xs-offset-3{margin-left:12.5%}.semi-col-xs-order-3{order:3}.semi-col-xs-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-xs-push-4{left:16.6666666667%}.semi-col-xs-pull-4{right:16.6666666667%}.semi-col-xs-offset-4{margin-left:16.6666666667%}.semi-col-xs-order-4{order:4}.semi-col-xs-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-xs-push-5{left:20.8333333333%}.semi-col-xs-pull-5{right:20.8333333333%}.semi-col-xs-offset-5{margin-left:20.8333333333%}.semi-col-xs-order-5{order:5}.semi-col-xs-6{display:block;box-sizing:border-box;width:25%}.semi-col-xs-push-6{left:25%}.semi-col-xs-pull-6{right:25%}.semi-col-xs-offset-6{margin-left:25%}.semi-col-xs-order-6{order:6}.semi-col-xs-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-xs-push-7{left:29.1666666667%}.semi-col-xs-pull-7{right:29.1666666667%}.semi-col-xs-offset-7{margin-left:29.1666666667%}.semi-col-xs-order-7{order:7}.semi-col-xs-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-xs-push-8{left:33.3333333333%}.semi-col-xs-pull-8{right:33.3333333333%}.semi-col-xs-offset-8{margin-left:33.3333333333%}.semi-col-xs-order-8{order:8}.semi-col-xs-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-xs-push-9{left:37.5%}.semi-col-xs-pull-9{right:37.5%}.semi-col-xs-offset-9{margin-left:37.5%}.semi-col-xs-order-9{order:9}.semi-col-xs-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-xs-push-10{left:41.6666666667%}.semi-col-xs-pull-10{right:41.6666666667%}.semi-col-xs-offset-10{margin-left:41.6666666667%}.semi-col-xs-order-10{order:10}.semi-col-xs-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-xs-push-11{left:45.8333333333%}.semi-col-xs-pull-11{right:45.8333333333%}.semi-col-xs-offset-11{margin-left:45.8333333333%}.semi-col-xs-order-11{order:11}.semi-col-xs-12{display:block;box-sizing:border-box;width:50%}.semi-col-xs-push-12{left:50%}.semi-col-xs-pull-12{right:50%}.semi-col-xs-offset-12{margin-left:50%}.semi-col-xs-order-12{order:12}.semi-col-xs-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-xs-push-13{left:54.1666666667%}.semi-col-xs-pull-13{right:54.1666666667%}.semi-col-xs-offset-13{margin-left:54.1666666667%}.semi-col-xs-order-13{order:13}.semi-col-xs-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-xs-push-14{left:58.3333333333%}.semi-col-xs-pull-14{right:58.3333333333%}.semi-col-xs-offset-14{margin-left:58.3333333333%}.semi-col-xs-order-14{order:14}.semi-col-xs-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-xs-push-15{left:62.5%}.semi-col-xs-pull-15{right:62.5%}.semi-col-xs-offset-15{margin-left:62.5%}.semi-col-xs-order-15{order:15}.semi-col-xs-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-xs-push-16{left:66.6666666667%}.semi-col-xs-pull-16{right:66.6666666667%}.semi-col-xs-offset-16{margin-left:66.6666666667%}.semi-col-xs-order-16{order:16}.semi-col-xs-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-xs-push-17{left:70.8333333333%}.semi-col-xs-pull-17{right:70.8333333333%}.semi-col-xs-offset-17{margin-left:70.8333333333%}.semi-col-xs-order-17{order:17}.semi-col-xs-18{display:block;box-sizing:border-box;width:75%}.semi-col-xs-push-18{left:75%}.semi-col-xs-pull-18{right:75%}.semi-col-xs-offset-18{margin-left:75%}.semi-col-xs-order-18{order:18}.semi-col-xs-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-xs-push-19{left:79.1666666667%}.semi-col-xs-pull-19{right:79.1666666667%}.semi-col-xs-offset-19{margin-left:79.1666666667%}.semi-col-xs-order-19{order:19}.semi-col-xs-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-xs-push-20{left:83.3333333333%}.semi-col-xs-pull-20{right:83.3333333333%}.semi-col-xs-offset-20{margin-left:83.3333333333%}.semi-col-xs-order-20{order:20}.semi-col-xs-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-xs-push-21{left:87.5%}.semi-col-xs-pull-21{right:87.5%}.semi-col-xs-offset-21{margin-left:87.5%}.semi-col-xs-order-21{order:21}.semi-col-xs-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-xs-push-22{left:91.6666666667%}.semi-col-xs-pull-22{right:91.6666666667%}.semi-col-xs-offset-22{margin-left:91.6666666667%}.semi-col-xs-order-22{order:22}.semi-col-xs-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-xs-push-23{left:95.8333333333%}.semi-col-xs-pull-23{right:95.8333333333%}.semi-col-xs-offset-23{margin-left:95.8333333333%}.semi-col-xs-order-23{order:23}.semi-col-xs-24{display:block;box-sizing:border-box;width:100%}.semi-col-xs-push-24{left:100%}.semi-col-xs-pull-24{right:100%}.semi-col-xs-offset-24{margin-left:100%}.semi-col-xs-order-24{order:24}.semi-rtl .semi-col-xs-1,.semi-rtl .semi-col-xs-2,.semi-rtl .semi-col-xs-3,.semi-rtl .semi-col-xs-4,.semi-rtl .semi-col-xs-5,.semi-rtl .semi-col-xs-6,.semi-rtl .semi-col-xs-7,.semi-rtl .semi-col-xs-8,.semi-rtl .semi-col-xs-9,.semi-rtl .semi-col-xs-10,.semi-rtl .semi-col-xs-11,.semi-rtl .semi-col-xs-12,.semi-rtl .semi-col-xs-13,.semi-rtl .semi-col-xs-14,.semi-rtl .semi-col-xs-15,.semi-rtl .semi-col-xs-16,.semi-rtl .semi-col-xs-17,.semi-rtl .semi-col-xs-18,.semi-rtl .semi-col-xs-19,.semi-rtl .semi-col-xs-20,.semi-rtl .semi-col-xs-21,.semi-rtl .semi-col-xs-22,.semi-rtl .semi-col-xs-23,.semi-rtl .semi-col-xs-24{float:right}.semi-rtl .semi-col-xs-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-xs-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-xs-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-xs-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-xs-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-xs-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-xs-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-xs-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-xs-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-xs-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-xs-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-xs-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-xs-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-xs-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-xs-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-xs-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-xs-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-xs-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-xs-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-xs-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-xs-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-xs-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-xs-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-xs-offset-24{margin-left:auto;margin-right:100%}@media (min-width: 576px){.semi-col-sm-1,.semi-col-sm-2,.semi-col-sm-3,.semi-col-sm-4,.semi-col-sm-5,.semi-col-sm-6,.semi-col-sm-7,.semi-col-sm-8,.semi-col-sm-9,.semi-col-sm-10,.semi-col-sm-11,.semi-col-sm-12,.semi-col-sm-13,.semi-col-sm-14,.semi-col-sm-15,.semi-col-sm-16,.semi-col-sm-17,.semi-col-sm-18,.semi-col-sm-19,.semi-col-sm-20,.semi-col-sm-21,.semi-col-sm-22,.semi-col-sm-23,.semi-col-sm-24{flex:0 0 auto;float:left}.semi-col-sm-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-sm-push-1{left:4.1666666667%}.semi-col-sm-pull-1{right:4.1666666667%}.semi-col-sm-offset-1{margin-left:4.1666666667%}.semi-col-sm-order-1{order:1}.semi-col-sm-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-sm-push-2{left:8.3333333333%}.semi-col-sm-pull-2{right:8.3333333333%}.semi-col-sm-offset-2{margin-left:8.3333333333%}.semi-col-sm-order-2{order:2}.semi-col-sm-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-sm-push-3{left:12.5%}.semi-col-sm-pull-3{right:12.5%}.semi-col-sm-offset-3{margin-left:12.5%}.semi-col-sm-order-3{order:3}.semi-col-sm-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-sm-push-4{left:16.6666666667%}.semi-col-sm-pull-4{right:16.6666666667%}.semi-col-sm-offset-4{margin-left:16.6666666667%}.semi-col-sm-order-4{order:4}.semi-col-sm-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-sm-push-5{left:20.8333333333%}.semi-col-sm-pull-5{right:20.8333333333%}.semi-col-sm-offset-5{margin-left:20.8333333333%}.semi-col-sm-order-5{order:5}.semi-col-sm-6{display:block;box-sizing:border-box;width:25%}.semi-col-sm-push-6{left:25%}.semi-col-sm-pull-6{right:25%}.semi-col-sm-offset-6{margin-left:25%}.semi-col-sm-order-6{order:6}.semi-col-sm-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-sm-push-7{left:29.1666666667%}.semi-col-sm-pull-7{right:29.1666666667%}.semi-col-sm-offset-7{margin-left:29.1666666667%}.semi-col-sm-order-7{order:7}.semi-col-sm-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-sm-push-8{left:33.3333333333%}.semi-col-sm-pull-8{right:33.3333333333%}.semi-col-sm-offset-8{margin-left:33.3333333333%}.semi-col-sm-order-8{order:8}.semi-col-sm-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-sm-push-9{left:37.5%}.semi-col-sm-pull-9{right:37.5%}.semi-col-sm-offset-9{margin-left:37.5%}.semi-col-sm-order-9{order:9}.semi-col-sm-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-sm-push-10{left:41.6666666667%}.semi-col-sm-pull-10{right:41.6666666667%}.semi-col-sm-offset-10{margin-left:41.6666666667%}.semi-col-sm-order-10{order:10}.semi-col-sm-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-sm-push-11{left:45.8333333333%}.semi-col-sm-pull-11{right:45.8333333333%}.semi-col-sm-offset-11{margin-left:45.8333333333%}.semi-col-sm-order-11{order:11}.semi-col-sm-12{display:block;box-sizing:border-box;width:50%}.semi-col-sm-push-12{left:50%}.semi-col-sm-pull-12{right:50%}.semi-col-sm-offset-12{margin-left:50%}.semi-col-sm-order-12{order:12}.semi-col-sm-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-sm-push-13{left:54.1666666667%}.semi-col-sm-pull-13{right:54.1666666667%}.semi-col-sm-offset-13{margin-left:54.1666666667%}.semi-col-sm-order-13{order:13}.semi-col-sm-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-sm-push-14{left:58.3333333333%}.semi-col-sm-pull-14{right:58.3333333333%}.semi-col-sm-offset-14{margin-left:58.3333333333%}.semi-col-sm-order-14{order:14}.semi-col-sm-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-sm-push-15{left:62.5%}.semi-col-sm-pull-15{right:62.5%}.semi-col-sm-offset-15{margin-left:62.5%}.semi-col-sm-order-15{order:15}.semi-col-sm-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-sm-push-16{left:66.6666666667%}.semi-col-sm-pull-16{right:66.6666666667%}.semi-col-sm-offset-16{margin-left:66.6666666667%}.semi-col-sm-order-16{order:16}.semi-col-sm-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-sm-push-17{left:70.8333333333%}.semi-col-sm-pull-17{right:70.8333333333%}.semi-col-sm-offset-17{margin-left:70.8333333333%}.semi-col-sm-order-17{order:17}.semi-col-sm-18{display:block;box-sizing:border-box;width:75%}.semi-col-sm-push-18{left:75%}.semi-col-sm-pull-18{right:75%}.semi-col-sm-offset-18{margin-left:75%}.semi-col-sm-order-18{order:18}.semi-col-sm-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-sm-push-19{left:79.1666666667%}.semi-col-sm-pull-19{right:79.1666666667%}.semi-col-sm-offset-19{margin-left:79.1666666667%}.semi-col-sm-order-19{order:19}.semi-col-sm-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-sm-push-20{left:83.3333333333%}.semi-col-sm-pull-20{right:83.3333333333%}.semi-col-sm-offset-20{margin-left:83.3333333333%}.semi-col-sm-order-20{order:20}.semi-col-sm-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-sm-push-21{left:87.5%}.semi-col-sm-pull-21{right:87.5%}.semi-col-sm-offset-21{margin-left:87.5%}.semi-col-sm-order-21{order:21}.semi-col-sm-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-sm-push-22{left:91.6666666667%}.semi-col-sm-pull-22{right:91.6666666667%}.semi-col-sm-offset-22{margin-left:91.6666666667%}.semi-col-sm-order-22{order:22}.semi-col-sm-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-sm-push-23{left:95.8333333333%}.semi-col-sm-pull-23{right:95.8333333333%}.semi-col-sm-offset-23{margin-left:95.8333333333%}.semi-col-sm-order-23{order:23}.semi-col-sm-24{display:block;box-sizing:border-box;width:100%}.semi-col-sm-push-24{left:100%}.semi-col-sm-pull-24{right:100%}.semi-col-sm-offset-24{margin-left:100%}.semi-col-sm-order-24{order:24}.semi-rtl .semi-col-sm-1,.semi-rtl .semi-col-sm-2,.semi-rtl .semi-col-sm-3,.semi-rtl .semi-col-sm-4,.semi-rtl .semi-col-sm-5,.semi-rtl .semi-col-sm-6,.semi-rtl .semi-col-sm-7,.semi-rtl .semi-col-sm-8,.semi-rtl .semi-col-sm-9,.semi-rtl .semi-col-sm-10,.semi-rtl .semi-col-sm-11,.semi-rtl .semi-col-sm-12,.semi-rtl .semi-col-sm-13,.semi-rtl .semi-col-sm-14,.semi-rtl .semi-col-sm-15,.semi-rtl .semi-col-sm-16,.semi-rtl .semi-col-sm-17,.semi-rtl .semi-col-sm-18,.semi-rtl .semi-col-sm-19,.semi-rtl .semi-col-sm-20,.semi-rtl .semi-col-sm-21,.semi-rtl .semi-col-sm-22,.semi-rtl .semi-col-sm-23,.semi-rtl .semi-col-sm-24{float:right}.semi-rtl .semi-col-sm-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-sm-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-sm-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-sm-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-sm-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-sm-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-sm-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-sm-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-sm-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-sm-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-sm-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-sm-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-sm-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-sm-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-sm-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-sm-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-sm-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-sm-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-sm-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-sm-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-sm-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-sm-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-sm-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-sm-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 768px){.semi-col-md-1,.semi-col-md-2,.semi-col-md-3,.semi-col-md-4,.semi-col-md-5,.semi-col-md-6,.semi-col-md-7,.semi-col-md-8,.semi-col-md-9,.semi-col-md-10,.semi-col-md-11,.semi-col-md-12,.semi-col-md-13,.semi-col-md-14,.semi-col-md-15,.semi-col-md-16,.semi-col-md-17,.semi-col-md-18,.semi-col-md-19,.semi-col-md-20,.semi-col-md-21,.semi-col-md-22,.semi-col-md-23,.semi-col-md-24{flex:0 0 auto;float:left}.semi-col-md-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-md-push-1{left:4.1666666667%}.semi-col-md-pull-1{right:4.1666666667%}.semi-col-md-offset-1{margin-left:4.1666666667%}.semi-col-md-order-1{order:1}.semi-col-md-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-md-push-2{left:8.3333333333%}.semi-col-md-pull-2{right:8.3333333333%}.semi-col-md-offset-2{margin-left:8.3333333333%}.semi-col-md-order-2{order:2}.semi-col-md-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-md-push-3{left:12.5%}.semi-col-md-pull-3{right:12.5%}.semi-col-md-offset-3{margin-left:12.5%}.semi-col-md-order-3{order:3}.semi-col-md-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-md-push-4{left:16.6666666667%}.semi-col-md-pull-4{right:16.6666666667%}.semi-col-md-offset-4{margin-left:16.6666666667%}.semi-col-md-order-4{order:4}.semi-col-md-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-md-push-5{left:20.8333333333%}.semi-col-md-pull-5{right:20.8333333333%}.semi-col-md-offset-5{margin-left:20.8333333333%}.semi-col-md-order-5{order:5}.semi-col-md-6{display:block;box-sizing:border-box;width:25%}.semi-col-md-push-6{left:25%}.semi-col-md-pull-6{right:25%}.semi-col-md-offset-6{margin-left:25%}.semi-col-md-order-6{order:6}.semi-col-md-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-md-push-7{left:29.1666666667%}.semi-col-md-pull-7{right:29.1666666667%}.semi-col-md-offset-7{margin-left:29.1666666667%}.semi-col-md-order-7{order:7}.semi-col-md-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-md-push-8{left:33.3333333333%}.semi-col-md-pull-8{right:33.3333333333%}.semi-col-md-offset-8{margin-left:33.3333333333%}.semi-col-md-order-8{order:8}.semi-col-md-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-md-push-9{left:37.5%}.semi-col-md-pull-9{right:37.5%}.semi-col-md-offset-9{margin-left:37.5%}.semi-col-md-order-9{order:9}.semi-col-md-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-md-push-10{left:41.6666666667%}.semi-col-md-pull-10{right:41.6666666667%}.semi-col-md-offset-10{margin-left:41.6666666667%}.semi-col-md-order-10{order:10}.semi-col-md-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-md-push-11{left:45.8333333333%}.semi-col-md-pull-11{right:45.8333333333%}.semi-col-md-offset-11{margin-left:45.8333333333%}.semi-col-md-order-11{order:11}.semi-col-md-12{display:block;box-sizing:border-box;width:50%}.semi-col-md-push-12{left:50%}.semi-col-md-pull-12{right:50%}.semi-col-md-offset-12{margin-left:50%}.semi-col-md-order-12{order:12}.semi-col-md-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-md-push-13{left:54.1666666667%}.semi-col-md-pull-13{right:54.1666666667%}.semi-col-md-offset-13{margin-left:54.1666666667%}.semi-col-md-order-13{order:13}.semi-col-md-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-md-push-14{left:58.3333333333%}.semi-col-md-pull-14{right:58.3333333333%}.semi-col-md-offset-14{margin-left:58.3333333333%}.semi-col-md-order-14{order:14}.semi-col-md-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-md-push-15{left:62.5%}.semi-col-md-pull-15{right:62.5%}.semi-col-md-offset-15{margin-left:62.5%}.semi-col-md-order-15{order:15}.semi-col-md-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-md-push-16{left:66.6666666667%}.semi-col-md-pull-16{right:66.6666666667%}.semi-col-md-offset-16{margin-left:66.6666666667%}.semi-col-md-order-16{order:16}.semi-col-md-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-md-push-17{left:70.8333333333%}.semi-col-md-pull-17{right:70.8333333333%}.semi-col-md-offset-17{margin-left:70.8333333333%}.semi-col-md-order-17{order:17}.semi-col-md-18{display:block;box-sizing:border-box;width:75%}.semi-col-md-push-18{left:75%}.semi-col-md-pull-18{right:75%}.semi-col-md-offset-18{margin-left:75%}.semi-col-md-order-18{order:18}.semi-col-md-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-md-push-19{left:79.1666666667%}.semi-col-md-pull-19{right:79.1666666667%}.semi-col-md-offset-19{margin-left:79.1666666667%}.semi-col-md-order-19{order:19}.semi-col-md-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-md-push-20{left:83.3333333333%}.semi-col-md-pull-20{right:83.3333333333%}.semi-col-md-offset-20{margin-left:83.3333333333%}.semi-col-md-order-20{order:20}.semi-col-md-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-md-push-21{left:87.5%}.semi-col-md-pull-21{right:87.5%}.semi-col-md-offset-21{margin-left:87.5%}.semi-col-md-order-21{order:21}.semi-col-md-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-md-push-22{left:91.6666666667%}.semi-col-md-pull-22{right:91.6666666667%}.semi-col-md-offset-22{margin-left:91.6666666667%}.semi-col-md-order-22{order:22}.semi-col-md-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-md-push-23{left:95.8333333333%}.semi-col-md-pull-23{right:95.8333333333%}.semi-col-md-offset-23{margin-left:95.8333333333%}.semi-col-md-order-23{order:23}.semi-col-md-24{display:block;box-sizing:border-box;width:100%}.semi-col-md-push-24{left:100%}.semi-col-md-pull-24{right:100%}.semi-col-md-offset-24{margin-left:100%}.semi-col-md-order-24{order:24}.semi-rtl .semi-col-md-1,.semi-rtl .semi-col-md-2,.semi-rtl .semi-col-md-3,.semi-rtl .semi-col-md-4,.semi-rtl .semi-col-md-5,.semi-rtl .semi-col-md-6,.semi-rtl .semi-col-md-7,.semi-rtl .semi-col-md-8,.semi-rtl .semi-col-md-9,.semi-rtl .semi-col-md-10,.semi-rtl .semi-col-md-11,.semi-rtl .semi-col-md-12,.semi-rtl .semi-col-md-13,.semi-rtl .semi-col-md-14,.semi-rtl .semi-col-md-15,.semi-rtl .semi-col-md-16,.semi-rtl .semi-col-md-17,.semi-rtl .semi-col-md-18,.semi-rtl .semi-col-md-19,.semi-rtl .semi-col-md-20,.semi-rtl .semi-col-md-21,.semi-rtl .semi-col-md-22,.semi-rtl .semi-col-md-23,.semi-rtl .semi-col-md-24{float:right}.semi-rtl .semi-col-md-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-md-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-md-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-md-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-md-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-md-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-md-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-md-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-md-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-md-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-md-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-md-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-md-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-md-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-md-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-md-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-md-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-md-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-md-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-md-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-md-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-md-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-md-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-md-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 992px){.semi-col-lg-1,.semi-col-lg-2,.semi-col-lg-3,.semi-col-lg-4,.semi-col-lg-5,.semi-col-lg-6,.semi-col-lg-7,.semi-col-lg-8,.semi-col-lg-9,.semi-col-lg-10,.semi-col-lg-11,.semi-col-lg-12,.semi-col-lg-13,.semi-col-lg-14,.semi-col-lg-15,.semi-col-lg-16,.semi-col-lg-17,.semi-col-lg-18,.semi-col-lg-19,.semi-col-lg-20,.semi-col-lg-21,.semi-col-lg-22,.semi-col-lg-23,.semi-col-lg-24{flex:0 0 auto;float:left}.semi-col-lg-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-lg-push-1{left:4.1666666667%}.semi-col-lg-pull-1{right:4.1666666667%}.semi-col-lg-offset-1{margin-left:4.1666666667%}.semi-col-lg-order-1{order:1}.semi-col-lg-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-lg-push-2{left:8.3333333333%}.semi-col-lg-pull-2{right:8.3333333333%}.semi-col-lg-offset-2{margin-left:8.3333333333%}.semi-col-lg-order-2{order:2}.semi-col-lg-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-lg-push-3{left:12.5%}.semi-col-lg-pull-3{right:12.5%}.semi-col-lg-offset-3{margin-left:12.5%}.semi-col-lg-order-3{order:3}.semi-col-lg-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-lg-push-4{left:16.6666666667%}.semi-col-lg-pull-4{right:16.6666666667%}.semi-col-lg-offset-4{margin-left:16.6666666667%}.semi-col-lg-order-4{order:4}.semi-col-lg-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-lg-push-5{left:20.8333333333%}.semi-col-lg-pull-5{right:20.8333333333%}.semi-col-lg-offset-5{margin-left:20.8333333333%}.semi-col-lg-order-5{order:5}.semi-col-lg-6{display:block;box-sizing:border-box;width:25%}.semi-col-lg-push-6{left:25%}.semi-col-lg-pull-6{right:25%}.semi-col-lg-offset-6{margin-left:25%}.semi-col-lg-order-6{order:6}.semi-col-lg-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-lg-push-7{left:29.1666666667%}.semi-col-lg-pull-7{right:29.1666666667%}.semi-col-lg-offset-7{margin-left:29.1666666667%}.semi-col-lg-order-7{order:7}.semi-col-lg-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-lg-push-8{left:33.3333333333%}.semi-col-lg-pull-8{right:33.3333333333%}.semi-col-lg-offset-8{margin-left:33.3333333333%}.semi-col-lg-order-8{order:8}.semi-col-lg-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-lg-push-9{left:37.5%}.semi-col-lg-pull-9{right:37.5%}.semi-col-lg-offset-9{margin-left:37.5%}.semi-col-lg-order-9{order:9}.semi-col-lg-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-lg-push-10{left:41.6666666667%}.semi-col-lg-pull-10{right:41.6666666667%}.semi-col-lg-offset-10{margin-left:41.6666666667%}.semi-col-lg-order-10{order:10}.semi-col-lg-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-lg-push-11{left:45.8333333333%}.semi-col-lg-pull-11{right:45.8333333333%}.semi-col-lg-offset-11{margin-left:45.8333333333%}.semi-col-lg-order-11{order:11}.semi-col-lg-12{display:block;box-sizing:border-box;width:50%}.semi-col-lg-push-12{left:50%}.semi-col-lg-pull-12{right:50%}.semi-col-lg-offset-12{margin-left:50%}.semi-col-lg-order-12{order:12}.semi-col-lg-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-lg-push-13{left:54.1666666667%}.semi-col-lg-pull-13{right:54.1666666667%}.semi-col-lg-offset-13{margin-left:54.1666666667%}.semi-col-lg-order-13{order:13}.semi-col-lg-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-lg-push-14{left:58.3333333333%}.semi-col-lg-pull-14{right:58.3333333333%}.semi-col-lg-offset-14{margin-left:58.3333333333%}.semi-col-lg-order-14{order:14}.semi-col-lg-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-lg-push-15{left:62.5%}.semi-col-lg-pull-15{right:62.5%}.semi-col-lg-offset-15{margin-left:62.5%}.semi-col-lg-order-15{order:15}.semi-col-lg-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-lg-push-16{left:66.6666666667%}.semi-col-lg-pull-16{right:66.6666666667%}.semi-col-lg-offset-16{margin-left:66.6666666667%}.semi-col-lg-order-16{order:16}.semi-col-lg-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-lg-push-17{left:70.8333333333%}.semi-col-lg-pull-17{right:70.8333333333%}.semi-col-lg-offset-17{margin-left:70.8333333333%}.semi-col-lg-order-17{order:17}.semi-col-lg-18{display:block;box-sizing:border-box;width:75%}.semi-col-lg-push-18{left:75%}.semi-col-lg-pull-18{right:75%}.semi-col-lg-offset-18{margin-left:75%}.semi-col-lg-order-18{order:18}.semi-col-lg-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-lg-push-19{left:79.1666666667%}.semi-col-lg-pull-19{right:79.1666666667%}.semi-col-lg-offset-19{margin-left:79.1666666667%}.semi-col-lg-order-19{order:19}.semi-col-lg-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-lg-push-20{left:83.3333333333%}.semi-col-lg-pull-20{right:83.3333333333%}.semi-col-lg-offset-20{margin-left:83.3333333333%}.semi-col-lg-order-20{order:20}.semi-col-lg-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-lg-push-21{left:87.5%}.semi-col-lg-pull-21{right:87.5%}.semi-col-lg-offset-21{margin-left:87.5%}.semi-col-lg-order-21{order:21}.semi-col-lg-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-lg-push-22{left:91.6666666667%}.semi-col-lg-pull-22{right:91.6666666667%}.semi-col-lg-offset-22{margin-left:91.6666666667%}.semi-col-lg-order-22{order:22}.semi-col-lg-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-lg-push-23{left:95.8333333333%}.semi-col-lg-pull-23{right:95.8333333333%}.semi-col-lg-offset-23{margin-left:95.8333333333%}.semi-col-lg-order-23{order:23}.semi-col-lg-24{display:block;box-sizing:border-box;width:100%}.semi-col-lg-push-24{left:100%}.semi-col-lg-pull-24{right:100%}.semi-col-lg-offset-24{margin-left:100%}.semi-col-lg-order-24{order:24}.semi-rtl .semi-col-lg-1,.semi-rtl .semi-col-lg-2,.semi-rtl .semi-col-lg-3,.semi-rtl .semi-col-lg-4,.semi-rtl .semi-col-lg-5,.semi-rtl .semi-col-lg-6,.semi-rtl .semi-col-lg-7,.semi-rtl .semi-col-lg-8,.semi-rtl .semi-col-lg-9,.semi-rtl .semi-col-lg-10,.semi-rtl .semi-col-lg-11,.semi-rtl .semi-col-lg-12,.semi-rtl .semi-col-lg-13,.semi-rtl .semi-col-lg-14,.semi-rtl .semi-col-lg-15,.semi-rtl .semi-col-lg-16,.semi-rtl .semi-col-lg-17,.semi-rtl .semi-col-lg-18,.semi-rtl .semi-col-lg-19,.semi-rtl .semi-col-lg-20,.semi-rtl .semi-col-lg-21,.semi-rtl .semi-col-lg-22,.semi-rtl .semi-col-lg-23,.semi-rtl .semi-col-lg-24{float:right}.semi-rtl .semi-col-lg-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-lg-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-lg-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-lg-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-lg-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-lg-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-lg-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-lg-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-lg-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-lg-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-lg-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-lg-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-lg-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-lg-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-lg-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-lg-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-lg-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-lg-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-lg-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-lg-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-lg-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-lg-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-lg-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-lg-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 1200px){.semi-col-xl-1,.semi-col-xl-2,.semi-col-xl-3,.semi-col-xl-4,.semi-col-xl-5,.semi-col-xl-6,.semi-col-xl-7,.semi-col-xl-8,.semi-col-xl-9,.semi-col-xl-10,.semi-col-xl-11,.semi-col-xl-12,.semi-col-xl-13,.semi-col-xl-14,.semi-col-xl-15,.semi-col-xl-16,.semi-col-xl-17,.semi-col-xl-18,.semi-col-xl-19,.semi-col-xl-20,.semi-col-xl-21,.semi-col-xl-22,.semi-col-xl-23,.semi-col-xl-24{flex:0 0 auto;float:left}.semi-col-xl-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-xl-push-1{left:4.1666666667%}.semi-col-xl-pull-1{right:4.1666666667%}.semi-col-xl-offset-1{margin-left:4.1666666667%}.semi-col-xl-order-1{order:1}.semi-col-xl-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-xl-push-2{left:8.3333333333%}.semi-col-xl-pull-2{right:8.3333333333%}.semi-col-xl-offset-2{margin-left:8.3333333333%}.semi-col-xl-order-2{order:2}.semi-col-xl-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-xl-push-3{left:12.5%}.semi-col-xl-pull-3{right:12.5%}.semi-col-xl-offset-3{margin-left:12.5%}.semi-col-xl-order-3{order:3}.semi-col-xl-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-xl-push-4{left:16.6666666667%}.semi-col-xl-pull-4{right:16.6666666667%}.semi-col-xl-offset-4{margin-left:16.6666666667%}.semi-col-xl-order-4{order:4}.semi-col-xl-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-xl-push-5{left:20.8333333333%}.semi-col-xl-pull-5{right:20.8333333333%}.semi-col-xl-offset-5{margin-left:20.8333333333%}.semi-col-xl-order-5{order:5}.semi-col-xl-6{display:block;box-sizing:border-box;width:25%}.semi-col-xl-push-6{left:25%}.semi-col-xl-pull-6{right:25%}.semi-col-xl-offset-6{margin-left:25%}.semi-col-xl-order-6{order:6}.semi-col-xl-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-xl-push-7{left:29.1666666667%}.semi-col-xl-pull-7{right:29.1666666667%}.semi-col-xl-offset-7{margin-left:29.1666666667%}.semi-col-xl-order-7{order:7}.semi-col-xl-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-xl-push-8{left:33.3333333333%}.semi-col-xl-pull-8{right:33.3333333333%}.semi-col-xl-offset-8{margin-left:33.3333333333%}.semi-col-xl-order-8{order:8}.semi-col-xl-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-xl-push-9{left:37.5%}.semi-col-xl-pull-9{right:37.5%}.semi-col-xl-offset-9{margin-left:37.5%}.semi-col-xl-order-9{order:9}.semi-col-xl-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-xl-push-10{left:41.6666666667%}.semi-col-xl-pull-10{right:41.6666666667%}.semi-col-xl-offset-10{margin-left:41.6666666667%}.semi-col-xl-order-10{order:10}.semi-col-xl-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-xl-push-11{left:45.8333333333%}.semi-col-xl-pull-11{right:45.8333333333%}.semi-col-xl-offset-11{margin-left:45.8333333333%}.semi-col-xl-order-11{order:11}.semi-col-xl-12{display:block;box-sizing:border-box;width:50%}.semi-col-xl-push-12{left:50%}.semi-col-xl-pull-12{right:50%}.semi-col-xl-offset-12{margin-left:50%}.semi-col-xl-order-12{order:12}.semi-col-xl-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-xl-push-13{left:54.1666666667%}.semi-col-xl-pull-13{right:54.1666666667%}.semi-col-xl-offset-13{margin-left:54.1666666667%}.semi-col-xl-order-13{order:13}.semi-col-xl-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-xl-push-14{left:58.3333333333%}.semi-col-xl-pull-14{right:58.3333333333%}.semi-col-xl-offset-14{margin-left:58.3333333333%}.semi-col-xl-order-14{order:14}.semi-col-xl-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-xl-push-15{left:62.5%}.semi-col-xl-pull-15{right:62.5%}.semi-col-xl-offset-15{margin-left:62.5%}.semi-col-xl-order-15{order:15}.semi-col-xl-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-xl-push-16{left:66.6666666667%}.semi-col-xl-pull-16{right:66.6666666667%}.semi-col-xl-offset-16{margin-left:66.6666666667%}.semi-col-xl-order-16{order:16}.semi-col-xl-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-xl-push-17{left:70.8333333333%}.semi-col-xl-pull-17{right:70.8333333333%}.semi-col-xl-offset-17{margin-left:70.8333333333%}.semi-col-xl-order-17{order:17}.semi-col-xl-18{display:block;box-sizing:border-box;width:75%}.semi-col-xl-push-18{left:75%}.semi-col-xl-pull-18{right:75%}.semi-col-xl-offset-18{margin-left:75%}.semi-col-xl-order-18{order:18}.semi-col-xl-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-xl-push-19{left:79.1666666667%}.semi-col-xl-pull-19{right:79.1666666667%}.semi-col-xl-offset-19{margin-left:79.1666666667%}.semi-col-xl-order-19{order:19}.semi-col-xl-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-xl-push-20{left:83.3333333333%}.semi-col-xl-pull-20{right:83.3333333333%}.semi-col-xl-offset-20{margin-left:83.3333333333%}.semi-col-xl-order-20{order:20}.semi-col-xl-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-xl-push-21{left:87.5%}.semi-col-xl-pull-21{right:87.5%}.semi-col-xl-offset-21{margin-left:87.5%}.semi-col-xl-order-21{order:21}.semi-col-xl-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-xl-push-22{left:91.6666666667%}.semi-col-xl-pull-22{right:91.6666666667%}.semi-col-xl-offset-22{margin-left:91.6666666667%}.semi-col-xl-order-22{order:22}.semi-col-xl-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-xl-push-23{left:95.8333333333%}.semi-col-xl-pull-23{right:95.8333333333%}.semi-col-xl-offset-23{margin-left:95.8333333333%}.semi-col-xl-order-23{order:23}.semi-col-xl-24{display:block;box-sizing:border-box;width:100%}.semi-col-xl-push-24{left:100%}.semi-col-xl-pull-24{right:100%}.semi-col-xl-offset-24{margin-left:100%}.semi-col-xl-order-24{order:24}.semi-rtl .semi-col-xl-1,.semi-rtl .semi-col-xl-2,.semi-rtl .semi-col-xl-3,.semi-rtl .semi-col-xl-4,.semi-rtl .semi-col-xl-5,.semi-rtl .semi-col-xl-6,.semi-rtl .semi-col-xl-7,.semi-rtl .semi-col-xl-8,.semi-rtl .semi-col-xl-9,.semi-rtl .semi-col-xl-10,.semi-rtl .semi-col-xl-11,.semi-rtl .semi-col-xl-12,.semi-rtl .semi-col-xl-13,.semi-rtl .semi-col-xl-14,.semi-rtl .semi-col-xl-15,.semi-rtl .semi-col-xl-16,.semi-rtl .semi-col-xl-17,.semi-rtl .semi-col-xl-18,.semi-rtl .semi-col-xl-19,.semi-rtl .semi-col-xl-20,.semi-rtl .semi-col-xl-21,.semi-rtl .semi-col-xl-22,.semi-rtl .semi-col-xl-23,.semi-rtl .semi-col-xl-24{float:right}.semi-rtl .semi-col-xl-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-xl-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-xl-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-xl-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-xl-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-xl-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-xl-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-xl-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-xl-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-xl-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-xl-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-xl-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-xl-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-xl-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-xl-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-xl-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-xl-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-xl-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-xl-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-xl-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-xl-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-xl-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-xl-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-xl-offset-24{margin-left:auto;margin-right:100%}}@media (min-width: 1600px){.semi-col-xxl-1,.semi-col-xxl-2,.semi-col-xxl-3,.semi-col-xxl-4,.semi-col-xxl-5,.semi-col-xxl-6,.semi-col-xxl-7,.semi-col-xxl-8,.semi-col-xxl-9,.semi-col-xxl-10,.semi-col-xxl-11,.semi-col-xxl-12,.semi-col-xxl-13,.semi-col-xxl-14,.semi-col-xxl-15,.semi-col-xxl-16,.semi-col-xxl-17,.semi-col-xxl-18,.semi-col-xxl-19,.semi-col-xxl-20,.semi-col-xxl-21,.semi-col-xxl-22,.semi-col-xxl-23,.semi-col-xxl-24{flex:0 0 auto;float:left}.semi-col-xxl-1{display:block;box-sizing:border-box;width:4.1666666667%}.semi-col-xxl-push-1{left:4.1666666667%}.semi-col-xxl-pull-1{right:4.1666666667%}.semi-col-xxl-offset-1{margin-left:4.1666666667%}.semi-col-xxl-order-1{order:1}.semi-col-xxl-2{display:block;box-sizing:border-box;width:8.3333333333%}.semi-col-xxl-push-2{left:8.3333333333%}.semi-col-xxl-pull-2{right:8.3333333333%}.semi-col-xxl-offset-2{margin-left:8.3333333333%}.semi-col-xxl-order-2{order:2}.semi-col-xxl-3{display:block;box-sizing:border-box;width:12.5%}.semi-col-xxl-push-3{left:12.5%}.semi-col-xxl-pull-3{right:12.5%}.semi-col-xxl-offset-3{margin-left:12.5%}.semi-col-xxl-order-3{order:3}.semi-col-xxl-4{display:block;box-sizing:border-box;width:16.6666666667%}.semi-col-xxl-push-4{left:16.6666666667%}.semi-col-xxl-pull-4{right:16.6666666667%}.semi-col-xxl-offset-4{margin-left:16.6666666667%}.semi-col-xxl-order-4{order:4}.semi-col-xxl-5{display:block;box-sizing:border-box;width:20.8333333333%}.semi-col-xxl-push-5{left:20.8333333333%}.semi-col-xxl-pull-5{right:20.8333333333%}.semi-col-xxl-offset-5{margin-left:20.8333333333%}.semi-col-xxl-order-5{order:5}.semi-col-xxl-6{display:block;box-sizing:border-box;width:25%}.semi-col-xxl-push-6{left:25%}.semi-col-xxl-pull-6{right:25%}.semi-col-xxl-offset-6{margin-left:25%}.semi-col-xxl-order-6{order:6}.semi-col-xxl-7{display:block;box-sizing:border-box;width:29.1666666667%}.semi-col-xxl-push-7{left:29.1666666667%}.semi-col-xxl-pull-7{right:29.1666666667%}.semi-col-xxl-offset-7{margin-left:29.1666666667%}.semi-col-xxl-order-7{order:7}.semi-col-xxl-8{display:block;box-sizing:border-box;width:33.3333333333%}.semi-col-xxl-push-8{left:33.3333333333%}.semi-col-xxl-pull-8{right:33.3333333333%}.semi-col-xxl-offset-8{margin-left:33.3333333333%}.semi-col-xxl-order-8{order:8}.semi-col-xxl-9{display:block;box-sizing:border-box;width:37.5%}.semi-col-xxl-push-9{left:37.5%}.semi-col-xxl-pull-9{right:37.5%}.semi-col-xxl-offset-9{margin-left:37.5%}.semi-col-xxl-order-9{order:9}.semi-col-xxl-10{display:block;box-sizing:border-box;width:41.6666666667%}.semi-col-xxl-push-10{left:41.6666666667%}.semi-col-xxl-pull-10{right:41.6666666667%}.semi-col-xxl-offset-10{margin-left:41.6666666667%}.semi-col-xxl-order-10{order:10}.semi-col-xxl-11{display:block;box-sizing:border-box;width:45.8333333333%}.semi-col-xxl-push-11{left:45.8333333333%}.semi-col-xxl-pull-11{right:45.8333333333%}.semi-col-xxl-offset-11{margin-left:45.8333333333%}.semi-col-xxl-order-11{order:11}.semi-col-xxl-12{display:block;box-sizing:border-box;width:50%}.semi-col-xxl-push-12{left:50%}.semi-col-xxl-pull-12{right:50%}.semi-col-xxl-offset-12{margin-left:50%}.semi-col-xxl-order-12{order:12}.semi-col-xxl-13{display:block;box-sizing:border-box;width:54.1666666667%}.semi-col-xxl-push-13{left:54.1666666667%}.semi-col-xxl-pull-13{right:54.1666666667%}.semi-col-xxl-offset-13{margin-left:54.1666666667%}.semi-col-xxl-order-13{order:13}.semi-col-xxl-14{display:block;box-sizing:border-box;width:58.3333333333%}.semi-col-xxl-push-14{left:58.3333333333%}.semi-col-xxl-pull-14{right:58.3333333333%}.semi-col-xxl-offset-14{margin-left:58.3333333333%}.semi-col-xxl-order-14{order:14}.semi-col-xxl-15{display:block;box-sizing:border-box;width:62.5%}.semi-col-xxl-push-15{left:62.5%}.semi-col-xxl-pull-15{right:62.5%}.semi-col-xxl-offset-15{margin-left:62.5%}.semi-col-xxl-order-15{order:15}.semi-col-xxl-16{display:block;box-sizing:border-box;width:66.6666666667%}.semi-col-xxl-push-16{left:66.6666666667%}.semi-col-xxl-pull-16{right:66.6666666667%}.semi-col-xxl-offset-16{margin-left:66.6666666667%}.semi-col-xxl-order-16{order:16}.semi-col-xxl-17{display:block;box-sizing:border-box;width:70.8333333333%}.semi-col-xxl-push-17{left:70.8333333333%}.semi-col-xxl-pull-17{right:70.8333333333%}.semi-col-xxl-offset-17{margin-left:70.8333333333%}.semi-col-xxl-order-17{order:17}.semi-col-xxl-18{display:block;box-sizing:border-box;width:75%}.semi-col-xxl-push-18{left:75%}.semi-col-xxl-pull-18{right:75%}.semi-col-xxl-offset-18{margin-left:75%}.semi-col-xxl-order-18{order:18}.semi-col-xxl-19{display:block;box-sizing:border-box;width:79.1666666667%}.semi-col-xxl-push-19{left:79.1666666667%}.semi-col-xxl-pull-19{right:79.1666666667%}.semi-col-xxl-offset-19{margin-left:79.1666666667%}.semi-col-xxl-order-19{order:19}.semi-col-xxl-20{display:block;box-sizing:border-box;width:83.3333333333%}.semi-col-xxl-push-20{left:83.3333333333%}.semi-col-xxl-pull-20{right:83.3333333333%}.semi-col-xxl-offset-20{margin-left:83.3333333333%}.semi-col-xxl-order-20{order:20}.semi-col-xxl-21{display:block;box-sizing:border-box;width:87.5%}.semi-col-xxl-push-21{left:87.5%}.semi-col-xxl-pull-21{right:87.5%}.semi-col-xxl-offset-21{margin-left:87.5%}.semi-col-xxl-order-21{order:21}.semi-col-xxl-22{display:block;box-sizing:border-box;width:91.6666666667%}.semi-col-xxl-push-22{left:91.6666666667%}.semi-col-xxl-pull-22{right:91.6666666667%}.semi-col-xxl-offset-22{margin-left:91.6666666667%}.semi-col-xxl-order-22{order:22}.semi-col-xxl-23{display:block;box-sizing:border-box;width:95.8333333333%}.semi-col-xxl-push-23{left:95.8333333333%}.semi-col-xxl-pull-23{right:95.8333333333%}.semi-col-xxl-offset-23{margin-left:95.8333333333%}.semi-col-xxl-order-23{order:23}.semi-col-xxl-24{display:block;box-sizing:border-box;width:100%}.semi-col-xxl-push-24{left:100%}.semi-col-xxl-pull-24{right:100%}.semi-col-xxl-offset-24{margin-left:100%}.semi-col-xxl-order-24{order:24}.semi-rtl .semi-col-xxl-1,.semi-rtl .semi-col-xxl-2,.semi-rtl .semi-col-xxl-3,.semi-rtl .semi-col-xxl-4,.semi-rtl .semi-col-xxl-5,.semi-rtl .semi-col-xxl-6,.semi-rtl .semi-col-xxl-7,.semi-rtl .semi-col-xxl-8,.semi-rtl .semi-col-xxl-9,.semi-rtl .semi-col-xxl-10,.semi-rtl .semi-col-xxl-11,.semi-rtl .semi-col-xxl-12,.semi-rtl .semi-col-xxl-13,.semi-rtl .semi-col-xxl-14,.semi-rtl .semi-col-xxl-15,.semi-rtl .semi-col-xxl-16,.semi-rtl .semi-col-xxl-17,.semi-rtl .semi-col-xxl-18,.semi-rtl .semi-col-xxl-19,.semi-rtl .semi-col-xxl-20,.semi-rtl .semi-col-xxl-21,.semi-rtl .semi-col-xxl-22,.semi-rtl .semi-col-xxl-23,.semi-rtl .semi-col-xxl-24{float:right}.semi-rtl .semi-col-xxl-offset-1{margin-left:auto;margin-right:4.1666666667%}.semi-rtl .semi-col-xxl-offset-2{margin-left:auto;margin-right:8.3333333333%}.semi-rtl .semi-col-xxl-offset-3{margin-left:auto;margin-right:12.5%}.semi-rtl .semi-col-xxl-offset-4{margin-left:auto;margin-right:16.6666666667%}.semi-rtl .semi-col-xxl-offset-5{margin-left:auto;margin-right:20.8333333333%}.semi-rtl .semi-col-xxl-offset-6{margin-left:auto;margin-right:25%}.semi-rtl .semi-col-xxl-offset-7{margin-left:auto;margin-right:29.1666666667%}.semi-rtl .semi-col-xxl-offset-8{margin-left:auto;margin-right:33.3333333333%}.semi-rtl .semi-col-xxl-offset-9{margin-left:auto;margin-right:37.5%}.semi-rtl .semi-col-xxl-offset-10{margin-left:auto;margin-right:41.6666666667%}.semi-rtl .semi-col-xxl-offset-11{margin-left:auto;margin-right:45.8333333333%}.semi-rtl .semi-col-xxl-offset-12{margin-left:auto;margin-right:50%}.semi-rtl .semi-col-xxl-offset-13{margin-left:auto;margin-right:54.1666666667%}.semi-rtl .semi-col-xxl-offset-14{margin-left:auto;margin-right:58.3333333333%}.semi-rtl .semi-col-xxl-offset-15{margin-left:auto;margin-right:62.5%}.semi-rtl .semi-col-xxl-offset-16{margin-left:auto;margin-right:66.6666666667%}.semi-rtl .semi-col-xxl-offset-17{margin-left:auto;margin-right:70.8333333333%}.semi-rtl .semi-col-xxl-offset-18{margin-left:auto;margin-right:75%}.semi-rtl .semi-col-xxl-offset-19{margin-left:auto;margin-right:79.1666666667%}.semi-rtl .semi-col-xxl-offset-20{margin-left:auto;margin-right:83.3333333333%}.semi-rtl .semi-col-xxl-offset-21{margin-left:auto;margin-right:87.5%}.semi-rtl .semi-col-xxl-offset-22{margin-left:auto;margin-right:91.6666666667%}.semi-rtl .semi-col-xxl-offset-23{margin-left:auto;margin-right:95.8333333333%}.semi-rtl .semi-col-xxl-offset-24{margin-left:auto;margin-right:100%}}.semi-rtl .semi-row,.semi-rtl .semi-row-flex,.semi-portal-rtl .semi-row,.semi-portal-rtl .semi-row-flex{direction:rtl}.semi-layout{display:flex;flex:auto;flex-direction:column;min-height:auto}.semi-layout,.semi-layout-header,.semi-layout-footer,.semi-layout-content,.semi-layout-sider,.semi-layout-sider-children{box-sizing:border-box}.semi-layout-header,.semi-layout-footer{flex:0 0 auto}.semi-layout-content{flex:auto;min-height:auto}.semi-layout-sider{position:relative;min-width:auto}.semi-layout-sider-children{height:100%;margin-top:-.1px;padding-top:.1px}.semi-layout-has-sider{flex-direction:row}.semi-layout-has-sider>.semi-layout,.semi-layout-has-sider>.semi-layout-content{overflow-x:hidden}.semi-rtl .semi-layout,.semi-portal-rtl .semi-layout{direction:rtl}.semi-input-textarea-wrapper{box-sizing:border-box;display:inline-block;position:relative;width:100%;border:1px transparent solid;border-radius:var(--semi-border-radius-small);vertical-align:bottom;background-color:var(--semi-color-fill-0);transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-input-textarea-wrapper:hover{background-color:var(--semi-color-fill-1)}.semi-input-textarea-wrapper-focus{background-color:var(--semi-color-fill-0);border:1px var(--semi-color-focus-border) solid}.semi-input-textarea-wrapper-focus:hover,.semi-input-textarea-wrapper-focus:active{background-color:var(--semi-color-fill-0)}.semi-input-textarea-wrapper:active{background-color:var(--semi-color-fill-2)}.semi-input-textarea-wrapper .semi-input-clearbtn{position:absolute;top:0;min-width:24px;color:var(--semi-color-text-2);right:4px;height:32px}.semi-input-textarea-wrapper .semi-input-clearbtn>svg{pointer-events:none}.semi-input-textarea-wrapper .semi-input-clearbtn:hover{cursor:pointer}.semi-input-textarea-wrapper .semi-input-clearbtn:hover .semi-icon{color:var(--semi-color-primary-hover)}.semi-input-textarea-wrapper .semi-input-clearbtn-hidden{visibility:hidden}.semi-input-textarea-wrapper-disabled,.semi-input-textarea-wrapper-readonly{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:var(--semi-color-disabled-fill)}.semi-input-textarea-wrapper-disabled:hover,.semi-input-textarea-wrapper-readonly:hover{background-color:var(--semi-color-disabled-fill)}.semi-input-textarea-wrapper-disabled::placeholder,.semi-input-textarea-wrapper-readonly::placeholder{color:var(--semi-color-disabled-text)}.semi-input-textarea-wrapper-readonly{cursor:text}.semi-input-textarea-wrapper-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-input-textarea-wrapper-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-input-textarea-wrapper-error.semi-input-textarea-wrapper-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-input-textarea-wrapper-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger)}.semi-input-textarea-wrapper-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-input-textarea-wrapper-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-input-textarea-wrapper-warning.semi-input-textarea-wrapper-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-input-textarea-wrapper-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning)}.semi-input-textarea{position:relative;resize:none;padding:5px 12px;box-shadow:none;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:transparent;border:0 solid transparent;vertical-align:bottom;width:100%;outline:none;cursor:text;box-sizing:border-box;color:var(--semi-color-text-0)}.semi-input-textarea:hover{border-color:transparent}.semi-input-textarea::placeholder{color:var(--semi-color-text-2)}.semi-input-textarea-showClear{padding-right:36px}.semi-input-textarea-disabled,.semi-input-textarea-readonly{cursor:not-allowed;color:var(--semi-color-disabled-text);background-color:transparent}.semi-input-textarea-disabled:hover,.semi-input-textarea-readonly:hover{background-color:transparent}.semi-input-textarea-disabled::placeholder,.semi-input-textarea-readonly::placeholder{color:var(--semi-color-disabled-text)}.semi-input-textarea-readonly{cursor:text}.semi-input-textarea-autosize{overflow:hidden}.semi-input-textarea-counter{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;flex-direction:column;justify-content:center;padding:3px 12px 5px;min-height:24px;text-align:right;color:var(--semi-color-text-2)}.semi-input-textarea-counter-exceed{color:var(--semi-color-danger)}.semi-input-textarea-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-input-textarea-borderless:focus-within:not(:active){background-color:transparent}.semi-input-textarea-borderless.semi-input-textarea-wrapper-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-input-textarea-borderless.semi-input-textarea-wrapper-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-input-textarea-borderless.semi-input-textarea-wrapper-error .semi-input-textarea-counter{color:var(--semi-color-danger)}.semi-input-textarea-borderless.semi-input-textarea-wrapper-warning .semi-input-textarea-counter{color:var(--semi-color-warning)}.semi-rtl .semi-input-wrapper,.semi-portal-rtl .semi-input-wrapper{direction:rtl}.semi-rtl .semi-input-wrapper__with-prefix .semi-input,.semi-portal-rtl .semi-input-wrapper__with-prefix .semi-input{padding-left:auto;padding-right:0}.semi-rtl .semi-input-wrapper__with-suffix .semi-input,.semi-portal-rtl .semi-input-wrapper__with-suffix .semi-input{padding-right:auto;padding-left:0}.semi-rtl .semi-input,.semi-portal-rtl .semi-input{padding-left:12px;padding-right:12px}.semi-rtl .semi-input-inset-label,.semi-portal-rtl .semi-input-inset-label{margin-right:auto;margin-left:12px}.semi-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-text,.semi-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-text,.semi-portal-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-text,.semi-portal-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-text{margin-left:auto;margin-right:0}.semi-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-icon,.semi-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-icon,.semi-portal-rtl .semi-input-clearbtn+.semi-rtl .semi-input-suffix+.semi-input-suffix-icon,.semi-portal-rtl .semi-input-clearbtn+.semi-portal-rtl .semi-input-suffix+.semi-input-suffix-icon{margin-left:auto;margin-right:0}.semi-rtl .semi-input-append,.semi-portal-rtl .semi-input-append{border-left:0;border-right:1px transparent solid}.semi-rtl .semi-input-prepend,.semi-portal-rtl .semi-input-prepend{border-right:0;border-left:1px transparent solid}.semi-rtl .semi-input-group .semi-select:not(:last-child):after,.semi-rtl .semi-input-group .semi-cascader:not(:last-child):after,.semi-rtl .semi-input-group .semi-tree-select:not(:last-child):after,.semi-rtl .semi-input-group>.semi-input-wrapper:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-select:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-cascader:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-tree-select:not(:last-child):after,.semi-portal-rtl .semi-input-group>.semi-input-wrapper:not(:last-child):after{right:auto;left:-1px}.semi-rtl .semi-input-group .semi-input-number:not(:last-child):after,.semi-portal-rtl .semi-input-group .semi-input-number:not(:last-child):after{right:auto;left:-1px}.semi-rtl .semi-input-textarea-wrapper,.semi-portal-rtl .semi-input-textarea-wrapper{direction:rtl}.semi-rtl .semi-input-textarea-counter,.semi-portal-rtl .semi-input-textarea-counter{text-align:left}.semi-rtl .semi-input-textarea-showClear,.semi-portal-rtl .semi-input-textarea-showClear{padding-right:0;padding-left:36px}.semi-input-number{display:inline-flex;align-items:center;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-input-number-suffix-btns{display:inline-flex;flex-direction:column;margin-left:4px;border:1px solid var(--semi-color-border);border-radius:var(--semi-border-radius-small);background-color:var(--semi-color-bg-2);box-sizing:border-box}.semi-input-number-suffix-btns>.semi-input-number-button{height:50%;width:14px;padding:0;margin:0;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none;border-radius:0;color:var(--semi-color-text-2)}.semi-input-number-suffix-btns>.semi-input-number-button-up:not(.semi-input-number-button-up-not-allowed):hover,.semi-input-number-suffix-btns>.semi-input-number-button-down:not(.semi-input-number-button-down-not-allowed):hover{cursor:pointer;background-color:var(--semi-color-fill-0)}.semi-input-number-suffix-btns>.semi-input-number-button-up:not(.semi-input-number-button-up-not-allowed):active,.semi-input-number-suffix-btns>.semi-input-number-button-down:not(.semi-input-number-button-down-not-allowed):active{cursor:pointer;background-color:var(--semi-color-fill-1)}.semi-input-number-suffix-btns>.semi-input-number-button-up.semi-input-number-button-up-disabled,.semi-input-number-suffix-btns>.semi-input-number-button-down.semi-input-number-button-down-disabled{background-color:var(--semi-color-disabled-fill);color:var(--semi-color-disabled-text)}.semi-input-number-suffix-btns>.semi-input-number-button-up.semi-input-number-button-up-not-allowed,.semi-input-number-suffix-btns>.semi-input-number-button-down.semi-input-number-button-down-not-allowed{cursor:not-allowed}.semi-input-number-suffix-btns-inner-hover{border-color:var(--semi-color-fill-2)}.semi-input-number-suffix-btns-inner{margin-left:8px}.semi-input-number .semi-input-clearbtn+.semi-input-suffix{margin-left:-4px}.semi-input-number .semi-input-clearbtn+.semi-input-suffix .semi-input-number-suffix-btns-inner{margin-left:0}.semi-input-number-size-default .semi-input-number-suffix-btns{height:32px}.semi-input-number-size-default .semi-input-number-suffix-btns-inner{height:30px}.semi-input-number-size-large .semi-input-number-suffix-btns{height:40px}.semi-input-number-size-large .semi-input-number-suffix-btns-inner{height:38px}.semi-input-number-size-small .semi-input-number-suffix-btns{height:24px}.semi-input-number-size-small .semi-input-number-suffix-btns-inner{height:22px}.semi-input-number:not(:focus-within):not(:hover) .semi-input-borderless+.semi-input-number-suffix-btns{opacity:0}.semi-rtl .semi-input-number,.semi-portal-rtl .semi-input-number{direction:rtl}.semi-rtl .semi-input-number-suffix-btns,.semi-portal-rtl .semi-input-number-suffix-btns{margin-left:auto;margin-right:4px}.semi-rtl .semi-input-number-suffix-btns-inner,.semi-portal-rtl .semi-input-number-suffix-btns-inner{margin-left:auto;margin-right:8px}.semi-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix,.semi-portal-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix{margin-left:auto;margin-right:-4px}.semi-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix .semi-input-number-suffix-btns-inner,.semi-portal-rtl .semi-input-number .semi-input-clearbtn+.semi-input-suffix .semi-input-number-suffix-btns-inner{margin-left:auto;margin-right:0}.semi-navigation{box-sizing:border-box;display:inline-flex;width:240px;outline:none;overflow:hidden;margin:0;padding-left:8px;padding-right:8px;-webkit-user-select:none;user-select:none;transition:padding-left .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95);border-right:1px solid var(--semi-color-border);background-color:var(--semi-color-nav-bg)}.semi-navigation-inner{width:100%;height:100%;display:flex;justify-content:space-between}.semi-navigation-list{margin:0;padding:0;list-style:none}.semi-navigation-list>.semi-navigation-item-normal{height:36px}.semi-navigation-list>.semi-navigation-item{font-weight:600}.semi-navigation-list>.semi-navigation-item>.semi-navigation-sub-title{font-weight:600}.semi-navigation-collapsed{width:60px;padding-left:8px;padding-right:8px;transition:padding-left .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-navigation-collapsed .semi-navigation-item-text{transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:0}.semi-navigation-collapsed .semi-navigation-item-icon:last-child{transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:0}.semi-navigation-sub-wrap .semi-navigation-sub-title,.semi-navigation-item{cursor:pointer;display:flex;border-radius:var(--semi-border-radius-small);padding:8px 12px;box-sizing:border-box;margin-top:0;margin-bottom:8px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;color:var(--semi-color-text-0);width:100%;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-navigation-sub-wrap .semi-navigation-sub-title-text,.semi-navigation-item-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:1}.semi-navigation-sub-wrap .semi-navigation-sub-title-indent,.semi-navigation-item-indent{width:32px}.semi-navigation-sub-wrap .semi-navigation-sub-title:focus-visible,.semi-navigation-item:focus-visible{outline:2px solid var(--semi-color-primary-light-active);outline-offset:-2px}.semi-navigation-header-link,.semi-navigation-item-link{display:flex;width:100%;color:inherit;text-decoration:none;align-items:center;justify-content:flex-start}.semi-navigation-item-has-link{padding:0}.semi-navigation-item-has-link .semi-navigation-item-link{padding:8px 12px}.semi-navigation-item-sub{padding:0}.semi-navigation-sub-wrap>.semi-navigation-item-inner{width:100%}.semi-navigation-sub-wrap .semi-navigation-sub-title>.semi-navigation-item-inner{display:flex}.semi-navigation-item-inner{display:flex;align-items:center;width:100%;flex:0 0 auto}.semi-navigation-item-title{opacity:1;transition:opacity .1s 100s ease-out}.semi-navigation .semi-navigation-sub-title{margin-bottom:0}.semi-navigation-item-icon-info{display:inline-flex;color:var(--semi-color-text-2);margin-right:12px;min-width:20px;margin-left:0}.semi-navigation-item-icon-toggle-left{display:inline-flex;color:var(--semi-color-text-2);margin-right:12px;min-width:20px}.semi-navigation-item-icon-toggle-right{display:inline-flex;color:var(--semi-color-text-2);margin-left:auto;transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:1}.semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-item-selected.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-item-selected.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-inner>.semi-navigation-item{color:var(--semi-color-text-0)}.semi-navigation-item-normal:hover:not(.semi-navigation-item-selected){background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-navigation-item-normal:hover:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-item-normal:hover.semi-navigation-item-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-0)}.semi-navigation-item-normal:hover.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-item-normal:hover.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-item-normal:hover.semi-navigation-item-selected.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-item-normal:hover.semi-navigation-item-selected.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-item-normal:active:not(.semi-navigation-item-selected),.semi-navigation-inner>.semi-navigation-item-normal:active:not(.semi-navigation-item-selected){background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-navigation-item-normal:active:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child,.semi-navigation-inner>.semi-navigation-item-normal:active:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-item-normal:active.semi-navigation-item-selected,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-1)}.semi-navigation-item-normal:active.semi-navigation-item-selected .semi-navigation-item-icon:first-child,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-item-normal:active.semi-navigation-item-disabled,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-inner>.semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub-wrap .semi-navigation-item-inner{display:block}.semi-navigation-sub-wrap{display:block;padding:0;margin-top:0;height:inherit}.semi-navigation-sub-wrap .semi-navigation-sub-title{display:flex;justify-content:flex-start;height:36px;align-items:center}.semi-navigation-sub{font-weight:400;font-size:14px;list-style:none;outline:none;padding:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.semi-navigation-sub .semi-navigation-item{color:var(--semi-color-text-0);background-color:transparent;height:36px;font-weight:400;width:100%}.semi-navigation-sub .semi-navigation-item:first-child{margin-top:8px}.semi-navigation-sub .semi-navigation-item>.semi-navigation-sub .semi-navigation-item-text:first-child{margin-left:44px}.semi-navigation-sub .semi-navigation-item:hover:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled){background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:hover:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:hover.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-sub .semi-navigation-item:active:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled){background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:active:not(.semi-navigation-sub-wrap):not(.semi-navigation-item-selected):not(.semi-navigation-item-disabled) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item:active.semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-sub .semi-navigation-item-selected{background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0)}.semi-navigation-sub .semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-sub .semi-navigation-item-selected.semi-navigation-item-disabled{cursor:not-allowed;background-color:var(--semi-color-primary-light-default);color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-item-disabled{background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-sub .semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-sub .semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-sub .semi-navigation-sub-wrap{height:inherit}.semi-navigation-icon-rotate-0{transition:transform .2s ease-in-out;transform:rotate(0)}.semi-navigation-icon-rotate-180{transition:transform .2s ease-in-out;transform:rotate(-180deg)}.semi-navigation-header{display:inline-flex;align-items:center;box-sizing:border-box}.semi-navigation-header-logo{margin-left:0;margin-right:8px;display:inline-flex}.semi-navigation-header-logo>.semi-icon,.semi-navigation-header-logo>img{width:36px;height:36px;object-fit:scale-down}.semi-navigation-header-text{font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;display:inline-flex;color:var(--semi-color-text-0);white-space:nowrap;text-overflow:ellipsis;transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:1}.semi-navigation-footer{box-sizing:border-box;padding:16px 24px;display:inline-flex;align-items:center}.semi-navigation-footer .semi-navigation-collapse-btn{text-overflow:ellipsis;white-space:nowrap}.semi-navigation-collapsed .semi-navigation-header{justify-content:center}.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo{margin-right:0;width:100%}.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo>.semi-icon,.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo>img{width:36px;max-width:100%;max-height:100%}.semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-text{transition:opacity .2s cubic-bezier(.5,-.1,1,.4);opacity:0}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-item-selected:not(.semi-navigation-item-disabled).semi-navigation-item-normal:hover .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title{color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected{font-weight:600;background-color:var(--semi-color-primary-light-default);color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected.semi-navigation-sub-title-disabled{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-selected.semi-navigation-sub-title-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-disabled{font-weight:600;background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-disabled .semi-navigation-item-icon,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover:not(.semi-navigation-sub-title-selected){background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-0)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active:not(.semi-navigation-sub-title-selected){background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-selected{color:var(--semi-color-text-0);background-color:var(--semi-color-fill-1)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected),.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected){background-color:transparent;color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled:not(.semi-navigation-sub-title-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected{background-color:transparent;color:var(--semi-color-primary-disabled);cursor:not-allowed}.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:hover.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child,.semi-navigation-vertical .semi-navigation-list>.semi-navigation-sub-wrap>.semi-navigation-sub-title:active.semi-navigation-sub-title-disabled.semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-primary-disabled)}.semi-navigation-vertical .semi-navigation-item:last-of-type{margin-bottom:0}.semi-navigation-vertical .semi-navigation-inner{flex-direction:column}.semi-navigation-vertical .semi-navigation-header-list-outer{height:100%}.semi-navigation-vertical .semi-navigation-list-wrapper{padding-top:12px;overflow-y:auto;overflow-x:hidden}.semi-navigation-vertical .semi-navigation-header{padding:32px 8px 36px 5.5px;width:100%}.semi-navigation-vertical .semi-navigation-header-collapsed{padding-left:5.5px;padding-right:0;transition:padding-left .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-navigation-vertical .semi-navigation-footer{color:var(--semi-color-text-2);padding-left:8px;padding-right:8px}.semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn .semi-button-content-right{margin-left:12px;opacity:1;transition:opacity .2s cubic-bezier(.5,-.1,1,.4)}.semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn>.semi-button{padding-left:8px;padding-right:8px}.semi-navigation-vertical .semi-navigation-footer-collapsed{justify-content:center}.semi-navigation-vertical .semi-navigation-footer-collapsed .semi-navigation-collapse-btn{width:100%}.semi-navigation-vertical .semi-navigation-footer-collapsed .semi-navigation-collapse-btn .semi-button-content-right{opacity:0;transition:opacity .2s cubic-bezier(.5,-.1,1,.4)}.semi-navigation-horizontal{width:100%;height:60px;border-right:none;border-bottom:1px solid var(--semi-color-border);padding-left:24px;padding-right:24px}.semi-navigation-horizontal .semi-navigation-inner{flex-direction:row}.semi-navigation-horizontal .semi-navigation-header-list-outer{display:inline-flex;align-items:center}.semi-navigation-horizontal .semi-navigation-header-list-outer-collapsed{align-items:baseline}.semi-navigation-horizontal .semi-navigation-header{width:inherit;margin-right:24px}.semi-navigation-horizontal .semi-navigation-list{display:inline-flex;align-items:center}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item{margin-bottom:0;color:var(--semi-color-text-2);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item .semi-navigation-item-icon:first-child{color:var(--semi-color-text-2)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-selected{color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-selected .semi-navigation-item-icon:first-child{color:var(--semi-color-text-0)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-disabled{color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover:not(.semi-navigation-item-selected){color:var(--semi-color-text-1);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-1)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover:not(.semi-navigation-item-selected) .semi-navigation-item-text{color:var(--semi-color-text-1);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active:not(.semi-navigation-item-selected){color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active:not(.semi-navigation-item-selected) .semi-navigation-item-icon:first-child{color:var(--semi-color-text-0)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled{color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-icon:first-child,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-icon:first-child{color:var(--semi-color-disabled-text)}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:hover.semi-navigation-item-disabled .semi-navigation-item-text,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item-normal:active.semi-navigation-item-disabled .semi-navigation-item-text{color:var(--semi-color-disabled-text);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-item:not(:last-of-type){margin-right:8px}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title .semi-navigation-item-text{color:var(--semi-color-text-2);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-selected .semi-navigation-item-icon:first-child,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-selected .semi-navigation-item-text{color:var(--semi-color-text-0);background-color:transparent}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-disabled{cursor:not-allowed}.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-disabled .semi-navigation-item-icon:first-child,.semi-navigation-horizontal .semi-navigation-list .semi-navigation-sub-title-disabled .semi-navigation-item-text{color:var(--semi-color-disabled-text);background-color:transparent}.semi-navigation-horizontal .semi-navigation-item-inner{width:auto}.semi-navigation-horizontal .semi-navigation-item-icon:last-child{margin-left:8px}.semi-navigation-horizontal .semi-navigation-item-icon:first-child{margin-right:8px}.semi-navigation-horizontal .semi-navigation-item{width:auto}.semi-navigation-horizontal .semi-navigation-item-collapsed{word-wrap:none;text-overflow:ellipsis}.semi-navigation-horizontal .semi-navigation-footer{border-top:none;padding-right:0}.semi-navigation-horizontal .semi-navigation-footer-collapsed{justify-content:center;flex-direction:row;align-items:center}.semi-navigation-popover .semi-navigation-sub-title{width:100%}.semi-navigation-popover .semi-navigation-item-selected{font-weight:400}.semi-dropdown-item .semi-navigation-sub-title{box-sizing:border-box;padding:8px 12px;width:100%}.semi-dropdown-item.semi-navigation-item{margin-top:0;margin-bottom:0;min-width:150px}.semi-dropdown-menu .semi-navigation-item-sub{padding:0}.semi-rtl .semi-navigation,.semi-portal-rtl .semi-navigation{direction:rtl;border-right:0;border-left:1px solid var(--semi-color-border);transition:padding-right .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-rtl .semi-navigation-collapsed,.semi-portal-rtl .semi-navigation-collapsed{transition:padding-right .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-rtl .semi-navigation-item-icon:first-child,.semi-portal-rtl .semi-navigation-item-icon:first-child{margin-right:0;margin-left:12px}.semi-rtl .semi-navigation-item-icon:last-child,.semi-portal-rtl .semi-navigation-item-icon:last-child{margin-left:0;margin-right:auto}.semi-rtl .semi-navigation-sub .semi-navigation-item>.semi-rtl .semi-navigation-sub .semi-navigation-item-text:first-child,.semi-rtl .semi-navigation-sub .semi-navigation-item>.semi-portal-rtl .semi-navigation-sub .semi-navigation-item-text:first-child,.semi-portal-rtl .semi-navigation-sub .semi-navigation-item>.semi-rtl .semi-navigation-sub .semi-navigation-item-text:first-child,.semi-portal-rtl .semi-navigation-sub .semi-navigation-item>.semi-portal-rtl .semi-navigation-sub .semi-navigation-item-text:first-child{margin-left:auto;margin-right:44px}.semi-rtl .semi-navigation-sub .semi-navigation-item>.semi-navigation-item-icon:first-child,.semi-portal-rtl .semi-navigation-sub .semi-navigation-item>.semi-navigation-item-icon:first-child{margin-right:12px}.semi-rtl .semi-navigation-header,.semi-portal-rtl .semi-navigation-header{display:inline-flex;align-items:center;box-sizing:border-box}.semi-rtl .semi-navigation-header-logo,.semi-portal-rtl .semi-navigation-header-logo{margin-left:8px;margin-right:0;display:inline-flex}.semi-rtl .semi-navigation-collapsed,.semi-portal-rtl .semi-navigation-collapsed{direction:rtl}.semi-rtl .semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo,.semi-portal-rtl .semi-navigation-collapsed .semi-navigation-header .semi-navigation-header-logo{margin-right:auto;margin-left:0}.semi-rtl .semi-navigation-vertical,.semi-portal-rtl .semi-navigation-vertical{direction:rtl}.semi-rtl .semi-navigation-vertical .semi-navigation-header,.semi-portal-rtl .semi-navigation-vertical .semi-navigation-header{padding-right:5.5px;padding-left:8px}.semi-rtl .semi-navigation-vertical .semi-navigation-header-collapsed,.semi-portal-rtl .semi-navigation-vertical .semi-navigation-header-collapsed{padding-right:5.5px;padding-left:0;transition:padding-right .1s ease-out,width .2s cubic-bezier(.62,.05,.36,.95)}.semi-rtl .semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn .semi-button-content-right,.semi-portal-rtl .semi-navigation-vertical .semi-navigation-footer .semi-navigation-collapse-btn .semi-button-content-right{margin-left:auto;margin-right:12px;transition:opacity .2s cubic-bezier(.5,-.1,1,.4)}.semi-rtl .semi-navigation-horizontal,.semi-portal-rtl .semi-navigation-horizontal{direction:rtl;border-right:auto;border-left:none;padding-left:24px;padding-right:24px}.semi-rtl .semi-navigation-horizontal .semi-navigation-header,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-header{margin-right:auto;margin-left:24px}.semi-rtl .semi-navigation-horizontal .semi-navigation-list .semi-navigation-item:not(:last-of-type),.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-list .semi-navigation-item:not(:last-of-type){margin-right:auto;margin-left:8px}.semi-rtl .semi-navigation-horizontal .semi-navigation-item-icon:last-child,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-item-icon:last-child{margin-left:auto;margin-right:8px}.semi-rtl .semi-navigation-horizontal .semi-navigation-item-icon:first-child,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-item-icon:first-child{margin-right:auto;margin-left:8px}.semi-rtl .semi-navigation-horizontal .semi-navigation-footer,.semi-portal-rtl .semi-navigation-horizontal .semi-navigation-footer{padding-right:auto;padding-left:0}.semi-overflow-list{display:flex;flex-wrap:nowrap;min-width:0}.semi-overflow-list-spacer{flex-shrink:1;width:1px}.semi-overflow-list-scroll-wrapper{display:flex;flex:1;flex-wrap:nowrap;overflow-x:scroll}.semi-rtl .semi-overflow-list,.semi-portal-rtl .semi-overflow-list{direction:rtl}.semi-page{display:flex;list-style:none;padding:0;align-items:center;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;margin-block-start:0;margin-block-end:0}.semi-page-small{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;color:var(--semi-color-text-2);padding:0}.semi-page-disabled{cursor:not-allowed}.semi-page-disabled .semi-page-total{color:var(--semi-color-disabled-text)}.semi-page-item{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;min-width:32px;border:0px solid transparent;cursor:pointer;-webkit-user-select:none;user-select:none;height:32px;margin-left:4px;margin-right:4px;font-weight:400;color:var(--semi-color-text-0);border-radius:var(--semi-border-radius-small);text-align:center;line-height:32px;display:flex;align-items:center;justify-content:center;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none))}.semi-page-item:hover{border-color:transparent;background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-page-item-rest-opening{background-color:var(--semi-color-fill-0);color:var(--semi-color-text-0)}.semi-page-item:active{border-color:transparent;background-color:var(--semi-color-fill-1);color:var(--semi-color-text-0)}.semi-page-item-active{border-color:transparent;color:var(--semi-color-primary);font-weight:600;background-color:var(--semi-color-primary-light-default)}.semi-page-item-active:hover{border-color:transparent;color:var(--semi-color-primary);background-color:var(--semi-color-primary-light-default)}.semi-page-item-disabled{border-color:transparent;color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-page-item-disabled:hover{background-color:transparent}.semi-page-item-small{min-width:44px;margin:0}.semi-page-item-all-disabled{border-color:transparent;color:var(--semi-color-disabled-text);background-color:transparent;cursor:not-allowed}.semi-page-item-all-disabled:hover{background-color:transparent;color:var(--semi-color-disabled-text)}.semi-page-item-all-disabled-active{background-color:var(--semi-color-disabled-fill);font-weight:600}.semi-page-item-all-disabled-active:hover{background-color:var(--semi-color-disabled-fill)}.semi-page-total{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2)}.semi-page-prev,.semi-page-next{color:var(--semi-color-tertiary);cursor:pointer}.semi-page-prev.semi-page-item-disabled,.semi-page-next.semi-page-item-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-page-quickjump{margin-left:24px;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;justify-content:center;align-items:center;flex-shrink:0;color:var(--semi-color-text-0)}.semi-page-quickjump-input-number{max-width:50px;margin-left:4px;margin-right:4px}.semi-page-quickjump-disabled{color:var(--semi-color-disabled-text)}.semi-page .semi-select,.semi-select-dropdown{-webkit-user-select:none;user-select:none}.semi-page-rest-list{padding-top:4px;padding-bottom:4px}.semi-page-rest-list>div{position:relative}.semi-page-rest-item{height:32px;line-height:32px;display:flex;justify-content:center;box-sizing:border-box;cursor:pointer}.semi-page-rest-item:hover{background-color:var(--semi-color-fill-0)}.semi-page-rest-item:active{background-color:var(--semi-color-fill-1)}.semi-rtl .semi-page,.semi-portal-rtl .semi-page{direction:rtl}.semi-rtl .semi-page-item,.semi-portal-rtl .semi-page-item{margin-right:4px;margin-left:4px}.semi-rtl .semi-page-prev,.semi-rtl .semi-page-next,.semi-portal-rtl .semi-page-prev,.semi-portal-rtl .semi-page-next{transform:scaleX(-1)}.semi-select-option{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;word-break:break-all;padding:8px 12px;color:var(--semi-color-text-0);border-radius:0;position:relative;display:flex;flex-wrap:nowrap;align-items:center;cursor:pointer;box-sizing:border-box;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-select-option-icon{width:12px;color:transparent;margin-right:8px;display:flex;justify-content:center;align-content:center}.semi-select-option-text{display:flex;flex-wrap:wrap;white-space:pre}.semi-select-option-keyword{color:var(--semi-color-primary);background-color:inherit;font-weight:600}.semi-select-option:active{background-color:var(--semi-color-fill-1)}.semi-select-option-empty{cursor:not-allowed;color:var(--semi-color-disabled-text);justify-content:center}.semi-select-option-empty:hover,.semi-select-option-empty:active{background-color:inherit}.semi-select-option-disabled{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-select-option-disabled:hover{background-color:var(--semi-color-fill-0)}.semi-select-option-selected{font-weight:600;background:transparent}.semi-select-option-selected .semi-select-option-icon{color:var(--semi-color-text-2)}.semi-select-option-focused{background-color:var(--semi-color-fill-0)}.semi-select{box-sizing:border-box;border-radius:var(--semi-border-radius-small);border:1px solid transparent;height:32px;font-weight:400;background-color:var(--semi-color-fill-0);display:inline-flex;vertical-align:middle;position:relative;outline:none;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none));max-height:300px;overflow-y:auto}.semi-select:hover{background-color:var(--semi-color-fill-1);border:1px solid transparent}.semi-select:focus{border:1px solid var(--semi-color-focus-border);background-color:var(--semi-color-fill-0);outline:0}.semi-select:active{background-color:var(--semi-color-fill-2)}.semi-select-small{height:24px;line-height:24px}.semi-select-large{min-height:40px;line-height:40px}.semi-select-large .semi-select-selection{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-select-open,.semi-select-focus{border:1px solid var(--semi-color-focus-border);outline:0}.semi-select-open:hover,.semi-select-focus:hover{background-color:var(--semi-color-fill-0);border:1px solid var(--semi-color-focus-border)}.semi-select-open:active,.semi-select-focus:active{background-color:var(--semi-color-fill-2);border:1px solid var(--semi-color-focus-border)}.semi-select-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-select-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-select-warning:focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-select-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning-light-active)}.semi-select-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-select-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-select-error:focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-select-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger-light-active)}.semi-select-disabled{cursor:not-allowed;background-color:var(--semi-color-disabled-fill)}.semi-select-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-select-disabled:focus{border:1px solid transparent}.semi-select-disabled .semi-select-selection,.semi-select-disabled .semi-select-selection-placeholder{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-select-disabled .semi-select-arrow,.semi-select-disabled .semi-select-prefix,.semi-select-disabled .semi-select-suffix{color:var(--semi-color-disabled-text)}.semi-select-disabled .semi-tag{color:var(--semi-color-disabled-text);background-color:transparent}.semi-select-selection{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;display:flex;align-items:center;flex-grow:1;overflow:hidden;margin-left:12px;cursor:pointer;color:var(--semi-color-text-0)}.semi-select-selection-text{width:100%;overflow:hidden;text-overflow:ellipsis}.semi-select-selection-text-inactive{display:flex;opacity:.4}.semi-select-selection-text-hide{display:none}.semi-select-selection-placeholder{color:var(--semi-color-text-2)}.semi-select-selection .semi-tag{margin-top:1px;margin-right:4px;margin-bottom:1px}.semi-select-selection .semi-tag:nth-of-type(1){margin-left:0}.semi-select-selection .semi-tag-group{height:inherit}.semi-select-selection .semi-tag-group .semi-tag{margin-top:1px;margin-right:4px;margin-bottom:1px}.semi-select-content-wrapper{white-space:nowrap;overflow:hidden;display:flex;align-items:center;height:100%}.semi-select-content-wrapper-collapse{display:inline-flex;flex-shrink:0;width:100%}.semi-select-content-wrapper-collapse .semi-overflow-list-overflow{max-width:100%;min-width:50px}.semi-select-content-wrapper-collapse>.semi-select-content-wrapper-collapse-tag{background-color:transparent}.semi-select-content-wrapper-collapse>.semi-select-content-wrapper-collapse-N{background-color:transparent;padding:4px;color:var(--semi-color-text-0);font-size:12px}.semi-select-multiple{height:auto}.semi-select-multiple .semi-select-selection{margin-left:4px}.semi-select-multiple .semi-select-content-wrapper{width:100%;min-height:30px;flex-wrap:wrap}.semi-select-multiple .semi-select-content-wrapper-empty{margin-left:8px}.semi-select-multiple .semi-select-content-wrapper .semi-tag-group{display:flex;align-items:center}.semi-select-multiple .semi-select-content-wrapper-one-line{flex-wrap:nowrap}.semi-select-multiple .semi-select-content-wrapper-one-line .semi-tag-group{flex-wrap:nowrap;justify-content:flex-start;overflow:hidden;flex-shrink:0}.semi-select-multiple .semi-select-inline-label-wrapper{flex-shrink:0}.semi-select-multiple.semi-select-large .semi-select-content-wrapper{min-height:38px}.semi-select-multiple.semi-select-small .semi-select-content-wrapper{min-height:22px}.semi-select-arrow{display:flex;align-items:center;justify-content:center;width:32px;color:var(--semi-color-text-2);flex-shrink:0;transform:rotate(var(--semi-transform-rotate-none))}.semi-select-arrow-empty{display:flex;width:12px}.semi-select-prefix,.semi-select-suffix{display:flex;justify-content:center;align-items:center}.semi-select-prefix-text,.semi-select-suffix-text{margin:0 12px}.semi-select-prefix-icon,.semi-select-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-select-suffix{display:flex;justify-content:center;align-items:center}.semi-select-clear{display:flex;justify-content:center;align-items:center;width:32px;color:var(--semi-color-text-2);flex-shrink:0}.semi-select-clear:hover{color:var(--semi-color-primary)}.semi-select-inset-label-wrapper{display:inline}.semi-select-inset-label{margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-select-create-tips{color:var(--semi-color-text-2);margin-right:4px}.semi-select-with-prefix .semi-select-selection{margin-left:0}.semi-select-single.semi-select-filterable .semi-select-content-wrapper{flex-grow:1;height:100%;overflow:hidden;position:relative}.semi-select-single.semi-select-filterable .semi-input-wrapper{position:absolute;top:0;left:0;height:100%;width:100%;border:none;background-color:transparent}.semi-select-single.semi-select-filterable .semi-input-wrapper-focus{border:none}.semi-select-single.semi-select-filterable .semi-input{padding-left:0;padding-right:0;height:100%}.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper{flex-grow:1;height:100%;overflow:hidden;position:relative}.semi-select-multiple.semi-select-filterable .semi-select-content-wrapper-empty .semi-input-wrapper{position:absolute;top:0;left:0;height:100%;width:100%}.semi-select-multiple.semi-select-filterable .semi-input-wrapper{height:100%;width:100%;border:none;background-color:transparent}.semi-select-multiple.semi-select-filterable .semi-input-wrapper-focus{border:none}.semi-select-multiple.semi-select-filterable .semi-input{padding-left:0;padding-right:0}.semi-select-option-list-wrapper{padding:4px 0}.semi-select-option-list{overflow-x:hidden;overflow-y:auto}.semi-select-option-list-chosen .semi-select-option-icon{display:flex}.semi-select-group{color:var(--semi-color-text-2);margin-top:4px;padding:12px 16px 4px 32px;font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;cursor:default}.semi-select-group:not(:nth-of-type(1)){border-top:1px solid var(--semi-color-border)}.semi-select-loading-wrapper{padding:8px 16px;cursor:not-allowed;height:20px;box-sizing:content-box}.semi-select-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-select-borderless:not(:focus-within):not(:hover) .semi-select-arrow{opacity:0}.semi-select-borderless:focus-within:not(:active){background-color:transparent}.semi-select-borderless.semi-select-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-select-borderless.semi-select-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-select-borderless.semi-select-error:focus-within{border-color:var(--semi-color-danger)}.semi-select-borderless.semi-select-warning:focus-within{border-color:var(--semi-color-warning)}.semi-rtl .semi-select,.semi-portal-rtl .semi-select{direction:rtl}.semi-rtl .semi-select-selection,.semi-portal-rtl .semi-select-selection{margin-left:0;margin-right:12px}.semi-rtl .semi-select-selection .semi-tag:nth-of-type(1),.semi-portal-rtl .semi-select-selection .semi-tag:nth-of-type(1){margin-right:0}.semi-rtl .semi-select-selection .semi-tag-group .semi-tag,.semi-portal-rtl .semi-select-selection .semi-tag-group .semi-tag{margin-left:4px;margin-right:0}.semi-rtl .semi-select-multiple .semi-select-selection,.semi-portal-rtl .semi-select-multiple .semi-select-selection{margin-left:0;margin-right:4px}.semi-rtl .semi-select-multiple .semi-select-content-wrapper-empty,.semi-portal-rtl .semi-select-multiple .semi-select-content-wrapper-empty{margin-left:0;margin-right:8px}.semi-rtl .semi-select-inset-label,.semi-portal-rtl .semi-select-inset-label{margin-left:12px}.semi-rtl .semi-select-create-tips,.semi-portal-rtl .semi-select-create-tips{margin-right:0;margin-left:4px}.semi-rtl .semi-select-with-prefix .semi-select-selection,.semi-portal-rtl .semi-select-with-prefix .semi-select-selection{margin-left:auto;margin-right:0}.semi-rtl .semi-select-single.semi-select-filterable .semi-input-wrapper,.semi-portal-rtl .semi-select-single.semi-select-filterable .semi-input-wrapper,.semi-rtl .semi-select-multiple.semi-select-filterable .semi-select-content-wrapper-empty .semi-input-wrapper,.semi-portal-rtl .semi-select-multiple.semi-select-filterable .semi-select-content-wrapper-empty .semi-input-wrapper{left:auto;right:0}.semi-rtl .semi-select-group,.semi-portal-rtl .semi-select-group{padding-left:32px;padding-right:16px}.semi-rtl .semi-select-option-icon,.semi-portal-rtl .semi-select-option-icon{margin-right:0;margin-left:8px}.semi-popconfirm{box-sizing:border-box;max-width:400px}.semi-popconfirm-inner{display:flex;flex-direction:column;padding:24px 24px 24px 20px;position:relative}.semi-popconfirm-header{display:flex;justify-content:flex-start}.semi-popconfirm-header-title{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;margin-bottom:8px;color:var(--semi-color-text-0)}.semi-popconfirm-header-icon{width:24px;height:24px;margin-right:12px}.semi-popconfirm-header .semi-icon-alert_triangle{color:var(--semi-color-warning)}.semi-popconfirm-header-body{display:inline-flex;flex-grow:1;flex-direction:column}.semi-popconfirm-body{color:var(--semi-color-text-2)}.semi-popconfirm-body-withIcon{margin-left:36px}.semi-popconfirm-body>p{margin:0;padding:0}.semi-popconfirm-footer{margin-top:25px;display:flex;justify-content:flex-end}.semi-popconfirm-footer>.semi-button:first-child:not(:last-child){margin-right:8px}.semi-popconfirm-popover{border-radius:var(--semi-border-radius-medium)}.semi-popover-with-arrow .semi-popconfirm-inner{padding:12px 12px 12px 8px}.semi-popconfirm-rtl{direction:rtl}.semi-popconfirm-rtl .semi-popconfirm-inner{padding:24px 20px 24px 24px}.semi-popconfirm-rtl .semi-popconfirm-header{margin-right:0}.semi-popconfirm-rtl .semi-popconfirm-header-icon{margin-right:0;margin-left:12px}.semi-popconfirm-rtl .semi-popconfirm-footer{justify-content:flex-end}.semi-popconfirm-rtl .semi-popconfirm-footer>.semi-button:first-child:not(:last-child){margin-right:0;margin-left:8px}.semi-popover-with-arrow.semi-popconfirm-rtl{direction:rtl}.semi-popover-with-arrow.semi-popconfirm-rtl .semi-popconfirm-inner{padding:12px 8px 12px 12px}.semi-progress{display:flex;align-items:center}.semi-progress-track{background-color:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small)}.semi-progress-horizontal{height:4px;margin-top:4px;margin-bottom:4px}.semi-progress-horizontal.semi-progress-large{height:6px}.semi-progress-horizontal .semi-progress-track{height:100%;width:100%}.semi-progress-horizontal .semi-progress-track-inner{height:100%;background-color:var(--semi-color-success);border-radius:var(--semi-border-radius-small);transition:width .3s;transition-timing-function:cubic-bezier(.62,.05,.36,.95)}.semi-progress-horizontal .semi-progress-line-text{min-width:45px;font-weight:600;margin-left:16px;color:var(--semi-color-text-0)}.semi-progress-vertical{width:4px;display:inline-flex;height:100%;margin-left:4px;margin-right:4px;flex-direction:column}.semi-progress-vertical.semi-progress-large{width:6px}.semi-progress-vertical .semi-progress-track{height:100%;width:100%}.semi-progress-vertical .semi-progress-track-inner{background-color:var(--semi-color-success);border-radius:var(--semi-border-radius-small);width:100%;transition:height .3s;transition-timing-function:cubic-bezier(.62,.05,.36,.95)}.semi-progress-vertical .semi-progress-line-text{font-weight:600;margin-top:8px}.semi-progress-circle{position:relative;display:inline-block}.semi-progress-circle-ring{display:block}.semi-progress-circle-ring-inner{transition:stroke-dashoffset .3s;transition-timing-function:cubic-bezier(.62,.05,.36,.95);transform:rotate(-90deg);transform-origin:50% 50%}.semi-progress-circle-text{position:absolute;top:50%;left:50%;width:100%;text-align:center;transform:translate(-50%,-50%);-webkit-user-select:none;user-select:none;color:var(--semi-color-mode-minor-text)}.semi-rtl .semi-progress,.semi-portal-rtl .semi-progress{direction:rtl}.semi-rtl .semi-progress-horizontal .semi-progress-line-text,.semi-portal-rtl .semi-progress-horizontal .semi-progress-line-text{margin-left:0;margin-right:16px}.semi-rtl .semi-progress-circle-ring-inner,.semi-portal-rtl .semi-progress-circle-ring-inner{transform:rotate(-90deg);transform-origin:50% 50%}.semi-rtl .semi-progress-circle-text,.semi-portal-rtl .semi-progress-circle-text{left:auto;right:50%;transform:translate(50%,-50%)}.semi-radio{box-sizing:border-box;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:inline-flex;column-gap:8px;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);min-height:20px;min-width:16px;cursor:pointer;vertical-align:bottom;text-align:left}.semi-radio.semi-radio-vertical{display:block}.semi-radio input[type=checkbox],.semi-radio input[type=radio]{position:absolute;left:0;top:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.semi-radio:hover .semi-radio-inner-display{background:var(--semi-color-fill-0);border:solid 1px var(--semi-color-focus-border)}.semi-radio:hover.semi-radio-cardRadioGroup .semi-radio-inner-display{background:var(--semi-color-white)}.semi-radio:hover .semi-radio-inner-checked .semi-radio-inner-display{background:var(--semi-color-primary-hover);border-color:var(--semi-color-primary-hover)}.semi-radio:active.semi-radio-cardRadioGroup .semi-radio-inner-display{background:var(--semi-color-white)}.semi-radio:active .semi-radio-inner-checked .semi-radio-inner-display{background:var(--semi-color-primary-active);border-color:var(--semi-color-primary-active)}.semi-radio-buttonRadioComponent{padding:4px;background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small)}.semi-radio-buttonRadioGroup{position:relative;padding:4px;border-radius:var(--semi-border-radius-small);line-height:16px}.semi-radio-buttonRadioGroup:not(:last-child){padding-right:0}.semi-radio-buttonRadioGroup-small{padding:2px 4px;line-height:16px}.semi-radio-buttonRadioGroup-large{padding:4px;line-height:20px}.semi-radio-cardRadioGroup{flex-wrap:nowrap;border-radius:var(--semi-border-radius-small);padding:12px 16px;background:transparent;border:1px solid transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-radio-cardRadioGroup .semi-radio-inner{flex-shrink:0}.semi-radio-cardRadioGroup .semi-radio-inner-display{background:var(--semi-color-white)}.semi-radio-cardRadioGroup .semi-radio-addon{font-weight:600;font-size:14px;line-height:20px;color:var(--semi-color-text-0)}.semi-radio-cardRadioGroup .semi-radio-extra{font-weight:400;font-size:14px;line-height:20px;color:var(--semi-color-text-2);padding-left:0}.semi-radio-cardRadioGroup:active{background:var(--semi-color-fill-1)}.semi-radio-cardRadioGroup_checked{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary)}.semi-radio-cardRadioGroup_checked:hover{border:1px solid var(--semi-color-primary-hover)}.semi-radio-cardRadioGroup_checked:hover .semi-radio-inner-checked .semi-radio-inner-display{border-color:var(--semi-color-primary-hover)}.semi-radio-cardRadioGroup_checked:active{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary-active)}.semi-radio-cardRadioGroup_checked:active .semi-radio-inner-checked .semi-radio-inner-display{border-color:var(--semi-color-primary-active)}.semi-radio-cardRadioGroup_checked:active .semi-radio-inner-checked:hover .semi-radio-inner-display{background:var(--semi-color-primary-active)}.semi-radio-cardRadioGroup_hover{background:var(--semi-color-fill-0)}.semi-radio-cardRadioGroup_disabled:active{background:transparent}.semi-radio-cardRadioGroup_checked_disabled.semi-radio-cardRadioGroup{background:var(--semi-color-primary-light-default);border:1px solid var(--semi-color-primary-disabled)}.semi-radio-cardRadioGroup_checked_disabled.semi-radio-cardRadioGroup .semi-radio-inner-checked .semi-radio-inner-display,.semi-radio-cardRadioGroup_checked_disabled.semi-radio-cardRadioGroup:hover .semi-radio-inner-checked .semi-radio-inner-display{border-color:var(--semi-color-primary-disabled)}.semi-radio.semi-radio-disabled:hover .semi-radio-inner-display,.semi-radio.semi-radio-disabled:active .semi-radio-inner-display{background:var(--semi-color-disabled-fill);border:solid 1px var(--semi-color-border)}.semi-radio.semi-radio-disabled:hover .semi-radio-inner-checked .semi-radio-inner-display,.semi-radio.semi-radio-disabled:active .semi-radio-inner-checked .semi-radio-inner-display{background:var(--semi-color-primary-disabled);border-color:var(--semi-color-primary-disabled)}.semi-radio-inner{display:inline-flex;margin-top:2px;position:relative;width:16px;height:16px;vertical-align:sub;-webkit-user-select:none;user-select:none}.semi-radio-inner-display{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:16px;height:16px;border:solid 1px var(--semi-color-text-3);border-radius:16px;background:transparent;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-radio-inner-display .semi-icon{width:100%;height:100%;font-size:14px}.semi-radio-content{display:flex;flex-direction:column;row-gap:4px}.semi-radio:hover .semi-radio-inner-display{background:var(--semi-color-fill-0)}.semi-radio:active .semi-radio-inner-display{background:var(--semi-color-fill-1)}.semi-radio-addon{-webkit-user-select:none;user-select:none;color:var(--semi-color-text-0);display:inline-flex;align-items:center}.semi-radio-addon-buttonRadio{text-align:center;border-radius:var(--semi-border-radius-small);font-weight:600;color:var(--semi-color-text-1);font-size:12px;padding:4px 16px;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none),border var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none)}.semi-radio-addon-buttonRadio-hover{font-weight:600;background:var(--semi-color-fill-1)}.semi-radio-addon-buttonRadio-checked{font-weight:600;background:var(--semi-color-bg-3);color:var(--semi-color-primary)}.semi-radio-addon-buttonRadio-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-radio-addon-buttonRadio-small{font-size:12px;padding:2px 16px}.semi-radio-addon-buttonRadio-large{font-size:14px;padding:6px 24px}.semi-radio .semi-radio-inner-checked:hover .semi-radio-inner-display{background:var(--semi-color-primary-hover)}.semi-radio .semi-radio-inner-checked:active .semi-radio-inner-display{background:var(--semi-color-primary-active)}.semi-radio .semi-radio-inner-checked .semi-radio-inner-display{border:solid 1px var(--semi-color-primary);background:var(--semi-color-primary);color:rgba(var(--semi-white),1);border-radius:16px}.semi-radio .semi-radio-inner-checked>.semi-radio-addon{color:var(--semi-color-text-0)}.semi-radio .semi-radio-inner-buttonRadio,.semi-radio .semi-radio-inner-pureCardRadio{position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;opacity:0}.semi-radio-disabled,.semi-radio-disabled:hover,.semi-radio-disabled .semi-radio-inner{cursor:not-allowed}.semi-radio-disabled .semi-radio-inner-display{opacity:.75;background:var(--semi-color-disabled-fill);border-color:var(--semi-color-border)}.semi-radio-disabled .semi-radio-inner-display:hover{background:transparent}.semi-radio-disabled .semi-radio-inner-checked .semi-radio-inner-display,.semi-radio-disabled .semi-radio-inner-checked .semi-radio-inner-display:hover{background:var(--semi-color-primary-disabled);border-color:var(--semi-color-primary-disabled)}.semi-radio-disabled .semi-radio-addon,.semi-radio-disabled .semi-radio-extra{color:var(--semi-color-disabled-text)}.semi-radio-extra{color:var(--semi-color-text-2);box-sizing:border-box}.semi-radio-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-radio-focus-border{border:solid 1px var(--semi-color-focus-border)}.semi-radioGroup{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-radioGroup-vertical{display:flex;flex-direction:column;row-gap:12px}.semi-radioGroup-vertical-default .semi-radio,.semi-radioGroup-vertical-card .semi-radio{display:flex}.semi-radioGroup-horizontal{display:inline-flex;flex-wrap:wrap;vertical-align:bottom;gap:16px}.semi-radioGroup-buttonRadio{display:inline-block;background:var(--semi-color-fill-0);border-radius:var(--semi-border-radius-small);vertical-align:middle}.semi-rtl .semi-radio,.semi-portal-rtl .semi-radio{direction:rtl}.semi-rtl .semi-radio input[type=checkbox],.semi-rtl .semi-radio input[type=radio],.semi-portal-rtl .semi-radio input[type=checkbox],.semi-portal-rtl .semi-radio input[type=radio]{left:auto;right:0}.semi-rtl .semi-radio-buttonRadioGroup:not(:last-child),.semi-portal-rtl .semi-radio-buttonRadioGroup:not(:last-child){padding-left:0}.semi-rtl .semi-radioGroup,.semi-portal-rtl .semi-radioGroup{direction:rtl}.semi-rating{display:inline-block;margin:0;padding:0;color:rgba(var(--semi-yellow-5),1);list-style:none;outline:none;border-radius:3px}.semi-rating-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-rating-no-focus{outline:none}.semi-rating-disabled .semi-rating-star{cursor:default}.semi-rating-disabled .semi-rating-star:hover{transform:scale(1)}.semi-rating-star{position:relative;display:inline-block;margin:0;padding:0;color:inherit;cursor:pointer;transition:all .5s;transform:scale(var(--semi-transform_scale-none))}.semi-rating-star:not(:last-child){margin-right:6px}.semi-rating-star>div:hover,.semi-rating-star>div:focus{transform:scale(1.1)}.semi-rating-star>div.semi-rating-star-disabled{transform:none}.semi-rating-star-small{width:16px;height:16px;font-size:16px}.semi-rating-star-default{width:24px;height:24px;font-size:24px}.semi-rating-star-wrapper{position:relative;overflow:hidden;border-radius:3px;width:100%;height:100%}.semi-rating-star-first,.semi-rating-star-second{transition:color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);color:var(--semi-color-fill-0);-webkit-user-select:none;user-select:none}.semi-rating-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.semi-rating-star-half .semi-rating-star-first,.semi-rating-star-half .semi-rating-star-second{opacity:1}.semi-rating-star-half .semi-rating-star-first,.semi-rating-star-full .semi-rating-star-second{color:inherit}.semi-rtl .semi-rating,.semi-portal-rtl .semi-rating{direction:rtl}.semi-rtl .semi-rating-star:not(:last-child),.semi-portal-rtl .semi-rating-star:not(:last-child){margin-right:0;margin-left:6px}.semi-rtl .semi-rating-star-first,.semi-portal-rtl .semi-rating-star-first{left:auto;right:0}.semi-slider{padding:0 13px;margin:0}.semi-slider-wrapper{box-sizing:border-box;position:relative;height:32px;width:100%;display:inline-block;vertical-align:bottom}.semi-slider-rail{box-sizing:border-box;margin:0;padding:0;color:#000000a6;font-size:14px;font-variant:tabular-nums;line-height:1.5;list-style:none;font-feature-settings:"tnum";position:absolute;height:4px;cursor:pointer;touch-action:none;background-color:var(--semi-color-fill-0);width:100%;border-radius:var(--semi-border-radius-small);top:14px}.semi-slider-handle{box-shadow:0 4px 6px #0000001a,0 0 1px #0000004d;box-sizing:border-box;touch-action:none;position:absolute;width:24px;height:24px;margin-top:4px;background-color:var(--semi-color-white);border:none;border-radius:50%;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:var(--semi-transform_scale-small) translate(-50%) translateY(0)}.semi-slider-handle:focus-visible{outline:2px solid var(--semi-color-primary-light-active)}.semi-slider-handle:hover{background-color:var(--semi-color-white)}.semi-slider-handle-clicked{border:solid 1px var(--semi-color-focus-border);cursor:grabbing}.semi-slider-track{height:4px;background:var(--semi-color-primary);border-radius:var(--semi-border-radius-small);position:absolute;cursor:pointer;top:14px}.semi-slider-tooltip{position:absolute;top:-40px}.semi-slider-dots{width:100%;background:transparent}.semi-slider-dot{position:absolute;top:14px;width:4px;height:4px;background-color:var(--semi-color-white);border-radius:50%;cursor:pointer;transform:translate(0)}.semi-slider-dot-active{background-color:var(--semi-color-white)}.semi-slider-marks{position:absolute;top:23px;left:0;width:100%;font-size:14px}.semi-slider-mark{position:absolute;display:inline-block;color:var(--semi-color-text-2);text-align:center;cursor:pointer;transform:translate(-50%)}.semi-slider-marks-reverse{position:absolute;top:23px;left:0;width:100%;font-size:14px}.semi-slider-mark-reverse{position:absolute;display:inline-block;color:var(--semi-color-text-2);text-align:center;cursor:pointer;transform:translate(-50%) rotate(-180deg)}.semi-slider-boundary{position:relative;font-size:12px;color:var(--semi-color-text-0);visibility:hidden;top:30px}.semi-slider-boundary span{position:absolute;display:inline-block}.semi-slider-boundary-min{left:0}.semi-slider-boundary-max{right:0}.semi-slider-boundary-show{visibility:visible}.semi-slider-vertical-wrapper{width:4px;height:100%}.semi-slider-vertical-wrapper .semi-slider-track{width:4px}.semi-slider-vertical-wrapper .semi-slider-marks{height:100%;margin-top:-30px;margin-left:29px}.semi-slider-vertical-wrapper .semi-slider-marks-reverse{height:100%;margin-top:-30px;margin-left:-26px}.semi-slider-vertical-wrapper .semi-slider-rail{width:4px;height:100%;top:0}.semi-slider-vertical-wrapper .semi-slider-handle{margin-top:0;margin-left:-10px;transform:var(--semi-transform_scale-small) translateY(-50%) translate(0)}.semi-slider-vertical-wrapper .semi-slider-dot{transform:translateY(0)}.semi-slider-disabled{cursor:not-allowed}.semi-slider-disabled .semi-slider-handle{cursor:not-allowed;box-shadow:none;border:1px var(--semi-color-border) solid}.semi-slider-disabled .semi-slider-handle:hover{background-color:var(--semi-color-white)}.semi-slider-disabled .semi-slider-rail{cursor:not-allowed}.semi-slider-disabled .semi-slider-track{cursor:not-allowed;background-color:var(--semi-color-primary-disabled)}.semi-slider-disabled .semi-slider-dot{cursor:not-allowed;background-color:var(--semi-color-white);border-color:var(--semi-color-white);box-shadow:none}.semi-slider-handle-tooltip{text-align:center}.semi-slider-reverse{transform:rotate(180deg)}.semi-switch{box-sizing:border-box;display:inline-block;border-radius:12px;border:1px transparent solid;position:relative;cursor:pointer;background-color:var(--semi-color-fill-0);transition:background-color .2s var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);width:40px;height:24px}.semi-switch:hover{background-color:var(--semi-color-fill-1)}.semi-switch:active{border:1px var(--semi-color-fill-2) solid}.semi-switch:active .semi-switch-knob{width:24px}.semi-switch-focus{outline:2px solid var(--semi-color-primary-light-active)}.semi-switch-checked{background-color:var(--semi-color-success)}.semi-switch-checked:hover{background-color:var(--semi-color-success-hover)}.semi-switch-checked .semi-switch-knob{transform:translate(18px)}.semi-switch-checked:active .semi-switch-knob{transform:translate(12px)}.semi-switch-active{background-color:var(--semi-color-success-active)}.semi-switch-disabled{cursor:not-allowed;background-color:transparent;border:1px var(--semi-color-border) solid}.semi-switch-disabled:hover,.semi-switch-disabled:active{background-color:transparent}.semi-switch-disabled:active .semi-switch-knob{width:18px}.semi-switch-disabled .semi-switch-knob{cursor:not-allowed;box-shadow:none;border:1px var(--semi-color-border) solid}.semi-switch-disabled .semi-switch-native-control{pointer-events:none;cursor:not-allowed}.semi-switch-disabled.semi-switch-checked{border-color:transparent;background-color:var(--semi-color-success-disabled)}.semi-switch-disabled.semi-switch-checked:active .semi-switch-knob{transform:translate(18px)}.semi-switch-disabled.semi-switch-checked .semi-switch-knob{box-shadow:none;border:none}.semi-switch-knob{box-shadow:0 4px 6px #0000001a,0 0 1px #0000004d;cursor:pointer;border-radius:9px;background-color:rgba(var(--semi-white),1);box-sizing:border-box;position:absolute;left:0;right:auto;transition:transform .2s ease-in-out,width .2s ease-in-out;width:18px;height:18px;top:2px;transform:translate(2px)}.semi-switch-native-control{width:100%;height:100%;opacity:0;cursor:inherit;pointer-events:auto;margin:0;position:absolute;top:0;left:0}.semi-switch-native-control[type=checkbox]{width:inherit;height:inherit}.semi-switch-checked-text,.semi-switch-unchecked-text{position:absolute;font-size:12px;height:100%;width:20px;display:flex;justify-content:center;align-items:center}.semi-switch-checked-text{color:var(--semi-color-white)}.semi-switch-unchecked-text{color:var(--semi-color-text-2);right:0}.semi-switch-loading{display:inline-flex;align-items:center;background-color:var(--semi-color-fill-1)}.semi-switch-loading-spin .semi-spin-wrapper{display:inline-flex;align-items:center;color:var(--semi-color-white)}.semi-switch-loading .semi-switch-loading-spin{transform:translate(2px)}.semi-switch-loading .semi-switch-loading-spin>.semi-spin-wrapper>svg{width:18px;height:18px}.semi-switch-loading.semi-switch-checked{background-color:var(--semi-color-success-hover)}.semi-switch-loading.semi-switch-checked .semi-switch-loading-spin{transform:translate(16px)}.semi-switch-loading.semi-switch-small .semi-switch-loading-spin{transform:translate(2px)}.semi-switch-loading.semi-switch-small .semi-switch-loading-spin>.semi-spin-wrapper>svg{width:10px;height:10px}.semi-switch-loading.semi-switch-small.semi-switch-checked .semi-switch-loading-spin{transform:translate(10px)}.semi-switch-loading.semi-switch-large .semi-switch-loading-spin{transform:translate(2px)}.semi-switch-loading.semi-switch-large .semi-switch-loading-spin>.semi-spin-wrapper>svg{width:28px;height:28px}.semi-switch-loading.semi-switch-large.semi-switch-checked .semi-switch-loading-spin{transform:translate(22px)}.semi-switch-disabled.semi-switch-checked{background-color:var(--semi-color-success-disabled)}.semi-switch-large{width:54px;height:32px;border-radius:16px}.semi-switch-large .semi-switch-knob{width:24px;height:24px;top:3px;border-radius:12px;transform:translate(3px)}.semi-switch-large.semi-switch-checked .semi-switch-knob{transform:translate(26px)}.semi-switch-large.semi-switch-checked:active .semi-switch-knob{transform:translate(16px)}.semi-switch-large:active .semi-switch-knob{width:34px}.semi-switch-large .semi-switch-checked-text,.semi-switch-large .semi-switch-unchecked-text{width:26px;font-size:14px}.semi-switch-small{width:26px;height:16px;border-radius:8px}.semi-switch-small .semi-switch-knob{width:12px;height:12px;top:1px;border-radius:6px;transform:translate(1px)}.semi-switch-small.semi-switch-checked .semi-switch-knob{transform:translate(11px)}.semi-switch-small.semi-switch-checked:active .semi-switch-knob{transform:translate(9px)}.semi-switch-small:active .semi-switch-knob{width:14px}.semi-form .semi-switch-native-control{width:100%;height:100%}.semi-rtl .semi-switch,.semi-portal-rtl .semi-switch{direction:rtl}.semi-rtl .semi-switch-checked .semi-switch-knob,.semi-portal-rtl .semi-switch-checked .semi-switch-knob{transform:translate(-18px)}.semi-rtl .semi-switch-checked:active .semi-switch-knob,.semi-portal-rtl .semi-switch-checked:active .semi-switch-knob{transform:translate(-12px)}.semi-rtl .semi-switch-knob,.semi-portal-rtl .semi-switch-knob{right:0;left:auto;transform:translate(-2px)}.semi-rtl .semi-switch-native-control,.semi-portal-rtl .semi-switch-native-control{right:0}.semi-rtl .semi-switch-unchecked-text,.semi-portal-rtl .semi-switch-unchecked-text{left:0}.semi-rtl .semi-switch-loading .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading .semi-switch-loading-spin{transform:translate(-2px)}.semi-rtl .semi-switch-loading.semi-switch-checked .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-checked .semi-switch-loading-spin{transform:translate(-16px)}.semi-rtl .semi-switch-loading.semi-switch-small .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-small .semi-switch-loading-spin{transform:translate(-2px)}.semi-rtl .semi-switch-loading.semi-switch-small.semi-switch-checked .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-small.semi-switch-checked .semi-switch-loading-spin{transform:translate(-10px)}.semi-rtl .semi-switch-loading.semi-switch-large .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-large .semi-switch-loading-spin{transform:translate(-2px)}.semi-rtl .semi-switch-loading.semi-switch-large.semi-switch-checked .semi-switch-loading-spin,.semi-portal-rtl .semi-switch-loading.semi-switch-large.semi-switch-checked .semi-switch-loading-spin{transform:translate(-22px)}.semi-rtl .semi-switch-large .semi-switch-knob,.semi-portal-rtl .semi-switch-large .semi-switch-knob{transform:translate(-3px)}.semi-rtl .semi-switch-large.semi-switch-checked .semi-switch-knob,.semi-portal-rtl .semi-switch-large.semi-switch-checked .semi-switch-knob{transform:translate(-26px)}.semi-rtl .semi-switch-large.semi-switch-checked:active .semi-switch-knob,.semi-portal-rtl .semi-switch-large.semi-switch-checked:active .semi-switch-knob{transform:translate(-16px)}.semi-rtl .semi-switch-small .semi-switch-knob,.semi-portal-rtl .semi-switch-small .semi-switch-knob{transform:translate(-1px)}.semi-rtl .semi-switch-small.semi-switch-checked .semi-switch-knob,.semi-portal-rtl .semi-switch-small.semi-switch-checked .semi-switch-knob{transform:translate(-11px)}.semi-rtl .semi-switch-small.semi-switch-checked:active .semi-switch-knob,.semi-portal-rtl .semi-switch-small.semi-switch-checked:active .semi-switch-knob{transform:translate(-9px)}.semi-table-panel-operation{background-color:var(--semi-color-primary);padding:8px 16px;display:flex;justify-content:space-between;color:var(--semi-color-text-2)}.semi-table-panel-operation-right,.semi-table-panel-operation-left{display:flex;justify-content:space-between}.semi-table-panel-operation-selected{color:var(--semi-color-primary-light-active)}.semi-table-pagination-info{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400}.semi-table-pagination-outer{display:flex;justify-content:space-between;align-items:center}.semi-table{width:100%;text-align:left;border-collapse:separate;border-spacing:0;font-size:inherit;display:table}.semi-table-wrapper{zoom:1;position:relative;clear:both;box-sizing:border-box;margin:0;padding:0;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-0);width:100%}.semi-table-wrapper[data-column-fixed=true]{z-index:1}.semi-table-wrapper-ltr,.semi-table-wrapper-ltr .semi-spin{direction:ltr}.semi-table-middle .semi-table-tbody>.semi-table-row>.semi-table-row-cell{padding-top:12px;padding-bottom:12px}.semi-table-small .semi-table-tbody>.semi-table-row>.semi-table-row-cell{padding-top:8px;padding-bottom:8px}.semi-table-title{position:relative;padding:16px 0}.semi-table-container{position:relative}.semi-table-header{overflow:hidden;scrollbar-base-color:transparent}.semi-table-header::-webkit-scrollbar{background-color:transparent;border-bottom:2px solid var(--semi-color-border)}.semi-table-header-sticky{position:sticky;z-index:102}.semi-table-header-sticky .semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:var(--semi-color-bg-1)}.semi-table-header-hidden{height:0}.semi-table-align-center .semi-table-operate-wrapper{justify-content:center}.semi-table-align-right .semi-table-operate-wrapper{justify-content:flex-end}.semi-table-operate-wrapper{display:flex;justify-content:flex-start}.semi-table-body{overflow:auto;width:100%;box-sizing:border-box}.semi-table-colgroup{display:table-column-group}.semi-table-colgroup .semi-table-col{display:table-column}.semi-table-colgroup .semi-table-column-expand,.semi-table-colgroup .semi-table-column-selection{width:48px}.semi-table-thead>.semi-table-row>.semi-table-row-head{background-color:var(--semi-color-bg-1);color:var(--semi-color-text-2);font-weight:600;text-align:left;border-bottom:2px solid var(--semi-color-border);padding:8px 16px;vertical-align:middle;overflow-wrap:break-word;position:relative}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left,.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right{z-index:101;position:sticky;background-color:var(--semi-color-bg-1)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left:before,.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right:before{background-color:var(--semi-color-bg-1);content:"";position:absolute;left:0;top:0;right:0;bottom:0;display:block;z-index:-1}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last{border-right:1px solid var(--semi-color-border);box-shadow:3px 0 0 0 var(--semi-color-shadow)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last.resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last.resizing .react-resizable-handle:hover{background-color:unset}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first{border-left:1px solid var(--semi-color-border);box-shadow:-3px 0 0 0 var(--semi-color-shadow)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first.resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first.resizing .react-resizable-handle:hover{background-color:unset}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first[x-type=column-scrollbar]{box-shadow:none;border-left:transparent}.semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-column-selection{text-align:center}.semi-table-thead>.semi-table-row>.semi-table-row-head[colspan]:not([colspan="1"]){text-align:center}.semi-table-thead>.semi-table-row>.semi-table-row-head .semi-table-header-column{display:inline-flex;align-items:center}.semi-table-thead>.semi-table-row>.semi-table-row-head-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.semi-table-thead>.semi-table-row>.semi-table-row-head-ellipsis .semi-table-row-head-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.semi-table-thead>.semi-table-row .react-resizable{position:relative;background-clip:padding-box}.semi-table-thead>.semi-table-row .resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-thead>.semi-table-row .resizing .react-resizable-handle:hover{background-color:unset}.semi-table-thead>.semi-table-row .react-resizable-handle{position:absolute;width:9px;height:calc(100% - 8px);background-color:var(--semi-color-border);bottom:4px;right:-1px;cursor:col-resize;z-index:0}.semi-table-thead>.semi-table-row .react-resizable-handle:hover{background-color:var(--semi-color-primary)}.semi-table-tbody{display:table-row-group}.semi-table-tbody>.semi-table-row{display:table-row;background-color:var(--semi-color-bg-1)}.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell{background-image:linear-gradient(0deg,var(--semi-color-fill-0),var(--semi-color-fill-0));background-color:var(--semi-color-bg-0)}.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-left,.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-right{background-image:linear-gradient(0deg,var(--semi-color-bg-1),var(--semi-color-bg-1))}.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-left:before,.semi-table-tbody>.semi-table-row:hover>.semi-table-row-cell.semi-table-cell-fixed-right:before{background-color:var(--semi-color-fill-0);content:"";position:absolute;left:0;top:0;right:0;bottom:0;display:block;z-index:-1}.semi-table-tbody>.semi-table-row>.semi-table-row-cell{display:table-cell;overflow-wrap:break-word;border-left:none;border-right:none;border-bottom:1px solid var(--semi-color-border);padding:16px;box-sizing:border-box;position:relative;vertical-align:middle}.semi-table-tbody>.semi-table-row>.semi-table-row-cell.resizing{border-right:2px solid var(--semi-color-primary)}.semi-table-tbody>.semi-table-row>.semi-table-row-cell-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.semi-table-tbody>.semi-table-row.semi-table-row-expand>.semi-table-row-cell{background-color:var(--semi-color-fill-0)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left,.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right{z-index:101;position:sticky;background-color:var(--semi-color-bg-1)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last{border-right:1px solid var(--semi-color-border);box-shadow:3px 0 0 0 var(--semi-color-shadow)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first{border-left:1px solid var(--semi-color-border);box-shadow:-3px 0 0 0 var(--semi-color-shadow)}.semi-table-tbody>.semi-table-row>.semi-table-cell-fixed>*{transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-table-tbody>.semi-table-row>*{transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeOut) 0ms}.semi-table-tbody>.semi-table-row-section{display:table-row}.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell{background-color:rgba(var(--semi-grey-0),1);border-bottom:1px solid var(--semi-color-border)}.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell:not(.semi-table-column-selection){padding:10px 16px}.semi-table-tbody>.semi-table-row-section .semi-table-section-inner{display:inline-flex;align-items:center}.semi-table-virtualized .semi-table-tbody{display:block}.semi-table-virtualized .semi-table-tbody>.semi-table-row{display:flex}.semi-table-virtualized .semi-table-tbody>.semi-table-row>.semi-table-row-cell{word-wrap:unset;word-break:unset;white-space:nowrap;display:inline-flex;align-items:center;overflow:hidden}.semi-table-virtualized .semi-table-tbody>.semi-table-row-section>.semi-table-row-cell{padding-top:16px;padding-bottom:16px;display:flex}.semi-table-virtualized .semi-table-tbody>.semi-table-row-expand>.semi-table-row-cell{padding:0;overflow:unset}.semi-table-footer{background-color:var(--semi-color-fill-0);padding:16px;margin:0;position:relative}.semi-table .semi-table-selection-wrap{display:inline-flex;vertical-align:bottom}.semi-table .semi-table-selection-disabled{cursor:not-allowed}.semi-table .semi-table-selection-disabled>.semi-checkbox{pointer-events:none}.semi-table .semi-table-column-hidden{display:none}.semi-table .semi-table-column-selection{text-align:center}.semi-table .semi-table-column-selection .semi-checkbox-inner-display .semi-icon{left:0;top:0}.semi-table .semi-table-column-expand .semi-table-expand-icon{transform:translateY(2px)}.semi-table .semi-table-column-expand .semi-table-expand-icon:last-child{margin-right:0}.semi-table .semi-table-column-sorter{margin-left:4px;display:inline-block;width:16px;height:16px;vertical-align:middle;text-align:center}.semi-table .semi-table-column-sorter-wrapper{display:flex;align-items:center;cursor:pointer;overflow:hidden}.semi-table .semi-table-column-sorter-up,.semi-table .semi-table-column-sorter-down{height:0;display:block;color:var(--semi-color-text-2)}.semi-table .semi-table-column-sorter-up:hover .anticon,.semi-table .semi-table-column-sorter-down:hover .anticon{color:var(--semi-color-text-2)}.semi-table .semi-table-column-sorter-up svg,.semi-table .semi-table-column-sorter-down svg{width:16px;height:16px}.semi-table .semi-table-column-sorter-up.on .semi-icon-caretup,.semi-table .semi-table-column-sorter-up.on .semi-icon-caretdown,.semi-table .semi-table-column-sorter-down.on .semi-icon-caretup,.semi-table .semi-table-column-sorter-down.on .semi-icon-caretdown{color:var(--semi-color-primary)}.semi-table .semi-table-column-filter{margin-left:4px;display:inline-flex;cursor:pointer;color:var(--semi-color-text-2);align-items:center}.semi-table .semi-table-column-filter svg{width:16px;height:16px}.semi-table .semi-table-column-filter.on{color:var(--semi-color-primary)}.semi-table-bordered .semi-table-title{padding-left:16px;padding-right:16px;border-top:1px solid var(--semi-color-border);border-right:1px solid var(--semi-color-border);border-left:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-container{border:1px solid var(--semi-color-border);border-right:0;border-bottom:0}.semi-table-bordered .semi-table-header::-webkit-scrollbar{border-right:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-footer{border-left:1px solid var(--semi-color-border);border-right:1px solid var(--semi-color-border);border-bottom:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-thead>.semi-table-row>.semi-table-row-head .react-resizable-handle{background-color:transparent}.semi-table-bordered .semi-table-thead>.semi-table-row>.semi-table-row-head,.semi-table-bordered .semi-table-tbody>.semi-table-row>.semi-table-row-cell{border-right:1px solid var(--semi-color-border)}.semi-table-bordered .semi-table-placeholder{border-right:1px solid var(--semi-color-border)}.semi-table-placeholder{position:sticky;left:0;z-index:1;padding:16px 12px;color:var(--semi-color-text-2);font-size:14px;text-align:center;background:transparent;border-bottom:1px solid var(--semi-color-border);border-radius:0 0 4px 4px}.semi-table-fixed{table-layout:fixed;min-width:100%}.semi-table-fixed>.semi-table-tbody>.semi-table-row-expand>.semi-table-row-cell>.semi-table-expand-inner,.semi-table-fixed>.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell>.semi-table-section-inner{position:sticky;overflow:auto;left:0;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;height:100%;display:flex;align-items:center}.semi-table-fixed-header table{table-layout:fixed}.semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last,.semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first,.semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.semi-table-pagination-outer{color:var(--semi-color-text-2);min-height:60px}.semi-table-expand-icon{color:var(--semi-color-text-2);cursor:pointer;display:inline-flex;align-items:center;-webkit-user-select:none;user-select:none;background:transparent;position:relative;margin-right:8px}.semi-table-expand-icon-cell{display:inline-flex;align-items:center;justify-content:center}.semi-table-expand-icon .semi-table-expandedIcon-show{transition:transform .15s cubic-bezier(.62,.05,.36,.95);transform:rotate(90deg)}.semi-table-expand-icon .semi-table-expandedIcon-hide{transition:transform .15s cubic-bezier(.62,.05,.36,.95);transform:rotate(0)}.semi-table-column-filter-dropdown .semi-dropdown-menu{max-height:290px;overflow-y:auto}.semi-table-wrapper-rtl .semi-table{direction:rtl;text-align:right}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head{text-align:right}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-left-last.resizing{border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first{border-left:0;border-right:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first.resizing{border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row>.semi-table-row-head.semi-table-cell-fixed-right-first[x-type=column-scrollbar]{box-shadow:none;border-right:transparent}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row .resizing{border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-thead>.semi-table-row .react-resizable-handle{right:auto;left:-1px}.semi-table-wrapper-rtl .semi-table-tbody{display:table-row-group}.semi-table-wrapper-rtl .semi-table-tbody>.semi-table-row>.semi-table-row-cell.resizing{border-right:0;border-left:2px solid var(--semi-color-primary)}.semi-table-wrapper-rtl .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first{border-left:0;border-right:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table .semi-table-column-selection .semi-checkbox-inner-display .semi-icon{left:auto;right:0}.semi-table-wrapper-rtl .semi-table .semi-table-column-expand .semi-table-expand-icon{transform:scaleX(-1) translateY(2px)}.semi-table-wrapper-rtl .semi-table .semi-table-column-expand .semi-table-expand-icon:last-child{margin-right:auto;margin-left:0}.semi-table-wrapper-rtl .semi-table .semi-table-column-sorter,.semi-table-wrapper-rtl .semi-table .semi-table-column-filter{margin-left:auto;margin-right:4px}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-container{border-left:0;border-right:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-thead>.semi-table-row>.semi-table-row-head,.semi-table-wrapper-rtl .semi-table-bordered .semi-table-tbody>.semi-table-row>.semi-table-row-cell{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-placeholder{border-left:1px solid var(--semi-color-border);border-right:0}.semi-table-wrapper-rtl .semi-table-bordered .semi-table-header::-webkit-scrollbar{border-right:0;border-left:1px solid var(--semi-color-border)}.semi-table-wrapper-rtl .semi-table-fixed>.semi-table-tbody>.semi-table-row-expand>.semi-table-row-cell>.semi-table-expand-inner,.semi-table-wrapper-rtl .semi-table-fixed>.semi-table-tbody>.semi-table-row-section>.semi-table-row-cell>.semi-table-section-inner{left:auto;right:0;margin-right:-16px;margin-left:-16px;padding-right:16px;padding-left:16px}.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last,.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:3px 0 0 0 var(--semi-color-shadow)}.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first,.semi-table-wrapper-rtl .semi-table-scroll-position-left .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:none}.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-left-last,.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-left-last{box-shadow:none}.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-tbody>.semi-table-row>.semi-table-cell-fixed-right-first,.semi-table-wrapper-rtl .semi-table-scroll-position-right .semi-table-thead>.semi-table-row>.semi-table-cell-fixed-right-first{box-shadow:-3px 0 0 0 var(--semi-color-shadow)}.semi-table-wrapper-rtl .semi-table-expand-icon{margin-right:auto;margin-left:8px;transform:scaleX(-1) translateY(2px)}.semi-table-wrapper-rtl .semi-spin{direction:rtl}.semi-timepicker{display:inline-block}.semi-timepicker-panel .semi-scrolllist-body{height:252px}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer-nocycle>ul:before,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item>ul:before{height:108px}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer{-ms-overflow-style:none;scrollbar-width:none}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item::-webkit-scrollbar,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer::-webkit-scrollbar{display:none;width:0;height:0}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item>ul,.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item-wheel .semi-scrolllist-list-outer>ul{padding-bottom:108px}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item{-ms-overflow-style:none;scrollbar-width:none}.semi-timepicker-panel .semi-scrolllist-body .semi-scrolllist-item::-webkit-scrollbar{display:none;width:0;height:0}.semi-timepicker-panel .semi-scrolllist-item,.semi-timepicker-panel .semi-scrolllist-item-wheel{flex:none}.semi-timepicker-panel .semi-scrolllist-item-wheel,.semi-timepicker-panel .semi-scrolllist-item-wheel:not(:last-child){border:none}.semi-timepicker-panel-list-ampm{width:72px}.semi-timepicker-panel-list-hour,.semi-timepicker-panel-list-minute,.semi-timepicker-panel-list-second{width:64px}.semi-timepicker-range-panel .semi-timepicker-lists{display:flex;box-shadow:0 4px 14px #0000001a;border:1px solid rgba(0,0,0,.1);border-radius:var(--semi-border-radius-medium)}.semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:first-of-type{border-radius:var(--semi-border-radius-medium) 0 0 var(--semi-border-radius-medium)}.semi-timepicker-range-panel .semi-timepicker-lists .semi-scrolllist:last-of-type{border-radius:0 var(--semi-border-radius-medium) var(--semi-border-radius-medium) 0}.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist:not(:last-child) .semi-scrolllist-body{border-right:2px solid var(--semi-color-border)}.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist{box-shadow:none}.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist .semi-scrolllist-body,.semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist .semi-scrolllist-header{padding:0}.semi-timepicker .semi-timepicker-input{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;border-radius:var(--semi-border-radius-small);align-items:center}.semi-timepicker .semi-input-readonly{cursor:pointer}.semi-timepicker .semi-input-borderless:not(:focus-within):not(:hover) .semi-input-suffix{opacity:0}.semi-rtl .semi-timepicker,.semi-portal-rtl .semi-timepicker,.semi-rtl .semi-timepicker-panel,.semi-portal-rtl .semi-timepicker-panel,.semi-rtl .semi-timepicker-range,.semi-portal-rtl .semi-timepicker-range{direction:rtl}.semi-rtl .semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist:not(:last-child) .semi-scrolllist-body,.semi-portal-rtl .semi-timepicker-range-panel .semi-timepicker-lists>.semi-scrolllist:not(:last-child) .semi-scrolllist-body{border-right:0;border-left:2px solid var(--semi-color-border)}.semi-toast{pointer-events:none}.semi-toast-wrapper{position:fixed;height:0;top:0;width:100%;display:flex;justify-content:center;z-index:1010}.semi-toast-wrapper .semi-toast-innerWrapper{width:fit-content;height:fit-content}.semi-toast-wrapper .semi-toast-innerWrapper-hover .semi-toast-zero-height-wrapper{perspective:unset;perspective-origin:center center}.semi-toast-zero-height-wrapper{transition:all .3s cubic-bezier(.22,.57,.02,1.2);perspective-origin:center 280px;perspective:280px;height:0;overflow:visible}.semi-toast-content{pointer-events:all;box-shadow:var(--semi-shadow-elevated);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:var(--semi-color-bg-3);border-radius:var(--semi-border-radius-medium);padding:12px 8px;display:inline-flex;align-items:flex-start;justify-content:center;margin:12px;font-weight:600;color:var(--semi-color-text-0)}.semi-toast-content .semi-toast-close-button{margin-top:-2px;height:20px}.semi-toast-content .semi-toast-content-text{margin-left:12px;margin-right:12px;text-align:left;word-wrap:break-word;overflow-wrap:break-word}.semi-toast-light.semi-toast-warning .semi-toast-content{background-color:var(--semi-color-warning-light-default);border:1px solid var(--semi-color-warning)}.semi-toast-light.semi-toast-warning .semi-toast-icon-warning{color:var(--semi-color-warning)}.semi-toast-light.semi-toast-success .semi-toast-content{background-color:var(--semi-color-success-light-default);border:1px solid var(--semi-color-success)}.semi-toast-light.semi-toast-success .semi-toast-icon-success{color:var(--semi-color-success)}.semi-toast-light.semi-toast-info .semi-toast-content{background-color:var(--semi-color-info-light-default);border:1px solid var(--semi-color-info)}.semi-toast-light.semi-toast-info .semi-toast-icon-info{color:var(--semi-color-info)}.semi-toast-light.semi-toast-error .semi-toast-content{background-color:var(--semi-color-danger-light-default);border:1px solid var(--semi-color-danger)}.semi-toast-light.semi-toast-error .semi-toast-icon-error{color:var(--semi-color-danger)}.semi-toast .semi-toast-icon-warning{color:var(--semi-color-warning)}.semi-toast .semi-toast-icon-success{color:var(--semi-color-success)}.semi-toast .semi-toast-icon-info{color:var(--semi-color-info)}.semi-toast .semi-toast-icon-error{color:var(--semi-color-danger)}.semi-toast-animation-show{animation:.3s semi-toast-keyframe-toast-show cubic-bezier(.22,.57,.02,1.2) 0s;animation-fill-mode:forwards}.semi-toast-animation-hide{animation:.3s semi-toast-keyframe-toast-hide cubic-bezier(.22,.57,.02,1.2) 0s;animation-fill-mode:forwards}@keyframes semi-toast-keyframe-toast-show{0%{opacity:0;transform:translateY(-100%)}to{opacity:1}}@keyframes semi-toast-keyframe-toast-hide{0%{opacity:1}to{opacity:0;transform:translateY(-100%)}}.semi-toast-rtl{direction:rtl}.semi-toast-rtl .semi-toast-content .semi-toast-content-text{text-align:right;margin-left:12px;margin-right:12px}.semi-tree-search-wrapper{padding:8px 12px}.semi-tree-wrapper{display:flex;flex-direction:column}.semi-tree-option-list{overflow-x:hidden;overflow-y:auto;box-sizing:border-box;flex:1;padding:8px 0}.semi-tree-option-list ul,.semi-tree-option-list li{list-style-type:none;padding:0;margin:0}.semi-tree-option-list li.semi-tree-option{box-sizing:border-box;padding-top:4px;padding-bottom:4px}.semi-tree-option-list li>.semi-tree-option-label{list-style-type:none;padding:0}.semi-tree-option-list .semi-tree-option-expand-icon,.semi-tree-option-list .semi-tree-option-empty-icon{box-sizing:border-box;width:12px;color:var(--semi-color-text-2);margin-right:8px;display:flex;flex-shrink:0}.semi-tree-option-list .semi-tree-option{display:flex;align-items:center;cursor:pointer;transition:background-color var(--semi-transition_duration-none) var(--semi-transition_function-easeIn) var(--semi-transition_delay-none);transform:scale(var(--semi-transform_scale-none));font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;word-break:break-word;color:var(--semi-color-text-0);position:relative}.semi-tree-option-list .semi-tree-option-label{display:flex;align-items:center}.semi-tree-option-list .semi-tree-option-label>.semi-icon{margin-right:8px}.semi-tree-option-list .semi-tree-option-label .semi-checkbox{margin-right:8px}.semi-tree-option-list .semi-tree-option-label-text{display:block;flex:1}.semi-tree-option-list .semi-tree-option-ellipsis .semi-tree-option-label-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.semi-tree-option-list .semi-tree-option-label-text,.semi-tree-option-list .semi-tree-option .semi-checkbox-addon{border-radius:var(--semi-border-radius-small)}.semi-tree-option-list .semi-tree-option-label-text:hover,.semi-tree-option-list .semi-tree-option .semi-checkbox-addon:hover{background-color:var(--semi-color-fill-0)}.semi-tree-option-list .semi-tree-option-label-text:active,.semi-tree-option-list .semi-tree-option .semi-checkbox-addon:active{background-color:var(--semi-color-fill-1)}.semi-tree-option-list .semi-tree-option-item-icon{color:var(--semi-color-text-2)}.semi-tree-option-list .semi-tree-option-active .semi-tree-option-label-text{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list .semi-tree-option-active:hover,.semi-tree-option-list .semi-tree-option-active:active{background-color:transparent}.semi-tree-option-list .semi-tree-option-selected .semi-tree-option-label,.semi-tree-option-list .semi-tree-option-selected .semi-tree-option-label:hover,.semi-tree-option-list .semi-tree-option-selected .semi-tree-option-label:active{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list .semi-tree-option-collapsed .semi-tree-option-expand-icon{transform:rotate(270deg)}.semi-tree-option-list .semi-tree-option-highlight{font-weight:600;color:var(--semi-color-primary)}.semi-tree-option-list .semi-tree-option-hidden{display:none}.semi-tree-option-list .semi-tree-option-disabled .semi-tree-option-label{color:var(--semi-color-disabled-text)}.semi-tree-option-list .semi-tree-option-fullLabel-draggable,.semi-tree-option-list .semi-tree-option-draggable{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;user-select:none;-khtml-user-drag:element;-webkit-user-drag:element}.semi-tree-option-list .semi-tree-option-draggable{box-sizing:border-box;border-left:2px solid transparent;margin-top:-2px}.semi-tree-option-list .semi-tree-option-draggable .semi-tree-option-label{border-top:2px transparent solid;border-bottom:2px transparent solid}.semi-tree-option-list .semi-tree-option-draggable .semi-tree-option-drag-over-gap-top{border-top:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-draggable .semi-tree-option-drag-over-gap-bottom{border-bottom:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-fullLabel-draggable.semi-tree-option-fullLabel-drag-over-gap-top{border-top:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-fullLabel-draggable.semi-tree-option-fullLabel-drag-over-gap-bottom{border-bottom:2px var(--semi-color-primary) solid}.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-draggable,.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-fullLabel-draggable{border:2px solid var(--semi-color-primary)}.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-draggable .semi-tree-option-label,.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-fullLabel-draggable .semi-tree-option-label{border-top:0;border-bottom:0}.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-draggable+.semi-tree-option-selected:after,.semi-tree-option-list .semi-tree-option-drag-over.semi-tree-option-fullLabel-draggable+.semi-tree-option-selected:after{content:"";position:absolute;top:0;left:-2px;bottom:0;right:-1px;border-top:2px solid var(--semi-color-primary)}.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option{padding-top:0;padding-bottom:0}.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-label{padding:3px 0}.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-selected,.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-selected:hover,.semi-tree-option-list li.semi-tree-option-draggable.semi-tree-option .semi-tree-option-selected:active{background-color:transparent}.semi-tree-option-list .semi-tree-option-level-1{padding-left:8px}.semi-tree-option-list .semi-tree-option-level-2{padding-left:28px}.semi-tree-option-list .semi-tree-option-level-3{padding-left:48px}.semi-tree-option-list .semi-tree-option-level-4{padding-left:68px}.semi-tree-option-list .semi-tree-option-level-5{padding-left:88px}.semi-tree-option-list .semi-tree-option-level-6{padding-left:108px}.semi-tree-option-list .semi-tree-option-level-7{padding-left:128px}.semi-tree-option-list .semi-tree-option-level-8{padding-left:148px}.semi-tree-option-list .semi-tree-option-level-9{padding-left:168px}.semi-tree-option-list .semi-tree-option-level-10{padding-left:188px}.semi-tree-option-list .semi-tree-option-level-11{padding-left:208px}.semi-tree-option-list .semi-tree-option-level-12{padding-left:228px}.semi-tree-option-list .semi-tree-option-level-13{padding-left:248px}.semi-tree-option-list .semi-tree-option-level-14{padding-left:268px}.semi-tree-option-list .semi-tree-option-level-15{padding-left:288px}.semi-tree-option-list .semi-tree-option-level-16{padding-left:308px}.semi-tree-option-list .semi-tree-option-level-17{padding-left:328px}.semi-tree-option-list .semi-tree-option-level-18{padding-left:348px}.semi-tree-option-list .semi-tree-option-level-19{padding-left:368px}.semi-tree-option-list .semi-tree-option-level-20{padding-left:388px}.semi-tree-option-list .semi-tree-option-empty:hover,.semi-tree-option-list .semi-tree-option-empty:active{background-color:transparent}.semi-tree-option-list .semi-tree-option-label-empty{padding-left:0;justify-content:center;color:var(--semi-color-disabled-text);-webkit-user-select:none;user-select:none;cursor:not-allowed}.semi-tree-option-list .semi-checkboxGroup-vertical{row-gap:0}.semi-tree-option-list-block .semi-tree-option:hover{background-color:var(--semi-color-fill-0)}.semi-tree-option-list-block .semi-tree-option:active{background-color:var(--semi-color-fill-1)}.semi-tree-option-list-block .semi-tree-option-label{flex:1}.semi-tree-option-list-block .semi-tree-option-active,.semi-tree-option-list-block .semi-tree-option-active:hover,.semi-tree-option-list-block .semi-tree-option-active:active{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list-block .semi-tree-option-active .semi-tree-option-label-text{background-color:transparent}.semi-tree-option-list-block .semi-tree-option-expand-icon{flex-shrink:0;box-sizing:content-box}.semi-tree-option-list-block .semi-tree-option-expand-icon:hover{color:var(--semi-color-text-0)}.semi-tree-option-list-block .semi-tree-option-expand-icon:active{color:var(--semi-color-black)}.semi-tree-option-list-block .semi-tree-option-spin-icon{display:flex;line-height:0;color:var(--semi-color-primary)}.semi-tree-option-list-block .semi-tree-option-spin-icon svg{width:12px;height:12px}.semi-tree-option-list-block .semi-tree-option-selected{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list-block .semi-tree-option-selected .semi-tree-option-label,.semi-tree-option-list-block .semi-tree-option-selected .semi-tree-option-label:hover,.semi-tree-option-list-block .semi-tree-option-selected .semi-tree-option-label:active,.semi-tree-option-list-block .semi-tree-option-selected .semi-checkbox-addon{background-color:transparent}.semi-tree-option-list-block .semi-tree-option-selected:hover,.semi-tree-option-list-block .semi-tree-option-selected:active{background-color:var(--semi-color-primary-light-default)}.semi-tree-option-list-block .semi-tree-option-label-text,.semi-tree-option-list-block .semi-tree-option .semi-checkbox-addon{padding:0;border-radius:var(--semi-border-radius-small)}.semi-tree-option-list-block .semi-tree-option-label-text:hover,.semi-tree-option-list-block .semi-tree-option .semi-checkbox-addon:hover,.semi-tree-option-list-block .semi-tree-option-label-text:active,.semi-tree-option-list-block .semi-tree-option .semi-checkbox-addon:active{background-color:transparent}.semi-tree-option-list-block .semi-tree-option-label-text{width:0}.semi-tree-option-list-block .semi-tree-option-empty:hover,.semi-tree-option-list-block .semi-tree-option-empty:active{background-color:transparent}.semi-rtl .semi-tree,.semi-popover-rtl .semi-tree,.semi-rtl .semi-tree-wrapper,.semi-popover-rtl .semi-tree-wrapper,.semi-rtl .semi-tree-option-list,.semi-popover-rtl .semi-tree-option-list{direction:rtl}.semi-rtl .semi-tree-option-list .semi-tree-option-expand-icon,.semi-rtl .semi-tree-option-list .semi-tree-option-empty-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-expand-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-empty-icon{margin-right:0;margin-left:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-label>.semi-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-label>.semi-icon{margin-right:0;margin-left:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-label .semi-checkbox,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-label .semi-checkbox{margin-right:0;margin-left:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-collapsed .semi-tree-option-expand-icon,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-collapsed .semi-tree-option-expand-icon{transform:rotate(90deg)}.semi-rtl .semi-tree-option-list .semi-tree-option-level-1,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-1{padding-left:0;padding-right:8px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-2,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-2{padding-left:0;padding-right:28px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-3,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-3{padding-left:0;padding-right:48px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-4,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-4{padding-left:0;padding-right:68px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-5,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-5{padding-left:0;padding-right:88px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-6,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-6{padding-left:0;padding-right:108px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-7,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-7{padding-left:0;padding-right:128px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-8,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-8{padding-left:0;padding-right:148px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-9,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-9{padding-left:0;padding-right:168px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-10,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-10{padding-left:0;padding-right:188px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-11,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-11{padding-left:0;padding-right:208px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-12,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-12{padding-left:0;padding-right:228px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-13,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-13{padding-left:0;padding-right:248px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-14,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-14{padding-left:0;padding-right:268px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-15,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-15{padding-left:0;padding-right:288px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-16,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-16{padding-left:0;padding-right:308px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-17,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-17{padding-left:0;padding-right:328px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-18,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-18{padding-left:0;padding-right:348px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-19,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-19{padding-left:0;padding-right:368px}.semi-rtl .semi-tree-option-list .semi-tree-option-level-20,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-level-20{padding-left:0;padding-right:388px}.semi-rtl .semi-tree-option-list .semi-tree-option-label-empty,.semi-popover-rtl .semi-tree-option-list .semi-tree-option-label-empty{padding-left:auto;padding-right:0}.semi-rtl .semi-tree-option-list-block,.semi-popover-rtl .semi-tree-option-list-block{direction:rtl}.semi-tree-select{box-sizing:border-box;border-radius:var(--semi-border-radius-small);border:1px solid transparent;min-width:80px;min-height:32px;line-height:32px;font-weight:400;background-color:var(--semi-color-fill-0);display:inline-flex;align-items:center;position:relative;cursor:pointer}.semi-tree-select:hover{background-color:var(--semi-color-fill-1);border:1px solid transparent}.semi-tree-select:focus{border:1px solid var(--semi-color-focus-border);background-color:var(--semi-color-fill-0);outline:0}.semi-tree-select:active{background-color:var(--semi-color-fill-2)}.semi-tree-select-focus,.semi-tree-select-focus:hover{background-color:var(--semi-color-fill-0);border:1px solid var(--semi-color-focus-border);outline:0}.semi-tree-select-focus:active{background-color:var(--semi-color-fill-2)}.semi-tree-select-warning{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning-light-default)}.semi-tree-select-warning:hover{background-color:var(--semi-color-warning-light-hover);border-color:var(--semi-color-warning-light-hover)}.semi-tree-select-warning.semi-tree-select-focus{background-color:var(--semi-color-warning-light-default);border-color:var(--semi-color-warning)}.semi-tree-select-warning:active{background-color:var(--semi-color-warning-light-active);border-color:var(--semi-color-warning-light-active)}.semi-tree-select-error{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger-light-default)}.semi-tree-select-error:hover{background-color:var(--semi-color-danger-light-hover);border-color:var(--semi-color-danger-light-hover)}.semi-tree-select-error.semi-tree-select-focus{background-color:var(--semi-color-danger-light-default);border-color:var(--semi-color-danger)}.semi-tree-select-error:active{background-color:var(--semi-color-danger-light-active);border-color:var(--semi-color-danger-light-active)}.semi-tree-select-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;background-color:var(--semi-color-disabled-fill)}.semi-tree-select-disabled:hover{background-color:var(--semi-color-disabled-fill)}.semi-tree-select-disabled .semi-tree-select-selection,.semi-tree-select-disabled .semi-tree-select-selection-placeholder{color:var(--semi-color-disabled-text);cursor:not-allowed}.semi-tree-select-disabled .semi-tree-select-arrow,.semi-tree-select-disabled .semi-tree-select-prefix,.semi-tree-select-disabled .semi-tree-select-suffix{color:var(--semi-color-disabled-text)}.semi-tree-select-disabled .semi-tag{color:var(--semi-color-disabled-text);background-color:transparent}.semi-tree-select-selection{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;height:100%;display:inline-flex;align-items:center;flex-wrap:wrap;flex-grow:1;overflow:hidden;padding-left:12px;padding-right:0;cursor:pointer;color:var(--semi-color-text-0);position:relative}.semi-tree-select-selection-content{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.semi-tree-select-selection-placeholder{color:var(--semi-color-text-2)}.semi-tree-select-selection .semi-tag-group{height:inherit;display:inline-flex;align-items:center;flex-wrap:wrap}.semi-tree-select-selection .semi-tag{margin:1px 2px}.semi-tree-select-selection-TriggerSearchItem{position:absolute;max-width:calc(100% - 12px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.semi-tree-select-selection-TriggerSearchItem-placeholder{opacity:.6}.semi-tree-select-selection-TriggerSearchItem-disabled{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper{width:100%}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-tree-select-inputTrigger .semi-input-wrapper{background:transparent}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-input-wrapper{height:100%;width:100%;border:none;background-color:transparent}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-input-wrapper-focus{border:none}.semi-tree-select-selection .semi-tree-select-triggerSingleSearch-wrapper .semi-input{padding-left:0;padding-right:0}.semi-tree-select-selection .semi-tagInput{border:hidden;background:transparent;min-height:30px}.semi-tree-select-selection .semi-tagInput-small{min-height:22px}.semi-tree-select-selection .semi-tagInput-large{min-height:38px}.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper{padding-left:4px;padding-right:4px}.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper .semi-input-wrapper .semi-input{padding-left:0}.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper .semi-input-wrapper-default,.semi-tree-select-selection .semi-tagInput .semi-tagInput-wrapper .semi-input-wrapper-large{margin-top:1px;margin-bottom:1px}.semi-tree-select-multiple-tagInput-notEmpty .semi-tagInput{margin-left:-4px}.semi-tree-select-multiple-tagInput-empty .semi-tagInput{margin-left:4px}.semi-tree-select-multiple{display:inline-flex}.semi-tree-select-multiple .semi-tree-select-selection{padding-left:4px;padding-right:0}.semi-tree-select-multiple .semi-tree-select-selection-placeholder{padding-left:8px}.semi-tree-select-small{min-height:24px;line-height:24px}.semi-tree-select-large{min-height:40px;line-height:40px}.semi-tree-select-large .semi-tree-select-selection{font-size:16px;line-height:22px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-tree-select-arrow{display:inline-flex;align-items:center;flex-shrink:0;height:100%;justify-content:center;width:32px;color:var(--semi-color-text-2)}.semi-tree-select-inset-label{display:inline;margin-right:12px;font-weight:600;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);flex-shrink:0;white-space:nowrap}.semi-tree-select.semi-tree-select-with-prefix{display:inline-flex;align-items:center}.semi-tree-select-arrow,.semi-tree-select-clearbtn{display:inline-flex;align-items:center;height:100%;flex-shrink:0;justify-content:center;width:32px;color:var(--semi-color-text-2)}.semi-tree-select-clearbtn:hover{color:var(--semi-color-primary-hover)}.semi-tree-select-clearbtn:active{color:var(--semi-color-primary-active)}.semi-tree-select-prefix,.semi-tree-select-suffix{display:inline;display:flex;justify-content:center;align-items:center}.semi-tree-select-prefix-text,.semi-tree-select-suffix-text{margin:0 12px}.semi-tree-select-prefix-icon,.semi-tree-select-suffix-icon{color:var(--semi-color-text-2);margin:0 8px}.semi-tree-select-prefix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-tree-select-suffix.semi-tree-select-with-suffix .semi-tree-select-selection{padding-right:0}.semi-tree-select-prefix-search-wrapper,.semi-tree-select-suffix-search-wrapper{padding:8px 12px;border-bottom:1px solid var(--semi-color-fill-0)}.semi-tree-select-prefix-maxTagCount,.semi-tree-select-suffix-maxTagCount{color:var(--semi-color-text-2);font-size:14px}.semi-tree-select-prefix-popover,.semi-tree-select-suffix-popover{max-height:300px;overflow:auto}.semi-tree-select-popover .semi-tree-wrapper{height:100%;display:flex;flex-direction:column}.semi-tree-select-popover .semi-tree-wrapper .semi-tree-option-list{flex:1;min-width:230px}.semi-tree-select-popover .semi-tree-wrapper .semi-tree-search-wrapper{border-bottom:1px var(--semi-color-fill-0) solid}.semi-tree-select-borderless:not(:focus-within):not(:hover){background-color:transparent;border-color:transparent}.semi-tree-select-borderless:not(:focus-within):not(:hover) .semi-tree-select-arrow{opacity:0}.semi-tree-select-borderless:focus-within:not(:active){background-color:transparent}.semi-tree-select-borderless.semi-tree-select-error:not(:focus-within){border-color:var(--semi-color-danger)}.semi-tree-select-borderless.semi-tree-select-warning:not(:focus-within){border-color:var(--semi-color-warning)}.semi-tree-select-borderless.semi-tree-select-error:focus-within{border-color:var(--semi-color-danger)}.semi-tree-select-borderless.semi-tree-select-warning:focus-within{border-color:var(--semi-color-warning)}.semi-rtl .semi-tree-select,.semi-portal-rtl .semi-tree-select{direction:rtl}.semi-rtl .semi-tree-select .semi-tagInput .semi-input,.semi-portal-rtl .semi-tree-select .semi-tagInput .semi-input{padding-right:0}.semi-rtl .semi-tree-select-multiple-tagInput-notEmpty .semi-tagInput,.semi-portal-rtl .semi-tree-select-multiple-tagInput-notEmpty .semi-tagInput{margin-left:0;margin-right:-4px}.semi-rtl .semi-tree-select-multiple-tagInput-empty .semi-tagInput,.semi-portal-rtl .semi-tree-select-multiple-tagInput-empty .semi-tagInput{margin-left:0;margin-right:4px}.semi-rtl .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-selection{padding-right:12px;padding-left:0}.semi-rtl .semi-tree-select-multiple .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-multiple .semi-tree-select-selection{padding-left:0;padding-right:4px}.semi-rtl .semi-tree-select-multiple .semi-tree-select-selection-placeholder,.semi-portal-rtl .semi-tree-select-multiple .semi-tree-select-selection-placeholder{padding-left:0;padding-right:8px}.semi-rtl .semi-tree-select-inset-label,.semi-portal-rtl .semi-tree-select-inset-label{margin-right:0;margin-left:12px}.semi-rtl .semi-tree-select-prefix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-rtl .semi-tree-select-suffix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-prefix.semi-tree-select-with-suffix .semi-tree-select-selection,.semi-portal-rtl .semi-tree-select-suffix.semi-tree-select-with-suffix .semi-tree-select-selection{padding-right:auto;padding-left:0}.semi-rtl .semi-tree-select-popover,.semi-portal-rtl .semi-tree-select-popover{direction:rtl}.semi-upload{display:flex;flex-wrap:wrap}.semi-upload-disabled,.semi-upload-disabled .semi-upload-file-card,.semi-upload-disabled .semi-upload-file-card-close{cursor:not-allowed}.semi-upload-disabled .semi-upload-drag-area{border:none;cursor:not-allowed}.semi-upload-disabled .semi-upload-drag-area:hover{background-color:var(--semi-color-tertiary-light-default)}.semi-upload-disabled .semi-upload-drag-area-main-text,.semi-upload-disabled .semi-upload-drag-area-sub-text,.semi-upload-disabled .semi-upload-drag-area-icon{cursor:not-allowed;color:var(--semi-color-disabled-text)}.semi-upload-hidden-input,.semi-upload-hidden-input-replace{display:none}.semi-upload-add{display:flex;align-items:center}.semi-upload[x-prompt-pos=right] .semi-upload-add,.semi-upload[x-prompt-pos=right] .semi-upload-prompt{display:inline-flex}.semi-upload[x-prompt-pos=bottom] .semi-upload-add{display:flex}.semi-upload[x-prompt-pos=bottom] .semi-upload-prompt{display:flex;flex-basis:100%}.semi-upload[x-prompt-pos=bottom] .semi-upload-file-list{flex-basis:100%}.semi-upload[x-prompt-pos=left] .semi-upload-add{display:inline-flex}.semi-upload[x-prompt-pos=left] .semi-upload-prompt{display:inline-flex;order:-1}.semi-upload[x-prompt-pos=left] .semi-upload-file-list{order:2}.semi-upload-file-list{flex-basis:100%;flex-shrink:0;display:block;margin-top:8px;margin-bottom:8px}.semi-upload-file-list-main{display:flex;flex-wrap:wrap;flex-shrink:0;gap:8px;margin-bottom:8px}.semi-upload-file-list-main p{display:flex;align-items:center}.semi-upload-file-list-title{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-2);margin-bottom:4px}.semi-upload-file-list-title-choosen{margin-right:8px}.semi-upload-file-list-title-clear{cursor:pointer;color:var(--semi-color-primary)}.semi-upload-file-card{border-radius:var(--semi-border-radius-medium);display:inline-flex;align-items:center;justify-content:space-between;height:52px;width:250px;background-color:var(--semi-color-fill-0);cursor:pointer}.semi-upload-file-card:hover{background-color:var(--semi-color-fill-1)}.semi-upload-file-card a{text-decoration:none}.semi-upload-file-card-preview{height:36px;width:36px;color:var(--semi-color-text-2);margin:8px;display:flex;justify-content:center;align-items:center;border-radius:var(--semi-border-radius-small);flex-shrink:0}.semi-upload-file-card-preview img{width:36px;height:36px;object-fit:cover}.semi-upload-file-card-preview-placeholder{background-color:rgba(var(--semi-grey-3),1);color:rgba(var(--semi-white),1)}.semi-upload-file-card-show-pointer{cursor:pointer}.semi-upload-file-card-info{display:flex;align-items:center}.semi-upload-file-card-info-main{display:flex;flex-wrap:wrap;flex:1}.semi-upload-file-card-info-main-text{display:flex;align-items:center;flex-basis:100%}.semi-upload-file-card-info-main-control{display:flex}.semi-upload-file-card-info-name{width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;color:var(--semi-color-text-0)}.semi-upload-file-card-info-size{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:400;margin-left:8px;color:var(--semi-color-text-2);margin-top:1px}.semi-upload-file-card-info-replace{display:inline-flex;margin-left:8px;color:var(--semi-color-text-2)}.semi-upload-file-card-info-validate-message{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;align-items:center;color:var(--semi-color-text-0)}.semi-upload-file-card-info-retry{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-primary);cursor:pointer;margin-left:8px}.semi-upload-file-card-info .semi-progress{flex-basis:100%;margin-top:4px}.semi-upload-file-card-close{margin-left:8px;margin-right:8px;flex-shrink:0}.semi-upload-file-card-replace{margin-left:8px;width:24px;flex-shrink:0}.semi-upload-file-card-icon-loading,.semi-upload-file-card-icon-error{font-size:11px;margin-right:2px}.semi-upload-file-card-icon-error{position:relative;top:-1px}.semi-upload-file-card-icon-loading{line-height:0}.semi-upload-file-card-icon-loading .semi-spin-wrapper svg{height:11px;width:11px}.semi-upload-file-card-fail{background-color:var(--semi-color-danger-light-default)}.semi-upload-file-card-fail:hover{background-color:var(--semi-color-danger-light-hover)}.semi-upload-file-card-fail .semi-upload-file-card-info-validate-message{color:var(--semi-color-danger)}.semi-upload-picture{display:flex}.semi-upload-picture[x-prompt-pos=bottom]{flex-direction:column}.semi-upload-picture[x-prompt-pos=bottom] .semi-upload-prompt,.semi-upload-picture[x-prompt-pos=right] .semi-upload-prompt{order:1}.semi-upload-picture-add{background-color:var(--semi-color-fill-0);height:96px;width:96px;box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;border:2px dashed var(--semi-color-border);color:var(--semi-color-tertiary);border-radius:var(--semi-border-radius-small);cursor:pointer}.semi-upload-picture-add:hover{background-color:var(--semi-color-fill-1)}.semi-upload-picture-add:active{background-color:var(--semi-color-fill-2)}.semi-upload-picture-add-disabled{cursor:not-allowed}.semi-upload-picture-add-disabled:hover,.semi-upload-picture-add-disabled:active{background-color:var(--semi-color-fill-0)}.semi-upload-picture-file-list{flex-basis:inherit;margin-top:0;margin-bottom:0}.semi-upload-picture-file-card{display:flex;align-items:center;justify-content:center;height:96px;width:96px;border-radius:var(--semi-border-radius-small);position:relative;overflow:hidden}.semi-upload-picture-file-card img{height:96px;width:96px;object-fit:cover;border-radius:var(--semi-border-radius-small)}.semi-upload-picture-file-card-close{visibility:hidden;display:inline-flex;position:absolute;top:8px;right:8px;border-radius:var(--semi-border-radius-circle);cursor:pointer;transition:all 0s}.semi-upload-picture-file-card-icon-close{font-size:16px;color:var(--semi-color-white)}.semi-upload-picture-file-card:before{visibility:hidden;background-color:var(--semi-color-overlay-bg);content:"";position:absolute;left:0;right:0;top:0;bottom:0}.semi-upload-picture-file-card-retry{visibility:hidden;background-color:var(--semi-color-white);width:24px;height:24px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--semi-color-primary);border-radius:var(--semi-border-radius-circle);display:flex;align-items:center;justify-content:center;cursor:pointer}.semi-upload-picture-file-card-icon-retry{transform:scaleX(-1);font-size:13px}.semi-upload-picture-file-card-replace{visibility:hidden;display:inline-flex;position:absolute;cursor:pointer;top:50%;left:50%;color:var(--semi-color-white);transform:translate3D(-50%,-50%,0)}.semi-upload-picture-file-card-preview{visibility:hidden;display:inline-flex;position:absolute;cursor:pointer;top:50%;left:50%;transform:translate3D(-50%,-50%,0)}.semi-upload-picture-file-card-preview-fallback{background-color:var(--semi-color-fill-0);border:2px var(--semi-color-border);color:var(--semi-color-tertiary);border-radius:var(--semi-border-radius-small)}.semi-upload-picture-file-card-pic-info{display:inline-flex;box-sizing:border-box;justify-content:space-between;align-items:center;position:absolute;width:100%;height:24px;padding:0 10px;bottom:0;left:0;color:var(--semi-color-white);font-size:12px;font-weight:600;background:linear-gradient(0deg,rgba(22,22,26,.3) 0%,rgba(22,22,26,0) 77.08%)}.semi-upload-picture-file-card-icon-loading,.semi-upload-picture-file-card-icon-error{position:absolute;bottom:6px;right:6px;color:var(--semi-color-danger)}.semi-upload-picture-file-card-icon-loading{font-size:14px}.semi-upload-picture-file-card-show-pointer{cursor:pointer}.semi-upload-picture-file-card-error{outline:1px solid var(--semi-color-danger)}.semi-upload-picture-file-card:hover:before{visibility:visible}.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-close,.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-replace,.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-retry,.semi-upload-picture-file-card:hover .semi-upload-picture-file-card-preview{visibility:visible}.semi-upload-picture-file-card-uploading:before{visibility:visible}.semi-upload-picture-file-card .semi-progress-circle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.semi-upload-drag-area{border-radius:var(--semi-border-radius-small);border:2px dashed var(--semi-color-border);width:100%;padding:12px;background-color:var(--semi-color-tertiary-light-default);display:flex;justify-content:center;align-items:center;flex-direction:column;cursor:pointer}.semi-upload-drag-area:hover{background-color:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary)}.semi-upload-drag-area-custom{border:none;padding:0;background-color:inherit}.semi-upload-drag-area-custom:hover{background-color:inherit}.semi-upload-drag-area-legal{background-color:var(--semi-color-primary-light-default);border-color:var(--semi-color-primary)}.semi-upload-drag-area-legal .semi-upload-drag-area-sub-text{display:none}.semi-upload-drag-area-icon{color:var(--semi-color-primary)}.semi-upload-drag-area-text{text-align:center}.semi-upload-drag-area-main-text{cursor:pointer;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;margin-bottom:4px;color:var(--semi-color-text-0)}.semi-upload-drag-area-main-text:hover,.semi-upload-drag-area-main-text:active{color:var(--semi-color-text-0)}.semi-upload-drag-area-sub-text{cursor:pointer;font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;color:var(--semi-color-text-0)}.semi-upload-drag-area-sub-text:hover,.semi-upload-drag-area-sub-text:active{color:var(--semi-color-text-0)}.semi-upload-drag-area-tips{font-size:12px;line-height:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600}.semi-upload-drag-area-tips-legal{color:var(--semi-color-primary)}.semi-upload-validate-message{flex-basis:100%;flex-shrink:0;display:block;color:var(--semi-color-danger)}.semi-rtl .semi-upload,.semi-portal-rtl .semi-upload{direction:rtl}.semi-rtl .semi-upload-file-list-title-choosen,.semi-portal-rtl .semi-upload-file-list-title-choosen{margin-right:0;margin-left:8px}.semi-rtl .semi-upload-file-list-title-choosen,.semi-rtl .semi-upload-file-list-title-clear,.semi-portal-rtl .semi-upload-file-list-title-choosen,.semi-portal-rtl .semi-upload-file-list-title-clear{display:inline-block}.semi-rtl .semi-upload-file-card-info-size,.semi-portal-rtl .semi-upload-file-card-info-size,.semi-rtl .semi-upload-file-card-info-retry,.semi-portal-rtl .semi-upload-file-card-info-retry{margin-left:0;margin-right:8px}.semi-rtl .semi-upload-file-card-icon-loading,.semi-rtl .semi-upload-file-card-icon-error,.semi-portal-rtl .semi-upload-file-card-icon-loading,.semi-portal-rtl .semi-upload-file-card-icon-error{margin-right:0;margin-left:2px}.semi-rtl .semi-upload-picture-file-card-close,.semi-portal-rtl .semi-upload-picture-file-card-close{right:auto;left:8px}.semi-rtl .semi-upload-picture-file-card .semi-progress-circle,.semi-portal-rtl .semi-upload-picture-file-card .semi-progress-circle,.semi-rtl .semi-upload-picture-file-card-retry,.semi-portal-rtl .semi-upload-picture-file-card-retry{left:auto;right:50%;transform:translate(50%,-50%)}.semi-rtl .semi-upload-picture-file-card-icon-loading,.semi-rtl .semi-upload-picture-file-card-icon-error,.semi-portal-rtl .semi-upload-picture-file-card-icon-loading,.semi-portal-rtl .semi-upload-picture-file-card-icon-error{right:0;left:6px}.semi-form .semi-form-field{box-sizing:border-box}.semi-form-horizontal{display:flex;flex-wrap:wrap}.semi-form-horizontal .semi-form-field{margin-left:0;padding-right:16px}.semi-form-horizontal .semi-form-field:last-child{margin-right:16px}.semi-form-horizontal .semi-form-field-group{padding-right:16px}.semi-form-horizontal .semi-row{display:block}.semi-form-vertical .semi-form-field{margin:0;padding-top:12px;padding-bottom:12px;overflow:hidden}.semi-form-vertical .semi-form-field .semi-form-col-right{display:flex;justify-content:flex-end}.semi-form-vertical .semi-form-field .semi-form-col-left{display:flex;justify-content:flex-start}.semi-form-vertical .semi-form-field-group .semi-form-col-right{display:flex;justify-content:flex-end}.semi-form-vertical .semi-form-field-group .semi-form-col-left{display:flex;justify-content:flex-start}.semi-form-field-label{box-sizing:border-box;font-weight:600;color:var(--semi-color-text-0);margin-bottom:4px;margin-top:0;padding-right:16px;display:inline-block;vertical-align:middle;font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;flex-shrink:0}.semi-form-field-label-disabled{color:var(--semi-color-disabled-text)}.semi-form-field-label-with-extra .semi-form-field-label-text{display:inline-block}.semi-form-field-label-with-extra .semi-form-field-label-extra{display:flex;align-items:center;margin-left:4px}.semi-form-field-label-required .semi-form-field-label-text:after{content:"*";margin-left:4px;color:var(--semi-color-danger);font-weight:600}.semi-form-field-label-required-disabled{color:var(--semi-color-danger)}.semi-form-field-label-optional-text{color:var(--semi-color-tertiary)}.semi-form-field-label-left{text-align:left}.semi-form-field-label-right{text-align:right}.semi-form-field-error-message,.semi-form-field-help-text{font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;align-items:center;margin-top:4px}.semi-form-field-error-message .semi-icon-alert_triangle,.semi-form-field-help-text .semi-icon-alert_triangle{color:var(--semi-color-warning)}.semi-form-field-error-message{color:var(--semi-color-danger)}.semi-form-field[x-label-pos=top] .semi-form-field-label{display:block}.semi-form-field[x-label-pos=top] .semi-checkboxGroup,.semi-form-field[x-label-pos=top] .semi-radioGroup{padding-top:4px;padding-bottom:4px}.semi-form-field[x-label-pos=top] .semi-form-field-label-with-extra{display:flex;align-items:center}.semi-form-field[x-label-pos=left]{display:flex}.semi-form-field[x-label-pos=left] .semi-form-field-label{margin-bottom:0;margin-right:0;padding-top:6px;padding-bottom:6px}.semi-form-field[x-label-pos=left] .semi-form-field-label-with-extra{display:flex;align-items:center}.semi-form-field[x-label-pos=left] .semi-checkboxGroup,.semi-form-field[x-label-pos=left] .semi-radioGroup{padding-top:6px;padding-bottom:6px}.semi-form-field[x-label-pos=left] .semi-radioGroup-buttonRadio{padding-top:0;padding-bottom:0}.semi-form-field[x-label-pos=left] .semi-switch,.semi-form-field[x-label-pos=left] .semi-rating{vertical-align:middle;margin-top:4px;margin-bottom:4px}.semi-form-field[x-extra-pos=middle] .semi-form-field-extra{margin-top:4px;margin-bottom:4px}.semi-form-field[x-extra-pos=bottom] .semi-form-field-extra{margin-top:4px}.semi-form-field-main{width:100%}.semi-form-field-validate-status-icon{margin-right:4px;flex-shrink:0;align-self:flex-start;position:relative;top:2px}.semi-form-field-extra{color:var(--semi-color-tertiary)}.semi-form-field-extra-string{color:var(--semi-color-tertiary);font-size:14px;line-height:20px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.semi-form-vertical .semi-form-field-group{margin-top:0;margin-bottom:0;padding-top:12px;padding-bottom:12px;overflow:hidden}.semi-form-vertical .semi-form-field-group .semi-form-field{margin-top:0;margin-bottom:0}.semi-form-field-group[x-label-pos=left]{display:flex}.semi-form-field-group[x-label-pos=left] .semi-form-field-label{margin-bottom:0;margin-right:0;padding-top:6px;padding-bottom:6px}.semi-form-section{width:100%;margin-top:28px}.semi-form-section-text{margin-block-start:0;margin-block-end:0;font-size:18px;line-height:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:600;width:100%;padding-bottom:8px;padding-top:0;border-bottom:1px solid var(--semi-color-border);margin-bottom:4px;margin-top:0;color:var(--semi-color-text-0)}.semi-form-section:nth-of-type(1){margin-top:0}.semi-rtl .semi-form,.semi-portal-rtl .semi-form{direction:rtl}.semi-rtl .semi-form-horizontal .semi-form-field,.semi-portal-rtl .semi-form-horizontal .semi-form-field{margin-left:0;margin-right:0;padding-right:0;padding-left:16px}.semi-rtl .semi-form-horizontal .semi-form-field:last-child,.semi-portal-rtl .semi-form-horizontal .semi-form-field:last-child{margin-left:16px}.semi-rtl .semi-form-horizontal .semi-form-field-group,.semi-portal-rtl .semi-form-horizontal .semi-form-field-group,.semi-rtl .semi-form-field-label,.semi-portal-rtl .semi-form-field-label{padding-right:0;padding-left:16px}.semi-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra,.semi-portal-rtl .semi-form-field-label-with-extra .semi-form-field-label-extra{margin-left:0;margin-right:4px}.semi-rtl .semi-form-field-label-required .semi-form-field-label-text:after,.semi-portal-rtl .semi-form-field-label-required .semi-form-field-label-text:after{content:"*";margin-left:0;margin-right:4px}.semi-rtl .semi-form-field-label-left,.semi-portal-rtl .semi-form-field-label-left{text-align:right}.semi-rtl .semi-form-field-label-right,.semi-portal-rtl .semi-form-field-label-right{text-align:left}.semi-rtl .semi-form-field,.semi-portal-rtl .semi-form-field{direction:rtl}.semi-rtl .semi-form-field[x-label-pos=left] .semi-form-field-label,.semi-portal-rtl .semi-form-field[x-label-pos=left] .semi-form-field-label{margin-right:0;margin-left:0}.semi-rtl .semi-form-field-validate-status-icon,.semi-portal-rtl .semi-form-field-validate-status-icon{margin-right:0;margin-left:4px}.semi-rtl .semi-form-section,.semi-portal-rtl .semi-form-section{direction:rtl}._main_1w0iy_1{width:100vw;height:100vh;align-items:center;display:flex;justify-content:center}._main_1w0iy_1 ._login_1w0iy_8{align-items:center;background:var(--semi-color-bg-0);border-radius:8px;box-shadow:var(--login-shadow);display:flex;flex-direction:column;padding:48px 56px;row-gap:30px;width:440px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20{align-items:center;border-radius:8px;display:inline-flex;flex-direction:column;row-gap:24px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._logo_1w0iy_28{height:200px;width:200px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._header_1w0iy_33{align-items:center;display:inline-flex;flex-direction:column;justify-content:center;row-gap:6px;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._header_1w0iy_33 ._title_1w0iy_41{color:var(--semi-color-text-0);font-size:32px;font-weight:600;line-height:44px;min-width:128px;vertical-align:middle;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._component66_1w0iy_20 ._header_1w0iy_33>._text_1w0iy_50{color:var(--semi-color-text-2);font-size:16px;font-weight:400;line-height:22px;min-width:163px;vertical-align:middle;flex-shrink:0}._main_1w0iy_1 ._login_1w0iy_8 ._form_1w0iy_59{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;row-gap:28px;align-self:stretch}._main_1w0iy_1 ._login_1w0iy_8 ._form_1w0iy_59 ._inputs_1w0iy_67{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;row-gap:24px;align-self:stretch}._main_1w0iy_1 ._login_1w0iy_8 ._form_1w0iy_59 ._button_1w0iy_75{height:40px;width:440px}._main_1w0iy_1 ._login_1w0iy_8 ._oauth_1w0iy_79{align-items:center;justify-content:center;display:flex}._main_1w0iy_1 ._login_1w0iy_8 ._oauth_1w0iy_79 ._button_1w0iy_75{height:40px;width:440px}._main_1w0iy_1 ._login_1w0iy_8 ._undefined_1w0iy_88{align-items:center;justify-content:center;display:flex}._header_k9z2y_1{align-self:stretch;height:60px;width:100%;position:fixed;top:0;left:0;z-index:99}._header_k9z2y_1 ._navigationHeaderLogo_k9z2y_10{height:50px;width:50px}._header_k9z2y_1 ._dIV_k9z2y_14{align-items:center;column-gap:16px;display:inline-flex;flex-shrink:0}._header_k9z2y_1 ._dIV_k9z2y_14 ._semiIconsBell_k9z2y_20{font-size:20px;color:var(--semi-color-text-2)}._header_k9z2y_1 ._dIV_k9z2y_14 ._avatar_k9z2y_24{height:32px;width:32px}._sider_k9z2y_29{position:fixed;top:0;left:0}._sider_k9z2y_29 ._collapsed_k9z2y_34{display:flex;width:calc(100% - 16px);cursor:pointer;background-color:var(--semi-color-nav-bg);position:absolute;bottom:0;height:40px;align-items:center}._sider_k9z2y_29 ._nav_k9z2y_10::-webkit-scrollbar{display:none}._sider_k9z2y_29 ._nav_k9z2y_10{height:100vh;padding-top:60px;overflow-y:auto}._sider_k9z2y_29 ._nav_k9z2y_10 ._icon_k9z2y_52{height:20px;width:20px}._content_k9z2y_57{margin-top:60px;align-items:flex-start;display:flex;flex-basis:0;flex-direction:column;padding:20px;row-gap:24px;flex-grow:1;transition:margin-left .3s ease}._userProfile_k9z2y_69{align-items:center;display:flex;flex-direction:column;row-gap:22px;flex-shrink:0;padding-top:40px}._userProfile_k9z2y_69 ._banner_k9z2y_77{align-items:center;display:flex;flex-direction:column}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._frame4159_k9z2y_82{align-items:center;display:flex;row-gap:0}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._frame4159_k9z2y_82 ._avatar_k9z2y_24{height:72px;width:72px}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._name_k9z2y_91{align-items:center;display:inline-flex;flex-direction:column;text-align:center}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._name_k9z2y_91 ._richardHendricks_k9z2y_97{color:var(--semi-color-text-0);font-size:20px;font-weight:600;vertical-align:top;flex-shrink:0}._userProfile_k9z2y_69 ._banner_k9z2y_77 ._name_k9z2y_91 ._aRichardHendricks_k9z2y_104{color:var(--semi-color-text-2);font-size:12px;font-weight:400;line-height:16px;vertical-align:top;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112{align-items:flex-start;display:flex;flex-direction:column;flex-shrink:0;padding:0 38px 0 24px;row-gap:12px;align-self:stretch;text-align:left;letter-spacing:-.14px}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123{align-items:flex-start;display:inline-flex;flex-direction:column;row-gap:16px;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123 ._frame4152_k9z2y_130{align-items:center;column-gap:12px;display:inline-flex;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123 ._frame4152_k9z2y_130 ._semiIconsMapPin_k9z2y_136{font-size:24px;color:var(--semi-color-disabled-text)}._userProfile_k9z2y_69 ._main_k9z2y_112 ._descriptions_k9z2y_123 ._frame4152_k9z2y_130 ._value_k9z2y_140{color:var(--semi-color-text-0);font-size:14px;min-width:61px;vertical-align:top;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147{align-items:flex-start;column-gap:8px;display:inline-flex;flex-shrink:0}._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147 ._tag_k9z2y_147,._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147 ._tag1_k9z2y_154,._userProfile_k9z2y_69 ._main_k9z2y_112 ._tags_k9z2y_147 ._tag2_k9z2y_155{height:24px;margin-right:5px}._description_1j0rm_1{padding:10px}._description_1j0rm_1 ._tip_1j0rm_4{display:flex}._description_1j0rm_1 ._tip_1j0rm_4 ._title_1j0rm_7{margin-right:5px}._description_1j0rm_1 ._tip_1j0rm_4 ._help_1j0rm_10{display:flex;align-items:center;justify-content:center}._description_1j0rm_1 ._linkText_1j0rm_15:hover{cursor:pointer;text-decoration:underline}._card_1j0rm_20{background-color:var(--semi-color-bg-1)}._description_1a8jp_1{padding:10px}._card_1a8jp_5{background-color:var(--semi-color-bg-1);width:100%} diff --git a/gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js b/gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js deleted file mode 100644 index c39dfcb0c..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-aIgX_lG9.js +++ /dev/null @@ -1,169 +0,0 @@ -var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js b/gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js deleted file mode 100644 index ad2303e36..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-d2L8ur2V.js +++ /dev/null @@ -1,169 +0,0 @@ -var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js b/gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js deleted file mode 100644 index 4f8eae771..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-uyYFzuRs.js +++ /dev/null @@ -1,169 +0,0 @@ -var Boe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var vmt=Boe((Bmt,j2)=>{function Hoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Uoe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var uW={exports:{}},UC={},cW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ay=Symbol.for("react.element"),Woe=Symbol.for("react.portal"),Goe=Symbol.for("react.fragment"),Yoe=Symbol.for("react.strict_mode"),Koe=Symbol.for("react.profiler"),Zoe=Symbol.for("react.provider"),Xoe=Symbol.for("react.context"),qoe=Symbol.for("react.forward_ref"),Qoe=Symbol.for("react.suspense"),Joe=Symbol.for("react.memo"),ese=Symbol.for("react.lazy"),eR=Symbol.iterator;function tse(n){return n===null||typeof n!="object"?null:(n=eR&&n[eR]||n["@@iterator"],typeof n=="function"?n:null)}var dW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fW=Object.assign,hW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function pW(){}pW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=hW,this.updater=t||dW}var r6=n6.prototype=new pW;r6.constructor=n6;fW(r6,Og.prototype);r6.isPureReactComponent=!0;var tR=Array.isArray,gW=Object.prototype.hasOwnProperty,a6={current:null},vW={key:!0,ref:!0,__self:!0,__source:!0};function mW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)gW.call(e,r)&&!vW.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(SW);_W.exports=SW;var hse=_W.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var CW=D,Fi=hse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,pse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,rR={},aR={};function gse(n){return C3.call(aR,n)?!0:C3.call(rR,n)?!1:pse.test(n)?aR[n]=!0:(rR[n]=!0,!1)}function vse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function mse(n,e,t,r){if(e===null||typeof e>"u"||vse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?_m(n):""}function yse(n){switch(n.tag){case 5:return _m(n.type);case 16:return _m("Lazy");case 13:return _m("Suspense");case 19:return _m("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case TW:return(n.displayName||"Context")+".Consumer";case xW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function bse(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function OW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _se(n){var e=OW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=_se(n))}function IW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=OW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function oR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function PW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){PW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function sR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var Sm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function _1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Vm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sse=["Webkit","ms","Moz","O"];Object.keys(Vm).forEach(function(n){Sse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Vm[e]=Vm[n]})});function RW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Vm.hasOwnProperty(n)&&Vm[n]?(""+e).trim():e+"px"}function LW(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=RW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var Cse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(Cse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function cR(n){if(n=Ly(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function kW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function NW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,cR(n),e)for(n=0;n>>=0,n===0?32:31-(Rse(n)/Lse|0)|0}var Q0=64,J0=4194304;function Cm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=Cm(s):(i&=o,i!==0&&(r=Cm(i)))}else o=t&~a,o!==0?r=Cm(o):i!==0&&(r=Cm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function My(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function $se(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=zm),bR=" ",_R=!1;function nG(n,e){switch(n){case"keyup":return fle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function ple(n,e){switch(n){case"compositionend":return rG(e);case"keypress":return e.which!==32?null:(_R=!0,bR);case"textInput":return n=e.data,n===bR&&_R?null:n;default:return null}}function gle(n,e){if(up)return n==="compositionend"||!_6&&nG(n,e)?(n=eG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=xR(t)}}function sG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?sG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function lG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function xle(n){var e=lG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&sG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=TR(t,i);var o=TR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Hm=null,B3=!1;function ER(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hm&&E1(Hm,r)||(Hm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),If=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function RR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function mG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,bse(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,If=fa.current,dn(fa,n),dn(oi,oi.current),!0}function LR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=mG(n,e,If),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function yG(n){Ol===null?Ol=[n]:Ol.push(n)}function Nle(n){XC=!0,yG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Pd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Pd(y,E),C}function g(y,b,_,S){var C=wv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Pd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Pd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Pd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&zR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Iv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=hf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Iv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(Sm(_))return p(y,b,_,S);if(wv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=EG(!0),OG=EG(!1),ky={},Ws=Bc(ky),D1=Bc(ky),A1=Bc(ky);function qd(n){if(n===ky)throw Error(ue(174));return n}function D6(n,e){switch(dn(A1,e),dn(D1,n),dn(Ws,ky),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(D1),bn(A1)}function IG(n){qd(A1.current);var e=qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(D1,n),dn(Ws,t))}function A6(n){D1.current===n&&(bn(Ws),bn(D1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function UG(){return So().memoizedState}function jle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},WG(n))GG(e,t);else if(t=CG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),YG(t,e,r)}}function zle(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(WG(n))GG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=CG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),YG(t,e,r))}}function WG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function GG(n,e){Um=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function YG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Ble={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:HR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,VG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=jle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:BR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=BR(!1),e=n[0];return n=Vle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Df&30||AG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,HR(RG.bind(null,r,i,n),[n]),r.flags|=2048,L1(9,MG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=M1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[P1]=r,nY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Pv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Pv(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function Xle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var QR=!1;function Qle(n,e){if(H3=G2,n=lG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=QR,QR=!1,p}function Wm(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function iY(n){var e=n.alternate;e!==null&&(n.alternate=null,iY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[P1],delete e[Y3],delete e[Lle],delete e[kle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function oY(n){return n.tag===5||n.tag===3||n.tag===4}function JR(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||oY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)sY(n,e,t),t=t.sibling}function sY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),x1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function eL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new qle),e.forEach(function(r){var a=sue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Pt&6)throw Error(ue(331));var a=Pt;for(Pt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?ff(n,0):j6|=t),li(n,e)}function gY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(My(n,e,t),li(n,t))}function oue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),gY(n,t)}function sue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),gY(n,t)}var vY;vY=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Kle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&bG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=uue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=ZR(null,e,r,n,t);break e;case 11:e=YR(null,e,r,n,t);break e;case 14:e=KR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),ZR(n,e,r,a,t);case 3:e:{if(JG(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,wG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=XR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=XR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=OG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return IG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),QG(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return eY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),YR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),KR(n,e,r,a,t);case 15:return XG(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),TG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return tY(n,e,t);case 22:return qG(n,e,t)}throw Error(ue(156,e.tag))};function mY(n,e){return HW(n,e)}function lue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new lue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return hf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case EW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case xW:o=10;break e;case TW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function hf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=EW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cue(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new cue(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function due(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(SY)}catch(n){console.error(n)}}SY(),bW.exports=ji;var Ti=bW.exports;const ui=Ie(Ti);var lL=Ti;S3.createRoot=lL.createRoot,S3.hydrateRoot=lL.hydrateRoot;class vue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function N1(){return N1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function yue(){return Math.random().toString(36).substr(2,8)}function cL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),N1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Yf(e):e,{state:t,key:e&&e.key||r||yue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Yf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function bue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(N1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=cL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=cL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return dr(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(uL,d),l=m,()=>{a.removeEventListener(uL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var dL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(dL||(dL={}));function _ue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Yf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=CY(n);Sue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(dr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(dr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),CY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Iue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of wY(i.path))a(i,o,l)}),e}function wY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=wY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Sue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Pue(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const Cue=/^:\w+$/,wue=3,xue=2,Tue=1,Eue=10,Oue=-2,fL=n=>n==="*";function Iue(n,e){let t=n.split("/"),r=t.length;return t.some(fL)&&(r+=Oue),e&&(r+=xue),t.filter(a=>!fL(a)).reduce((a,i)=>a+(Cue.test(i)?wue:i===""?Tue:Eue),r)}function Pue(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Due(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=Lue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Mue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Rue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function Lue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function kue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Yf(n):n;return{pathname:t?t.startsWith("/")?t:Nue(t,e):e,search:Vue(r),hash:jue(a)}}function Nue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Fue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function xY(n){return Fue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function TY(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Yf(n):(a=N1({},n),dr(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),dr(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),dr(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=kue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),$ue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Vue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,jue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function zue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const EY=["post","put","patch","delete"];new Set(EY);const Bue=["get",...EY];new Set(Bue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=TY(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function DY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Kf),{pathname:a}=Fy(),i=JSON.stringify(xY(r));return D.useMemo(()=>TY(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Gue(n,e){return Yue(n,e)}function Yue(n,e,t){Ny()||dr(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Kf),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Fy(),u;if(e){var c;let g=typeof e=="string"?Yf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||dr(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=_ue(n,{pathname:f}),p=Que(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Kue(){let n=nce(),e=zue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Zue=D.createElement(Kue,null);class Xue extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Kf.Provider,{value:this.props.routeContext},D.createElement(OY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(q6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Kf.Provider,{value:e},r)}function Que(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||dr(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Zue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(Xue,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var AY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(AY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function Jue(n){let e=D.useContext(q6);return e||dr(!1),e}function ece(n){let e=D.useContext(Hue);return e||dr(!1),e}function tce(n){let e=D.useContext(Kf);return e||dr(!1),e}function MY(n){let e=tce(),t=e.matches[e.matches.length-1];return t.route.id||dr(!1),t.route.id}function nce(){var n;let e=D.useContext(OY),t=ece(hS.UseRouteError),r=MY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function rce(){let{router:n}=Jue(AY.UseNavigateStable),e=MY(hS.UseNavigateStable),t=D.useRef(!1);return IY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function gO(n){dr(!1)}function ace(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ny()&&dr(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Yf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function ice(n){let{children:e,location:t}=n;return Gue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&dr(!1),!r.props.index||!r.props.children||dr(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function sce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function lce(n,e){return n.button===0&&(!e||e==="_self")&&!sce(n)}const uce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],cce="startTransition",hL=ose[cce];function dce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=mue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&hL?hL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(ace,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const fce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=oce(e,uce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&hce.test(u)&&(p=u,fce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Uue(u,{relative:a}),y=gce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var pL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(pL||(pL={}));var gL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(gL||(gL={}));function gce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=PY(),u=Fy(),c=DY(n,{relative:o});return D.useCallback(d=>{if(lce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function vce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=vce;const oa=Ie(pi);var mce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,RY=mce,yce=RY,bce=typeof self=="object"&&self&&self.Object===Object&&self,_ce=yce||bce||Function("return this")(),os=_ce,Sce=os,Cce=function(){return Sce.Date.now()},wce=Cce,xce=/\s/;function Tce(n){for(var e=n.length;e--&&xce.test(n.charAt(e)););return e}var Ece=Tce,Oce=Ece,Ice=/^\s+/;function Pce(n){return n&&n.slice(0,Oce(n)+1).replace(Ice,"")}var Dce=Pce,Ace=os,Mce=Ace.Symbol,Ag=Mce,vL=Ag,LY=Object.prototype,Rce=LY.hasOwnProperty,Lce=LY.toString,Av=vL?vL.toStringTag:void 0;function kce(n){var e=Rce.call(n,Av),t=n[Av];try{n[Av]=void 0;var r=!0}catch{}var a=Lce.call(n);return r&&(e?n[Av]=t:delete n[Av]),a}var Nce=kce,Fce=Object.prototype,$ce=Fce.toString;function Vce(n){return $ce.call(n)}var jce=Vce,mL=Ag,zce=Nce,Bce=jce,Hce="[object Null]",Uce="[object Undefined]",yL=mL?mL.toStringTag:void 0;function Wce(n){return n==null?n===void 0?Uce:Hce:yL&&yL in Object(n)?zce(n):Bce(n)}var ss=Wce;function Gce(n){return n!=null&&typeof n=="object"}var gi=Gce,Yce=ss,Kce=gi,Zce="[object Symbol]";function Xce(n){return typeof n=="symbol"||Kce(n)&&Yce(n)==Zce}var Mg=Xce,qce=Dce,bL=pi,Qce=Mg,_L=NaN,Jce=/^[-+]0x[0-9a-f]+$/i,ede=/^0b[01]+$/i,tde=/^0o[0-7]+$/i,nde=parseInt;function rde(n){if(typeof n=="number")return n;if(Qce(n))return _L;if(bL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=bL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=qce(n);var t=ede.test(n);return t||tde.test(n)?nde(n.slice(2),t?2:8):Jce.test(n)?_L:+n}var Q6=rde;const lo=Ie(Q6);var ade=pi,ZT=wce,SL=Q6,ide="Expected a function",ode=Math.max,sde=Math.min;function lde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(ide);e=SL(e)||0,ade(t)&&(c=!!t.leading,d="maxWait"in t,i=d?ode(SL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?sde(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var kY=lde;const J6=Ie(kY);var ude=kY,cde=pi,dde="Expected a function";function fde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(dde);return cde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),ude(n,e,{leading:r,maxWait:e,trailing:a})}var hde=fde;const yO=Ie(hde);function pde(){}var NY=pde;const B=Ie(NY);var FY={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Yfe=Gfe,Kfe=cw;function Zfe(n,e){var t=this.__data__,r=Kfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Xfe=Zfe,qfe=Rfe,Qfe=zfe,Jfe=Ufe,ehe=Yfe,the=Xfe;function kg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var DL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!IL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;IL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function KY(n){return n===Object(n)&&Object.keys(n).length!==0}function spe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function lpe(n){return n===!1?{block:"end",inline:"nearest"}:KY(n)?n:{block:"start",inline:"nearest"}}function AL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(KY(e)&&typeof e.behavior=="function")return e.behavior(t?DL(n,e):[]);if(t){var r=lpe(e);return spe(DL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:upe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&upe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=wge}var d7=xge,Tge=lw,Ege=d7;function Oge(n){return n!=null&&Ege(n.length)&&!Tge(n)}var ls=Oge,Ige=ls,Pge=gi;function Dge(n){return Pge(n)&&Ige(n)}var f7=Dge,gS={exports:{}};function Age(){return!1}var iK=Age;const F1=Ie(iK);gS.exports;(function(n,e){var t=os,r=iK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Mge=ss,Rge=c7,Lge=gi,kge="[object Object]",Nge=Function.prototype,Fge=Object.prototype,oK=Nge.toString,$ge=Fge.hasOwnProperty,Vge=oK.call(Object);function jge(n){if(!Lge(n)||Mge(n)!=kge)return!1;var e=Rge(n);if(e===null)return!0;var t=$ge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&oK.call(t)==Vge}var h7=jge;const p7=Ie(h7);var zge=ss,Bge=d7,Hge=gi,Uge="[object Arguments]",Wge="[object Array]",Gge="[object Boolean]",Yge="[object Date]",Kge="[object Error]",Zge="[object Function]",Xge="[object Map]",qge="[object Number]",Qge="[object Object]",Jge="[object RegExp]",eve="[object Set]",tve="[object String]",nve="[object WeakMap]",rve="[object ArrayBuffer]",ave="[object DataView]",ive="[object Float32Array]",ove="[object Float64Array]",sve="[object Int8Array]",lve="[object Int16Array]",uve="[object Int32Array]",cve="[object Uint8Array]",dve="[object Uint8ClampedArray]",fve="[object Uint16Array]",hve="[object Uint32Array]",yn={};yn[ive]=yn[ove]=yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=!0;yn[Uge]=yn[Wge]=yn[rve]=yn[Gge]=yn[ave]=yn[Yge]=yn[Kge]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=!1;function pve(n){return Hge(n)&&Bge(n.length)&&!!yn[zge(n)]}var gve=pve;function vve(n){return function(e){return n(e)}}var Qf=vve,vS={exports:{}};vS.exports;(function(n,e){var t=RY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,mve=gve,yve=Qf,NL=Hy,FL=NL&&NL.isTypedArray,bve=FL?yve(FL):mve,yw=bve;function _ve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var sK=_ve,Sve=l7,Cve=Vy,wve=Object.prototype,xve=wve.hasOwnProperty;function Tve(n,e,t){var r=n[e];(!(xve.call(n,e)&&Cve(r,t))||t===void 0&&!(e in n))&&Sve(n,e,t)}var bw=Tve,Eve=bw,Ove=l7;function Ive(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Fme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var zme=jme,Bme=Nme,Hme=zme,Ume=Hme(Bme),fK=Ume,Wme=Wy,Gme=dK,Yme=fK;function Kme(n,e){return Yme(Gme(n,e,Wme),n+"")}var Sw=Kme,Zme=Vy,Xme=ls,qme=_w,Qme=pi;function Jme(n,e,t){if(!Qme(t))return!1;var r=typeof e;return(r=="number"?Xme(t)&&qme(e,t.length):r=="string"&&e in t)?Zme(t[e],n):!1}var Cw=Jme,e1e=Sw,t1e=Cw;function n1e(n){return e1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&t1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?PK(s,e-1,t,r,a):zbe(a,s):r||(a[a.length]=s)}return a}var b7=PK,Hbe=b7;function Ube(n){var e=n==null?0:n.length;return e?Hbe(n,1):[]}var DK=Ube;const Wbe=Ie(DK);var Gbe=DK,Ybe=dK,Kbe=fK;function Zbe(n){return Kbe(Ybe(n,void 0,Gbe),n+"")}var AK=Zbe,Xbe=Xf,qbe=ww,Qbe=IK,Jbe=Fg,e_e=Jf,t_e=Nbe,n_e=AK,r_e=_K,a_e=1,i_e=2,o_e=4,s_e=n_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Xbe(e,function(i){return i=Jbe(i,n),r||(r=i.length>1),i}),e_e(n,r_e(n),t),r&&(t=qbe(t,a_e|i_e|o_e,t_e));for(var a=e.length;a--;)Qbe(t,e[a]);return t}),l_e=s_e;const fr=Ie(l_e);function u_e(n){return n===void 0}var c_e=u_e;const Vt=Ie(c_e);var d_e="__lodash_hash_undefined__";function f_e(n){return this.__data__.set(n,d_e),this}var h_e=f_e;function p_e(n){return this.__data__.has(n)}var g_e=p_e,v_e=r7,m_e=h_e,y_e=g_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new v_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&T_e?new S_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function Ot(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function FK(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Y2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function Z2e(n){n.length>0&&Yy(n,n[n.length-1])}function X2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function q2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function Q2e(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function J2e(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function eSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Mt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),Xc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),or=this.getReverse(vu,Hi,z,Mt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":Xc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":Xc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":Xc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||or)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),or&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const nSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Rf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),mSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=vSe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},ySe=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},bSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},_Se=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=mSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=ySe({chunks:i});return bSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return VK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const w7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=_Se(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},jK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function zK(){return document?document.activeElement:null}function BK(n){if(!Ot(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function SSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const CSe=x.createContext({}),Fr=CSe,wSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||wSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=xSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ESe=TSe;var OSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=OSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},PSe=ISe,DSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class UK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}UK.defaultProps={motion:!0,replayKey:""};const ig=UK;var yk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(Ot(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(PSe,null):x.createElement(ESe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(HK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||RSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new tSe(this.adapter),this.eventManager=new NK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=yk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&Ot(t)){const a=G2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=yk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&Ot(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return Ot(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>BK(t),getActiveElement:()=>zK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Rf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||LSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(ASe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(MSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:DSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var x7={exports:{}};const WK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};x7.exports=WK;x7.exports.default=WK;var kSe=x7.exports;const NSe=Ie(kSe);function Ht(){}const FSe=x.createContext(null),GK=FSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?VSe(s,function(d){return d.test(o)}):$Se(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function $Se(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function VSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function jSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var zSe={};function zg(){return zSe}function KK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function bk(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var T7=6e4,E7=36e5,BSe=1e3;function O7(n,e){qe(2,arguments);var t=bk(n),r=bk(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Md(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function HSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function USe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function ZK(n,e){qe(2,arguments);var t=fn(e);return jSe(n,-t)}var WSe=864e5;function GSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/WSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function YSe(n){qe(1,arguments);var e=XK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var KSe=6048e5;function qK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-YSe(e).getTime();return Math.round(t/KSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function ZSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=zg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=I7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var XSe=6048e5;function QK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-ZSe(t,e).getTime();return Math.round(r/XSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=qSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},QSe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=I7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=XK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=QK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=qK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=GSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Sk(o);case"XXXX":case"XX":return Rd(o);case"XXXXX":case"XXX":default:return Rd(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return Sk(o);case"xxxx":case"xx":return Rd(o);case"xxxxx":case"xxx":default:return Rd(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+_k(o,":");case"OOOO":default:return"GMT"+Rd(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+_k(o,":");case"zzzz":default:return"GMT"+Rd(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function _k(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function Sk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Rd(n,e)}function Rd(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const JSe=QSe;var Ck=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},JK=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},eCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Ck(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ck(a,t)).replace("{{time}}",JK(i,t))},tCe={p:JK,P:eCe};const EO=tCe;var nCe=["D","DD"],rCe=["YY","YYYY"];function eZ(n){return nCe.indexOf(n)!==-1}function tZ(n){return rCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var aCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},iCe=function(e,t,r){var a,i=aCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const oCe=iCe;var sCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},uCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cCe={date:$p({formats:sCe,defaultWidth:"full"}),time:$p({formats:lCe,defaultWidth:"full"}),dateTime:$p({formats:uCe,defaultWidth:"full"})};const dCe=cCe;var fCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hCe=function(e,t,r,a){return fCe[e]};const pCe=hCe;var gCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},yCe={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},bCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},_Ce={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},SCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},CCe={ordinalNumber:SCe,era:Ds({values:gCe,defaultWidth:"wide"}),quarter:Ds({values:vCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:mCe,defaultWidth:"wide"}),day:Ds({values:yCe,defaultWidth:"wide"}),dayPeriod:Ds({values:bCe,defaultWidth:"wide",formattingValues:_Ce,defaultFormattingWidth:"wide"})};const wCe=CCe;var xCe=/^(\d+)(th|st|nd|rd)?/i,TCe=/\d+/i,ECe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},OCe={any:[/^b/i,/^(a|c)/i]},ICe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},PCe={any:[/1/i,/2/i,/3/i,/4/i]},DCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ACe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},MCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},RCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},kCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},NCe={ordinalNumber:YK({matchPattern:xCe,parsePattern:TCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ECe,defaultMatchWidth:"wide",parsePatterns:OCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any"}),day:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:LCe,defaultMatchWidth:"any",parsePatterns:kCe,defaultParseWidth:"any"})};const FCe=NCe;var $Ce={code:"en-US",formatDistance:oCe,formatLong:dCe,formatRelative:pCe,localize:wCe,match:FCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const P7=$Ce;var VCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zCe=/^'([^]*?)'?$/,BCe=/''/g,HCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=zg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:P7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=KK(I),A=ZK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(jCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(VCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return UCe(k);var z=JSe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&tZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&eZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(HCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function UCe(n){var e=n.match(zCe);return e?e[1].replace(BCe,"'"):n}function WCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function nZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function GCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function YCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function KCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function rZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function Dt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function XCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function At(n){var e=XCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return qCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function QCe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function aZ(n){var e=QCe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Tk(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function lZ(n){return n%400===0||n%4===0&&n%100!==0}var rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=sZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=I7(a,s);if(o.isTwoDigitYear){var u=sZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),lwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),uwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function dwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=QK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var fwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(dwe(a,o,s),s)}}]),t}(jt);function hwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=qK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(hwe(a,o))}}]),t}(jt),gwe=[31,28,31,30,31,30,31,31,30,31,30,31],vwe=[31,29,31,30,31,30,31,31,30,31,30,31],mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=vwe[l]:i>=1&&i<=gwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),ywe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function A7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=zg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Swe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=A7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function Cwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=Cwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),xwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Iwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Pwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Awe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Mwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),Rwe=function(n){Dt(t,n);var e=At(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new twe],L=T.match(jwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(Vwe),k=[],N=xk(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&tZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&eZ(re)&&_S(re,T,n);var te=re[0],oe=$we[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Uwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Wwe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Hwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=ZK(G,KK(G)),Q={},Z=xk(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],WCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Wwe(n){return n.match(zwe)[1].replace(Bwe,"'")}function Ek(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Ok(n,e){qe(2,arguments);var t=Ek(n),r=Ek(e);return t.getTime()===r.getTime()}function Gwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Xwe(n),i;if(a.date){var o=qwe(a.date,r);i=Qwe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=Jwe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=exe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ywe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Kwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Zwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Xwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function qwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function Qwe(n,e){if(e===null)return new Date(NaN);var t=n.match(Ywe);if(!t)return new Date(NaN);var r=!!t[4],a=Mv(t[1]),i=Mv(t[2])-1,o=Mv(t[3]),s=Mv(t[4]),l=Mv(t[5])-1;if(r)return ixe(e,s,l)?txe(e,s,l):new Date(NaN);var u=new Date(0);return!rxe(e,i,o)||!axe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Mv(n){return n?parseInt(n):1}function Jwe(n){var e=n.match(Kwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return oxe(t,r,a)?t*E7+r*T7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function exe(n){if(n==="Z")return 0;var e=n.match(Zwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return sxe(r,a)?t*(r*E7+a*T7):NaN}function txe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var nxe=[31,null,31,30,31,30,31,31,30,31,30,31];function cZ(n){return n%400===0||n%4===0&&n%100!==0}function rxe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(nxe[e]||(cZ(n)?29:28))}function axe(n,e){return e>=1&&e<=(cZ(n)?366:365)}function ixe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function oxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function sxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=nZ(o);return t.setMonth(r,Math.min(i,s)),t}function dZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function fZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function lxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function uxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function cxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var dxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},fxe=function(e,t,r){var a,i=dxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const hxe=fxe;var pxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},gxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},vxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},mxe={date:$p({formats:pxe,defaultWidth:"full"}),time:$p({formats:gxe,defaultWidth:"full"}),dateTime:$p({formats:vxe,defaultWidth:"full"})};const yxe=mxe;function Ik(n,e,t){var r="eeee p";return cxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var bxe={lastWeek:Ik,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ik,other:"PP p"},_xe=function(e,t,r,a){var i=bxe[e];return typeof i=="function"?i(t,r,a):i};const Sxe=_xe;var Cxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},wxe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},xxe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Txe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Exe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Oxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Ixe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Pxe={ordinalNumber:Ixe,era:Ds({values:Cxe,defaultWidth:"wide"}),quarter:Ds({values:wxe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:xxe,defaultWidth:"wide"}),day:Ds({values:Txe,defaultWidth:"wide"}),dayPeriod:Ds({values:Exe,defaultWidth:"wide",formattingValues:Oxe,defaultFormattingWidth:"wide"})};const Dxe=Pxe;var Axe=/^(第\s*)?\d+(日|时|分|秒)?/i,Mxe=/\d+/i,Rxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Lxe={any:[/^(前)/i,/^(公元)/i]},kxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Nxe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Fxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},$xe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},Vxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},jxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},zxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Bxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Hxe={ordinalNumber:YK({matchPattern:Axe,parsePattern:Mxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:Rxe,defaultMatchWidth:"wide",parsePatterns:Lxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any"}),day:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:zxe,defaultMatchWidth:"any",parsePatterns:Bxe,defaultParseWidth:"any"})};const Uxe=Hxe;var Wxe={code:"zh-CN",formatDistance:hxe,formatLong:yxe,formatRelative:Sxe,localize:Dxe,match:Uxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const M7=Wxe,Gxe={code:"zh-CN",dateFnsLocale:M7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Gxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(GK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Yxe="semi";var Kxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Yxe,type:l,size:u="default"}=n,c=Kxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});hZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(hZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function Zxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Xxe=Qe(Zxe,"alert_circle"),V1=Xxe;function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_triangle"),Ow=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"calendar"),pZ=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar_clock"),rTe=nTe;function aTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const iTe=Qe(aTe,"caretdown"),oTe=iTe;function sTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const lTe=Qe(sTe,"caretup"),uTe=lTe;function cTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const dTe=Qe(cTe,"checkbox_indeterminate"),fTe=dTe;function hTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const pTe=Qe(hTe,"checkbox_tick"),gTe=pTe;function vTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const mTe=Qe(vTe,"chevron_down"),Lf=mTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_left"),R7=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_right"),sg=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_up"),xTe=wTe;function TTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ETe=Qe(TTe,"clear"),Wc=ETe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clock"),gZ=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const DTe=Qe(PTe,"close"),Ky=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const MTe=Qe(ATe,"copy"),RTe=MTe;function LTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const kTe=Qe(LTe,"double_chevron_left"),vZ=kTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_right"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const VTe=Qe($Te,"eye_closed_solid"),jTe=VTe;function zTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const BTe=Qe(zTe,"eye_opened"),HTe=BTe;function UTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const WTe=Qe(UTe,"file"),IO=WTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const YTe=Qe(GTe,"filter"),KTe=YTe;function ZTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const XTe=Qe(ZTe,"folder"),qTe=XTe;function QTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const JTe=Qe(QTe,"folder_open"),e5e=JTe;function t5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const n5e=Qe(t5e,"github_logo"),r5e=n5e;function a5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const i5e=Qe(a5e,"handle"),o5e=i5e;function s5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const l5e=Qe(s5e,"help_circle"),J_=l5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const c5e=Qe(u5e,"id_card"),d5e=c5e;function f5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const h5e=Qe(f5e,"info_circle"),yZ=h5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const g5e=Qe(p5e,"mark"),v5e=g5e;function m5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const y5e=Qe(m5e,"moon"),b5e=y5e;function _5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const S5e=Qe(_5e,"radio"),C5e=S5e;function w5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const x5e=Qe(w5e,"refresh"),T5e=x5e;function E5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const O5e=Qe(E5e,"search"),I5e=O5e;function P5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const D5e=Qe(P5e,"sidebar"),A5e=D5e;function M5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const R5e=Qe(M5e,"star"),L5e=R5e;function k5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const N5e=Qe(k5e,"sun"),F5e=N5e;function $5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const V5e=Qe($5e,"tick"),lg=V5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick_circle"),bZ=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tree_triangle_down"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_right"),G5e=W5e;function Y5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const K5e=Qe(Y5e,"upload"),Z5e=K5e,X5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},L7="Enter",Rr=X5e;function ha(n){return H(n,"key")===L7}const t5=gw.PREFIX;class k7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=NSe(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(RTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}k7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};k7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const q5e=k7,SZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},pf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var Q5e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=Q5e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,SZ.ARROW),l=H(r,"borderOpacity",pf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",pf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",pf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};CZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const J5e=CZ;var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=e4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(J5e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(t4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(n4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:SZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function r4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const a4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=r4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},i4e=a4e;var wZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=c4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),xZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new S4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),EZ=typeof WeakMap<"u"?new WeakMap:new wZ,OZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=f4e.getInstance(),r=new C4e(e,t,this);EZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){OZ.prototype[n]=function(){var e;return(e=EZ.get(this))[n].apply(e,arguments)}});var w4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:OZ}();const Dk=w4e;class gf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Dk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Dk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}gf.propTypes={onResize:v.func,observeParent:v.bool};gf.defaultProps={onResize:()=>{},observeParent:!1};var x4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Bg extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=i4e(this.wrapperRef.current,e,String(a),s,T4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(q5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=x4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=E4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(ZY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(gf,{onResize:this.onResize,observeParent:!0},e):e}}Bg.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Bg.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Bg,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var O4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new P4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Bg,Object.assign({component:"span"},e))}}F7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};F7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=ZY;Zy.Text=Dw;Zy.Title=N7;Zy.Paragraph=Aw;Zy.Numeral=F7;const kf=Zy,IZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},$7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:Rg};var D4e=ss,A4e=gi,M4e="[object Number]";function R4e(n){return typeof n=="number"||A4e(n)&&D4e(n)==M4e}var PZ=R4e;const Rn=Ie(PZ);class L4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const k4e=L4e,N4e=`${q}-spin`,F4e={PREFIX:N4e},$4e={SIZE:["small","middle","large"]};class V7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},V7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const V4e=V7;var j4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=j4e(n,["id","className"]);let a=e;ct(a)&&(Ak++,a=Ak);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var z4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${ed}-wrapper`},e?x.createElement("div",{className:`${ed}-animate`,"x-semi-prop":"indicator"},e):x.createElement(DZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=z4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(ed,a,{[`${ed}-${o}`]:o,[`${ed}-block`]:t,[`${ed}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${ed}-children`,style:i,"x-semi-prop":"children"},t))}}j7.propTypes={size:v.oneOf($4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};j7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=j7,Mw={PREFIX:`${q}-input`},Gc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},B4e={};let H4e=class AZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},AZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===L7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const U4e=H4e;var W4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new U4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Wc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(jTe,null):x.createElement(HTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=W4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}z7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(K4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(G4e),className:v.string,style:v.object,validateStatus:v.oneOf(Y4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};z7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const Z4e=x.forwardRef((n,e)=>x.createElement(z7,Object.assign({},n,{forwardRef:e}))),Ri=Z4e;var X4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:IZ.PREFIX_OPTION};const RZ=Rw,vb=IZ.PREFIX,q4e=$7.SIZE,Q4e=$7.POSITION,J4e=$7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new k4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Hg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(RZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(Q4e),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(q4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(J4e),zIndex:v.number};Lw.Option=RZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const eEe=Lw,tEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class nEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var rEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new nEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=rEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(oEe),shape:v.oneOf(iEe),size:v.oneOf(aEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var sEe=4,lEe=.001,uEe=1e-7,cEe=10,xm=11,mb=1/(xm-1),dEe=typeof Float32Array=="function";function LZ(n,e){return 1-3*e+3*n}function kZ(n,e){return 3*e-6*n}function NZ(n){return 3*n}function OS(n,e,t){return((LZ(e,t)*n+kZ(e,t))*n+NZ(e))*n}function FZ(n,e,t){return 3*LZ(e,t)*n*n+2*kZ(e,t)*n+NZ(e)}function fEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>uEe&&++s=lEe?hEe(l,h,e,r):p===0?h:fEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(gEe);function Rk(n,e,t){return Math.min(Math.max(n,e),t)}function vEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Rk(n,1,10),r=Rk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Lk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=vEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class mEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function j1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function yEe(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(j1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function kk(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(j1(e)){const r=Lk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},SEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(j1(n)){const r=Lk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const Rv=()=>Date.now(),_u=1e3/60;let $Z=class extends mEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=CEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=bEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=Rv();if(yEe(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:B7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(TEe),type:v.oneOf(OEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(EEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var IEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};H7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);H7.elementType="Button";const Jt=H7;var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=DEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(AEe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const VZ={PREFIX:`${q}-card`},MEe={SHADOWS:["hover","always"],TYPE:["grid"]};var REe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Ug extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=kEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Ug.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf(NEe),shape:v.oneOf(FEe)};Ug.defaultProps={prefixCls:U7.PREFIX,size:"medium",shape:"circle"};const $Ee=Nw("avatar")(Ug),VEe=Nw("image")(Ug),jEe=Nw("title")(Ug),zEe=Nw("button")(Ug);class W7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}W7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};W7.defaultProps={prefixCls:U7.PREFIX,rows:4};var BEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===UEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=HEe.PREFIX;class G7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):e7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===Ld.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===Ld.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===Ld.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===Ld.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===Ld.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===Ld.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}G7.propTypes={wrap:v.bool,align:v.oneOf(Ld.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};G7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const zZ=G7;var WEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(kf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(zZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=WEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=LEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(MEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function GEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&h3e(n,e,t)>-1}var _3e=b3e;const Fs=Ie(_3e);var S3e=ww,C3e=1,w3e=4;function x3e(n){return S3e(n,C3e|w3e)}var T3e=x3e;const Ii=Ie(T3e);var E3e=bw,O3e=Jf,I3e=hK,P3e=ls,D3e=jy,A3e=Uc,M3e=Object.prototype,R3e=M3e.hasOwnProperty,L3e=I3e(function(n,e){if(D3e(e)||P3e(e)){O3e(e,A3e(e),n);return}for(var t in e)R3e.call(e,t)&&E3e(n,t,e[t])}),k3e=L3e;const N3e=Ie(k3e);var F3e=K7;function $3e(n,e){var t=n==null?0:n.length;return!!t&&F3e(n,e,0)>-1}var UZ=$3e;function V3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=G3e&&(i=W3e,o=!1,e=new j3e(e));e:for(;++ae}var POe=IOe,DOe=OOe,AOe=POe,MOe=Wy;function ROe(n){return n&&n.length?DOe(n,MOe,AOe):void 0}var LOe=ROe;const kOe=Ie(LOe);var l5=SK,NOe=NY,FOe=C7,$Oe=1/0,VOe=l5&&1/FOe(new l5([,-0]))[1]==$Oe?function(n){return new l5(n)}:NOe,jOe=VOe,zOe=_7,BOe=UZ,HOe=WZ,UOe=S7,WOe=jOe,GOe=C7,YOe=200;function KOe(n,e,t){var r=-1,a=BOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=HOe;else if(i>=YOe){var u=e?null:WOe(n);if(u)return GOe(u);o=!1,a=UOe,l=new zOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=KZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function eIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?KZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function tIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return eIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function kd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function nIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Z7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),nIe(JOe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function rIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=rIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Z7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=kOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Vk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function jk(n,e,t,r){const a=kd(n,r,t);return new Set($l(a,e,!1))}function aIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function ZZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function iIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function zk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function XZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Z7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Z7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Bk(n,e){return[...n].filter(r=>r in e)}function QZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const JZ={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},lr={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function oIe(n,e){return`${n}-${e}`}function sIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function lIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?oIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function eX(n){const e={};return lIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=lr.LEAF_ONLY_MERGE_TYPE:n?t=lr.AUTO_MERGE_VALUE_MERGE_TYPE:t=lr.NONE_MERGE_TYPE,t}class uIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=eX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;sIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=N3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===lr.LEAF_ONLY_MERGE_TYPE,m=p===lr.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return ZZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var cIe=ss,dIe=gi,fIe="[object Boolean]";function hIe(n){return n===!0||n===!1||dIe(n)&&cIe(n)==fIe}var pIe=hIe;const tX=Ie(pIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},gIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class vIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const mIe=vIe,X7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(gTe,null):e?x.createElement(fTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=X7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const yIe=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new mIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(yIe,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=X7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Nf=e0;class q7 extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},q7.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const bIe=q7;class Q7 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new bIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||gIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Nf,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Nf,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(X7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}Q7.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};Q7.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const J7=Q7;class RO extends Nf{}RO.Group=J7;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Gk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Yk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var TIe=150,EIe=function(e,t){return e};function nX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){_Ie(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Qd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Qd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Qd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Yk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Gk():0:C=w.scrollHeight>w.clientHeight?Gk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Yk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Wk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?EIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var OIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},IIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},PIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?rX(e,t,i,0,r):DIe(e,t,Math.max(0,i),r)},rX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},DIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},AIe=nX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Kk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=Kk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},RIe=MIe,Ut=JZ.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===lr.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},RIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const aX={PREFIX:`${q}-tag`},Wg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var LIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:oX[0],color:iX[0],closable:!1,type:sX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(oX),color:v.oneOf(iX),type:v.oneOf(sX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(kIe),"aria-label":v.string};const NIe={PREFIX:`${q}-tagInput`},Zk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},FIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(e7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=$Ie(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const jIe=VIe;function zIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Gg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function eA(n){return"nodeType"in n}function ja(n){var e,t;return n?Gg(n)?n:eA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function tA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Gg(n)?!1:n instanceof ja(n).HTMLElement}function lX(n){return n instanceof ja(n).SVGElement}function Yg(n){return n?Gg(n)?n.document:eA(n)?tA(n)?n:t0(n)||lX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function z1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function uX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=uX(1),B1=uX(-1);function HIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function UIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(UIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return HIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Xk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function WIe(n){return n.matches(Xk)?n:n.querySelector(Xk)}const GIe={display:"none"};function YIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:GIe},t)}function KIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function ZIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const cX=D.createContext(null);function XIe(n){const e=D.useContext(cX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function qIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const QIe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},JIe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function ePe(n){let{announcements:e=JIe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=QIe}=n;const{announce:i,announcement:o}=ZIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),XIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(YIe,{id:r,value:a.draggable}),x.createElement(KIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function dX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function nPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function fX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function rPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function qk(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function hX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function Qk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const aPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=Qk(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=dX(Qk(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(fX)},iPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=qk(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=qk(l),c=a.reduce((f,h,p)=>f+dX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(fX)};function oPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=oPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(rPe)};function lPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function pX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function uPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const cPe=uPe(1);function gX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function dPe(n,e,t){const r=gX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const fPe={ignoreTransform:!1};function Kg(n,e){e===void 0&&(e=fPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=dPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function Jk(n){return Kg(n,{ignoreTransform:!0})}function hPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function pPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function gPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(tA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||lX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&gPe(a,i)&&t.push(a),pPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function vX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Gg(n)?n:eA(n)?tA(n)||n===Yg(n).scrollingElement?window:t0(n)?n:null:null}function mX(n){return Gg(n)?n.scrollX:n.scrollLeft}function yX(n){return Gg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:mX(n),y:yX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function bX(n){return!Bw||!n?!1:n===document.scrollingElement}function _X(n){const e={x:0,y:0},t=bX(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const vPe={x:.2,y:.2};function mPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=vPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=_X(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function yPe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function SX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function bPe(n){return n.reduce((e,t)=>e+mX(t),0)}function _Pe(n){return n.reduce((e,t)=>e+yX(t),0)}function CX(n,e){if(e===void 0&&(e=Kg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);vX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SPe=[["x",["left","right"],bPe],["y",["top","bottom"],_Pe]];let nA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=SX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of SPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Km{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function CPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Yg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function eN(n){n.preventDefault()}function wPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const wX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},xPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class rA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Km(Yg(t)),this.windowListeners=new Km(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&CX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=wX,coordinateGetter:o=xPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=B1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=_X(g),T=yPe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(B1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}rA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=wX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function tN(n){return!!(n&&"distance"in n)}function nN(n){return!!(n&&"delay"in n)}class aA{constructor(e,t,r){var a;r===void 0&&(r=CPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Yg(o),this.documentListeners=new Km(this.document),this.listeners=new Km(r),this.windowListeners=new Km(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,eN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,eN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(nN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(tN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,wPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=B1(a,l);if(!r&&s){if(tN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return nN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const TPe={move:{name:"pointermove"},end:{name:"pointerup"}};class xX extends aA{constructor(e){const{event:t}=e,r=Yg(t.target);super(e,TPe,r)}}xX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const EPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class TX extends aA{constructor(e){super(e,EPe,Yg(e.event.target))}}TX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class EX extends aA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}EX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var Zm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Zm||(Zm={}));var H1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(H1||(H1={}));function OPe(n){let{acceleration:e,activator:t=Zm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=H1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=PPe({delta:d,disabled:!i}),[p,g]=BIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case Zm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Zm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===H1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=mPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const IPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function PPe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return IPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function DPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function APe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var U1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(U1||(U1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const rN=new Map;function MPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=z1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return rN;if(!y||y===rN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new nA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case U1.Always:return!1;case U1.BeforeDragging:return t;default:return!t}}}function iA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function RPe(n,e){return iA(n,e)}function LPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function kPe(n){return new nA(Kg(n),n)}function aN(n,e,t){e===void 0&&(e=kPe);const[r,a]=D.useReducer(s,null),i=LPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function NPe(n){const e=iA(n);return pX(n,e)}const iN=[];function FPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==iN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):iN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function $Pe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):SX(n):ts,[n,e])}function oN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?B1(n,t.current):ts}function VPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function jPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function OX(n){return D.useMemo(()=>n?hPe(n):null,[n])}const g5=[];function zPe(n,e){e===void 0&&(e=Kg);const[t]=n,r=OX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>bX(l)?r:new nA(e(l),l)):g5}}function IX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function BPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=IX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const HPe=[{sensor:xX,options:{}},{sensor:rA,options:{}}],UPe={current:{}},n2={draggable:{measure:Jk},droppable:{measure:Jk,strategy:U1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Kg}};class Xm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const WPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},PX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(PX),DX=D.createContext(WPe);function GPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xm}}}function YPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Xm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Xm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Xm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function KPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=WIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function AX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function ZPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function XPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=pX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=vX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const qPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=HPe,collisionDetection:d=sPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(YPe,void 0,GPe),[m,y]=g,[b,_]=qIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:UPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=z1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=ZPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=MPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=DPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=qc(),re=RPe(se,Y.draggable.measure);XPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=aN(se,Y.draggable.measure,re),oe=aN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=BPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Mt=!!(Ce.nodeRef.current&&Ce.rect),$n=NPe(Mt?null:te),Vn=OX(Je?ja(Je):null),on=FPe(w?We??se:null),wn=zPe(on),mi=AX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=$Pe(on),mh=oN(vu),yh=oN(vu,[te]),fs=jp(mi,mh),qr=Ve?cPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=hX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Mt?mi:jp(mi,yh),ba=lPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:or,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new or({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Qc=L.current;if(Qc==null)return;const ut=E.get(Qc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Qc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Qc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(or,zn)=>{const Bn=or.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(or,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(or,jn))},[E,hl]),pl=APe(c,mu);VPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:or,collisions:zn,over:Bn}=pe.current;if(!jn||!or)return;const pr={active:jn,activatorEvent:or,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:or,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:or,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),OPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const Xc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(cX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(DX.Provider,{value:Xc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(KPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(ePe,{...s,hiddenTextDescribedById:U}));function qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,or=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:or}:{enabled:or}}}),QPe=D.createContext(null),sN="button",JPe="Droppable";function eDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(JPe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=sN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:QPe),[b,_]=PS(),[S,C]=PS(),w=jPe(o,e),T=z1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===sN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function MX(){return D.useContext(DX)}const tDe="Droppable",nDe={timeout:25};function rDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(tDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...nDe,...a},y=z1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=z1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function aDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const iDe={x:0,y:0,scaleX:1,scaleY:1};function oDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:PX},x.createElement(Yw.Provider,{value:iDe},e))}const sDe={position:"fixed",touchAction:"none"},lDe=n=>Uw(n)?"transform 250ms ease":void 0,uDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=lDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...sDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?nPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),cDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},dDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},fDe={duration:250,easing:"ease",keyframes:dDe,sideEffects:cDe({styles:{active:{opacity:"0"}}})};function hDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=IX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=gX(c);if(!d)return;const f=typeof e=="function"?e:pDe(e);return CX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function pDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...fDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let lN=0;function gDe(n){return D.useMemo(()=>{if(n!=null)return lN++,lN},[n])}const vDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=MX(),w=D.useContext(Yw),T=gDe(d==null?void 0:d.id),E=AX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=iA(f),I=hDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(oDe,null,x.createElement(aDe,{animation:I},d&&T?x.createElement(uDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function RX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function mDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function yDe(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=RX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},LX="Sortable",kX=x.createContext({activeIndex:-1,containerId:LX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oA,disabled:{draggable:!1,droppable:!1}});function _De(n){let{children:e,id:t,items:r,strategy:a=oA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=MX(),d=r0(LX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!yDe(h,y.current),_=m!==-1&&g===-1||b,S=bDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:mDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(kX.Provider,{value:C},e)}const SDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return RX(t,r,a).indexOf(e)},CDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},wDe={duration:200,easing:"ease"},NX="transform",xDe=Dc.Transition.toString({property:NX,duration:0,easing:"linear"}),TDe={roleDescription:"sortable"};function EDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Kg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function ODe(n){let{animateLayoutChanges:e=CDe,attributes:t,disabled:r,data:a,getNewIndex:i=SDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=wDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(kX),_=IDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=rDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=eDe({id:o,data:C,attributes:{...TDe,...t},disabled:_.draggable}),G=zIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=EDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return xDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:NX})}}function IDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const PDe=[wt.Down,wt.Right,wt.Up,wt.Left],DDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(PDe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=FX(d,f),b=ADe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:B1(S,_)}}}};function FX(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function ADe(n,e){return!RS(n)||!RS(e)||!FX(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(qPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:H1.ReversedTreeOrder}},x.createElement(_De,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement(NDe,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(vDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function NDe(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=ODe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var FDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(o5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new jIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return e7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Wc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(kDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:$De,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=FDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}sA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Zk.SIZE_SET),validateStatus:v.oneOf(Zk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};sA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const lA=sA,pt=JZ.PREFIX,VDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===lr.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===lr.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,lr.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===lr.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Hg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Wc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:VDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new uIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=eX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Wbe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=QZ(c));const C=MO(l,s)===lr.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===lr.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(lA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,lr.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(lr.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(lr.VALIDATE_STATUS),showNext:v.oneOf([lr.SHOW_NEXT_BY_CLICK,lr.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(Lf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:lr.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const jDe=Kw;class zDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const BDe=zDe,uN={PREFIX:`${q}-collapsible`};class Zg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=Zg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new BDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${uN.PREFIX}-wrapper`,{[`${uN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}Zg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};Zg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};Zg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const $X=Zg;var HDe=IK;function UDe(n,e){return n==null?!0:HDe(n,e)}var WDe=UDe;const $O=Ie(WDe);var GDe=Xf,YDe=mw,KDe=Tr,ZDe=Mg,XDe=HY,qDe=qf,QDe=hw;function JDe(n){return KDe(n)?GDe(n,qDe):ZDe(n)?[n]:YDe(XDe(QDe(n)))}var e6e=JDe;const W1=Ie(e6e),cN=n=>{const e=W1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function t6e(n){if(oa(n)){const e=HZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function uA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||t6e(t))&&$O(n,e),uA(n,e.slice(0,e.length-1))}function n6e(n){return HZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=W1(e);t=t.slice(0,t.length-1),uA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(cN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=W1(e);a=a.slice(0,a.length-1),uA(n,a)}else!cN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function VX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const r6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},r6e),a6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:Rg,POSITION_SET:pf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},a6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var i6e=ss,o6e=gi,s6e="[object Date]";function l6e(n){return o6e(n)&&i6e(n)==s6e}var u6e=l6e,c6e=u6e,d6e=Qf,dN=Hy,fN=dN&&dN.isDate,f6e=fN?d6e(fN):c6e,h6e=f6e;const hN=Ie(h6e);function Vl(n){return typeof n=="string"}function pN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return KCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return rZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return rZ(i,o)&&Gwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return O7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function p6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return p6e(n)&&yo(new Date(n))}const jX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},g6e=n=>jX;function Zu(n){return n&&jX[n]}const v6e=g6e,m6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},y6e=m6e,b6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=b6e;var jO={exports:{}},zO={exports:{}},zX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(zX);var Fn=zX.exports,BO={exports:{}},HO={exports:{}},BX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var HX=BX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var _6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(HX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(_6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var S6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var C6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var w6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var x6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var UX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(UX),a=t(cA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var T6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(cA),i=t(T6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var E6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=O6e;nh.setDefaultOptions=I6e;var WX={};function O6e(){return WX}function I6e(n){WX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var dA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var GX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(GX),a=t(za),i=t(dA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var P6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(dA),i=t(P6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var D6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var A6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(x6e),a=t(E6e),i=t(UX),o=t(D6e),s=t(GX),l=t(YX),u=t(A6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var M6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var R6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var KX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=N6e;i0.isProtectedWeekYearToken=F6e;i0.throwProtectedError=$6e;var L6e=["D","DD"],k6e=["YY","YYYY"];function N6e(n){return L6e.indexOf(n)!==-1}function F6e(n){return k6e.indexOf(n)!==-1}function $6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var V6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var j6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(j6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var z6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var B6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var H6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(H6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var U6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var G6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a=t(G6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Y6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(V6e),a=t(z6e),i=t(B6e),o=t(U6e),s=t(Y6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var K6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(K6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var Z6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(S6e),a=t(w6e),i=t(il),o=t(M6e),s=t(R6e),l=t(KX),u=i0,c=t(th),d=t(za),f=nh,h=t(Z6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Mt=Ve[0];if(Mt==="p"||Mt==="P"){var $n=s.default[Mt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Mt=Ve[0];if(Mt==="'")return S(Ve);var $n=o.default[Mt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Mt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Mt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var X6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var q6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var Q6e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var ZX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(Q6e),r=a(ZX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(q6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var J6e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var XX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(KX),a=o(o0),i=o(XX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(X6e),r=i(J6e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var qX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var e7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(e7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var QX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var JX=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(QX),r=i(qX),a=i(JX);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var t7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var n7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(QX),r=s(Zw),a=s(XX),i=s(o0),o=s(ZX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var r7e=MI.exports,eq={format:qX,formatInTimeZone:t7e,getTimezoneOffset:n7e,toDate:Zw,utcToZonedTime:JX,zonedTimeToUtc:r7e};const a7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],gN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},i7e=/([\-\+]{1})(\d{2})\:(\d{2})/,tq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(i7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in gN){const r=gN[n];if(o7e(r))return r}const t=a7e.find(r=>r[0]===n);return t&&t[1][0]}},vN={};function o7e(n){if(vN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),vN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>eq.utcToZonedTime(n,tq(e),t),zp=(n,e,t)=>eq.zonedTimeToUtc(n,tq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=uZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class s7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Gc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Ok(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function nq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const mN="Enter",l7e="Tab";let u7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===mN&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===mN&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===l7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=nq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function yN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function bN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var c7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Wc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(yN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(bN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(yN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(bN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=c7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(pZ,{"aria-hidden":!0}),U=x.createElement(rTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function rq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function d7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=nZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=YCe(n),s=USe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=d7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},h7e=f7e,_N={month:Md,year:HSe},p7e={prevMonth:lxe,nextMonth:Ku,prevYear:uxe,nextYear:bS};class g7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Md(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Md(c,r.pickerDate))>0,f=Math.abs(Md(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Md(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Md(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return _N[e]&&_N[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=p7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=dZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;O7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Md(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||v6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=rq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const SN=Ge.NAVIGATION;class fA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:SN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(vZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(R7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${SN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}fA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};fA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const v7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=m7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const b7e=Ge.PREFIX;class hA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new y7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=pN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&pN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${b7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}hA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};hA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,weeksRowNum:0};const wb="time",m5="timeRange",_7e=" ~ ",S7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:_7e,DEFAULT_MULTIPLE_SEPARATOR:S7e,SIZE:Gc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:Rg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},C7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var w7e=lK,x7e=kK,T7e=Qy,E7e=9007199254740991,y5=4294967295,O7e=Math.min;function I7e(n,e){if(n=T7e(n),n<1||n>E7e)return[];var t=y5,r=O7e(n,y5);e=x7e(e),n-=y5;for(var a=w7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var jAe=VAe,zAe=jAe,BAe=sq,HAe=zAe(BAe),UAe=HAe;const qs=Ie(UAe);var WAe=y7,GAe=Cw,CN=Qy;function YAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&GAe(n,e,t)?(e=0,t=r):(e=e==null?0:CN(e),t=t===void 0?r:CN(t)),WAe(n,e,t)):[]}var KAe=YAe;const o2=Ie(KAe);let ZAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&Ot(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(Ot(e)&&Ot(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(Ot(e)&&Ot(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(Ot(t)&&Ot(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(Ot(t)&&Ot(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const XAe=(n,e,t)=>{const r=new $Z({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},qAe=XAe,wN=1e3/60,xN=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(Ot(r)&&Ot(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(Ot(r)&&Ot(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,Ot(r)&&Ot(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");G1(o,l=>{l.className=l.className&&l.className.replace(s," "),xN.test(l.className)&&(l.className="")}),r.className&&!xN.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=qAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,Ot(r)&&Ot(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new ZAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},wN),this.debouncedSelect=J6((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},wN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(Ot(e)&&Ot(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(C7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class QAe extends ze{}var JAe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/TN),10)*TN-8*uq)}}const t9e=e9e;class gA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new t9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(lq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}gA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};gA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=gA;class n9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=fZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const EN=`${q}-datepicker`;class vA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:y6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new n9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(dZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=fZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(lq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${EN}-yearmonth-header`,u=`${EN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(R7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}vA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};vA.defaultProps={disabledDate:F1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const cq=vA,yi=Ge.PREFIX;class mA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=nq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new g7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(fA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(hA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&O7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(cq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(pZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}mA.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};mA.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:r9e}=kf;class yA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(r9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}yA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};yA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const a9e=yA;function i9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var o9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(i9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(hN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];hN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(cq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new s7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(mA,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(a9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Hg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=o9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Y1.contextType=Fr;Y1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(pf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Y1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:F1,disabledTime:F1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const s9e=VX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Y1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Y1),dq={PREFIX:`${q}-descriptions`},ON={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},l9e=x.createContext(null),bA=l9e;var u9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ap7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(bA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=bA;s0.propTypes={align:v.oneOf(ON.ALIGN_SET),row:v.bool,size:v.oneOf(ON.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const d9e=s0,f9e={PREFIX:`${q}-empty`};var h9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=h9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,td,{[`${td}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${td}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${td}-content`},o?x.createElement(kf.Title,Object.assign({},m,{className:`${td}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${td}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${td}-footer`,"x-semi-prop":"children"},l):null))}}fq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},DN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function p9e(n){return n!==null&&typeof n=="object"}function Ff(n){return p9e(n)&&typeof n.then=="function"}class g9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);Ff(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);Ff(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class _A extends ze{constructor(e){super(Object.assign(Object.assign({},_A.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var v9e=GZ,m9e=Sw,y9e=f7,b9e=m9e(function(n,e){return y9e(n)?v9e(n,e):[]}),_9e=b9e;const S9e=Ie(_9e);class qm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=S9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=qm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=qm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!Ot(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=qm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(kf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new _A(this.adapter),this.dialogId=`dialog-${C9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var w9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=w9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},hq=x9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;T9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(hq,Object.assign({},a,{afterClose:o}))},O9e=x.forwardRef(E9e);let AN=0;function I9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function P9e(){const[n,e]=I9e();function t(r){return function(i){AN+=1;const o=x.createRef();let s;const l=x.createElement(O9e,{key:`semi-modal-${AN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(pq),success:t(gq),error:t(mq),warning:t(vq),confirm:t(yq)},x.createElement(x.Fragment,null,n)]}var D9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=D9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(HK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new g9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=SSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(DN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(DN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=P9e;ol.info=function(n){return l0(pq(n))};ol.success=function(n){return l0(gq(n))};ol.error=function(n){return l0(mq(n))};ol.warning=function(n){return l0(vq(n))};ol.confirm=function(n){return l0(yq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},MN={SPACING:4,NESTED_SPACING:2};class A9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&K2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&Z2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class M9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&eSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=Q2e(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=J2e(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":X2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":q2e(this.menuItemNodes,r),Ra(e);break;default:Y2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const R9e=x.createContext({level:0}),hg=R9e;var L9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}SA.propTypes={children:v.node,className:v.string,style:v.object};SA.contextType=hg;const N9e=SA,nd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${nd}-item`]:!0,[`${nd}-item-disabled`]:t,[`${nd}-item-hover`]:d,[`${nd}-item-withTick`]:h,[`${nd}-item-${o}`]:o,[`${nd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${nd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const F9e=d0,$9e=c0.PREFIX,bq=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${$9e}-divider`,t),style:e})};bq.propTypes={style:v.object,className:v.string};const V9e=bq,RN=c0.PREFIX;class CA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${RN}-title`]:!0,[`${RN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}CA.propTypes={children:v.node,className:v.string,style:v.object};CA.contextType=hg;const j9e=CA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new A9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:MN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=MN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=N9e;Di.Item=F9e;Di.Divider=V9e;Di.Title=j9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(z9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(B9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,_q={PREFIX:`${q}`};var H9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ajK(kN[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Sq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:_q.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var U9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Sq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:_q.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},W9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},G9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),Cq=G9e;var Y9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),Z9e=W9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=K9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(NN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>jK(NN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Y9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(Z9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=Cq;f0.elementType="Layout.Sider";const X9e=f0;var wq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=wq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const Q9e=wA("Header")(h0),J9e=wA("Footer")(h0),e8e=wA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=wq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(Cq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=Q9e;jl.Footer=J9e;jl.Content=e8e;jl.Sider=X9e;const tu={PREFIX:`${q}-form`},Tm={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var FN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}xA.propTypes={className:v.string,children:v.node,size:v.oneOf(t8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};xA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const $N={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},VN=n=>{Object.keys($N).forEach(e=>{n.style.setProperty(e,$N[e],"important")})},jN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function n8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),VN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),VN(bi),bi.value=e;let l=jN(bi,n);bi.value="x";const u=jN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const r8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],a8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,r8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},i8e=a8e;class TA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},TA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=i8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=n8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var o8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new TA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Wc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=o8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}EA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};EA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const s8e=x.forwardRef((n,e)=>x.createElement(EA,Object.assign({},n,{forwardRef:e}))),l8e=s8e;var u8e=PZ;function c8e(n){return u8e(n)&&n!=+n}var d8e=c8e;const f8e=Ie(d8e),h8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},p8e=h8e,g8e=Object.assign({},Mw),Jd=Object.assign(Object.assign({},B4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),v8e=Object.assign({},Gc);function m8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function zN(n,e){return m8e(n,-e)}class y8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||Jd.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||Jd.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===Jd.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(zN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(zN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const b8e=y8e;var _8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(xTe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(Lf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new b8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!p8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else f8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=_8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:g8e.PREFIX,pressInterval:Jd.DEFAULT_PRESS_TIMEOUT,pressTimeout:Jd.DEFAULT_PRESS_TIMEOUT,shiftStep:Jd.DEFAULT_SHIFT_STEP,size:v8e.DEFAULT_SIZE,step:Jd.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const xq=VX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),BN="horizontal",HN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[HN,BN],MODE_VERTICAL:HN,MODE_HORIZONTAL:BN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},UN={open:"chevron_up",closed:"chevron_down"};let S8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},UN):this.toggleIcon=Object.assign({},UN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new S8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const WN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},GN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class C8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?WN(i,t):GN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?WN(this._adapter.getOpenKeys(),r):GN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class w8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const x8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),qg=x8e,Sa=`${Wo.PREFIX}-item`;class Qg extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new w8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}Qg.contextType=qg;Qg.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};Qg.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new C8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(Lf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(Lf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement($X,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(Qg,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(qg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=qg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function T8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(A5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(T8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=qg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=qg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var E8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function KN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:O8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return O8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:YN(this,"selectedKeys"),removeSelectedKeys:KN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:YN(this,"openKeys"),removeOpenKeys:KN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(Qg,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=E8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(qg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=Qg;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,I8e={PREFIX:q+"-overflow-list"},ZN={COLLAPSE:"collapse",SCROLL:"scroll"},XN={START:"start",END:"end"},P8e={NONE:0,GROW:1,SHRINK:2},vf={BOUNDARY_SET:Object.values(XN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(ZN),MODE_MAP:ZN,BOUNDARY_MAP:XN,OVERFLOW_DIR:P8e},qN={MINIMUM_HTML_ELEMENT_WIDTH:4};class OA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&Ot(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}OA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};OA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const D8e=vf.BOUNDARY_MAP;class A8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===D8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const M8e=A8e,kv=I8e.PREFIX,x5=vf.BOUNDARY_MAP,QN=vf.OVERFLOW_DIR,Nv=vf.MODE_MAP;class IA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===Nv.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(gf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${kv}-overflow`},g))}const h=l===Nv.SCROLL?[f[0],x.createElement("div",{className:$(a,`${kv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${kv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(gf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${kv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${kv}`,r),style:Object.assign(Object.assign({},o),l===Nv.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:QN.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new M8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=QN.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===Nv.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/qN.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===Nv.SCROLL?x.createElement(OA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(gf,{onResize:this.resize},e)}}IA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};IA.propTypes={className:v.string,collapseFrom:v.oneOf(vf.BOUNDARY_SET),direction:v.oneOf(vf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(vf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const R8e=IA,L8e={PREFIX:`${q}-page`},PA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class k8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=PA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const N8e=k8e;var JN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=JN(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===L7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const DA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:Rg},Tq={LIST_HEIGHT:270},Fv=aX.PREFIX,Eq=Wg.TAG_SIZE,$8e=Wg.AVATAR_SHAPE;class K1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Fv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Fv}-group`]:!0,[`${Fv}-group-max`]:r,[`${Fv}-group-small`]:a==="small",[`${Fv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}K1.defaultProps={style:{},className:"",size:Eq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};K1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Eq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf($8e)};var V8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},j8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=eF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=V8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,eF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},z8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Oq=z8e;var tF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:DA.PREFIX_OPTION};const l2=nx,B8e=DA.PREFIX_GROUP;class AA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[B8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}AA.isSelectOptionGroup=!0;AA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Iq=AA;var H8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:U8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new NK,this.foundation=new F8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=j8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>BK(i),getActiveElement:()=>zK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Rf(),this.selectID=this.props.id||Rf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Iq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Tq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Oq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(zZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(R8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(K1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}Jg.contextType=Fr;Jg.Option=l2;Jg.OptGroup=Iq;Jg.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};Jg.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Tq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(Lf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=Jg;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new N8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(R7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(W8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(xq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=nF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=nF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:PA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Pq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},G8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Y8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);Ff(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);Ff(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var K8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Y8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=K8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Pq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}ev.contextType=Fr;ev.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};ev.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Pq.PREFIX,zIndex:G8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const Z8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function X8e(n,e,t){try{const r=q8e(n,e,t);if(r.length!==0)return r}catch{return}}function q8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?Q8e({startColor:$v(o.color),endColor:$v(i.color),size:i.percent-o.percent-1},e-o.percent-1):$v(o.color)}}function Q8e(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},rF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=aF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=X8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=aF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}MA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};MA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const iF=MA,Dq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},J8e={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class eMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class tMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const rMe=x.createContext(null),RA=rMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new nMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Dq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(C5e,null):null))}}ax.contextType=RA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const aMe=ax;var iMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new tMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):tX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Rf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Rf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=iMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Dq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(aMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=RA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const Z1=v0;var oMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new eMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=oMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||J8e.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(Z1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(Z1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(RA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}LA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};LA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Aq=LA;class sMe extends Z1{}sMe.Group=Aq;const u2={PREFIX:`${q}-rating`},Mq={SIZE_SET:["default","small"]};class kA extends ze{constructor(e){super(Object.assign(Object.assign({},kA.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class NA extends ze{constructor(e){super(Object.assign(Object.assign({},NA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Rq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new NA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(L5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Rq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Rq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new kA(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=lMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Mq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},uMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),oF=uMe;class FA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},FA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=oF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=oF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new FA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=dMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=cMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}$A.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};$A.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class fMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},hMe={SIZE_MAP:["default","small","large"]};var pMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new fMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=pMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}VA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(hMe.SIZE_MAP),uncheckedText:v.node,id:v.string};VA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const Lq=VA;var gMe=b7,vMe=1/0;function mMe(n){var e=n==null?0:n.length;return e?gMe(n,vMe):[]}var yMe=mMe;const bMe=Ie(yMe);var _Me=Tw;function SMe(n,e){var t;return _Me(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var CMe=SMe,wMe=MK,xMe=Xg,TMe=CMe,EMe=Tr,OMe=Cw;function IMe(n,e,t){var r=EMe(n)?wMe:TMe;return t&&OMe(n,e,t)&&(e=void 0),r(n,xMe(e))}var PMe=IMe;const c2=Ie(PMe);var DMe=Tw;function AMe(n,e){var t=[];return DMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var MMe=AMe,RMe=gK,LMe=MMe,kMe=Xg,NMe=Tr;function FMe(n,e){var t=NMe(n)?RMe:LMe;return t(n,kMe(e))}var $Me=FMe;const pg=Ie($Me);var VMe=xw;function jMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?VMe(n,e,void 0,t):!!r}var zMe=jMe;const BMe=Ie(zMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,jA=0,zA=16,BA=16,HA=12,UA=12,WA=8,GA=8,ox=20,sF=ox+ah+jA+zA+BA,HMe=zA+BA+ah,lF=ox+ah+jA+HA+UA,UMe=HA+UA+ah,uF=ox+ah+jA+GA+WA,WMe=WA+GA+ah,sr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:zA,DEFAULT_CELL_PADDING_BOTTOM:BA,DEFAULT_CELL_MIDDLE_PADDING_TOP:HA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:UA,DEFAULT_CELL_SMALL_PADDING_TOP:WA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:GA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:sF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:HMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:lF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:UMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:uF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:WMe};class GMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function KMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Nq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function ZMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function XMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function YA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function qMe(n,e){return e!==null&&n.has(e)}function QMe(n,e){return e!==null&&n.has(e)}function dF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function JMe(n,e){return e===void 0&&(e="children"),H(n,e)}function Fq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function eRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?sr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:sr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=sr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(rRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function $q(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function tRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function nRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function jq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=jq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function rRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new kq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function aRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function zq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function KA(n){return n===!0||H(n,"showTitle",!0)}class iRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const oRe=iRe;function sRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&fF.call(s,l,1),fF.call(n,l,1);return n}var vRe=gRe,mRe=vRe;function yRe(n,e){return n&&n.length&&e&&e.length?mRe(n,e):n}var bRe=yRe,_Re=Sw,SRe=bRe,CRe=_Re(SRe),wRe=CRe;const xRe=Ie(wRe);function TRe(n){return new Set(n)}function ERe(n,e){if(n===e&&(e=TRe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function hF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=ERe(t,r);return Array.from(a)}return n}function ORe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Qd(t,Ke),this.memoizedFilterColumns=Qd(YA),this.memoizedFlattenFnsColumns=Qd(Bp),this.memoizedPagination=Qd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&$1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&$1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&xRe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(ORe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=sr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:sr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=hF(o,[...s,...r]),u=[...o]}else a=hF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=Vq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const pF=$S,Bq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Bq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const IRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=IRe,PRe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},DRe=PRe;class ARe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new ARe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Nf,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class ZA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}ZA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};ZA.defaultProps={prefixCls:pa.PREFIX};function Hq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Nf,{checked:m},y):x.createElement(Z1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Hq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function MRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(KTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Hq(u,l),o}class XA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(uTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(oTe,{size:o}))))}}XA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};XA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function qA(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(_Z,{size:"small"}):x.createElement(G5e,{size:"small"}):u=e&&!l?x.createElement(Lf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}qA.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};qA.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var RRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(G1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=$q(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=G1(t,(y,b)=>{const{column:_}=y,S=RRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=zq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function LRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return KA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class QA extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=LRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}QA.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};QA.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Uq=x.forwardRef((n,e)=>x.createElement(QA,Object.assign({},n,{forwardedRef:e})));class JA extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Uq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}JA.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};JA.defaultProps={handleBodyScroll:B};const kRe=x.forwardRef((n,e)=>x.createElement(JA,Object.assign({},n,{forwardedRef:e})));var NRe=oq,FRe=NRe("length"),$Re=FRe,VRe="\\ud800-\\udfff",jRe="\\u0300-\\u036f",zRe="\\ufe20-\\ufe2f",BRe="\\u20d0-\\u20ff",HRe=jRe+zRe+BRe,URe="\\ufe0e\\ufe0f",WRe="\\u200d",GRe=RegExp("["+WRe+VRe+HRe+URe+"]");function YRe(n){return GRe.test(n)}var e9=YRe,Wq="\\ud800-\\udfff",KRe="\\u0300-\\u036f",ZRe="\\ufe20-\\ufe2f",XRe="\\u20d0-\\u20ff",qRe=KRe+ZRe+XRe,QRe="\\ufe0e\\ufe0f",JRe="["+Wq+"]",zI="["+qRe+"]",BI="\\ud83c[\\udffb-\\udfff]",eLe="(?:"+zI+"|"+BI+")",Gq="[^"+Wq+"]",Yq="(?:\\ud83c[\\udde6-\\uddff]){2}",Kq="[\\ud800-\\udbff][\\udc00-\\udfff]",tLe="\\u200d",Zq=eLe+"?",Xq="["+QRe+"]?",nLe="(?:"+tLe+"(?:"+[Gq,Yq,Kq].join("|")+")"+Xq+Zq+")*",rLe=Xq+Zq+nLe,aLe="(?:"+[Gq+zI+"?",zI,Yq,Kq,JRe].join("|")+")",gF=RegExp(BI+"(?="+BI+")|"+aLe+rLe,"g");function iLe(n){for(var e=gF.lastIndex=0;gF.test(n);)++e;return e}var oLe=iLe,sLe=$Re,lLe=e9,uLe=oLe;function cLe(n){return lLe(n)?uLe(n):sLe(n)}var dLe=cLe,fLe=g7,hLe=jg,pLe=ls,gLe=s7,vLe=dLe,mLe="[object Map]",yLe="[object Set]";function bLe(n){if(n==null)return 0;if(pLe(n))return gLe(n)?vLe(n):n.length;var e=hLe(n);return e==mLe||e==yLe?n.size:fLe(n).length}var _Le=bLe;const Ob=Ie(_Le);var SLe=Y7,CLe=Xg,wLe=Qy,xLe=Math.max,TLe=Math.min;function ELe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=wLe(t),a=t<0?xLe(r+a,0):TLe(a,r-1)),SLe(n,CLe(e),a,!0)}var OLe=ELe;const ILe=Ie(OLe);class PLe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=tRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&$1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=ILe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=JMe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:Fq(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var DLe=ww,ALe=4;function MLe(n){return DLe(n,ALe)}var RLe=MLe;const LLe=Ie(RLe);let O5,I5;const vF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function kLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(vF).forEach(a=>{t.style[a]=vF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function qq(n){return typeof n=="number"?n-sr.DEFAULT_CELL_PADDING_LEFT-sr.DEFAULT_CELL_PADDING_RIGHT-sr.DEFAULT_CELL_BORDER_WIDTH_LEFT-sr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-kLe("vertical"):void 0}function mF(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const Qm=new kq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:LLe;return G1(e,o=>{o=Object.assign({},o);const s=cF(o,t),l=s!=null&&qs(n,u=>cF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function NLe(){return!0}var FLe=NLe;const $Le=Ie(FLe);function VLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new zLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=XMe(r),o=Nq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=zq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),yF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(KA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;yF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}X1.contextType=ih;X1.defaultProps={indent:0,indentSize:sr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};X1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var bF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new jLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=bF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!VLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(KMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Nq(O)&&!T)w.push(x.createElement(X1,{key:I,colIndex:I,isSection:d}));else if(!ZMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(X1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=bF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:$Le,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var BLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var HLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=HLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=YA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const _F=cx;var SF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=eRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=SF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=SF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||Qm.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(AIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(_F.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(_F,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>dF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:Fq(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=dF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:$1(w)||ke(T)||aRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Uq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},$1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new PLe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:qMe(c,g),disabled:QMe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}t9.contextType=ih;t9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const ULe=x.forwardRef(function(e,t){return x.createElement(t9,Object.assign({},e,{forwardedRef:t}))});var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=Vq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",sr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;YMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?bMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&Qm.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(qA,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=KA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(XA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(MRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(ZA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(kRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(ULe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new pF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=pF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=p7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:mF(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new oRe({hoveredRowKey:null}),this.debouncedWindowResize=J6(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&Qm.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=jq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:mF(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=WLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(DRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Bq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:sr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const n9=dx;var GLe=y7;function YLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:GLe(n,e,t)}var KLe=YLe,ZLe=ss,XLe=gi,qLe="[object RegExp]";function QLe(n){return XLe(n)&&ZLe(n)==qLe}var JLe=QLe,eke=JLe,tke=Qf,CF=Hy,wF=CF&&CF.isRegExp,nke=wF?tke(wF):eke,rke=nke;function ake(n){return n.split("")}var ike=ake,Qq="\\ud800-\\udfff",oke="\\u0300-\\u036f",ske="\\ufe20-\\ufe2f",lke="\\u20d0-\\u20ff",uke=oke+ske+lke,cke="\\ufe0e\\ufe0f",dke="["+Qq+"]",UI="["+uke+"]",WI="\\ud83c[\\udffb-\\udfff]",fke="(?:"+UI+"|"+WI+")",Jq="[^"+Qq+"]",eQ="(?:\\ud83c[\\udde6-\\uddff]){2}",tQ="[\\ud800-\\udbff][\\udc00-\\udfff]",hke="\\u200d",nQ=fke+"?",rQ="["+cke+"]?",pke="(?:"+hke+"(?:"+[Jq,eQ,tQ].join("|")+")"+rQ+nQ+")*",gke=rQ+nQ+pke,vke="(?:"+[Jq+UI+"?",UI,eQ,tQ,dke].join("|")+")",mke=RegExp(WI+"(?="+WI+")|"+vke+gke,"g");function yke(n){return n.match(mke)||[]}var bke=yke,_ke=ike,Ske=e9,Cke=bke;function wke(n){return Ske(n)?Cke(n):_ke(n)}var xke=wke,Tke=WY,Eke=KLe,Oke=e9,Ike=Cw,Pke=rke,Dke=xke,Ake=hw,Mke=4294967295;function Rke(n,e,t){return t&&typeof t!="number"&&Ike(n,e,t)&&(e=t=void 0),t=t===void 0?Mke:t>>>0,t?(n=Ake(n),n&&(typeof e=="string"||e!=null&&!Pke(e))&&(e=Tke(e),!e&&Oke(n))?Eke(Dke(n),0,t):n.split(e,t)):[]}var Lke=Rke;const Jm=Ie(Lke);function kke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function Nke(n){const e=Jm(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var r9={exports:{}},m0={},fx={exports:{}},aQ={};function iQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function aNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function iNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&cQ(n.body,"react-draggable-transparent-selection")}function oNe(n){if(n)try{if(n.body&&dQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function cQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function dQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=uNe;ll.canDragY=cNe;ll.createCoreData=fNe;ll.createDraggableData=hNe;ll.getBoundPosition=sNe;ll.getControlPosition=dNe;ll.snapToGrid=lNe;var Ci=sl,Tp=Zn;function sNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:pNe(r);const a=i9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function lNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function uNe(n){return n.props.axis==="both"||n.props.axis==="x"}function cNe(n){return n.props.axis==="both"||n.props.axis==="y"}function dNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=i9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function fNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=i9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function hNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function pNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function i9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=gNe;function gNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=mNe(D),Wa=o9($y),vNe=o9(Ti),ra=Zn,wu=ll,A5=sl,Vv=o9(px);function o9(n){return n&&n.__esModule?n:{default:n}}function fQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(fQ=function(r){return r?t:e})(n)}function mNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=fQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=yNe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function yNe(n){var e=bNe(n,"string");return typeof e=="symbol"?e:String(e)}function bNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,Vv.default)("DraggableCore: handleDragStart: %j",l),(0,Vv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,Vv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,Vv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,Vv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:vNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c($ke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(aQ);const{default:hQ,DraggableCore:_Ne}=aQ;fx.exports=hQ;fx.exports.default=hQ;fx.exports.DraggableCore=_Ne;var SNe=fx.exports,s9={};s9.__esModule=!0;s9.cloneElement=ONe;var CNe=wNe(D);function wNe(n){return n&&n.__esModule?n:{default:n}}function EF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function OF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function IF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return jv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return jv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=kNe(i,RNe);return(0,ANe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=jv.createRef();return jv.createElement(DNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(jv.Component);m0.default=l9;l9.propTypes=MNe.resizableProps;l9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=UNe(D),jNe=gQ($y),zNe=gQ(m0),BNe=y0,HNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function gQ(n){return n&&n.__esModule?n:{default:n}}function vQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(vQ=function(a){return a?t:e})(n)}function UNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=vQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function ZNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var mQ=function(n){ZNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(XNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const JNe=QNe;var eFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=eFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:sr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",sr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=nRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:JNe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:kke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Nke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(n9,Object.assign({},i,{columns:w,components:g,ref:e}))},nFe=x.forwardRef(tFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(nFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(n9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},n9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=uZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:M7;return Lt(n,e,{locale:t})},rFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},aFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},iFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],oFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=GCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=Jm(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!oFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?Jm(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=Jm(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const lFe=sFe;class uFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const cFe=uFe;var dFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new cFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=dFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(gZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}u9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};u9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const fFe=u9,DF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},hFe={},pFe=[v.string,v.number,v.instanceOf(Date)],AF=v.oneOfType([...pFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var gFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new lFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=gFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Hg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(fFe,Object.assign({},re)))))}}tv.contextType=Fr;tv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:AF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:AF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(DF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},DF),{inputStyle:v.object,preventScroll:v.bool});tv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},hFe);class c9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(tv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}c9.propTypes=tv.propTypes;c9.defaultProps=tv.defaultProps;class d9 extends ze{constructor(e){super(Object.assign(Object.assign({},d9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},vFe={duration:3};class f9 extends ze{constructor(e){super(Object.assign(Object.assign({},f9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new f9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(bZ,null),info:x.createElement(yZ,null),error:x.createElement(V1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:vFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const yQ=yx;var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=mFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(yQ,Object.assign({},r,{close:o})):null},bFe=x.forwardRef(yFe),zv={motion:!0,zIndex:1010,duration:3};function _Fe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function SFe(){const[n,e]=_Fe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(bFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},zv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const CFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new d9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(yQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class wFe{static create(e){const t=CFe();return t.useToast=SFe,e&&t.config(e),t}}const Es=wFe.create(),bQ={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function xFe(n){return VK(n,e=>{if(p7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const TFe=bQ.PREFIX;class h9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(gf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${TFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}h9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};h9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const EFe=x.createContext(null),p9=EFe;var OFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?w7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=J6(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(_Z,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Nf,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(e5e,{className:`${rn}-item-icon`}):x.createElement(qTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=OFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=p9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var IFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement($X,Object.assign({},r,{isOpen:a}),t)}const MF=n=>n.key;class _Q extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=MF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=MF(l[0]);return x.createElement(PFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}_Q.contextType=p9;const SQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:Rg};class DFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return iIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return ZZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?XZ(e,r,a,i):qZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?zk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?zk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var AFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(K1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Wc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=AFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Hg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(lA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(I5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(_Q,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(h9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Oq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(p9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(J7,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:MFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new DFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=tIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Vk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=aIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Vk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=jk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=jk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=kd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Bk(t.selectedKeys,u));else{let m;if(o("value")?m=kd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=kd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=kd(Su(e.value,l,i)||[],c,g):m=Bk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=QZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?xFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(Lf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const RFe=bx,RF=`${q}-upload`,LF="picture",kF="list",LFe=.95,CQ={PREFIX:RF,LIST:`${RF}-list`},NF="auto",FF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:LF,FILE_LIST_DEFAULT:kF,LIST_TYPE:[LF,kF],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:NF,TRIGGER_CUSTOM:FF,UPLOAD_TRIGGER:[NF,FF],VALIDATE_STATUS:Rg,PROMPT_POSITION:["left","right","bottom"]},kFe={PROGRESS_COEFFICIENT:LFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function NFe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function FFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function $Fe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield FFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var VFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:$F,FILE_STATUS_SUCCESS:jFe,FILE_STATUS_UPLOAD_FAIL:zFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:VF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:BFe,TRIGGER_AUTO:Ab}=_t;class HFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?$F:VF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===VF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&Ff(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*kFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=$F,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=jFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=zFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(BFe)}handleDirectoryDrop(e){return VFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield $Fe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return NFe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const UFe=HFe;class WFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const GFe=WFe,un=CQ.PREFIX,YFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},KFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class g9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new GFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(V1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(YFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(T5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(KFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Wc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(iF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(ZFe,null),className:_})))),S?x.createElement(iF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}g9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};g9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const wQ=g9;var XFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(wQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(Z5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new UFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=XFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=wQ;const qFe=_x;class v9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(GK.Provider,{value:t},e)}}v9.propTypes={locale:v.object,children:v.node};v9.defaultProps={locale:OO};function ef(){return ef=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return JFe()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&q1(u,o.prototype),u},g2.apply(null,arguments)}function e$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!e$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),q1(a,r)},JI(n)}var t$e=/%[sdj%]/g,n$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function r$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||r$e(e)&&typeof n=="string"&&!n)}function a$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function jF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Em={integer:function(e){return Em.number(e)&&parseInt(e,10)===e},float:function(e){return Em.number(e)&&!Em.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Em.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function l$e(n,e,t,r,a){if(n.required&&e===void 0){xQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Em[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function u$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function c$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function d$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:xQ,whitespace:s$e,type:l$e,range:u$e,enum:c$e,pattern:d$e};function f$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function h$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var S$e="enum";function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[S$e](n,e,r,i,a)}t(i)}function w$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function T$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var e1={string:f$e,method:h$e,number:p$e,boolean:g$e,regexp:v$e,integer:m$e,float:y$e,array:b$e,object:_$e,enum:C$e,pattern:w$e,date:x$e,url:j5,hex:j5,email:j5,required:T$e,any:E$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var m9=tP();function _c(n){this.rules=null,this._messages=m9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=HF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function D$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function tf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>tf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function A$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Tm.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function M$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function R$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function L$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=O$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=D$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class k$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)Ff(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=W1(i),s=W1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);tf(i)||(t=!1)}):t=!!n6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;AL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);AL(r,t)}}}const y9=x.createContext({});y9.displayName="FormState";const TQ=x.createContext({});TQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const N$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(V1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(V1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var F$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;F$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Bv}-field`]:!0,[`${Bv}-slot`]:!0},u),g=$({[`${Bv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Bv}-field-main`]:!0,[`${Bv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},V$e=$$e,UF=tu.PREFIX;class EQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[UF+"-section"]:!0},t),o=UF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}EQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function OQ(){return D.useContext(y9)}function j$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function z$e(){return D.useContext(N$e)}var B$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=OQ(),r=e.map(a=>Ea(t.errors,a));return tf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class IQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=B$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(xA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(H$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}IQ.contextType=b0;const U$e=IQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=L$e(r),{options:G,shouldInject:Y}=R$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));OQ();const Q=j$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=M$e(L,Z.stopValidateWithError,!1),pe=A$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=z$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Mt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),tf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Mt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=P$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let Jc=ml.map(Cv=>Cv.message);Jc.length===1&&(Jc=Jc[0]),ba(Jc,tn),tf(Jc)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},Xc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):Ff(sn)?sn.then(vn=>{Hi.current===nn&&(tf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):tf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?Xc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let Cv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=Cv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let Cv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},Cv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),Jc=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?Jc:x.createElement(x.Fragment,null,ml,G0))},Qc=[...Object.values(or),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Qc]):Ha()};return t=D.forwardRef(t),t.displayName=I$e(n),t}const W$e=$r(Ri,{maintainCursor:!0}),G$e=$r(xq,{maintainCursor:!0}),Y$e=$r(l8e,{maintainCursor:!0}),b9=$r(g0);b9.Option=g0.Option;b9.OptGroup=g0.OptGroup;const K$e=$r(J7),Z$e=$r(Nf,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),X$e=$r(Aq,{valuePath:"target.value"}),q$e=$r(Z1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(s9e),J$e=$r(Lq,{valueKey:"checked"}),eVe=$r($A),tVe=$r(c9),nVe=$r(RFe),rVe=$r(jDe),aVe=$r(ix),iVe=$r(eEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),oVe=$r(qFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),sVe=$r(lA);var lVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!vk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!vk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new k$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=lVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(TQ.Provider,{value:this.formApi},x.createElement(y9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Tm.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Tm.LAYOUT),labelPosition:v.oneOf(Tm.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Tm.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=W$e;gn.TextArea=Y$e;gn.InputNumber=G$e;gn.Select=b9;gn.Checkbox=Z$e;gn.CheckboxGroup=K$e;gn.Radio=q$e;gn.RadioGroup=X$e;gn.DatePicker=Q$e;gn.TimePicker=tVe;gn.Switch=J$e;gn.Slider=eVe;gn.TreeSelect=nVe;gn.Cascader=rVe;gn.Rating=aVe;gn.AutoComplete=iVe;gn.Upload=oVe;gn.TagInput=sVe;gn.Slot=V$e;gn.ErrorMessage=_0;gn.InputGroup=U$e;gn.Label=Ys;gn.Section=EQ;const Ze=gn,uVe="_main_1w0iy_1",cVe="_login_1w0iy_8",dVe="_component66_1w0iy_20",fVe="_logo_1w0iy_28",hVe="_header_1w0iy_33",pVe="_title_1w0iy_41",gVe="_text_1w0iy_50",vVe="_form_1w0iy_59",mVe="_inputs_1w0iy_67",yVe="_button_1w0iy_75",bVe="_oauth_1w0iy_79",Ca={main:uVe,login:cVe,component66:dVe,logo:fVe,header:hVe,title:pVe,text:gVe,form:vVe,inputs:mVe,button:yVe,oauth:bVe,undefined:"_undefined_1w0iy_88"},PQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function DQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){DQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const _Ve={code:"en-US",dateFnsLocale:P7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},SVe=_Ve,AQ={en_US:PQ},WF=Object.keys(AQ),CVe={en_US:"en_US"},wVe={en_US:SVe},xVe="lang",MQ="en_US",ve=PQ,TVe=AQ[_9()];DQ(ve,TVe);function EVe(n){try{return localStorage.getItem(n)}catch{return null}}function OVe(){try{return navigator.language.toLowerCase()}catch{return MQ}}function _9(){const n=EVe(xVe);if(WF.includes(n??""))return n;const e=OVe();for(const t of WF)if(e.includes(t))return t;return MQ}function IVe(){return CVe[_9()]}function PVe(){return wVe[_9()]}var DVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const GF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(DVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},AVe=n=>n?GF(n):GF;var RQ={exports:{}},LQ={},kQ={exports:{}},NQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function MVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var RVe=typeof Object.is=="function"?Object.is:MVe,LVe=mg.useState,kVe=mg.useEffect,NVe=mg.useLayoutEffect,FVe=mg.useDebugValue;function $Ve(n,e){var t=e(),r=LVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return NVe(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),kVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),FVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!RVe(n,t)}catch{return!0}}function VVe(n,e){return e()}var jVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?VVe:$Ve;NQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:jVe;kQ.exports=NQ;var zVe=kQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Sx=D,BVe=zVe;function HVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var UVe=typeof Object.is=="function"?Object.is:HVe,WVe=BVe.useSyncExternalStore,GVe=Sx.useRef,YVe=Sx.useEffect,KVe=Sx.useMemo,ZVe=Sx.useDebugValue;LQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=GVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=KVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,UVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=WVe(n,i[0],i[1]);return YVe(function(){o.hasValue=!0,o.value=s},[s]),ZVe(s),s};RQ.exports=LQ;var XVe=RQ.exports;const qVe=Ie(XVe);var QVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:JVe}=qVe;function eje(n,e=n.getState,t){const r=JVe(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const YF=n=>{(QVe&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?AVe(n):n,t=(r,a)=>eje(e,r,a);return Object.assign(t,e),t},FQ=n=>n?YF(n):YF;var tje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function nje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const Q1=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return Q1(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return Q1(r)(t)}}}},rje=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=Q1(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},aje=(n,e)=>(t,r,a)=>{let i={storage:nje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return Q1(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},ije=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((tje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rje(n,e)):aje(n,e),$Q=ije;var S9=(n=>(n.Access="access-control",n.Config="app-config",n))(S9||{}),nv=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(nv||{});let G5=0;const $i=FQ()($Q((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,dje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:S9.Access,version:1,migrate(n,e){return n}}));var Nd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Nd||{});const KF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},VQ=FQ()($Q((n,e)=>({...KF,reset(){n(()=>({...KF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:S9.Config,version:1,migrate(n,e){return n}}));var oje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class sje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[oje.VITE_PROXY_PATH,e].join("")}}const Er=new sje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":IVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function lje(n){return Er.post("/login",n)}async function uje(n){return Er.post("/logout",n)}async function cje(n){return Er.post("/sso",n)}async function dje(){return Er.post("/userinfo",{})}async function fje(){return Er.post("/loginType",{})}function hje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{fje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{lje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{cje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const pje="_header_k9z2y_1",gje="_navigationHeaderLogo_k9z2y_10",vje="_dIV_k9z2y_14",mje="_semiIconsBell_k9z2y_20",yje="_avatar_k9z2y_24",bje="_sider_k9z2y_29",_je="_collapsed_k9z2y_34",Sje="_nav_k9z2y_10",Cje="_icon_k9z2y_52",wje="_content_k9z2y_57",xje="_userProfile_k9z2y_69",Tje="_banner_k9z2y_77",Eje="_frame4159_k9z2y_82",Oje="_name_k9z2y_91",Ije="_richardHendricks_k9z2y_97",Pje="_aRichardHendricks_k9z2y_104",Dje="_main_k9z2y_112",Aje="_descriptions_k9z2y_123",Mje="_frame4152_k9z2y_130",Rje="_semiIconsMapPin_k9z2y_136",Lje="_value_k9z2y_140",kje="_tags_k9z2y_147",Nje="_tag_k9z2y_147",Fje="_tag1_k9z2y_154",$je="_tag2_k9z2y_155",Rt={header:pje,navigationHeaderLogo:gje,dIV:vje,semiIconsBell:mje,avatar:yje,sider:bje,collapsed:_je,nav:Sje,icon:Cje,content:wje,userProfile:xje,banner:Tje,frame4159:Eje,name:Oje,richardHendricks:Ije,aRichardHendricks:Pje,main:Dje,descriptions:Aje,frame4152:Mje,semiIconsMapPin:Rje,value:Lje,tags:kje,tag:Nje,tag1:Fje,tag2:$je};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?Fd.worker=!0:typeof navigator>"u"?(Fd.node=!0,Fd.svgSupported=!0):rze(navigator.userAgent,Fd);function rze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=Fd;var C9=12,jQ="sans-serif",Ac=C9+"px "+jQ,aze=20,ize=100,oze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function sze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Dze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?QF(s,o):QF(o,s))}function YQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Aze=/([&<>"'])/g,Mze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Aze,function(e,t){return Mze[t]})}var Rze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],Lze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?e$(n,e,t):Lze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):e$(n,e,t),t}function e$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(YQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function P9(n){return n||window.event}function qi(n,e,t){if(e=P9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=kze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Rze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function kze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Nze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function t$(n){return n.which===2||n.which===3}var Fze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=n$(r)/n$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=$ze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function D9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function A9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function iv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function Vze(n){var e=wo();return D9(e,n),e}var jze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=jze;var Rb=Math.min,Lb=Math.max,ad=new Le,id=new Le,od=new Le,sd=new Le,Hv=new Le,Uv=new Le,zze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),A9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ad.x=od.x=t.x,ad.y=sd.y=t.y,id.x=sd.x=t.x+t.width,id.y=od.y=t.y+t.height,ad.transform(r),sd.transform(r),id.transform(r),od.transform(r),e.x=Rb(ad.x,id.x,od.x,sd.x),e.y=Rb(ad.y,id.y,od.y,sd.y);var l=Lb(ad.x,id.x,od.x,sd.x),u=Lb(ad.y,id.y,od.y,sd.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=zze;var KQ="silent";function Bze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Hze}}function Hze(){nu(this.event)}var Uze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Wv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Wze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),ZQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Wv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Uze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Tze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Wze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=XQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Wv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Bze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Wv(t,r);if(r$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Gze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?KQ:!0}return!1}function r$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Gze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==KQ)){e.target=o;break}}}function XQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Yze=ZQ;var qQ=32,Gv=7;function Kze(n){for(var e=0;n>=qQ;)e|=n&1,n>>=1;return n+e}function a$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Zze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function Xze(n,e){var t=Gv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Gv||T>=Gv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Gv||O>=Gv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),i$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Om=2,tp=4,o$=!1;function e4(){o$||(o$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Qze=qze;var QQ;QQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=QQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const JQ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,eJ=1e-4,l$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function u$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+l$*Math.sin(w)))/(3*o),O=(-s+T*(E-l$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function nJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(tJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function rJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=mf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function aJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ty(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function iJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=mf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var rBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:JQ[e]||M9(e)},n}();const aBe=rBe;var oJ=function(){function n(e){this.value=e}return n}(),iBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new oJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),oBe=function(){function n(e){this._list=new iBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new oJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=oBe;var c$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function sBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ny(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function yf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ny(parseFloat(e)/100):ny(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var sJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=sJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=sJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in c$)return yP(e,c$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=yf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:yf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=yf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=yf(n[1]),a=yf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function lBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ny(tc(o[3],s[3],l)),t}}function uBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ny(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function n1(n,e,t,r){var a=ki(n);if(n)return a=lBe(a),e!=null&&(a[0]=sBe(e)),t!=null&&(a[1]=yf(t)),r!=null&&(a[2]=yf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ny(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function ry(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var d$=1e-4;function nc(n){return n-d$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function cBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var dBe={left:"start",right:"end",center:"middle",middle:"middle"};function fBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function hBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function pBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function lJ(n){return n&&!!n.image}function gBe(n){return n&&!!n.svgElement}function R9(n){return lJ(n)||gBe(n)}function uJ(n){return n.type==="linear"}function cJ(n){return n.type==="radial"}function dJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function fJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function hJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var vBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=h$,l=t;if(ga(t)){var u=_Be(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ey(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Im)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),uJ(t)?s=wP:cJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===h$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:JQ[r]||M9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=p$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Yv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):mBe(b,h[a],p[a],y);else if(p$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Im?(ki(e[r],Yv),Vb(Yv,Yv,a,1),e[r]=S2(Yv)):t===C2?Vb(e[r],e[r],a,1):t===pJ&&f$(e[r],e[r],a,1)},n}(),L9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){T9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,r1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,r1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var CBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new L9(t,r.loop);return this.addAnimator(a),a},e}(To);const wBe=CBe;var xBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),g$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},v$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function TBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function EBe(n,e){return qi(n.dom,new OBe(n,e),!0)}function gJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var OBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;gJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){v$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){v$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentb$||n<-b$}var ud=[],Rh=[],u4=wo(),c4=Math.abs,RBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ld(this.rotation)||ld(this.x)||ld(this.y)||ld(this.scaleX-1)||ld(this.scaleY-1)||ld(this.skewX)||ld(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(y$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):y$(r),e&&(t?Bl(r,e,r):D9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ud);var r=ud[0]<0?-1:1,a=ud[1]<0?-1:1,i=((ud[0]-r)*t+r)/ud[0]||0,o=((ud[1]-a)*t+a)/ud[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),iv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){mJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),LBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},kBe=new $e(0,0,0,0),k9=function(){function n(e){this.id=HQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=kBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){T9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=r1(t[y]),FBe(t,r,y)}}var C=new L9(t,!1,!1,d?It(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const bJ=k9;var _J=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?UBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return WBe(n)}function WBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function wJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function GBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function YBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>CJ?r:Ln(r,t)}var x$=9007199254740991;function xJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-w$&&n=10&&e++,e}function TJ(n,e){var t=N9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function T$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var bHe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_He=jf(bHe),SHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return _He(this,e,t)},n}(),AP=new S0(50);function CHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function j9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,P$,P$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function P$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function $J(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?xHe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function xHe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=FJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=CHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=VJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var DHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function AHe(n){return PHe(n)?!!DHe[n]:!0}function VJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),bf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};bf[MP]=!0;var A$=["z","z2","invisible"],MHe=["invisible"],RHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%dd,a<0&&(a=a+dd),i=i%dd,i<0&&(i=i+dd),a>i&&!o?i+=dd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fd=[],hd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,pd=Math.cos,gd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Kv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function jJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Kv[0]=a,Kv[1]=i,jJ(Kv,o),a=Kv[0],i=Kv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=pd(i)*r+e,this._yi=gd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=Jze(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=tBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=pd(A)*I+E,l=gd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=pd(L)*I+E,o=gd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,fd),Rc(c,k,z,j,A,hd),e.bezierCurveTo(fd[1],hd[1],fd[2],hd[2],fd[3],hd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ty(u,L,N,A,fd),ty(c,k,z,A,hd),e.quadraticCurveTo(fd[1],hd[1],fd[2],hd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=pd(Z)*Y+U,l=gd(Z)*Q+G),u=pd(te)*Y+U,c=gd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=Zv);var f=Math.atan2(l,s);return f<0&&(f+=Zv),f>=r&&f<=a||f+Zv>=r&&f+Zv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,vd=Math.PI*2,jHe=1e-4;function zHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&BHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vd-1e-4){r=0,a=vd;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=vd,a+=vd);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=vd+g),(g>=r&&g<=a||g+vd>=r&&g+vd<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if($He(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=HHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(zJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(VHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=WHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!zHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function GHe(n,e,t){return BJ(n,0,!1,e,t)}function YHe(n,e,t,r){return BJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},bf),KHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),ZHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?MBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),YHe(s,l/u,t,r)))return!0}if(this.hasFill())return GHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(XHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);HJ.prototype.type="tspan";const iy=HJ;var qHe=_e({x:0,y:0},bf),QHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function JHe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var UJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=JHe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return QHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);UJ.prototype.type="image";const Xr=UJ;function eUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function WJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=rf(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=rf(i,s,!0))),n}}function GJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=rf(r,s,!0),n.y=rf(a,s,!0),n.width=Math.max(rf(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(rf(a+o,s,!1)-n.y,o===0?0:1)),n}}function rf(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var tUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),nUe={},YJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new tUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=GJ(nUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?eUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);YJ.prototype.type="rect";const rt=YJ;var N$={fill:"#000"},F$=2,rUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},KJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=N$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=H$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(iy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=B$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=z$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=F$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),V$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Pm(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return XJ(t)&&(r=[t.fontStyle,t.fontWeight,ZJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),aUe={left:!0,right:1,center:1},iUe={top:1,bottom:1,middle:1},$$=["fontStyle","fontWeight","fontSize","fontFamily"];function ZJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?C9+"px":n+"px"}function V$(n,e){for(var t=0;t<$$.length;t++){var r=$$[t],a=e[r];a!=null&&(n[r]=a)}}function XJ(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function oUe(n){return j$(n),M(n.rich,j$),n}function j$(n){if(n){n.font=KJ.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||aUe[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||iUe[t]?t:"top";var r=n.padding;r&&(n.padding=I9(n.padding))}}function z$(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function B$(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function H$(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function U$(n){var e=n.text;return e!=null&&(e+=""),e}function O4(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const st=KJ;var De=at(),LP=function(n,e,t,r){if(r){var a=De(r);a.dataIndex=t,a.dataType=e,a.seriesIndex=n,r.type==="group"&&r.traverse(function(i){var o=De(i);o.seriesIndex=n,o.dataIndex=t,o.dataType=e})}},W$=1,G$={},qJ=at(),z9=at(),B9=0,x0=1,Rx=2,Fa=["emphasis","blur","select"],oy=["normal","emphasis","blur","select"],sv=10,sUe=9,_f="highlight",T2="downplay",o1="select",E2="unselect",s1="toggleSelect";function kh(n){return n!=null&&n!=="none"}var Y$=new S0(100);function K$(n){if(ce(n)){var e=Y$.get(n);return e||(e=_P(n,-.1),Y$.put(n,e)),e}else if(xx(n)){var t=K({},n);return t.colorStops=J(n.colorStops,function(r){return{offset:r.offset,color:_P(r.color,-.1)}}),t}return n}function Lx(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function QJ(n){Lx(n,"emphasis",Rx)}function JJ(n){n.hoverState===Rx&&Lx(n,"normal",B9)}function H9(n){Lx(n,"blur",x0)}function eee(n){n.hoverState===x0&&Lx(n,"normal",B9)}function lUe(n){n.selected=!0}function uUe(n){n.selected=!1}function Z$(n,e,t){e(n,t)}function du(n,e,t){Z$(n,e,t),n.isGroup&&n.traverse(function(r){Z$(r,e,t)})}function JS(n,e){switch(e){case"emphasis":n.hoverState=Rx;break;case"normal":n.hoverState=B9;break;case"blur":n.hoverState=x0;break;case"select":n.selected=!0}}function cUe(n,e,t,r){for(var a=n.style,i={},o=0;o=0,i=!1;if(n instanceof Ue){var o=qJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=K$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=K$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??sv)}return r}function fUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??sUe)}return t}function hUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:cUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return dUe(this,n,e,t);if(n==="blur")return hUe(this,n,t);if(n==="select")return fUe(this,n,t)}return t}function zf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function X$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,QJ)}function q$(n,e){!aee(n,e)&&!n.__highByOuter&&du(n,JJ)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,QJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,JJ)}function tee(n){du(n,H9)}function U9(n){du(n,eee)}function nee(n){du(n,lUe)}function ree(n){du(n,uUe)}function aee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function iee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=z9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){eee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Sf(n,e,t){af(n,!0),du(n,zf),FP(n,e,t)}function bUe(n){af(n,!1)}function En(n,e,t,r){r?bUe(n):Sf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var J$=["emphasis","blur","select"],_Ue={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=rV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=rV(C,w);if(VP(C,w)<=-1&&(T=Xv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Xv*1e6)/1e6;T=Xv*2+E%2*Xv}c.addData(u,b,_,o,s,S,T,d,i)}var EUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(EUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function kUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function NUe(n,e){var t,r=Dm(e.r,0),a=Dm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=iV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*md(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*md(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*md(l),z=a*Fh(u),F=a*md(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=kUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=iV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Dm(_,S),I=E=Dm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*md(u),R=a*Fh(l),L=a*md(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var FUe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),pee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new FUe},e.prototype.buildPath=function(t,r){NUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);pee.prototype.type="sector";const fi=pee;var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);gee.prototype.type="ring";const kx=gee;function VUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=VUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;sbd[1]){if(s=!1,i)return s;var c=Math.abs(bd[0]-yd[1]),d=Math.abs(yd[0]-bd[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){X9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){X9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function lV(n){return!n.isGroup}function iWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){lV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return iWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(lV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Iee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function oWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Am(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function sWe(n){return n<=1e-6&&n>=-1e-6}function uv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function uV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Kc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Zc(n,e){return Fe(Fe({},n,!0),e,!0)}const _We={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},SWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",Q9="EN",uy=Q9,I2={},J9={},Nee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:uy}():uy;function Fee(n,e){n=n.toUpperCase(),J9[n]=new Xt(e),I2[n]=e}function CWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===Q9?Ee(e):Fe(Ee(e),Ee(I2[uy]),!1)}else return Fe(Ee(n),Ee(I2[uy]),!1)}function BP(n){return J9[n]}function wWe(){return J9[uy]}Fee(Q9,_We);Fee(aC,SWe);var e8=1e3,t8=e8*60,u1=t8*60,fo=u1*24,pV=fo*365,Mm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",gV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Mm.hour,minute:Xb+" "+Mm.minute,second:Xb+" "+Mm.second,millisecond:Mm.none},L4=["year","month","day","hour","minute","second","millisecond"],$ee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xWe(n){return n===Gp(n)}function TWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[n8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[cy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Nee)||wWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function EWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Mm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function Vee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[cy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function vV(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||Vee(n,t),e){case"year":return r[n8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[cy(t)]()/24;case"hour":return r[cy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function n8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function cy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function OWe(n){return n?"setUTCFullYear":"setFullYear"}function jee(n){return n?"setUTCMonth":"setMonth"}function zee(n){return n?"setUTCDate":"setDate"}function Bee(n){return n?"setUTCHours":"setHours"}function Hee(n){return n?"setUTCMinutes":"setMinutes"}function Uee(n){return n?"setUTCSeconds":"setSeconds"}function Wee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Gee(n){if(!EJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Yee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fv=I9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Gee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var mV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Kee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Bf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Zee=["left","right","top","bottom","width","height"],of=[["width","left","right"],["height","top","bottom"]];function r8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var wf=r8;Ae(r8,"vertical");Ae(r8,"horizontal");function DWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=fv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=fv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function AWe(n,e){return n[of[e][0]]!=null||n[of[e][1]]!=null&&n[of[e][2]]!=null}function dy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(of[0],0),i=o(of[1],1);u(of[0],n,a),u(of[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);NJ(pv,Xt);Px(pv);yWe(pv);bWe(pv,RWe);function RWe(n){var e=[];return M(pv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=pv;var qee="";typeof navigator<"u"&&(qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const LWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Qee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",Jee="unknown",Zs="column",gv="row",zr={Must:1,Might:2,Not:3},ete=at();function kWe(n){ete(n).datasetMap=ge()}function tte(n,e,t){var r={},a=i8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=ete(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ate(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:jWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function zWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,qv,bV,_V="\0_ec_inner",BWe=1,ite=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=wV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,wV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?bV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;kWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=$We(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=AJ(h,f,p);aHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ay(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[_V],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function JWe(n,e){return n.join(",")===e.join(",")}const eGe=ZWe;var ko=M,fy=we,xV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=xV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=YBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||Jee,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};AV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+gv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function kV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function c1(n){return new mGe(n)}var mGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},bGe=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=mte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),yte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),_Ge=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function SGe(n,e){return n==="eq"||n==="ne"?new _Ge(n==="eq",e):he(mte,n)?new bGe(n,e):null}var CGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function wGe(n,e){var t=new CGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?AGe:MGe}function Vh(){return[1/0,-1/0]}function RGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function $V(n,e,t,r,a){var i=Ste[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(Jv(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),Cte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&jV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&jV(d),s.push(c),l.push(u._getVersionSign())}),r?o=PGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[cGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ete(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function NGe(n,e,t,r){var a=e.noHeader,i=$Ge(Ete(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new yte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Tte(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=xte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ote(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function FGe(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=xte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ote(n,f,b))+(o?"":zGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":VGe(f,!s,b))+(o?"":jGe(p,g,m,_)),t)}}function zV(n,e,t,r,a,i){if(n){var o=Tte(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function $Ge(n){return{html:LGe[n],richText:kGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function VGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function jGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ote(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Ite(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Bf(r)}function Pte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=OJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=PWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Dte(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Ite(e,t),c,d,f,h;if(o>1||l&&!o){var p=BGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=F9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function BGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=c1({count:UGe,reset:WGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new Cte(this);i.prepareSource();var o=this.getInitialData(t,a);HV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=dy(this),i=a?hv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),$f(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=dy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);HV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,BV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=o8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);ir(Kx,c8);ir(Kx,o8);NJ(Kx,it);function BV(n){var e=n.name;F9(n)||(n.name=HGe(n)||e)}function HGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function UGe(n){return n.model.getRawData().count()}function WGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),GGe}function GGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(YGe,e))})}function YGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var f8=function(){function n(){this.group=new Oe,this.uid=dv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();V9(f8);Px(f8);const On=f8;function vv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ate=at(),KGe=vv(),h8=function(){function n(){this.group=new Oe,this.uid=dv("viewChart"),this.renderTask=c1({plan:ZGe,reset:XGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&WV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Kc(this.group,e)},n.markUpdateMethod=function(e,t){Ate(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function UV(n,e,t){n&&sy(n)&&(e==="emphasis"?au:iu)(n,t)}function WV(n,e,t){var r=Vf(n,e),a=e&&e.highlightKey!=null?CUe(e.highlightKey):null;r!=null?M(kt(r),function(i){UV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){UV(i,t,a)})}V9(h8);Px(h8);function ZGe(n){return KGe(n.model)}function XGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Ate(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),qGe[l]}var qGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=h8;var oC="\0__throttleOriginMethod",GV="\0__throttleRate",YV="\0__throttleType";function p8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function mv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[YV],s=a[GV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=p8(i,t,r==="debounce"),a[oC]=i,a[YV]=r,a[GV]=t}return a}}function hy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var KV=at(),ZV={itemStyle:jf(kee,!0),lineStyle:jf(Lee,!0)},QGe={lineStyle:"stroke",itemStyle:"fill"};function Mte(n,e){var t=n.visualStyleMapper||ZV[e];return t||(console.warn("Unknown style type '"+e+"'."),ZV.itemStyle)}function Rte(n,e){var t=n.visualDrawType||QGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var JGe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Mte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Rte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},em=new Xt,eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Mte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){em.option=l[r];var u=a(em),c=o.ensureUniqueItemVisual(s,"style");K(c,u),em.option.decal&&(o.setItemVisual(s,"decal",em.option.decal),em.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),KV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=KV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Rte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function nYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new K9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var rYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||c1({plan:lYe,reset:uYe,count:dYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||c1({reset:aYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,c1({reset:iYe,onDirty:sYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:fYe(e)}),e.uid=dv("stageHandler"),t&&(e.visualType=t),e},n}();function aYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function iYe(n){return n.overallProgress&&oYe}function oYe(){this.agent.dirty(),this.getDownstream().dirty()}function sYe(){this.agent&&this.agent.dirty()}function lYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function uYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return Lte(r)}):cYe}var cYe=Lte(0);function Lte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],JV=qP.concat(["symbolKeepAspect"]),vYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&lf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?MYe(n,e,t):AYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function v8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var kYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function ej(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function tj(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function nj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=j9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function NYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||kYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=v8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&nj(n,t),o&&tj(n,t)):(o&&tj(n,t),i&&nj(n,t))),E&&n.setLineDash([])}function FYe(n,e,t){var r=e.__image=j9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function $Ye(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=v8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var rj=["shadowBlur","shadowOffsetX","shadowOffsetY"],aj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function zte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?bf.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||bf.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new eGe(this._api),u=this._theme,c=this._model=new ote;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(bj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(f1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=C$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=i1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=i1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(cKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(d1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),yYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&RJ(this.getDom(),b8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete f1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,tm.call(this,i),nm.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=d1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),tm.call(this,a),nm.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&wUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}mj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){tee(p),Gi(d)},h.prototype.leaveBlur=function(p){U9(p),Gi(d)},h.prototype.enterSelect=function(p){nee(p),Gi(d)},h.prototype.leaveSelect=function(p){ree(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(ste))(d)},nne=function(d){function f(h,p){for(var g=0;g=0)){_j.push(t);var i=Fte.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function une(n,e){nD[n]=e}function mKe(n,e,t){var r=ZYe("registerMap");r&&r(n,e,t)}var yKe=IGe;fh(m8,JGe);fh(Zx,eYe);fh(Zx,tYe);fh(m8,vYe);fh(Zx,mYe);fh(Xte,GYe);sne(ute);lne(QYe,lGe);une("default",nYe);cl({type:_f,event:_f,update:_f},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:o1,event:o1,update:o1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:s1,event:s1,update:s1},Yn);one("light",hYe);one("dark",pYe);var Sj=[],bKe={registerPreprocessor:sne,registerProcessor:lne,registerPostInit:hKe,registerPostUpdate:pKe,registerUpdateLifecycle:_8,registerAction:cl,registerCoordinateSystem:gKe,registerLayout:vKe,registerVisual:fh,registerTransform:yKe,registerLoading:une,registerMap:mKe,registerImpl:KYe,PRIORITY:sKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){HBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Sj,n)>=0||(Sj.push(n),me(n)&&(n={install:n}),n.install(bKe))}function rm(n){return n==null?0:n.length||1}function Cj(n){return n}var _Ke=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Cj,this._newKeyGetter=a||Cj,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var am=we,Du=J,OKe=typeof Int32Array>"u"?Array:Int32Array,IKe="e\0\0",wj=-1,PKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DKe=["_approximateExtent"],xj,i_,im,om,q4,o_,Q4,AKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;dne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():am(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,am(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){am(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(O9(arguments)))})},n.internalField=function(){xj=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new OKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=AKe;function A0(n,e){s8(n)||(n=l8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=RKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&pne(o),l=r===n.dimensionsDefine,u=l?hne(n):fne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new _te(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function RKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var kKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function NKe(n){var e=n.get("coordinateSystem"),t=new kKe(e),r=FKe[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var FKe={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function $Ke(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;VKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function VKe(n){return!dne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function gne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function jKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function zKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=l8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=NKe(e),s=jKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(tte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=zKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=$Ke(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&BKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function BKe(n){if(n.sourceFormat===Eo){var e=HKe(n.data||[]);return!X(ov(e))}}function HKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(vne);const hu=vne;var UKe=0,WKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++UKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,GKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function GKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=WKe;function aD(n){return n.type==="interval"||n.type==="log"}function YKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=TJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=mne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return KKe(l,n),a}function J4(n){var e=Math.pow(10,N9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function mne(n){return js(n)+2}function Tj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function KKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Tj(n,0,e),Tj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var yne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(yne);const C8=yne;var wd=Ln,bne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=mne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:wd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function Cne(n){var e=qKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(One(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:x8(i),stackId:w8(r)})}),wne(t)}function wne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function QKe(n,e,t){if(n&&e){var r=n[x8(e)];return r!=null&&t!=null?r[w8(t)]:r}}function xne(n,e){var t=Sne(n,e),r=Cne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=w8(a),u=r[x8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Tne(n){return{seriesType:n,plan:vv(),reset:function(e){if(Ene(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=JKe(a,i),p=One(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(eZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",e8],["minute",t8],["hour",u1],["quarter-day",u1*6],["half-day",u1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",pV/2],["year",pV]];function tZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return vV(a,p,r)===vV(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function nZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function rZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function aZe(n){return n/=u1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Ej(n,e){return n/=e?t8:e8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function iZe(n){return TJ(n,!0)}function oZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[jee(t)](0);case"day":r[zee(t)](1);case"hour":r[Bee(t)](0);case"minute":r[Hee(t)](0);case"second":r[Uee(t)](0),r[Wee(t)](0)}return r.getTime()}function sZe(n,e,t,r){var a=1e4,i=$ee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=It(J(u,function(I){return It(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(cZe(r[0]/i)*i),Ln(uZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){h1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Dne=T8.prototype;Dne.getMinorTicks=h1.getMinorTicks;Dne.getLabel=h1.getLabel;function u_(n,e){return lZe(n,js(e))}hu.registerClass(T8);const dZe=T8;var fZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[pZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=hZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),hZe={min:"_determinedMin",max:"_determinedMax"},pZe={min:"_dataMin",max:"_dataMax"};function Ane(n,e,t){var r=n.rawExtentInfo;return r||(r=new fZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ey(e)?NaN:n.parse(e)}function Mne(n,e){var t=n.type,r=Ane(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Sne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=Cne(s),c=gZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function gZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=QKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Mne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof dZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new C8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Pne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function vZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(E8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function E8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function mZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof C8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),_Ze=1e-8;function Ij(n,e){return Math.abs(n-e)<_Ze}function Wd(n,e,t){var r=0,a=n[0];if(!a)return!1;for(var i=1;ia&&(r=o,a=l)}if(r)return CZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Pj(s.exterior,a,i,t):M(s.points,function(l){Pj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function TZe(n,e){return n=xZe(n),J(It(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Dj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Dj(l[0],l.slice(1)))});break;case"LineString":i.push(new Aj([a.coordinates]));break;case"MultiLineString":i.push(new Aj(a.coordinates))}var s=new kne(r[e||"name"],i,r.cp);return s.properties=r,s})}var vy=at();function EZe(n){return n.type==="category"?IZe(n):DZe(n)}function OZe(n,e){return n.type==="category"?PZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function IZe(n){var e=n.getLabelModel(),t=Fne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Fne(n,e){var t=$ne(n,"labels"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;return me(r)?i=Bne(n,r):(o=r==="auto"?AZe(n):r,i=zne(n,o)),jne(t,r,{labels:i,labelCategoryInterval:o})}function PZe(n,e){var t=$ne(n,"ticks"),r=O8(e),a=Vne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Bne(n,r,!0);else if(r==="auto"){var s=Fne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=zne(n,o,!0);return jne(t,r,{ticks:i,tickCategoryInterval:o})}function DZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function $ne(n,e){return vy(n)[e]||(vy(n)[e]=[])}function Vne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=vy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function RZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function zne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Rne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Bne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Mj=[0,1],LZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return wJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count())),xt(e,Mj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Rj(r,a.count()));var i=xt(e,r,Mj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=OZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return kZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return EZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return MZe(this)},n}();function Rj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function kZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=sm);var h=Math.atan2(s,o);if(h<0&&(h+=sm),h>=r&&h<=a||h+sm>=r&&h+sm<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Hne(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function VZe(n,e,t){var r=Hne(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function jZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function zZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function kj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function BZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function HZe(n,e,t,r){return Gne(n,"x","width",e,t,r)}function Yne(n,e,t,r){return Gne(n,"y","height",e,t,r)}function Kne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!cv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Ree(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=GZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const KZe=YZe;var rE=at();function ZZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new KZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Zne=Math.PI,Td=Math.PI*2,XZe=180/Zne,qZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Td)||(c?u>=Td:-u>=Td),h=u>0?u%Td:u%Td+Td,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Zne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*XZe);if(f){var b=1/this._p,_=(c?1:-1)*(Td-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function oXe(n){return""}function D8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return iXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+oXe(o)}return r(n)}function sXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Fj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:qne,"xmlns:xlink":Qne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var $j={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},$d="transform-origin";function lXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new Xne;return a.reset(fJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function uXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[$d]=t+"px "+r+"px")}var cXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ere(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function dXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=ere(a,t);return i.replace(o,s)}}function Vj(n){return ce(n)?$j[n]?"cubic-bezier("+$j[n]+")":M9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Z9){var s=dXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=ere(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var my=Math.round;function tre(n){return n&&ce(n.src)}function nre(n){return n&&me(n.toDataURL)}function A8(n,e,t,r){nXe(function(a,i){var o=a==="fill"||a==="stroke";o&&dJ(i)?are(e,n,a,r):o&&R9(i)?ire(t,n,a,r):n[a]=i},e,t,!1),yXe(t,n,r)}function jj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function fXe(n){return nc(n[4])&&nc(n[5])}function M8(n,e,t){if(e&&!(fXe(e)&&jj(e))){var r=t?10:1e4;n.transform=jj(e)?"translate("+my(e[4]*r)/r+" "+my(e[5]*r)/r+")":cBe(e)}}function zj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=j9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=hJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=D8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function bXe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[rre(n,t)])}e["clip-path"]=Ox(i)}function Uj(n){return document.createTextNode(n)}function Gd(n,e,t){n.insertBefore(e,t)}function Wj(n,e){n.removeChild(e)}function Gj(n,e){n.appendChild(e)}function ore(n){return n.parentNode}function sre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var Yj=58,_Xe=120,SXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function CXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Lm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function yy(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=Jne(r);if(R8(SXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,lre(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(R8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&wXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),lre(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function xXe(n,e){if(Lm(n,e))rp(n,e);else{var t=n.elm,r=ore(t);yy(e),r!==null&&(Gd(r,e.elm,sre(t)),mC(r,[n],0,0))}return e}var TXe=0,EXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Kj(),this.configLayer=Kj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+TXe++,this._oldVNode=Fj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Jne("svg");R8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",xXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Hj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=OXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=sXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return Fj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},D8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||T9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const $Xe=FXe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var VXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ar(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return yv(t.getItemVisual(r,"symbolSize"))},e}(Oe);function jXe(n,e){this.parent.drift(n,e)}const L0=VXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function qj(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function Qj(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var zXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=qj(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Qj(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Qj(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=qj(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function dre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function HXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function UXe(n,e,t,r,a,i,o,s){for(var l=HXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=cre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(xf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||xf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var fre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),WXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&xf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),GXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(fre),hre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new GXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&xf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function ZXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=KXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function XXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&qXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function qXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function QXe(n,e){return isNaN(n)||isNaN(e)}function JXe(n){for(var e=n.length/2;e>0&&QXe(n[e*2-2],n[e*2-1]);e--);return e-1}function rz(n,e){return[n[e*2],n[e*2+1]]}function eqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function vre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=nz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=nz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=Vf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new WXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new hre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(vre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=JXe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?ure(o,h):Cg(o,d)},enableTextSetter:!0},tqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=eqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=rz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=LJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=rz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=cv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=UXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),tz(h,g)>3e3||c&&tz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=aqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,iqe))}}}}}function oqe(n){n.registerChartView(rqe),n.registerSeriesModel($Xe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("line"))}var yre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(yre);const yC=yre;var sqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Zc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const lqe=sqe;var uqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),cqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new uqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ly(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),az={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},iz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=bre(a);if(c.calculateTextPosition=dqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function gqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function oz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function sz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function bre(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function uz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=cf(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,fqe(n,m==="outside"?h:m,bre(o),r.get(["label","rotate"]))}Mee(g,p,i.getRawValue(t),function(b){return ure(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),yqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bqe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var _qe=function(){function n(){}return n}(),cz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new _qe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Sqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function _re(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function Cqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:_re(e,t,n),silent:!0,z2:0})}const wqe=pqe;function xqe(n){n.registerChartView(wqe),n.registerSeriesModel(lqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,mre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,hz=Math.PI/180;function Sre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Cre(n,e){var t=Sre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Tqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Sre(r,t),s=Cre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*hz,h=r.get("minAngle")*hz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Iqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Eqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Mt=A.get("rotate");if(lt(Mt))Ve=Mt*(Je/180);else if(R==="center")Ve=0;else if(Mt==="radial"||Mt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Mt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Oqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Aqe=Dqe;function bv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Mqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Mqe;var Rqe=at(),Lqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Rqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=GBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const kqe=Lqe;function Nqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function Fqe(n){n.registerChartView(Aqe),n.registerSeriesModel(kqe),jte("pie",n.registerAction),n.registerLayout(Ae(Tqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Nqe("pie"))}var $qe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const Vqe=$qe;var xre=4,jqe=function(){function n(){}return n}(),zqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new jqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Hqe=Bqe;var Uqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Hqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Wqe=Uqe;var Gqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Yqe=Gqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);ir(cD,R0);var Tre={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Kqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Tre),L8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Tre),Zqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},L8),Xqe=_e({logBase:10},L8);const Ere={category:Kqe,value:L8,time:Zqe,log:Xqe};var qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(qqe,function(a,i){var o=Fe(Fe({},Ere[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=dy(this),h=f?hv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=gz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",gz)}function gz(n){return n.type||(n.data?"category":"value")}var Qqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),It(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const Jqe=Qqe;var dD=["x","y"];function vz(n){return n.type==="interval"||n.type==="time"}var eQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vz(t)||!vz(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=iv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(Jqe),tQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const nQe=tQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function mz(n){return n.get("coordinateSystem")==="cartesian2d"}function yz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ore(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Mne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var rQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ore(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){bz(r,"y",o,i)}),M(r.y,function(o){bz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=mZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),aQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Sz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ar(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=lQe(t,r,e,n),i=cQe(t,r,e,n);if(sQe(e,i,a),uQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Wne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Kne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,wz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;wz(i)?f=Tf.innerTextLayout(n.rotation,h??n.rotation,o):(f=oQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Tf.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(uv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Tf.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function oQe(n,e,t,r){var a=xJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sQe(n,e,t){if(!Rne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Cz(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Cz(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Cz(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function wz(n){return n==="middle"||n==="center"}function Ire(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function vQe(n){var e=k8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return ir(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},lm.axisLine),axisLabel:y_(lm.axisLabel,!1),axisTick:y_(lm.axisTick,!1),splitLine:y_(lm.splitLine,!0),splitArea:y_(lm.splitArea,!0),indicator:[]},e}(it);const MQe=AQe;var RQe=["axisLine","axisTickLabel","axisName"],LQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(RQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Pz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),Lre(n,e,t,r,a))}function Lre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=UQe;function F8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function $8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var WQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!WQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function kre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Dz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Az=Ye(SC),GQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=kre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;ZQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=Fre(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Mz[s];if(h&&he(Mz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new iy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),YQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new Y9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=kz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=cee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Mz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Rz(n,i),Lz(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new wee(e,t,r);return Rz(n,a),Lz(n,a),a}};function Rz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Lz(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Nre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function kz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var Fz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Nre(n,e,t){var r=n.getAttribute("style");if(r){Fz.lastIndex=0;for(var a;(a=Fz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function JQe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&($re(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Bz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Hz(n,e,t,r,a){n.data||uv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Uz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&SUe(e,a,t),o}function Wz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const SJe=_Je;function CJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function OJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var IJe=function(){function n(){this.dimensions=jre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xz,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Zz(s,s,K({nameMap:E9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Xz,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,OJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function FJe(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){jJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=zJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function $Je(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Qz(n){return arguments.length?n:UJe}function km(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function VJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function zJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(HJe(BJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function BJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function UJe(n,e){return n.parentNode===e.parentNode?1:2}var WJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),GJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),KJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function KJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Yre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function H8(n,e){var t=Yre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var iet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=B8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const oet=iet;function set(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function uet(n,e){n.eachSeriesByType("tree",function(t){cet(t,e)})}function cet(n,e){var t=VJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=Qz(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=Qz());var s=n.getData().tree.root,l=s.children[0];if(l){NJe(s),set(l,FJe,o),s.hierNode.modifier=-l.hierNode.prelim,cm(l,$Je);var u=l,c=l,d=l;cm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=km(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),cm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),cm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function det(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function fet(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function het(n){n.registerChartView(ZJe),n.registerSeriesModel(oet),n.registerLayout(uet),n.registerVisual(det),fet(n)}var rB=["treemapZoomToNode","treemapRender","treemapMove"];function pet(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var get=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Zre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=vet(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=B8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Zre(n){var e=0;M(n.children,function(r){Zre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function vet(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const met=get;var yet=8,aB=8,SE=5,bet=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=cr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+yet*2,t.emptyItemWidth);t.totalWidth+=s+aB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=DWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:_et(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:sv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),Cet(S,e,y),l+=b+aB}},n.prototype.remove=function(){this.group.removeAll()},n}();function _et(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function Cet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const wet=bet;var xet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aoB||Math.abs(t.dy)>oB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),A9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new wet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(H8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=dm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function dm(){return{nodeGroup:[],background:[],content:[]}}function Det(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",iB,u,Oet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)sy(P)&&af(P,!1),A&&(af(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",iB,u,Iet);F&&U(P,F),A.disableMorphing=!0,A&&sy(A)&&af(A,!1),af(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=uB(w);We.fill=pe;var Ce=jd(T);Ce.fill=T.get("borderColor");var Je=jd(E);Je.fill=E.get("borderColor");var Ve=jd(O);if(Ve.fill=O.get("borderColor"),re){var Mt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Mt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,zf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=uB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=jd(T),Ve=jd(E),Mt=jd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Mt,zf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?lB:sB),pe=cr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?lB:sB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=I9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Mt=Ce.getState("emphasis");Q(Mt?Mt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Aet(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Aet(n,e){return n*Eet+e}const Met=Pet;var Sy=M,Ret=we,wC=-1,U8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Net[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),Let(a)):t==="category"?a.categories?ket(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&Sy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Ret(e)){var t=[];Sy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?Sy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),Xre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function cB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function fm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function Nm(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function zd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:Nm,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:zd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=U8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function Xre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Net={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=U8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Bet(a,l,g,m,p,r);Qre(g,y,t,r)}})}}}function Vet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=n1(e,null,null,r)),t&&(e=GS(e,t)),e}}function jet(n,e){return e!=null?n1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Bet(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Cy=Math.max,xC=Math.min,fB=Lr,W8=M,Jre=["itemStyle","borderWidth"],Het=["itemStyle","gapWidth"],Uet=["upperLabel","show"],Wet=["upperLabel","height"];const Get={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(fB(s.width,l[0]),a),c=ie(fB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=_y(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Yre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Qet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),eae(g,_,!1,0),S=g.getLayout(),W8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(Jet(s,p,h),!0),n.setLayoutInfo(s),tae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function eae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(Jre),u=s.get(Het)/2,c=nae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=Cy(a-2*f,0),i=Cy(i-f-h,0);var p=a*i,g=Yet(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?Cy(u*r/l,l/(u*a)):1/0}function hB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dx$&&(u=x$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Z8=ytt;var btt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Z8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=bB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!_tt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function bB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function _B(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!_B(n[0])&&!_B(n[1])}const X8=btt;var DE=[],AE=[],ME=[],Wh=Mr,RE=mf,SB=Math.abs;function CB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=SB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ty,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=$m(s.node1),p=CB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=$m(s.node2),p=CB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),nf(o,i[1],i[0]),av(o,o),c&&c!=="none"){var h=$m(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=$m(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function wB(n){return n.type==="view"}var Stt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new X8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(wB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Fm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),K8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),Y8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){oae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!wB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){F8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){$8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Fm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Fm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Fm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const Ctt=Stt;function Gh(n){return"_EC_"+n}var wtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Bd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Bd||(e=a[Gh(e)]),t instanceof Bd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new lae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Bd&&(e=e.id),t instanceof Bd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Bd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}ir(Bd,uae("hostGraph","data"));ir(lae,uae("hostGraph","edgeData"));const xtt=wtt;function cae(n,e,t,r,a){for(var i=new xtt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Wre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ttt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),$f(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){ott(this);var s=cae(i,a,this,!0,l);return M(s.edges,function(u){stt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Dte({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ett=Ttt;var Ott={type:"graphRoam",event:"graphRoam",update:"none"};function Itt(n){n.registerChartView(Ctt),n.registerSeriesModel(Ett),n.registerProcessor(ttt),n.registerVisual(ntt),n.registerVisual(rtt),n.registerLayout(ltt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,ctt),n.registerLayout(ftt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:ptt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Ott,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=j8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Ptt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Dtt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Ptt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Att=Dtt;function Mtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Rtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Mtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];jJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ar(N,F-L/2,j-k,L,k,null,U):G=new Att({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ar(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Mee(I,{normal:P},_,function(U){return w_(U,F)}),g&&Ree(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const Ltt=Rtt;var ktt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return bv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ntt=ktt;function Ftt(n){n.registerChartView(Ltt),n.registerSeriesModel(Ntt)}var $tt=["itemStyle","opacity"],Vtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($tt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),I8(a,P8(l),{stroke:f})},e}(hi),jtt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new Vtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ly(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const ztt=jtt;var Btt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return bv(this,{coordDimensions:["value"],encodeDefaulter:Ae(a8,this)})},e.prototype._defaultLabelLine=function(t){$f(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Htt=Btt;function Utt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Wtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();ocnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const hnt=dnt;var pnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=It(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const gnt=pnt;var vnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const mnt=vnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,fae=Math.min,hae=Math.max,EB=Math.floor,ynt=Math.ceil,OB=Ln,bnt=Math.PI,_nt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new mnt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||EB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[EB(OB(h[0]/c,1))+1,ynt(OB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?Cnt:Snt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:bnt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[hae(0,p-h/2)],a[1]=fae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return fae(hae(n,e[0]),e[1])}function Snt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function Cnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iPnt}function _ae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Sae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:eM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(AB,n,e,a,["n","s","w","e"]),ondragend:Ae(Uf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(AB,n,e,a,i),ondragend:Ae(Uf,e,{isEnd:!0})}))}),a}function Cae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Dnt),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(eM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):Fnt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Mnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(Vnt(tM(n,e,[[r,a],[r+i,a+o]])))}function eM(n){return _e({strokeNoScale:!0},n.brushStyle)}function wae(n,e,t,r){var a=[xy(n,t),xy(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Nnt(n){return Cf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Nnt(n));return r[a]}function Fnt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function AB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=xae(e,a,i);M(r,function(u){var c=Ant[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(wae(s[0][0],s[1][0],s[0][1],s[1][1])),q8(e,t),Uf(e,{isEnd:!1})}function $nt(n,e,t,r){var a=e.__brushOption.range,i=xae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),q8(n,e),Uf(n,{isEnd:!1})}function xae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function tM(n,e,t){var r=bae(n,e);return r&&r!==Hf?r.clipPath(t,n._transform):Ee(t)}function Vnt(n){var e=xy(n[0][0],n[1][0]),t=xy(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function jnt(n,e,t){if(!(!n._brushType||Bnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=J8(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:LB(0),lineY:LB(1),rect:{createCover:function(n,e){function t(r){return r}return Sae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=_ae(n);return wae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){Cae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:eM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae($nt,n,e),ondragend:Ae(Uf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:tM(n,e,t)})},updateCommon:xD,contain:OD}};function LB(n){return{createCover:function(e,t){return Sae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=_ae(e),r=xy(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=bae(e,t);if(o!==Hf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),Cae(e,t,l,a)},updateCommon:xD,contain:OD}}const nM=Lnt;function Eae(n){return n=rM(n),function(e){return Iee(e,n)}}function Oae(n,e){return n=rM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Iae(n,e,t){var r=rM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function rM(n){return $e.create(n)}var Hnt=["axisLine","axisTickLabel","axisName"],Unt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Wnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Ynt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Hnt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Eae(d),isTargetByCursor:Iae(d,s,i),getLinearBrushOtherExtent:Oae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Gnt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Wnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Gnt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ynt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Knt=Unt;var Znt={type:"axisAreaSelect",event:"axisAreaSelected"};function Xnt(n){n.registerAction(Znt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Pae(n){n.registerComponentView(hnt),n.registerComponentModel(gnt),n.registerCoordinateSystem("parallel",Ent),n.registerPreprocessor(snt),n.registerComponentModel(IB),n.registerComponentView(Knt),wg(n,"parallel",IB,qnt),Xnt(n)}function Qnt(n){He(Pae),n.registerChartView(Jtt),n.registerSeriesModel(rnt),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,ont)}var Jnt=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),ert=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Jnt},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),trt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new ert,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),kB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return kB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(nrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function kB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function nrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const rrt=trt;var art=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=cae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const irt=art;function ort(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=srt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;urt(u);var d=It(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");lrt(u,c,r,a,o,s,f,h,p)})}function srt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function lrt(n,e,t,r,a,i,o,s,l){crt(n,e,t,a,i,s,l),prt(n,e,i,a,r,o,s),wrt(n,s)}function urt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function crt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&drt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;hrt(n,E,i)}function Dae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function drt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,mrt(s,l,o),VE(s,a,t,r,o),Crt(s,l,o),VE(s,a,t,r,o)}function grt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function vrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function mrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,yrt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,brt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function yrt(n,e){return $c(n.node2,e)*n.getValue()}function brt(n,e){return $c(n.node2,e)}function _rt(n,e){return $c(n.node1,e)*n.getValue()}function Srt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Trt(n){n.registerChartView(rrt),n.registerSeriesModel(irt),n.registerLayout(ort),n.registerVisual(xrt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Aae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return bv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(tte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Mae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);ir(Mae,Aae,!0);const Ert=Mae;var Ort=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=NB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Rae(f,d,i,u)):d=NB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Irt=function(){function n(){}return n}(),Prt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Irt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var Frt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Nrt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $rt(n){n.registerSeriesModel(Ert),n.registerChartView(Art),n.registerLayout(Mrt),n.registerTransform(Frt)}var Vrt=["color","borderColor"],jrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&FB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&FB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),$B(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){$B(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),zrt=function(){function n(){}return n}(),Brt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new zrt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Brt({shape:{points:t?Hrt(r,n):r},z2:100})}function FB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(Vrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Wrt=jrt;var Lae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);ir(Lae,Aae,!0);const Grt=Lae;function Yrt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Krt=["itemStyle","borderColor"],Zrt=["itemStyle","borderColor0"],Xrt=["itemStyle","borderColorDoji"],qrt=["itemStyle","color"],Qrt=["itemStyle","color0"],Jrt={seriesType:"candlestick",plan:vv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?qrt:Qrt)}function r(i,o){return o.get(i===0?Xrt:i>0?Krt:Zrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const eat=Jrt;var tat={seriesType:"candlestick",plan:vv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=nat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:VB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=VB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function VB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function nat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const rat=tat;function aat(n){n.registerChartView(Wrt),n.registerSeriesModel(Grt),n.registerPreprocessor(Yrt),n.registerVisual(eat),n.registerLayout(rat)}function jB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var iat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(kae);const gat=pat;var vat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),mat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(zJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const bat=yat;var _at={seriesType:"lines",plan:vv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Fae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new bat:new X8(o?i?gat:Nae:i?kae:Z8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const Cat=Sat;var wat=typeof Uint32Array>"u"?Array:Uint32Array,xat=typeof Float64Array>"u"?Array:Float64Array;function zB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),E9([a,t[0],t[1]])}))}var Tat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],zB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(zB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Eat=Tat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Oat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Iat=Oat;function Pat(n){n.registerChartView(Cat),n.registerSeriesModel(Eat),n.registerLayout(Fae),n.registerVisual(Iat)}var Dat=256,Aat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Mat=Aat;function Rat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function BB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var kat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):BB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(BB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Mat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?Lat(S,a.option.range):Rat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Nat=kat;var Fat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const $at=Fat;function Vat(n){n.registerChartView(Nat),n.registerSeriesModel($at)}var jat=["itemStyle","borderWidth"],HB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,zat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:HB[+c],categoryDim:HB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=WB(o,h),g=UB(o,h,p,f),m=GB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),KB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=WB(o,h),y=UB(o,h,m,f),b=Hae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Kat(g,f,y):g=GB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),KB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&YB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){YB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function UB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Bat(t,i,a,r,f),Hat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Uat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Wat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Bat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Hat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Uat(n,e,t,r,a){var i=n.get(jat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Wat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=EJ(r),E=T?r:ZB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?ZB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function $ae(n){var e=n.symbolPatternSize,t=ar(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function Vae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(aM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function jae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=$ae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function zae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Bae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function WB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Gat,t.isAnimationEnabled=Yat,t}function Gat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Yat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?Vae(a,e,t):jae(a,e,t),zae(a,t,r),Bae(a,e,t,r),a.__pictorialShapeStr=Hae(n,t),a.__pictorialSymbolMeta=t,a}function Kat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?Vae(n,e,t,!0):jae(n,e,t,!0),zae(n,t,!0),Bae(n,e,t,!0)}function YB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];aM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Hae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function aM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function KB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");aM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function ZB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Zat=zat;var Xat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Zc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const qat=Xat;function Qat(n){n.registerChartView(Zat),n.registerSeriesModel(qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(xne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Tne("pictorialBar"))}var Jat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function oit(n){n.registerChartView(tit),n.registerSeriesModel(rit),n.registerLayout(ait),n.registerProcessor(F0("themeRiver"))}var sit=2,lit=4,uit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=sit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:lit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=cf(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=cf(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const qB=uit;var ID="sunburstRootToNode",QB="sunburstHighlight",cit="sunburstUnhighlight";function dit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=_y(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=H8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:QB,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=_y(e,[QB],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:cit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var fit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new qB(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new qB(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const hit=fit;var pit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Uae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=B8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Kre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Uae(n){var e=0;M(n.children,function(r){Uae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const git=pit;var JB=Math.PI/180;function vit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*JB,p=r.get("minAngle")*JB,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Wae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function bit(n){n.registerChartView(hit),n.registerSeriesModel(git),n.registerLayout(Ae(vit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(yit),dit(n)}var eH={color:"fill",borderColor:"stroke"},_it={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Sit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const Cit=Sit;function wit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function xit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(wit,n)}}}function Tit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Eit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Tit,n)}}}function Oit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Iit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Oit,n)}}}function Pit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Dit(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Pit,n)}}}function Ait(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Gae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Yae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return tH(o,n),M(o.rich,function(l){tH(l,l)}),{textConfig:a,textContent:i}}function tH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function nH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";rH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){rH(s,s)}),r}function rH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Kae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},aH=Ye(Kae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function iM(n,e,t,r,a){var i=n+"Animation",o=lv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Nit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if($it(n,e,d),oH("shape",e,d),oH("extra",e,d),!i&&s&&(Fit(n,e,c),iH("shape",n,e,c),iH("extra",n,e,c),Vit(n,e,u,c)),d.style=u,Mit(n,d,o),Lit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=iM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Rit(n,e,a||0,t,c);Zae(n,e),u?n.dirty():n.markRedraw()}function Zae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function Lit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},kit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Nit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(kit)}}function iH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Ef(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=nH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=nH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(eH,L)){var N=e.getItemVisual(k,"style");return N?N[eH[L]]:null}if(he(_it,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return XKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Aee(L,t)}}function Xit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=cM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function cM(n,e,t,r,a,i){var o=-1,s=e;e&&Jae(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=lM(r),s&&Wit(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Qit(u,t,r,a,l,Zi),qit(u,t,r,a,l),uM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Jae(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&rot(i)&&eie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&Jae(o,i,r)&&(o=null),o||(o=lM(i),n.setClipPath(o)),uM(null,o,e,i,null,r,a)}}function Qit(n,e,t,r,a,i){if(!n.isGroup){lH(t,null,i),lH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=lM(o),n.setTextContent(c)),uM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);eot(e,p,a)}}}function eot(n,e,t){e&&sT(e,Ul(n).option,t)}function tot(n){new ou(n.oldChildren,n.newChildren,uH,uH,n).add(cH).update(cH).remove(not).execute()}function uH(n,e){var t=n&&n.name;return t??Hit+e}function cH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;cM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function not(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function eie(n){return n&&(n.pathData||n.d)}function rot(n){return n&&(he(n,"pathData")||he(n,"d"))}function aot(n){n.registerChartView(Yit),n.registerSeriesModel(Cit)}var Yd=at(),dH=Ee,XE=fe,iot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(fH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}pH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=k8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Yd(e).pointerEl=new I0[i.type](dH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Yd(e).labelEl=new st(dH(t.label));e.add(i),hH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Yd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Yd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),hH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),pH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,mv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){fH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Yd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),hy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function fH(n,e,t,r){tie(Yd(t).lastProp,r)||(Yd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function tie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&tie(n[a],r)}),!!t}else return n===e}function hH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function pH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const fM=iot;function hM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function nie(n,e,t,r,a){var i=t.get("value"),o=rie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=fv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),oot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function oot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function rie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:E8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function pM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function aie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),nie(e,r,a,i,{position:pM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function iie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function gH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var sot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=vH(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=hM(i),h=lot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=vH(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(fM);function vH(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var lot={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],mH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],mH(n))}}};function mH(n){return n.dim==="x"?0:1}const uot=sot;var cot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const dot=cot;var Rl=at(),fot=M;function oie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),hot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function hot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(yH,"click")),t("mousemove",Ae(yH,"mousemove")),t("globalout",got);function t(r,a){n.on(r,function(i){var o=vot(e);fot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),pot(o.pendings,e)})}}function pot(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function got(n,e,t){n.handler("leave",null,t)}function yH(n,e,t,r){e.handler(n,t,r)}function vot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";oie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const yot=mot;function sie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=Vf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var bH=at();function bot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=sie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Sot,h),showTooltip:Ae(Cot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Eot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&_H(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,SH(S),SH(y)))),m[y.key]=T}})}),M(m,function(y,b){_H(c[b],y,g,!0,f)}),wot(h,c,f),xot(p,a,n,o),Tot(c,o,t),f}}function _H(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=_ot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function _ot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Sot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function Cot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=by(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function wot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function xot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Tot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=bH(r)[a]||{},o=bH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Eot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function SH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",uot),n.registerComponentModel(dot),n.registerComponentView(yot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=dQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},bot)}function Oot(n){He(Rre),He(z0)}var Iot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=hM(i),p=Dot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Pot(r,a,i,l,g);nie(t,a,i,o,m)},e}(fM);function Pot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Dot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:gM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:gH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:gH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Aot=Iot;var Mot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Rot=Mot;var vM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);ir(vM,R0);var Lot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(vM),kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(vM),mM=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);mM.prototype.dataToRadius=cs.prototype.dataToCoord;mM.prototype.radiusToData=cs.prototype.coordToData;const Not=mM;var Fot=at(),yM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=Fot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);yM.prototype.dataToAngle=cs.prototype.dataToCoord;yM.prototype.angleToData=cs.prototype.coordToData;const $ot=yM;var lie=["radius","angle"],Vot=function(){function n(e){this.dimensions=lie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Not,this._angleAxis=new $ot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=CH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=CH(t);return a===this?this.pointToData(r):null},n}();function CH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const jot=Vot;function zot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Bot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Hot(n){return n.mainType==="angleAxis"}function wH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Hot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Uot={dimensions:lie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new jot(a+"");i.update=Bot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");wH(o,l),wH(s,u),zot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Wot=Uot;var Got=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function xH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});xH(u),xH(s),M(Got,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Kot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Kot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function rst(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=cie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=uie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=TH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=TH(t);return a===this?this.pointToData(r):null},n}();function TH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function vst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new gst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var mst={create:vst,dimensions:fie};const yst=mst;var EH=["x","y"],bst=["width","height"],_st=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=hM(i),h=Sst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);aie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=pM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(fM),Sst={line:function(n,e,t){var r=gM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:iie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[EH[e]],t[EH[e]]+t[bst[e]]]}const Cst=_st;var wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function xst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",Cst),n.registerComponentView(wst),n.registerComponentView(fst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",yst)}var Tst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=hv(t);n.prototype.init.apply(this,arguments),OH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),OH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function OH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return AWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Est=Tst;var Ost=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?IWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function IH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Dst=Pst;function Ast(n){n.registerComponentModel(Est),n.registerComponentView(Ist),n.registerCoordinateSystem("calendar",Dst)}function Mst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Rst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),Xee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var hie=["transition","enterFrom","leaveTo"],Lst=hie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?hie:Lst,a=0;a=0;c--){var d=a[c],f=cr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(DH,n)?DH[n]:q9(n),t=new e({});return to(t).type=n,t}function AH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function MH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function $st(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zee),function(e){delete n[e]}),n}function Vst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function jst(n){n.registerComponentModel(Nst),n.registerComponentView(Fst),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var RH=["x","y","radius","angle","single"],zst=["cartesian2d","polar","singleAxis"];function Bst(n){var e=n.get("coordinateSystem");return Be(zst,e)>=0}function ic(n){return n+"Axis"}function Hst(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function pie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Ust=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=LH(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=LH(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(RH,function(a){var i=this.getReferringComponents(ic(a),lHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(RH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=wJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){bZe(r,o.getData(),e)});var a=n.getAxisModel(),i=Ane(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Qst=Xst;var Jst={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const elt=Jst;function tlt(n){n.registerAction("dataZoom",function(e,t){var r=Hst(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var NH=!1;function _M(n){NH||(NH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,elt),tlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nlt(n){n.registerComponentModel(Gst),n.registerComponentView(Zst),_M(n)}var oo=function(){function n(){}return n}(),gie={};function ip(n,e){gie[n]=e}function vie(n){return gie[n]}var rlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=vie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const alt=rlt;function ilt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);wf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function mie(n,e){var t=fv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var olt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(slt(m))S={onclick:_.option.onclick,featureName:m};else{var C=vie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=dv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),uv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}ilt(o,t,a),o.add(mie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function slt(n){return n.indexOf("my")===0}const llt=olt;var ult=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const clt=ult;var FH="__ec_magicType_stack__",dlt=[["line","bar"],["stack"]],flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if($H[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=$H[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(dlt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),$H={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===FH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":FH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const hlt=flt;var lT=new Array(60).join("-"),Eg=" ";function plt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function glt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function blt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Elt(n){var e=SM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return yie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Olt(n){bie(n).snapshots=null}function Ilt(n){return SM(n).length}function SM(n){var e=bie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Plt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Olt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Dlt=Plt;var Alt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Mlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=VH(t,e);M(Rlt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:HH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?HH[r.brushType](i.values,o.offset,Llt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Eae(a),isTargetByCursor:Iae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Oae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=VH(t,e),i=0;in[1]&&n.reverse(),n}function VH(n,e){return i1(n,e,{includeMainTypes:Alt})}var Rlt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:zH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:zH.geo})})}},jH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],zH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Cf(n)),e}},n3={lineX:Ae(BH,0),lineY:Ae(BH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function BH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var HH={lineX:Ae(UH,0),lineY:Ae(UH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function UH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function Llt(n,e){var t=WH(n),r=WH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function WH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const CM=Mlt;var ND=M,klt=rHe("toolbox-dataZoom_"),Nlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new nM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),Vlt(t,r,this,i,a),$lt(t,r)},e.prototype.onclick=function(t,r,a){Flt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new CM(wM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Tlt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),Flt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Elt(this.ecModel))}};function wM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function $lt(n,e){n.setIconStatus("back",Ilt(e)>1?"emphasis":"normal")}function Vlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new CM(wM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}FWe("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=wM(r),o=i1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:klt+u+d};f[c]=d,a.push(f)}return a});const jlt=Nlt;function zlt(n){n.registerComponentModel(alt),n.registerComponentView(llt),ip("saveAsImage",clt),ip("magicType",hlt),ip("dataView",xlt),ip("dataZoom",jlt),ip("restore",Dlt),He(nlt)}var Blt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Hlt=Blt;function _ie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Sie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function Xlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+xM+r:",left"+r+",top"+r),Glt+":"+a}function GH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+xM+":"+o+";":[["top",0],["left",0],[Cie,o]]}function qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Qlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Pte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(Xlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Yee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(qlt(c)),d!=null&&r.push("padding:"+fv(d).join("px ")+"px"),r.join(";")+";"}function YH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Ize(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var Jlt=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;YH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Wlt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Ylt+Qlt(e,!this._firstShow,this._longHide)+GH(i[0],i[1],!0)+("border-color:"+Bf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!_ie(r)&&(s=Zlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=XH(i,a);this._ticket="";var s=i.dataByCoordSys,l=lut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=rut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=sie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XH(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;sf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=rie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=E8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Bf(P.color),l);var A=kV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=hm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=zV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=hm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Bf(y.color),h);var _=kV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?zV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=hm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Kee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=sut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=iut(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=qH(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=qH(h)?d[1]/2:h==="bottom"?d[1]:0),_ie(t)){var y=out(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(hy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function hm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function XH(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function iut(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function out(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function sut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function qH(n){return n==="center"||n==="middle"}function lut(n,e,t){var r=$9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const uut=aut;function cut(n){He(z0),n.registerComponentModel(Hlt),n.registerComponentView(uut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var dut=["rect","polygon","keep","clear"];function fut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),hut(s),e&&!s.length&&s.push.apply(s,dut)}}function hut(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var QH=M;function JH(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return QH(e,function(i){var o=r[i]=a();QH(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function xie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&JH(e[a])?n[a]=Ee(e[a]):delete n[a]})}function put(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return g8(t,s,d)}function u(d,f){Vte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&aU(e)}};function aU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var Cut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new nM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Tie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const wut=Cut;var xut="#ddd",Tut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:xut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return iU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=iU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function iU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Eut=Tut;var Out=["rect","polygon","lineX","lineY","keep","clear"],Iut=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Out.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Put=Iut;function Dut(n){n.registerComponentView(wut),n.registerComponentModel(Eut),n.registerPreprocessor(fut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,mut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Put)}var Aut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Rut(n){n.registerComponentModel(Aut),n.registerComponentView(Mut)}var Lut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=cr(ov(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const oU=Lut;var Eie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Zc(oU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(oU);ir(Eie,c8.prototype);const kut=Eie;var Nut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const Fut=Nut;var $ut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const Vut=$ut;var a3=Math.PI,sU=at(),jut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=But(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=zut(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new Vut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=lU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Sf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Sf(y),sU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Hut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Sf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),uU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){uU(d,u._progressLine,s,a,i)}};this._currentPointer=lU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Ey(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!qut(e)&&!X(e.coord)&&X(a)){var i=Iie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=EM(t,t.mapDimension(a[c]),u[c]));return e}}function Iie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Qut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Qut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Oy(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function Jut(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Pie(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function EM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),ect=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?tee(l):U9(l))})}})},e.type="marker",e}(On);const OM=ect;function dU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(dU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=nct(o,t,r);r.setData(d),dU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(OM);function nct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Ey,e));n&&(i=It(i,Ae(Oy,n)));var o=Pie(!!n,r);return a.initData(i,null,o),a}const rct=tct;function act(n){n.registerComponentModel(Xut),n.registerComponentView(rct),n.registerPreprocessor(function(e){TM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var ict=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const oct=ict;var M_=at(),sct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Iie(r,a,e,n);s=u.valueAxis;var c=gne(a,u.valueDataDim);l=EM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Ey(n,i[0]),Ey(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function fU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function lct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(fU(1,t,r,n)||fU(0,t,r,n)))return!0}return Oy(n,e[0])&&Oy(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new X8);this.group.add(c.group);var d=cct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(OM);function cct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(sct,e,n,t));n&&(s=It(s,Ae(lct,n)));var l=Pie(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const dct=uct;function fct(n){n.registerComponentModel(oct),n.registerComponentView(dct),n.registerPreprocessor(function(e){TM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var hct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const pct=hct;var R_=at(),gct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ey(n,a),s=Ey(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=E9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function hU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function vct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(hU(1,t,r)||hU(0,t,r))?!0:Jut(n,a,i):Oy(n,a)||Oy(n,i)}function pU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(gU,function(d){return pU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=yct(o,t,r);r.setData(d),d.each(function(f){var h=J(gU,function(E){return pU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(OM);function yct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(gct,e,n,t));n&&(s=It(s,Ae(vct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const bct=mct;function _ct(n){n.registerComponentModel(pct),n.registerComponentView(bct),n.registerPreprocessor(function(e){TM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Sct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},Cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Sct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=Cct;var Kh=Ae,zD=M,L_=Oe,wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=mie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(vU,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(vU,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Sf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=xct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Tct({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&uv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Sf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){wf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function xct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Tct(n){var e=n.icon||"roundRect",t=ar(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function vU(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Die(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Aie);const Act=Dct;function Mct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Rct(n){He(Mie),n.registerComponentModel(Pct),n.registerComponentView(Act),Mct(n)}function Lct(n){He(Mie),He(Rct)}var kct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Zc(Ty.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Ty);const Nct=kct;var IM=at();function Fct(n,e,t){IM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function $ct(n,e){for(var t=IM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Hct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=IM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=pie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Vct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Rie(a,i);return}var c=Bct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),mv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Uct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),Fct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){$ct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(bM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:bU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:bU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function bU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Wct=Uct;function Lie(n){_M(n),n.registerComponentModel(Nct),n.registerComponentView(Wct),Hct(n)}var Gct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Zc(Ty.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Ty);const Yct=Gct;var vm=rt,_U=7,Kct=1,f3=30,Zct=7,mm="horizontal",SU="vertical",Xct=5,qct=["line","bar","candlestick","scatter"],Qct={easing:"cubicOut",duration:100,delay:0},Jct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Zct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===mm?{right:s.width-o.x-o.width,top:s.height-f3-_U-i,width:o.width,height:f3}:{right:_U,top:o.y,width:f3,height:o.height},u=hv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===mm&&!o?{scaleY:l?1:-1,scaleX:1}:a===mm&&o?{scaleY:l?1:-1,scaleX:-1}:a===SU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new vm({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new vm({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=edt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new vm({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new vm({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Kct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ar(S,-1,0,2,2,null,!0);C.attr({cursor:CU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Sf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ar(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:CU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new vm({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Qct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=pie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(bM);function edt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function CU(n){return n==="vertical"?"ns-resize":"ew-resize"}const tdt=Jct;function kie(n){n.registerComponentModel(Yct),n.registerComponentView(tdt),_M(n)}function ndt(n){He(Lie),He(kie)}var rdt={get:function(n,e,t){var r=Ee((adt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},adt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Nie=rdt;var wU=Gr.mapVisual,idt=Gr.eachVisual,odt=X,xU=M,sdt=go,ldt=xt,udt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&xie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=sdt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){odt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},xU(p,function(m,y){if(Gr.isValidType(y)){var b=Nie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";xU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=wU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;idt(S,function(w){w>C&&(C=w)}),_.symbolSize=wU(S,function(w){return ldt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=udt;var TU=[20,140],cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=TU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=TU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=EU(this,"outOfRange",this.getExtent()),a=EU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();hdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],Cf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,Cf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||DU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=oHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(sf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function Cdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(bdt,_dt),M(Sdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(wdt))}function jie(n){n.registerComponentModel(ddt),n.registerComponentView(ydt),Vie(n)}var xdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Tdt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Nie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Zc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Tdt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function LU(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Edt=xdt;var Odt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),wf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return $ie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ar(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Fie);const Idt=Odt;function zie(n){n.registerComponentModel(Edt),n.registerComponentView(Idt),Vie(n)}function Pdt(n){He(jie),He(zie)}var Ddt={label:{enabled:!0},decal:{show:!1}},kU=at(),Adt={};function Mdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Ddt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),kU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Adt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=kU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kdt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):mze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Ndt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Hie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Hie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function eft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function tft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),tft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function nft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:dft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Gie(n){return ift(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function fft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var pft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UU(n)&&(u=n,c=e),UU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;DM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:pft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?fft(w,T,P):hft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?WU(c,u):WU(f?e:n,[f?n:e]),p=0,g=0;gYie))for(var a=r.getIndices(),i=vft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function YU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function KU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function bft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=YU(i),c=KU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YU(i),u=KU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function ZU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=ZU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Kie(a,i,r)}function Sft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{Cft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:JM(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(d9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(xft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function xft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:AM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=ine(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:AM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Eft="_description_1a8jp_1",Oft="_card_1a8jp_5",Ift={description:Eft,card:Oft};async function Zie(n){return Er.post("/webapp/getAllBackends",n)}async function Pft(n){return Er.post("/webapp/saveBackend",n)}async function Xie(n){return Er.post("/webapp/updateBackend",n)}async function Dft(n){return Er.post("/webapp/deleteBackend",n)}function Aft(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Zie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Mft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Dft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Ift.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Pft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):Xie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Mft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,Xie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(Lq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(nv.ADMIN),"aria-label":"active switch"})},Rft="_description_1a8jp_1",Lft="_card_1a8jp_5",XU={description:Rft,card:Lft};async function kft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var qie;function be(){return qie.apply(null,arguments)}function Nft(n){qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function Of(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function MM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Qie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var NM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function zft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Bft(n){var e=n.match(NM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Hft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(NM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Wft="Invalid date";function Gft(){return this._invalidDate}var Yft="%d",Kft=/\d{1,2}/;function Zft(n){return this._ordinal.replace("%d",n)}var Xft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Qft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var m1={};function ma(n,e){var t=n.toLowerCase();m1[t]=m1[t+"s"]=m1[e]=n}function Po(n){return typeof n=="string"?m1[n]||m1[n.toLowerCase()]:void 0}function FM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var noe={};function ya(n,e){noe[n]=e}function Jft(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:noe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function _v(n,e){return function(t){return t!=null?(roe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function roe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function eht(n){return n=Po(n),fl(this[n])?this[n]():this}function tht(n,e){if(typeof n=="object"){n=FM(n);var t=Jft(n),r,a=t.length;for(r=0;r68?1900:2e3)};var hoe=_v("FullYear",!0);function _ht(){return cT(this.year())}function Sht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Iy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Iy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function poe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=y1(l)+s):s>y1(n)?(l=n+1,u=s-y1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Py(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(y1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function Cht(n){return Py(n,this._week.dow,this._week.doy).week}var wht={dow:0,doy:6};function xht(){return this._week.dow}function Tht(){return this._week.doy}function Eht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Oht(n){var e=Py(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Iht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Pht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function jM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Dht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),goe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Aht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Mht=U0,Rht=U0,Lht=U0;function kht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?jM(t,this._week.dow):n?t[n.day()]:t}function Nht(n){return n===!0?jM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function Fht(n){return n===!0?jM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function $ht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function Vht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return $ht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function jht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Iht(n,this.localeData()),this.add(n-e,"d")):e}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Bht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Pht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Hht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Mht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||zM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function BM(){return this.hours()%12||12}function Ght(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,BM);Re("k",["kk",2],0,Ght);Re("hmm",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+BM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function voe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}voe("a",!0);voe("A",!1);ma("hour","h");ya("hour",13);function moe(n,e){return e._meridiemParse}xe("a",moe);xe("A",moe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",ooe);xe("hmmss",soe);xe("Hmm",ooe);xe("Hmmss",soe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Yht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Kht=/[ap]\.?m?\.?/i,Zht=_v("Hours",!0);function Xht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var yoe={calendar:Vft,longDateFormat:Hft,invalidDate:Wft,ordinal:Yft,dayOfMonthOrdinalParse:Kft,relativeTime:Xft,months:cht,monthsShort:loe,week:wht,weekdays:Dht,weekdaysMin:Aht,weekdaysShort:goe,meridiemParse:Kht},xn={},ym={},Dy;function qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&qht(i,r)>=t-1)break;t--}e++}return Dy}function Jht(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&Jht(n))try{e=Dy._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=HM(n,e),t?Dy=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),Dy._abbr}function HM(n,e){if(e!==null){var t,r=yoe;if(e.abbr=n,xn[n]!=null)eoe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return ym[e.parentLocale]||(ym[e.parentLocale]=[]),ym[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new kM(KD(r,e)),ym[n]&&ym[n].forEach(function(a){HM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function ept(n,e){if(e!=null){var t,r,a=yoe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new kM(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return Dy;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Qht(n)}function tpt(){return ZD(xn)}function UM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[df]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[df]<0||t[df]>999?df:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=sht),nt(n)._overflowWeekday&&e===-1&&(e=lht),nt(n).overflow=e),n}var npt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rpt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ipt=/^\/?Date\((-?\d+)/i,opt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,spt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function boe(n){var e,t,r=n._i,a=npt.exec(r)||rpt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;ey1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Iy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[df]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Iy:Sht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function gpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Py(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Py(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=poe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function GM(n){if(n._f===be.ISO_8601){boe(n);return}if(n._f===be.RFC_2822){_oe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=toe(n._f,n._locale).match(NM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),oht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=vpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),WM(n),UM(n)}function vpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function mpt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function woe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function $pt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return LM(n,this),n=Soe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Ppt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Vpt(){return this.isValid()?!this._isUTC:!1}function jpt(){return this.isValid()?this._isUTC:!1}function Toe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=zpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[df]*1e3))*a}):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Id(r[2],a),M:Id(r[3],a),w:Id(r[4],a),d:Id(r[5],a),h:Id(r[6],a),m:Id(r[7],a),s:Id(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Hpt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ipt;function Id(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function eW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Hpt(n,e){var t;return n.isValid()&&e.isValid()?(e=KM(e,n),n.isBefore(e)?t=eW(n,e):(t=eW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Eoe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(eoe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ooe(this,a,n),this}}function Ooe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&coe(n,$C(n,"Month")+o*t),i&&roe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Upt=Eoe(1,"add"),Wpt=Eoe(-1,"subtract");function Ioe(n){return typeof n=="string"||n instanceof String}function Gpt(n){return is(n)||B0(n)||Ioe(n)||uu(n)||Kpt(n)||Ypt(n)||n===null||n===void 0}function Ypt(n){var e=Of(n)&&!MM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lgt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function ugt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function cgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function dgt(n){return this.from(Sn(),n)}function fgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function hgt(n){return this.to(Sn(),n)}function Poe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Doe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Aoe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Moe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Roe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Moe:new Date(n,e,t).valueOf()}function Loe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Moe:Date.UTC(n,e,t)}function pgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?Loe:Roe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(){return this._d.valueOf()-(this._offset||0)*6e4}function mgt(){return Math.floor(this.valueOf()/1e3)}function ygt(){return new Date(this.valueOf())}function bgt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function _gt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Sgt(){return this.isValid()?this.toISOString():null}function Cgt(){return RM(this)}function wgt(){return oc({},nt(this))}function xgt(){return nt(this).overflow}function Tgt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",ZM);xe("NN",ZM);xe("NNN",ZM);xe("NNNN",Ngt);xe("NNNNN",Fgt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",Sv);xe("yy",Sv);xe("yyy",Sv);xe("yyyy",Sv);xe("yo",$gt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Egt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Igt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Pgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Wgt.call(this,n,e,t,r,a))}function Wgt(n,e,t,r,a){var i=poe(n,e,t,r,a),o=Iy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",aoe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ggt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Noe=_v("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ioe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Ygt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Kgt=_v("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Zgt=_v("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,aoe);xe("SS",fT,Bi);xe("SSS",fT,ioe);var sc,Foe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,Sv);function Xgt(n,e){e[df]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,Xgt);Foe=_v("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function qgt(){return this._isUTC?"UTC":""}function Qgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Upt;de.calendar=qpt;de.clone=Qpt;de.diff=igt;de.endOf=ggt;de.format=ugt;de.from=cgt;de.fromNow=dgt;de.to=fgt;de.toNow=hgt;de.get=eht;de.invalidAt=xgt;de.isAfter=Jpt;de.isBefore=egt;de.isBetween=tgt;de.isSame=ngt;de.isSameOrAfter=rgt;de.isSameOrBefore=agt;de.isValid=Cgt;de.lang=Doe;de.locale=Poe;de.localeData=Aoe;de.max=Cpt;de.min=Spt;de.parsingFlags=wgt;de.set=tht;de.startOf=pgt;de.subtract=Wpt;de.toArray=bgt;de.toObject=_gt;de.toDate=ygt;de.toISOString=sgt;de.inspect=lgt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Sgt;de.toString=ogt;de.unix=mgt;de.valueOf=vgt;de.creationData=Tgt;de.eraName=Pgt;de.eraNarrow=Dgt;de.eraAbbr=Agt;de.eraYear=Mgt;de.year=hoe;de.isLeapYear=_ht;de.weekYear=Vgt;de.isoWeekYear=jgt;de.quarter=de.quarters=Ggt;de.month=doe;de.daysInMonth=mht;de.week=de.weeks=Eht;de.isoWeek=de.isoWeeks=Oht;de.weeksInYear=Hgt;de.weeksInWeekYear=Ugt;de.isoWeeksInYear=zgt;de.isoWeeksInISOWeekYear=Bgt;de.date=Noe;de.day=de.days=jht;de.weekday=zht;de.isoWeekday=Bht;de.dayOfYear=Ygt;de.hour=de.hours=Zht;de.minute=de.minutes=Kgt;de.second=de.seconds=Zgt;de.millisecond=de.milliseconds=Foe;de.utcOffset=Apt;de.utc=Rpt;de.local=Lpt;de.parseZone=kpt;de.hasAlignedHourOffset=Npt;de.isDST=Fpt;de.isLocal=Vpt;de.isUtcOffset=jpt;de.isUtc=Toe;de.isUTC=Toe;de.zoneAbbr=qgt;de.zoneName=Qgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Noe);de.months=Io("months accessor is deprecated. Use month instead",doe);de.years=Io("years accessor is deprecated. Use year instead",hoe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Mpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",$pt);function Jgt(n){return Sn(n*1e3)}function evt(){return Sn.apply(null,arguments).parseZone()}function $oe(n){return n}var Ft=kM.prototype;Ft.calendar=jft;Ft.longDateFormat=Uft;Ft.invalidDate=Gft;Ft.ordinal=Zft;Ft.preparse=$oe;Ft.postformat=$oe;Ft.relativeTime=qft;Ft.pastFuture=Qft;Ft.set=$ft;Ft.eras=Egt;Ft.erasParse=Ogt;Ft.erasConvertYear=Igt;Ft.erasAbbrRegex=Lgt;Ft.erasNameRegex=Rgt;Ft.erasNarrowRegex=kgt;Ft.months=hht;Ft.monthsShort=pht;Ft.monthsParse=vht;Ft.monthsRegex=bht;Ft.monthsShortRegex=yht;Ft.week=Cht;Ft.firstDayOfYear=Tht;Ft.firstDayOfWeek=xht;Ft.weekdays=kht;Ft.weekdaysMin=Fht;Ft.weekdaysShort=Nht;Ft.weekdaysParse=Vht;Ft.weekdaysRegex=Hht;Ft.weekdaysShortRegex=Uht;Ft.weekdaysMinRegex=Wht;Ft.isPM=Yht;Ft.meridiem=Xht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function Voe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function qM(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function tvt(n,e){return Voe(n,e,"months")}function nvt(n,e){return Voe(n,e,"monthsShort")}function rvt(n,e,t){return qM(n,e,t,"weekdays")}function avt(n,e,t){return qM(n,e,t,"weekdaysShort")}function ivt(n,e,t){return qM(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function ovt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function joe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function svt(n,e){return joe(this,n,e,1)}function lvt(n,e){return joe(this,n,e,-1)}function tW(n){return n<0?Math.floor(n):Math.ceil(n)}function uvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=tW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(zoe(e)),t+=l,e-=tW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function zoe(n){return n*4800/146097}function JD(n){return n*146097/4800}function cvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+zoe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function dvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var fvt=gu("ms"),hvt=gu("s"),pvt=gu("m"),gvt=gu("h"),vvt=gu("d"),mvt=gu("w"),yvt=gu("M"),bvt=gu("Q"),_vt=gu("y");function Svt(){return ds(this)}function Cvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var wvt=vh("milliseconds"),xvt=vh("seconds"),Tvt=vh("minutes"),Evt=vh("hours"),Ovt=vh("days"),Ivt=vh("months"),Pvt=vh("years");function Dvt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Avt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Mvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Avt.apply(null,f)}function Rvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function Lvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function kvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Mvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Opt;Tt.abs=ovt;Tt.add=svt;Tt.subtract=lvt;Tt.as=cvt;Tt.asMilliseconds=fvt;Tt.asSeconds=hvt;Tt.asMinutes=pvt;Tt.asHours=gvt;Tt.asDays=vvt;Tt.asWeeks=mvt;Tt.asMonths=yvt;Tt.asQuarters=bvt;Tt.asYears=_vt;Tt.valueOf=dvt;Tt._bubble=uvt;Tt.clone=Svt;Tt.get=Cvt;Tt.milliseconds=wvt;Tt.seconds=xvt;Tt.minutes=Tvt;Tt.hours=Evt;Tt.days=Ovt;Tt.weeks=Dvt;Tt.months=Ivt;Tt.years=Pvt;Tt.humanize=kvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Poe;Tt.localeData=Aoe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Doe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",rht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Nft(Sn);be.fn=de;be.min=wpt;be.max=xpt;be.now=Tpt;be.utc=dl;be.unix=Jgt;be.months=tvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=rvt;be.parseZone=evt;be.localeData=pu;be.isDuration=$2;be.monthsShort=nvt;be.weekdaysMin=ivt;be.defineLocale=HM;be.updateLocale=ept;be.locales=tpt;be.weekdaysShort=avt;be.normalizeUnits=Po;be.relativeTimeRounding=Rvt;be.relativeTimeThreshold=Lvt;be.calendarFormat=Xpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function Fvt(){const{Text:n}=kf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Zie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),kft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Nvt(b)}),y=b=>V.jsx(kf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(nv.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:XU.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const $vt="_description_1a8jp_1",Vvt="_card_1a8jp_5",nW={description:$vt,card:Vvt};async function jvt(n){return Er.post("/webapp/findSelector",n)}async function zvt(n){return Er.post("/webapp/saveSelector",n)}async function Bvt(n){return Er.post("/webapp/updateSelector",n)}async function Hvt(n){return Er.post("/webapp/deleteSelector",n)}function Uvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{jvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Hvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:nW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Bvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Wvt="_description_1a8jp_1",Gvt="_card_1a8jp_5",rW={description:Wvt,card:Gvt};async function Yvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Kvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Yvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(ev,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Xvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:rW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(nv.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Kvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const QM=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(Kje,{className:Rt.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(wft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Uje,{className:Rt.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Aft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Bje,{className:Rt.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Gje,{className:Rt.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Uvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(jje,{className:Rt.icon}),roles:[],routeProps:{path:"/history",element:V.jsx(Fvt,{})}}],e6=QM.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function JM(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Qvt=n=>{const e=$i(),t=VQ(),r=Fy(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{uje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Nd.Auto,Nd.Light,Nd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Rt.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Rt.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Rt.dIV,children:[V.jsx(Jt,{icon:p===Nd.Auto?V.jsx(v5e,{className:Rt.semiIconsBell}):p===Nd.Light?V.jsx(F5e,{className:Rt.semiIconsBell}):p===Nd.Dark?V.jsx(b5e,{className:Rt.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(r5e,{className:Rt.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.nickName})})]}),className:Rt.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Rt.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Rt.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(pce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:QM.filter(m=>JM(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(mZ,{})}):V.jsx("div",{className:Rt.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(vZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Rt.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Rt.userProfile,children:[V.jsxs("div",{className:Rt.banner,children:[V.jsx("div",{className:Rt.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Rt.avatar,children:e.userName})}),V.jsx("div",{className:Rt.name,children:V.jsx("p",{className:Rt.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Rt.main,children:[V.jsx("div",{className:Rt.descriptions,children:V.jsxs("div",{className:Rt.frame4152,children:[V.jsx(d5e,{className:Rt.semiIconsMapPin}),V.jsx("p",{className:Rt.value,children:e.userId})]})}),V.jsx("div",{className:Rt.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Rt.tag2,children:m},m))})]})]})})]})};var Jvt=Object.defineProperty,aW=Object.getOwnPropertySymbols,emt=Object.prototype.hasOwnProperty,tmt=Object.prototype.propertyIsEnumerable,iW=(n,e,t)=>e in n?Jvt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,nmt=(n,e)=>{for(var t in e||(e={}))emt.call(e,t)&&iW(n,t,e[t]);if(aW)for(var t of aW(e))tmt.call(e,t)&&iW(n,t,e[t]);return n};function rmt(n){return D.createElement("svg",nmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var amt=rmt,imt=Object.defineProperty,oW=Object.getOwnPropertySymbols,omt=Object.prototype.hasOwnProperty,smt=Object.prototype.propertyIsEnumerable,sW=(n,e,t)=>e in n?imt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,lmt=(n,e)=>{for(var t in e||(e={}))omt.call(e,t)&&sW(n,t,e[t]);if(oW)for(var t of oW(e))smt.call(e,t)&&sW(n,t,e[t]);return n};function umt(n){return D.createElement("svg",lmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var cmt=umt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=lW.get("token");e&&(n.updateToken(e),lW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Qvt,{children:V.jsxs(ice,{children:[QM.flatMap(e=>JM(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(pmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(hje,{})})})}function pmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(fq,{image:V.jsx(cmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(amt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function gmt(){const n=VQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=AM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(fmt,{})}))});export default vmt(); diff --git a/gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js b/gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js deleted file mode 100644 index 243eb6030..000000000 --- a/gateway-ha/src/main/resources/static/assets/index-ytwn7x7b.js +++ /dev/null @@ -1,169 +0,0 @@ -var Hoe=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var mmt=Hoe((Hmt,j2)=>{function Uoe(n,e){for(var t=0;tr[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function t(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=t(a);fetch(a.href,i)}})();var Y0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Woe(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var a=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return n[r]}})}),t}var hW={exports:{}},UC={},pW={exports:{}},bt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Ry=Symbol.for("react.element"),Goe=Symbol.for("react.portal"),Yoe=Symbol.for("react.fragment"),Koe=Symbol.for("react.strict_mode"),Zoe=Symbol.for("react.profiler"),Xoe=Symbol.for("react.provider"),qoe=Symbol.for("react.context"),Qoe=Symbol.for("react.forward_ref"),Joe=Symbol.for("react.suspense"),ese=Symbol.for("react.memo"),tse=Symbol.for("react.lazy"),rR=Symbol.iterator;function nse(n){return n===null||typeof n!="object"?null:(n=rR&&n[rR]||n["@@iterator"],typeof n=="function"?n:null)}var gW={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vW=Object.assign,mW={};function Og(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}Og.prototype.isReactComponent={};Og.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Og.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function yW(){}yW.prototype=Og.prototype;function n6(n,e,t){this.props=n,this.context=e,this.refs=mW,this.updater=t||gW}var r6=n6.prototype=new yW;r6.constructor=n6;vW(r6,Og.prototype);r6.isPureReactComponent=!0;var aR=Array.isArray,bW=Object.prototype.hasOwnProperty,a6={current:null},_W={key:!0,ref:!0,__self:!0,__source:!0};function SW(n,e,t){var r,a={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)bW.call(e,r)&&!_W.hasOwnProperty(r)&&(a[r]=e[r]);var s=arguments.length-2;if(s===1)a.children=t;else if(1>>1,Y=F[G];if(0>>1;Ga(ae,U))sea(ee,ae)?(F[G]=ee,F[se]=U,G=se):(F[G]=ae,F[Z]=U,G=Z);else if(sea(ee,U))F[G]=ee,F[se]=U,G=se;else break e}}return j}function a(F,j){var U=F.sortIndex-j.sortIndex;return U!==0?U:F.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();n.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,g=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var j=t(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=F)r(u),j.sortIndex=j.expirationTime,e(l,j);else break;j=t(u)}}function S(F){if(g=!1,_(F),!p)if(t(l)!==null)p=!0,N(C);else{var j=t(u);j!==null&&z(S,j.startTime-F)}}function C(F,j){p=!1,g&&(g=!1,y(E),E=-1),h=!0;var U=f;try{for(_(j),d=t(l);d!==null&&(!(d.expirationTime>j)||F&&!P());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var Y=G(d.expirationTime<=j);j=n.unstable_now(),typeof Y=="function"?d.callback=Y:d===t(l)&&r(l),_(j)}else r(l);d=t(l)}if(d!==null)var Q=!0;else{var Z=t(u);Z!==null&&z(S,Z.startTime-j),Q=!1}return Q}finally{d=null,f=U,h=!1}}var w=!1,T=null,E=-1,O=5,I=-1;function P(){return!(n.unstable_now()-IF||125G?(F.sortIndex=U,e(u,F),t(l)===null&&F===t(u)&&(g?(y(E),E=-1):g=!0,z(S,U-G))):(F.sortIndex=Y,e(l,F),p||h||(p=!0,N(C))),F},n.unstable_shouldYield=P,n.unstable_wrapCallback=function(F){var j=f;return function(){var U=f;f=j;try{return F.apply(this,arguments)}finally{f=U}}}})(TW);xW.exports=TW;var pse=xW.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var EW=D,Fi=pse;function ue(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C3=Object.prototype.hasOwnProperty,gse=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oR={},sR={};function vse(n){return C3.call(sR,n)?!0:C3.call(oR,n)?!1:gse.test(n)?sR[n]=!0:(oR[n]=!0,!1)}function mse(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function yse(n,e,t,r){if(e===null||typeof e>"u"||mse(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Va(n,e,t,r,a,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var Yr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Yr[n]=new Va(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Yr[e]=new Va(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Yr[n]=new Va(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Yr[n]=new Va(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Yr[n]=new Va(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Yr[n]=new Va(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Yr[n]=new Va(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Yr[n]=new Va(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Yr[n]=new Va(n,5,!1,n.toLowerCase(),null,!1,!1)});var o6=/[\-:]([a-z])/g;function s6(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(o6,s6);Yr[e]=new Va(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!1,!1)});Yr.xlinkHref=new Va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Yr[n]=new Va(n,1,!1,n.toLowerCase(),null,!0,!0)});function l6(n,e,t,r){var a=Yr.hasOwnProperty(e)?Yr[e]:null;(a!==null?a.type!==0:r||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return n.displayName&&l.includes("")&&(l=l.replace("",n.displayName)),l}while(1<=o&&0<=s);break}}}finally{xT=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?Cm(n):""}function bse(n){switch(n.tag){case 5:return Cm(n.type);case 16:return Cm("Lazy");case 13:return Cm("Suspense");case 19:return Cm("SuspenseList");case 0:case 2:case 15:return n=TT(n.type,!1),n;case 11:return n=TT(n.type.render,!1),n;case 1:return n=TT(n.type,!0),n;default:return""}}function E3(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case lp:return"Fragment";case sp:return"Portal";case w3:return"Profiler";case u6:return"StrictMode";case x3:return"Suspense";case T3:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case PW:return(n.displayName||"Context")+".Consumer";case IW:return(n._context.displayName||"Context")+".Provider";case c6:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case d6:return e=n.displayName||null,e!==null?e:E3(n.type)||"Memo";case Nu:e=n._payload,n=n._init;try{return E3(n(e))}catch{}}return null}function _se(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return E3(e);case 8:return e===u6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ec(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function AW(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sse(n){var e=AW(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var a=t.get,i=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return a.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function X0(n){n._valueTracker||(n._valueTracker=Sse(n))}function MW(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=AW(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function z2(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function O3(n,e){var t=e.checked;return Nn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function uR(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=Ec(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function RW(n,e){e=e.checked,e!=null&&l6(n,"checked",e,!1)}function I3(n,e){RW(n,e);var t=Ec(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?P3(n,e.type,t):e.hasOwnProperty("defaultValue")&&P3(n,e.type,Ec(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function cR(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function P3(n,e,t){(e!=="number"||z2(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var wm=Array.isArray;function Mp(n,e,t,r){if(n=n.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=q0.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function C1(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var zm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Cse=["Webkit","ms","Moz","O"];Object.keys(zm).forEach(function(n){Cse.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),zm[e]=zm[n]})});function FW(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||zm.hasOwnProperty(n)&&zm[n]?(""+e).trim():e+"px"}function $W(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,a=FW(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,a):n[t]=a}}var wse=Nn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function M3(n,e){if(e){if(wse[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ue(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ue(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ue(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ue(62))}}function R3(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var L3=null;function f6(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var k3=null,Rp=null,Lp=null;function hR(n){if(n=Ny(n)){if(typeof k3!="function")throw Error(ue(280));var e=n.stateNode;e&&(e=ZC(e),k3(n.stateNode,n.type,e))}}function VW(n){Rp?Lp?Lp.push(n):Lp=[n]:Rp=n}function jW(){if(Rp){var n=Rp,e=Lp;if(Lp=Rp=null,hR(n),e)for(n=0;n>>=0,n===0?32:31-(Lse(n)/kse|0)|0}var Q0=64,J0=4194304;function xm(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function W2(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,a=n.suspendedLanes,i=n.pingedLanes,o=t&268435455;if(o!==0){var s=o&~a;s!==0?r=xm(s):(i&=o,i!==0&&(r=xm(i)))}else o=t&~a,o!==0?r=xm(o):i!==0&&(r=xm(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0t;t++)e.push(n);return e}function Ly(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Xo(e),n[e]=t}function Vse(n,e){var t=n.pendingLanes&~e;n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0=Hm),CR=" ",wR=!1;function oG(n,e){switch(n){case"keyup":return hle.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sG(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var up=!1;function gle(n,e){switch(n){case"compositionend":return sG(e);case"keypress":return e.which!==32?null:(wR=!0,CR);case"textInput":return n=e.data,n===CR&&wR?null:n;default:return null}}function vle(n,e){if(up)return n==="compositionend"||!_6&&oG(n,e)?(n=aG(),z_=m6=Wu=null,up=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=OR(t)}}function dG(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?dG(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function fG(){for(var n=window,e=z2();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=z2(n.document)}return e}function S6(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function Tle(n){var e=fG(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&dG(t.ownerDocument.documentElement,t)){if(r!==null&&S6(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var a=t.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!n.extend&&i>r&&(a=r,r=i,i=a),a=IR(t,i);var o=IR(t,r);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,cp=null,z3=null,Wm=null,B3=!1;function PR(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;B3||cp==null||cp!==z2(r)||(r=cp,"selectionStart"in r&&S6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Wm&&I1(Wm,r)||(Wm=r,r=K2(z3,"onSelect"),0hp||(n.current=K3[hp],K3[hp]=null,hp--)}function dn(n,e){hp++,K3[hp]=n.current,n.current=e}var Oc={},fa=Bc(Oc),oi=Bc(!1),Pf=Oc;function Jp(n,e){var t=n.type.contextTypes;if(!t)return Oc;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in t)a[i]=e[i];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=a),a}function si(n){return n=n.childContextTypes,n!=null}function X2(){bn(oi),bn(fa)}function NR(n,e,t){if(fa.current!==Oc)throw Error(ue(168));dn(fa,e),dn(oi,t)}function SG(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(ue(108,_se(n)||"Unknown",a));return Nn({},t,r)}function q2(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||Oc,Pf=fa.current,dn(fa,n),dn(oi,oi.current),!0}function FR(n,e,t){var r=n.stateNode;if(!r)throw Error(ue(169));t?(n=SG(n,e,Pf),r.__reactInternalMemoizedMergedChildContext=n,bn(oi),bn(fa),dn(fa,n)):bn(oi),dn(oi,t)}var Ol=null,XC=!1,VT=!1;function CG(n){Ol===null?Ol=[n]:Ol.push(n)}function Fle(n){XC=!0,CG(n)}function Hc(){if(!VT&&Ol!==null){VT=!0;var n=0,e=qt;try{var t=Ol;for(qt=1;n>=o,a-=o,Il=1<<32-Xo(e)+a|t<E?(O=T,T=null):O=T.sibling;var I=f(y,T,_[E],S);if(I===null){T===null&&(T=O);break}n&&T&&I.alternate===null&&e(y,T),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I,T=O}if(E===_.length)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;E<_.length;E++)T=d(y,_[E],S),T!==null&&(b=i(T,b,E),w===null?C=T:w.sibling=T,w=T);return Tn&&Dd(y,E),C}for(T=r(y,T);E<_.length;E++)O=h(T,y,E,_[E],S),O!==null&&(n&&O.alternate!==null&&T.delete(O.key===null?E:O.key),b=i(O,b,E),w===null?C=O:w.sibling=O,w=O);return n&&T.forEach(function(P){return e(y,P)}),Tn&&Dd(y,E),C}function g(y,b,_,S){var C=Tv(_);if(typeof C!="function")throw Error(ue(150));if(_=C.call(_),_==null)throw Error(ue(151));for(var w=C=null,T=b,E=b=0,O=null,I=_.next();T!==null&&!I.done;E++,I=_.next()){T.index>E?(O=T,T=null):O=T.sibling;var P=f(y,T,I.value,S);if(P===null){T===null&&(T=O);break}n&&T&&P.alternate===null&&e(y,T),b=i(P,b,E),w===null?C=P:w.sibling=P,w=P,T=O}if(I.done)return t(y,T),Tn&&Dd(y,E),C;if(T===null){for(;!I.done;E++,I=_.next())I=d(y,I.value,S),I!==null&&(b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return Tn&&Dd(y,E),C}for(T=r(y,T);!I.done;E++,I=_.next())I=h(T,y,E,I.value,S),I!==null&&(n&&I.alternate!==null&&T.delete(I.key===null?E:I.key),b=i(I,b,E),w===null?C=I:w.sibling=I,w=I);return n&&T.forEach(function(A){return e(y,A)}),Tn&&Dd(y,E),C}function m(y,b,_,S){if(typeof _=="object"&&_!==null&&_.type===lp&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Z0:e:{for(var C=_.key,w=b;w!==null;){if(w.key===C){if(C=_.type,C===lp){if(w.tag===7){t(y,w.sibling),b=a(w,_.props.children),b.return=y,y=b;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nu&&UR(C)===w.type){t(y,w.sibling),b=a(w,_.props),b.ref=Dv(y,w,_),b.return=y,y=b;break e}t(y,w);break}else e(y,w);w=w.sibling}_.type===lp?(b=pf(_.props.children,y.mode,S,_.key),b.return=y,y=b):(S=Z_(_.type,_.key,_.props,null,y.mode,S),S.ref=Dv(y,b,_),S.return=y,y=S)}return o(y);case sp:e:{for(w=_.key;b!==null;){if(b.key===w)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){t(y,b.sibling),b=a(b,_.children||[]),b.return=y,y=b;break e}else{t(y,b);break}else e(y,b);b=b.sibling}b=YT(_,y.mode,S),b.return=y,y=b}return o(y);case Nu:return w=_._init,m(y,b,w(_._payload),S)}if(wm(_))return p(y,b,_,S);if(Tv(_))return g(y,b,_,S);ob(y,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(t(y,b.sibling),b=a(b,_),b.return=y,y=b):(t(y,b),b=GT(_,y.mode,S),b.return=y,y=b),o(y)):t(y,b)}return m}var tg=DG(!0),AG=DG(!1),Fy={},Ws=Bc(Fy),M1=Bc(Fy),R1=Bc(Fy);function Qd(n){if(n===Fy)throw Error(ue(174));return n}function D6(n,e){switch(dn(R1,e),dn(M1,n),dn(Ws,Fy),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:A3(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=A3(e,n)}bn(Ws),dn(Ws,e)}function ng(){bn(Ws),bn(M1),bn(R1)}function MG(n){Qd(R1.current);var e=Qd(Ws.current),t=A3(e,n.type);e!==t&&(dn(M1,n),dn(Ws,t))}function A6(n){M1.current===n&&(bn(Ws),bn(M1))}var An=Bc(0);function rS(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var jT=[];function M6(){for(var n=0;nt?t:4,n(!0);var r=zT.transition;zT.transition={};try{n(!1),e()}finally{qt=t,zT.transition=r}}function KG(){return So().memoizedState}function zle(n,e,t){var r=pc(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},ZG(n))XG(e,t);else if(t=EG(n,e,t,r),t!==null){var a=La();qo(t,n,r,a),qG(t,e,r)}}function Ble(n,e,t){var r=pc(n),a={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(ZG(n))XG(e,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,s=i(o,t);if(a.hasEagerState=!0,a.eagerState=s,es(s,o)){var l=e.interleaved;l===null?(a.next=a,I6(e)):(a.next=l.next,l.next=a),e.interleaved=a;return}}catch{}finally{}t=EG(n,e,a,r),t!==null&&(a=La(),qo(t,n,r,a),qG(t,e,r))}}function ZG(n){var e=n.alternate;return n===kn||e!==null&&e===kn}function XG(n,e){Gm=aS=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function qG(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,p6(n,t)}}var iS={readContext:_o,useCallback:Jr,useContext:Jr,useEffect:Jr,useImperativeHandle:Jr,useInsertionEffect:Jr,useLayoutEffect:Jr,useMemo:Jr,useReducer:Jr,useRef:Jr,useState:Jr,useDebugValue:Jr,useDeferredValue:Jr,useTransition:Jr,useMutableSource:Jr,useSyncExternalStore:Jr,useId:Jr,unstable_isNewReconciler:!1},Hle={readContext:_o,useCallback:function(n,e){return Ts().memoizedState=[n,e===void 0?null:e],n},useContext:_o,useEffect:GR,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,W_(4194308,4,HG.bind(null,e,n),t)},useLayoutEffect:function(n,e){return W_(4194308,4,n,e)},useInsertionEffect:function(n,e){return W_(4,2,n,e)},useMemo:function(n,e){var t=Ts();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ts();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=zle.bind(null,kn,n),[r.memoizedState,n]},useRef:function(n){var e=Ts();return n={current:n},e.memoizedState=n},useState:WR,useDebugValue:F6,useDeferredValue:function(n){return Ts().memoizedState=n},useTransition:function(){var n=WR(!1),e=n[0];return n=jle.bind(null,n[1]),Ts().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=kn,a=Ts();if(Tn){if(t===void 0)throw Error(ue(407));t=t()}else{if(t=e(),Nr===null)throw Error(ue(349));Af&30||kG(r,e,t)}a.memoizedState=t;var i={value:t,getSnapshot:e};return a.queue=i,GR(FG.bind(null,r,i,n),[n]),r.flags|=2048,N1(9,NG.bind(null,r,i,t,e),void 0,null),t},useId:function(){var n=Ts(),e=Nr.identifierPrefix;if(Tn){var t=Pl,r=Il;t=(r&~(1<<32-Xo(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=L1++,0<\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=o.createElement(t,{is:r.is}):(n=o.createElement(t),t==="select"&&(o=n,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):n=o.createElementNS(n,t),n[Is]=e,n[A1]=r,oY(n,e,!1,!1),e.stateNode=n;e:{switch(o=R3(t,r),t){case"dialog":mn("cancel",n),mn("close",n),a=r;break;case"iframe":case"object":case"embed":mn("load",n),a=r;break;case"video":case"audio":for(a=0;aag&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304)}else{if(!r)if(n=rS(o),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Av(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Tn)return ea(e),null}else 2*er()-i.renderingStartTime>ag&&t!==1073741824&&(e.flags|=128,r=!0,Av(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(t=i.last,t!==null?t.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=er(),e.sibling=null,t=An.current,dn(An,r?t&1|2:t&1),e):(ea(e),null);case 22:case 23:return H6(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?wi&1073741824&&(ea(e),e.subtreeFlags&6&&(e.flags|=8192)):ea(e),null;case 24:return null;case 25:return null}throw Error(ue(156,e.tag))}function qle(n,e){switch(w6(e),e.tag){case 1:return si(e.type)&&X2(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return ng(),bn(oi),bn(fa),M6(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return A6(e),null;case 13:if(bn(An),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ue(340));eg()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return bn(An),null;case 4:return ng(),null;case 10:return O6(e.type._context),null;case 22:case 23:return H6(),null;case 24:return null;default:return null}}var lb=!1,la=!1,Qle=typeof WeakSet=="function"?WeakSet:Set,Te=null;function mp(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Un(n,e,r)}else t.current=null}function oO(n,e,t){try{t()}catch(r){Un(n,e,r)}}var tL=!1;function Jle(n,e){if(H3=G2,n=fG(),S6(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{t.nodeType,i.nodeType}catch{t=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=n,f=null;t:for(;;){for(var h;d!==t||a!==0&&d.nodeType!==3||(s=o+a),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===n)break t;if(f===t&&++u===a&&(s=o),f===i&&++c===r&&(l=o),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(U3={focusedElem:n,selectionRange:t},G2=!1,Te=e;Te!==null;)if(e=Te,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,Te=n;else for(;Te!==null;){e=Te;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,m=p.memoizedState,y=e.stateNode,b=y.getSnapshotBeforeUpdate(e.elementType===e.type?g:zo(e.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=e.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ue(163))}}catch(S){Un(e,e.return,S)}if(n=e.sibling,n!==null){n.return=e.return,Te=n;break}Te=e.return}return p=tL,tL=!1,p}function Ym(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&oO(e,t,i)}a=a.next}while(a!==r)}}function JC(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function sO(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function uY(n){var e=n.alternate;e!==null&&(n.alternate=null,uY(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[Is],delete e[A1],delete e[Y3],delete e[kle],delete e[Nle])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function cY(n){return n.tag===5||n.tag===3||n.tag===4}function nL(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||cY(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function lO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Z2));else if(r!==4&&(n=n.child,n!==null))for(lO(n,e,t),n=n.sibling;n!==null;)lO(n,e,t),n=n.sibling}function uO(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(uO(n,e,t),n=n.sibling;n!==null;)uO(n,e,t),n=n.sibling}var jr=null,Ho=!1;function yu(n,e,t){for(t=t.child;t!==null;)dY(n,e,t),t=t.sibling}function dY(n,e,t){if(Us&&typeof Us.onCommitFiberUnmount=="function")try{Us.onCommitFiberUnmount(WC,t)}catch{}switch(t.tag){case 5:la||mp(t,e);case 6:var r=jr,a=Ho;jr=null,yu(n,e,t),jr=r,Ho=a,jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jr.removeChild(t.stateNode));break;case 18:jr!==null&&(Ho?(n=jr,t=t.stateNode,n.nodeType===8?$T(n.parentNode,t):n.nodeType===1&&$T(n,t),E1(n)):$T(jr,t.stateNode));break;case 4:r=jr,a=Ho,jr=t.stateNode.containerInfo,Ho=!0,yu(n,e,t),jr=r,Ho=a;break;case 0:case 11:case 14:case 15:if(!la&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&oO(t,e,o),a=a.next}while(a!==r)}yu(n,e,t);break;case 1:if(!la&&(mp(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(s){Un(t,e,s)}yu(n,e,t);break;case 21:yu(n,e,t);break;case 22:t.mode&1?(la=(r=la)||t.memoizedState!==null,yu(n,e,t),la=r):yu(n,e,t);break;default:yu(n,e,t)}}function rL(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Qle),e.forEach(function(r){var a=lue.bind(null,n,r);t.has(r)||(t.add(r),r.then(a,a))})}}function Do(n,e){var t=e.deletions;if(t!==null)for(var r=0;ra&&(a=o),r&=~i}if(r=a,r=er()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tue(r/1960))-r,10n?16:n,Gu===null)var r=!1;else{if(n=Gu,Gu=null,lS=0,Dt&6)throw Error(ue(331));var a=Dt;for(Dt|=4,Te=n.current;Te!==null;){var i=Te,o=i.child;if(Te.flags&16){var s=i.deletions;if(s!==null){for(var l=0;ler()-z6?hf(n,0):j6|=t),li(n,e)}function bY(n,e){e===0&&(n.mode&1?(e=J0,J0<<=1,!(J0&130023424)&&(J0=4194304)):e=1);var t=La();n=Zl(n,e),n!==null&&(Ly(n,e,t),li(n,t))}function sue(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),bY(n,t)}function lue(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,a=n.memoizedState;a!==null&&(t=a.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ue(314))}r!==null&&r.delete(e),bY(n,t)}var _Y;_Y=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||oi.current)ri=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return ri=!1,Zle(n,e,t);ri=!!(n.flags&131072)}else ri=!1,Tn&&e.flags&1048576&&wG(e,J2,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;G_(n,e),n=e.pendingProps;var a=Jp(e,fa.current);Np(e,t),a=L6(null,e,r,n,a,t);var i=k6();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,si(r)?(i=!0,q2(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,P6(e),a.updater=qC,e.stateNode=a,a._reactInternals=e,J3(e,r,n,t),e=nO(null,e,r,!0,i,t)):(e.tag=0,Tn&&i&&C6(e),Ia(null,e,a,t),e=e.child),e;case 16:r=e.elementType;e:{switch(G_(n,e),n=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=cue(r),n=zo(r,n),a){case 0:e=tO(null,e,r,n,t);break e;case 1:e=QR(null,e,r,n,t);break e;case 11:e=XR(null,e,r,n,t);break e;case 14:e=qR(null,e,r,zo(r.type,n),t);break e}throw Error(ue(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),tO(n,e,r,a,t);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),QR(n,e,r,a,t);case 3:e:{if(rY(e),n===null)throw Error(ue(387));r=e.pendingProps,i=e.memoizedState,a=i.element,OG(n,e),nS(e,r,null,t);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=rg(Error(ue(423)),e),e=JR(n,e,r,t,a);break e}else if(r!==a){a=rg(Error(ue(424)),e),e=JR(n,e,r,t,a);break e}else for(Oi=dc(e.stateNode.containerInfo.firstChild),Mi=e,Tn=!0,Uo=null,t=AG(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(eg(),r===a){e=Xl(n,e,t);break e}Ia(n,e,r,t)}e=e.child}return e;case 5:return MG(e),n===null&&X3(e),r=e.type,a=e.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,W3(r,a)?o=null:i!==null&&W3(r,i)&&(e.flags|=32),nY(n,e),Ia(n,e,o,t),e.child;case 6:return n===null&&X3(e),null;case 13:return aY(n,e,t);case 4:return D6(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=tg(e,null,r,t):Ia(n,e,r,t),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),XR(n,e,r,a,t);case 7:return Ia(n,e,e.pendingProps,t),e.child;case 8:return Ia(n,e,e.pendingProps.children,t),e.child;case 12:return Ia(n,e,e.pendingProps.children,t),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,o=a.value,dn(eS,r._currentValue),r._currentValue=o,i!==null)if(es(i.value,o)){if(i.children===a.children&&!oi.current){e=Xl(n,e,t);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Nl(-1,t&-t),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=t,l=i.alternate,l!==null&&(l.lanes|=t),q3(i.return,t,e),s.lanes|=t;break}l=l.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ue(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),q3(o,t,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ia(n,e,a.children,t),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,Np(e,t),a=_o(a),r=r(a),e.flags|=1,Ia(n,e,r,t),e.child;case 14:return r=e.type,a=zo(r,e.pendingProps),a=zo(r.type,a),qR(n,e,r,a,t);case 15:return eY(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:zo(r,a),G_(n,e),e.tag=1,si(r)?(n=!0,q2(e)):n=!1,Np(e,t),PG(e,r,a),J3(e,r,a,t),nO(null,e,r,!0,n,t);case 19:return iY(n,e,t);case 22:return tY(n,e,t)}throw Error(ue(156,e.tag))};function SY(n,e){return YW(n,e)}function uue(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ho(n,e,t,r){return new uue(n,e,t,r)}function W6(n){return n=n.prototype,!(!n||!n.isReactComponent)}function cue(n){if(typeof n=="function")return W6(n)?1:0;if(n!=null){if(n=n.$$typeof,n===c6)return 11;if(n===d6)return 14}return 2}function gc(n,e){var t=n.alternate;return t===null?(t=ho(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function Z_(n,e,t,r,a,i){var o=2;if(r=n,typeof n=="function")W6(n)&&(o=1);else if(typeof n=="string")o=5;else e:switch(n){case lp:return pf(t.children,a,i,e);case u6:o=8,a|=8;break;case w3:return n=ho(12,t,e,a|2),n.elementType=w3,n.lanes=i,n;case x3:return n=ho(13,t,e,a),n.elementType=x3,n.lanes=i,n;case T3:return n=ho(19,t,e,a),n.elementType=T3,n.lanes=i,n;case DW:return tw(t,a,i,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case IW:o=10;break e;case PW:o=9;break e;case c6:o=11;break e;case d6:o=14;break e;case Nu:o=16,r=null;break e}throw Error(ue(130,n==null?n:typeof n,""))}return e=ho(o,t,e,a),e.elementType=n,e.type=r,e.lanes=i,e}function pf(n,e,t,r){return n=ho(7,n,r,e),n.lanes=t,n}function tw(n,e,t,r){return n=ho(22,n,r,e),n.elementType=DW,n.lanes=t,n.stateNode={isHidden:!1},n}function GT(n,e,t){return n=ho(6,n,null,e),n.lanes=t,n}function YT(n,e,t){return e=ho(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function due(n,e,t,r,a){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=OT(0),this.expirationTimes=OT(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=OT(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function G6(n,e,t,r,a,i,o,s,l){return n=new due(n,e,t,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=ho(3,null,null,e),n.current=i,i.stateNode=n,i.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},P6(i),n}function fue(n,e,t){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(TY)}catch(n){console.error(n)}}TY(),wW.exports=ji;var Ti=wW.exports;const ui=Ie(Ti);var dL=Ti;S3.createRoot=dL.createRoot,S3.hydrateRoot=dL.hydrateRoot;class mue extends x.Component{constructor(e){super(e),this.state={hasError:!1,error:null,info:null}}componentDidCatch(e,t){this.setState({hasError:!0,error:e,info:t})}render(){var e,t;return this.state.hasError?V.jsxs("div",{className:"error",children:[V.jsx("h2",{children:"Oops, something went wrong!"}),V.jsxs("pre",{children:[V.jsx("code",{children:(e=this.state.error)==null?void 0:e.toString()}),V.jsx("code",{children:(t=this.state.info)==null?void 0:t.componentStack})]})]}):this.props.children}}/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $1(){return $1=Object.assign?Object.assign.bind():function(n){for(var e=1;e"u")throw new Error(e)}function ow(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function bue(){return Math.random().toString(36).substr(2,8)}function hL(n,e){return{usr:n.state,key:n.key,idx:e}}function pO(n,e,t,r){return t===void 0&&(t=null),$1({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Kf(e):e,{state:t,key:e&&e.key||r||bue()})}function dS(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Kf(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function _ue(n,e,t,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,s=Yu.Pop,l=null,u=c();u==null&&(u=0,o.replaceState($1({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){s=Yu.Pop;let m=c(),y=m==null?null:m-u;u=m,l&&l({action:s,location:g.location,delta:y})}function f(m,y){s=Yu.Push;let b=pO(g.location,m,y);t&&t(b,m),u=c()+1;let _=hL(b,u),S=g.createHref(b);try{o.pushState(_,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(m,y){s=Yu.Replace;let b=pO(g.location,m,y);t&&t(b,m),u=c();let _=hL(b,u),S=g.createHref(b);o.replaceState(_,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(m){let y=a.location.origin!=="null"?a.location.origin:a.location.href,b=typeof m=="string"?m:dS(m);return ar(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let g={get action(){return s},get location(){return n(a,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(fL,d),l=m,()=>{a.removeEventListener(fL,d),l=null}},createHref(m){return e(a,m)},createURL:p,encodeLocation(m){let y=p(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(m){return o.go(m)}};return g}var pL;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(pL||(pL={}));function Sue(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Kf(e):e,a=X6(r.pathname||"/",t);if(a==null)return null;let i=EY(n);Cue(i);let o=null;for(let s=0;o==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ar(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=vc([r,l.relativePath]),c=t.concat(l);i.children&&i.children.length>0&&(ar(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),EY(i.children,e,c,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:Pue(u,i.index),routesMeta:c})};return n.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of OY(i.path))a(i,o,l)}),e}function OY(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=OY(r.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>n.startsWith("/")&&l===""?"/":l)}function Cue(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:Due(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const wue=/^:\w+$/,xue=3,Tue=2,Eue=1,Oue=10,Iue=-2,gL=n=>n==="*";function Pue(n,e){let t=n.split("/"),r=t.length;return t.some(gL)&&(r+=Iue),e&&(r+=Tue),t.filter(a=>!gL(a)).reduce((a,i)=>a+(wue.test(i)?xue:i===""?Eue:Oue),r)}function Due(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function Aue(n,e){let{routesMeta:t}=n,r={},a="/",i=[];for(let o=0;o{let{paramName:f,isOptional:h}=c;if(f==="*"){let g=s[d]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[d];return h&&!p?u[f]=void 0:u[f]=kue(p||"",f),u},{}),pathname:i,pathnameBase:o,pattern:n}}function Rue(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),ow(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(o,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function Lue(n){try{return decodeURI(n)}catch(e){return ow(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function kue(n,e){try{return decodeURIComponent(n)}catch(t){return ow(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function X6(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function Nue(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Kf(n):n;return{pathname:t?t.startsWith("/")?t:Fue(t,e):e,search:jue(r),hash:zue(a)}}function Fue(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function KT(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function $ue(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function q6(n){return $ue(n).map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)}function Q6(n,e,t,r){r===void 0&&(r=!1);let a;typeof n=="string"?a=Kf(n):(a=$1({},n),ar(!a.pathname||!a.pathname.includes("?"),KT("?","pathname","search",a)),ar(!a.pathname||!a.pathname.includes("#"),KT("#","pathname","hash",a)),ar(!a.search||!a.search.includes("#"),KT("#","search","hash",a)));let i=n===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=t;else if(r){let d=e[e.length-1].replace(/^\//,"").split("/");if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d.pop();a.pathname=f.join("/")}s="/"+d.join("/")}else{let d=e.length-1;if(o.startsWith("..")){let f=o.split("/");for(;f[0]==="..";)f.shift(),d-=1;a.pathname=f.join("/")}s=d>=0?e[d]:"/"}let l=Nue(a,s),u=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const vc=n=>n.join("/").replace(/\/\/+/g,"/"),Vue=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jue=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,zue=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function Bue(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const IY=["post","put","patch","delete"];new Set(IY);const Hue=["get",...IY];new Set(Hue);/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function fS(){return fS=Object.assign?Object.assign.bind():function(n){for(var e=1;e{o.current=!0}),D.useCallback(function(l,u){if(u===void 0&&(u={}),!o.current)return;if(typeof l=="number"){t.go(l);return}let c=Q6(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(c.pathname=c.pathname==="/"?e:vc([e,c.pathname])),(u.replace?t.replace:t.push)(c,u.state,u)},[e,t,i,a,n])}function AY(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=D.useContext(Uc),{pathname:a}=Mg(),i=JSON.stringify(q6(r));return D.useMemo(()=>Q6(n,JSON.parse(i),a,t==="path"),[n,i,a,t])}function Yue(n,e){return Kue(n,e)}function Kue(n,e,t){Ag()||ar(!1);let{navigator:r}=D.useContext(Dg),{matches:a}=D.useContext(Uc),i=a[a.length-1],o=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Mg(),u;if(e){var c;let g=typeof e=="string"?Kf(e):e;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||ar(!1),u=g}else u=l;let d=u.pathname||"/",f=s==="/"?d:d.slice(s.length)||"/",h=Sue(n,{pathname:f}),p=Jue(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:vc([s,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:vc([s,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),a,t);return e&&p?D.createElement(sw.Provider,{value:{location:fS({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yu.Pop}},p):p}function Zue(){let n=rce(),e=Bue(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},e),t?D.createElement("pre",{style:a},t):null,i)}const Xue=D.createElement(Zue,null);class que extends D.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?D.createElement(Uc.Provider,{value:this.props.routeContext},D.createElement(PY.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Que(n){let{routeContext:e,match:t,children:r}=n,a=D.useContext(J6);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(Uc.Provider,{value:e},r)}function Jue(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var a;if((a=t)!=null&&a.errors)n=t.matches;else return null}let i=n,o=(r=t)==null?void 0:r.errors;if(o!=null){let s=i.findIndex(l=>l.route.id&&(o==null?void 0:o[l.route.id]));s>=0||ar(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?o==null?void 0:o[l.route.id]:null,d=null;t&&(d=l.route.errorElement||Xue);let f=e.concat(i.slice(0,u+1)),h=()=>{let p;return c?p=d:l.route.Component?p=D.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=s,D.createElement(Que,{match:l,routeContext:{outlet:s,matches:f,isDataRoute:t!=null},children:p})};return t&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?D.createElement(que,{location:t.location,revalidation:t.revalidation,component:d,error:c,children:h(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):h()},null)}var MY=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(MY||{}),hS=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(hS||{});function ece(n){let e=D.useContext(J6);return e||ar(!1),e}function tce(n){let e=D.useContext(Uue);return e||ar(!1),e}function nce(n){let e=D.useContext(Uc);return e||ar(!1),e}function RY(n){let e=nce(),t=e.matches[e.matches.length-1];return t.route.id||ar(!1),t.route.id}function rce(){var n;let e=D.useContext(PY),t=tce(hS.UseRouteError),r=RY(hS.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function ace(){let{router:n}=ece(MY.UseNavigateStable),e=RY(hS.UseNavigateStable),t=D.useRef(!1);return DY(()=>{t.current=!0}),D.useCallback(function(a,i){i===void 0&&(i={}),t.current&&(typeof a=="number"?n.navigate(a):n.navigate(a,fS({fromRouteId:e},i)))},[n,e])}function ice(n){let{to:e,replace:t,state:r,relative:a}=n;Ag()||ar(!1);let{matches:i}=D.useContext(Uc),{pathname:o}=Mg(),s=e7(),l=Q6(e,q6(i),o,a==="path"),u=JSON.stringify(l);return D.useEffect(()=>s(JSON.parse(u),{replace:t,state:r,relative:a}),[s,u,a,t,r]),null}function gO(n){ar(!1)}function oce(n){let{basename:e="/",children:t=null,location:r,navigationType:a=Yu.Pop,navigator:i,static:o=!1}=n;Ag()&&ar(!1);let s=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:s,navigator:i,static:o}),[s,i,o]);typeof r=="string"&&(r=Kf(r));let{pathname:u="/",search:c="",hash:d="",state:f=null,key:h="default"}=r,p=D.useMemo(()=>{let g=X6(u,s);return g==null?null:{location:{pathname:g,search:c,hash:d,state:f,key:h},navigationType:a}},[s,u,c,d,f,h,a]);return p==null?null:D.createElement(Dg.Provider,{value:l},D.createElement(sw.Provider,{children:t,value:p}))}function sce(n){let{children:e,location:t}=n;return Yue(vO(e),t)}new Promise(()=>{});function vO(n,e){e===void 0&&(e=[]);let t=[];return D.Children.forEach(n,(r,a)=>{if(!D.isValidElement(r))return;let i=[...e,a];if(r.type===D.Fragment){t.push.apply(t,vO(r.props.children,i));return}r.type!==gO&&ar(!1),!r.props.index||!r.props.children||ar(!1);let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=vO(r.props.children,i)),t.push(o)}),t}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function mO(){return mO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function uce(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function cce(n,e){return n.button===0&&(!e||e==="_self")&&!uce(n)}const dce=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],fce="startTransition",vL=sse[fce];function hce(n){let{basename:e,children:t,future:r,window:a}=n,i=D.useRef();i.current==null&&(i.current=yue({window:a,v5Compat:!0}));let o=i.current,[s,l]=D.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=D.useCallback(d=>{u&&vL?vL(()=>l(d)):l(d)},[l,u]);return D.useLayoutEffect(()=>o.listen(c),[o,c]),D.createElement(oce,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}const pce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",gce=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vce=D.forwardRef(function(e,t){let{onClick:r,relative:a,reloadDocument:i,replace:o,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=e,f=lce(e,dce),{basename:h}=D.useContext(Dg),p,g=!1;if(typeof u=="string"&&gce.test(u)&&(p=u,pce))try{let _=new URL(window.location.href),S=u.startsWith("//")?new URL(_.protocol+u):new URL(u),C=X6(S.pathname,h);S.origin===_.origin&&C!=null?u=C+S.search+S.hash:g=!0}catch{}let m=Wue(u,{relative:a}),y=mce(u,{replace:o,state:s,target:l,preventScrollReset:c,relative:a,unstable_viewTransition:d});function b(_){r&&r(_),_.defaultPrevented||y(_)}return D.createElement("a",mO({},f,{href:p||m,onClick:g||i?r:b,ref:t,target:l}))});var mL;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState"})(mL||(mL={}));var yL;(function(n){n.UseFetcher="useFetcher",n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(yL||(yL={}));function mce(n,e){let{target:t,replace:r,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s}=e===void 0?{}:e,l=e7(),u=Mg(),c=AY(n,{relative:o});return D.useCallback(d=>{if(cce(d,t)){d.preventDefault();let f=r!==void 0?r:dS(u)===dS(c);l(n,{replace:f,state:a,preventScrollReset:i,relative:o,unstable_viewTransition:s})}},[u,l,c,r,a,t,n,i,o,s])}function yce(n){var e=typeof n;return n!=null&&(e=="object"||e=="function")}var pi=yce;const oa=Ie(pi);var bce=typeof Y0=="object"&&Y0&&Y0.Object===Object&&Y0,LY=bce,_ce=LY,Sce=typeof self=="object"&&self&&self.Object===Object&&self,Cce=_ce||Sce||Function("return this")(),os=Cce,wce=os,xce=function(){return wce.Date.now()},Tce=xce,Ece=/\s/;function Oce(n){for(var e=n.length;e--&&Ece.test(n.charAt(e)););return e}var Ice=Oce,Pce=Ice,Dce=/^\s+/;function Ace(n){return n&&n.slice(0,Pce(n)+1).replace(Dce,"")}var Mce=Ace,Rce=os,Lce=Rce.Symbol,Rg=Lce,bL=Rg,kY=Object.prototype,kce=kY.hasOwnProperty,Nce=kY.toString,Rv=bL?bL.toStringTag:void 0;function Fce(n){var e=kce.call(n,Rv),t=n[Rv];try{n[Rv]=void 0;var r=!0}catch{}var a=Nce.call(n);return r&&(e?n[Rv]=t:delete n[Rv]),a}var $ce=Fce,Vce=Object.prototype,jce=Vce.toString;function zce(n){return jce.call(n)}var Bce=zce,_L=Rg,Hce=$ce,Uce=Bce,Wce="[object Null]",Gce="[object Undefined]",SL=_L?_L.toStringTag:void 0;function Yce(n){return n==null?n===void 0?Gce:Wce:SL&&SL in Object(n)?Hce(n):Uce(n)}var ss=Yce;function Kce(n){return n!=null&&typeof n=="object"}var gi=Kce,Zce=ss,Xce=gi,qce="[object Symbol]";function Qce(n){return typeof n=="symbol"||Xce(n)&&Zce(n)==qce}var Lg=Qce,Jce=Mce,CL=pi,ede=Lg,wL=NaN,tde=/^[-+]0x[0-9a-f]+$/i,nde=/^0b[01]+$/i,rde=/^0o[0-7]+$/i,ade=parseInt;function ide(n){if(typeof n=="number")return n;if(ede(n))return wL;if(CL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=CL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Jce(n);var t=nde.test(n);return t||rde.test(n)?ade(n.slice(2),t?2:8):tde.test(n)?wL:+n}var t7=ide;const lo=Ie(t7);var ode=pi,ZT=Tce,xL=t7,sde="Expected a function",lde=Math.max,ude=Math.min;function cde(n,e,t){var r,a,i,o,s,l,u=0,c=!1,d=!1,f=!0;if(typeof n!="function")throw new TypeError(sde);e=xL(e)||0,ode(t)&&(c=!!t.leading,d="maxWait"in t,i=d?lde(xL(t.maxWait)||0,e):i,f="trailing"in t?!!t.trailing:f);function h(w){var T=r,E=a;return r=a=void 0,u=w,o=n.apply(E,T),o}function p(w){return u=w,s=setTimeout(y,e),c?h(w):o}function g(w){var T=w-l,E=w-u,O=e-T;return d?ude(O,i-E):O}function m(w){var T=w-l,E=w-u;return l===void 0||T>=e||T<0||d&&E>=i}function y(){var w=ZT();if(m(w))return b(w);s=setTimeout(y,g(w))}function b(w){return s=void 0,f&&r?h(w):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(ZT())}function C(){var w=ZT(),T=m(w);if(r=arguments,a=this,l=w,T){if(s===void 0)return p(l);if(d)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return C.cancel=_,C.flush=S,C}var NY=cde;const n7=Ie(NY);var dde=NY,fde=pi,hde="Expected a function";function pde(n,e,t){var r=!0,a=!0;if(typeof n!="function")throw new TypeError(hde);return fde(t)&&(r="leading"in t?!!t.leading:r,a="trailing"in t?!!t.trailing:a),dde(n,e,{leading:r,maxWait:e,trailing:a})}var gde=pde;const yO=Ie(gde);function vde(){}var FY=vde;const B=Ie(FY);var $Y={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a-1}var Zfe=Kfe,Xfe=cw;function qfe(n,e){var t=this.__data__,r=Xfe(t,n);return r<0?(++this.size,t.push([n,e])):t[r][1]=e,this}var Qfe=qfe,Jfe=kfe,ehe=Hfe,the=Gfe,nhe=Zfe,rhe=Qfe;function Fg(n){var e=-1,t=n==null?0:n.length;for(this.clear();++e1?e-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:"value";const t=this.getProps();return e in t}_isInProps(e){const t=this.getProps();return e in t}init(e){}destroy(){}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae||i>n&&o=e&&s>=t?i-n-r:o>e&&st?o-e+a:0}var RL=function(n,e){var t=window,r=e.scrollMode,a=e.block,i=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Ce){return Ce!==o};if(!AL(n))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],h=n;AL(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(h);break}h!=null&&h===document.body&&qT(h)&&!qT(document.documentElement)||h!=null&&qT(h,s)&&f.push(h)}for(var p=t.visualViewport?t.visualViewport.width:innerWidth,g=t.visualViewport?t.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=n.getBoundingClientRect(),_=b.height,S=b.width,C=b.top,w=b.right,T=b.bottom,E=b.left,O=a==="start"||a==="nearest"?C:a==="end"?T:C+_/2,I=i==="center"?E+S/2:i==="end"?w:E,P=[],A=0;A=0&&E>=0&&T<=g&&w<=p&&C>=z&&T<=j&&E>=U&&w<=F)return P;var G=getComputedStyle(R),Y=parseInt(G.borderLeftWidth,10),Q=parseInt(G.borderTopWidth,10),Z=parseInt(G.borderRightWidth,10),ae=parseInt(G.borderBottomWidth,10),se=0,ee=0,ne="offsetWidth"in R?R.offsetWidth-R.clientWidth-Y-Z:0,re="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-ae:0,te="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,oe="offsetHeight"in R?R.offsetHeight===0?0:k/R.offsetHeight:0;if(d===R)se=a==="start"?O:a==="end"?O-g:a==="nearest"?db(y,y+g,g,Q,ae,y+O,y+O+_,_):O-g/2,ee=i==="start"?I:i==="center"?I-p/2:i==="end"?I-p:db(m,m+p,p,Y,Z,m+I,m+I+S,S),se=Math.max(0,se+y),ee=Math.max(0,ee+m);else{se=a==="start"?O-z-Q:a==="end"?O-j+ae+re:a==="nearest"?db(z,j,k,Q,ae+re,O,O+_,_):O-(z+k/2)+re/2,ee=i==="start"?I-U-Y:i==="center"?I-(U+N/2)+ne/2:i==="end"?I-F+Z+ne:db(U,F,N,Y,Z+ne,I,I+S,S);var pe=R.scrollLeft,We=R.scrollTop;O+=We-(se=Math.max(0,Math.min(We+se/oe,R.scrollHeight-k/oe+re))),I+=pe-(ee=Math.max(0,Math.min(pe+ee/te,R.scrollWidth-N/te+ne)))}P.push({el:R,top:se,left:ee})}return P};function ZY(n){return n===Object(n)&&Object.keys(n).length!==0}function upe(n,e){e===void 0&&(e="auto");var t="scrollBehavior"in document.body.style;n.forEach(function(r){var a=r.el,i=r.top,o=r.left;a.scroll&&t?a.scroll({top:i,left:o,behavior:e}):(a.scrollTop=i,a.scrollLeft=o)})}function cpe(n){return n===!1?{block:"end",inline:"nearest"}:ZY(n)?n:{block:"start",inline:"nearest"}}function LL(n,e){var t=n.isConnected||n.ownerDocument.documentElement.contains(n);if(ZY(e)&&typeof e.behavior=="function")return e.behavior(t?RL(n,e):[]);if(t){var r=cpe(e);return upe(RL(n,r),r.behavior)}}function Ic(n){return Object.keys(n).reduce((e,t)=>(t.substr(0,5)==="data-"&&(e[t]=n[t]),e),{})}const{hasOwnProperty:dpe}=Object.prototype;class Pe extends D.Component{constructor(e){super(e),this.isControlled=t=>!!(t&&this.props&&typeof this.props=="object"&&dpe.call(this.props,t)),this.cache={},this.foundation=null}componentDidMount(){this.foundation&&typeof this.foundation.init=="function"&&this.foundation.init()}componentWillUnmount(){this.foundation&&typeof this.foundation.destroy=="function"&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch{}},persistEvent:e=>{e&&e.persist&&typeof e.persist=="function"&&e.persist()}}}log(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a-1&&n%1==0&&n<=Tge}var p7=Ege,Oge=lw,Ige=p7;function Pge(n){return n!=null&&Ige(n.length)&&!Oge(n)}var ls=Pge,Dge=ls,Age=gi;function Mge(n){return Age(n)&&Dge(n)}var g7=Mge,gS={exports:{}};function Rge(){return!1}var oK=Rge;const V1=Ie(oK);gS.exports;(function(n,e){var t=os,r=oK,a=e&&!e.nodeType&&e,i=a&&!0&&n&&!n.nodeType&&n,o=i&&i.exports===a,s=o?t.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;n.exports=u})(gS,gS.exports);var By=gS.exports,Lge=ss,kge=h7,Nge=gi,Fge="[object Object]",$ge=Function.prototype,Vge=Object.prototype,sK=$ge.toString,jge=Vge.hasOwnProperty,zge=sK.call(Object);function Bge(n){if(!Nge(n)||Lge(n)!=Fge)return!1;var e=kge(n);if(e===null)return!0;var t=jge.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&sK.call(t)==zge}var v7=Bge;const m7=Ie(v7);var Hge=ss,Uge=p7,Wge=gi,Gge="[object Arguments]",Yge="[object Array]",Kge="[object Boolean]",Zge="[object Date]",Xge="[object Error]",qge="[object Function]",Qge="[object Map]",Jge="[object Number]",eve="[object Object]",tve="[object RegExp]",nve="[object Set]",rve="[object String]",ave="[object WeakMap]",ive="[object ArrayBuffer]",ove="[object DataView]",sve="[object Float32Array]",lve="[object Float64Array]",uve="[object Int8Array]",cve="[object Int16Array]",dve="[object Int32Array]",fve="[object Uint8Array]",hve="[object Uint8ClampedArray]",pve="[object Uint16Array]",gve="[object Uint32Array]",yn={};yn[sve]=yn[lve]=yn[uve]=yn[cve]=yn[dve]=yn[fve]=yn[hve]=yn[pve]=yn[gve]=!0;yn[Gge]=yn[Yge]=yn[ive]=yn[Kge]=yn[ove]=yn[Zge]=yn[Xge]=yn[qge]=yn[Qge]=yn[Jge]=yn[eve]=yn[tve]=yn[nve]=yn[rve]=yn[ave]=!1;function vve(n){return Wge(n)&&Uge(n.length)&&!!yn[Hge(n)]}var mve=vve;function yve(n){return function(e){return n(e)}}var Qf=yve,vS={exports:{}};vS.exports;(function(n,e){var t=LY,r=e&&!e.nodeType&&e,a=r&&!0&&n&&!n.nodeType&&n,i=a&&a.exports===r,o=i&&t.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();n.exports=s})(vS,vS.exports);var Hy=vS.exports,bve=mve,_ve=Qf,VL=Hy,jL=VL&&VL.isTypedArray,Sve=jL?_ve(jL):bve,yw=Sve;function Cve(n,e){if(!(e==="constructor"&&typeof n[e]=="function")&&e!="__proto__")return n[e]}var lK=Cve,wve=d7,xve=Vy,Tve=Object.prototype,Eve=Tve.hasOwnProperty;function Ove(n,e,t){var r=n[e];(!(Eve.call(n,e)&&xve(r,t))||t===void 0&&!(e in n))&&wve(n,e,t)}var bw=Ove,Ive=bw,Pve=d7;function Dve(n,e,t,r){var a=!t;t||(t={});for(var i=-1,o=e.length;++i-1&&n%1==0&&n0){if(++e>=Vme)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}var Hme=Bme,Ume=$me,Wme=Hme,Gme=Wme(Ume),hK=Gme,Yme=Wy,Kme=fK,Zme=hK;function Xme(n,e){return Zme(Kme(n,e,Yme),n+"")}var Sw=Xme,qme=Vy,Qme=ls,Jme=_w,e1e=pi;function t1e(n,e,t){if(!e1e(t))return!1;var r=typeof e;return(r=="number"?Qme(t)&&Jme(e,t.length):r=="string"&&e in t)?qme(t[e],n):!1}var Cw=t1e,n1e=Sw,r1e=Cw;function a1e(n){return n1e(function(e,t){var r=-1,a=t.length,i=a>1?t[a-1]:void 0,o=a>2?t[2]:void 0;for(i=n.length>3&&typeof i=="function"?(a--,i):void 0,o&&r1e(t[0],t[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ra?0:a+e),t=t>a?a:t,t<0&&(t+=a),a=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(a);++r0&&t(s)?e>1?DK(s,e-1,t,r,a):Hbe(a,s):r||(a[a.length]=s)}return a}var C7=DK,Wbe=C7;function Gbe(n){var e=n==null?0:n.length;return e?Wbe(n,1):[]}var AK=Gbe;const Ybe=Ie(AK);var Kbe=AK,Zbe=fK,Xbe=hK;function qbe(n){return Xbe(Zbe(n,void 0,Kbe),n+"")}var MK=qbe,Qbe=Xf,Jbe=ww,e_e=PK,t_e=Vg,n_e=Jf,r_e=$be,a_e=MK,i_e=SK,o_e=1,s_e=2,l_e=4,u_e=a_e(function(n,e){var t={};if(n==null)return t;var r=!1;e=Qbe(e,function(i){return i=t_e(i,n),r||(r=i.length>1),i}),n_e(n,i_e(n),t),r&&(t=Jbe(t,o_e|s_e|l_e,r_e));for(var a=e.length;a--;)e_e(t,e[a]);return t}),c_e=u_e;const fr=Ie(c_e);function d_e(n){return n===void 0}var f_e=d_e;const Vt=Ie(f_e);var h_e="__lodash_hash_undefined__";function p_e(n){return this.__data__.set(n,h_e),this}var g_e=p_e;function v_e(n){return this.__data__.has(n)}var m_e=v_e,y_e=o7,b_e=g_e,__e=m_e;function mS(n){var e=-1,t=n==null?0:n.length;for(this.__data__=new y_e;++es))return!1;var u=i.get(n),c=i.get(e);if(u&&c)return u==e&&c==n;var d=-1,f=!0,h=t&O_e?new w_e:void 0;for(i.set(n,e),i.set(e,n);++di===t))>-1;)r.splice(a,1)}}else ct(t)&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}};function It(n){try{return n instanceof HTMLElement}catch{return typeof n=="object"&&n.nodeType===1&&typeof n.style=="object"&&typeof n.ownerDocument=="object"}}function $K(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r(t[r]=n[r],t),{})}function Ra(n){n.stopPropagation(),n.preventDefault()}function Z2e(n){return n.length===1&&n.match(/\S/)}function Yy(n,e){for(let t=0;t0&&Yy(n,n[0])}function q2e(n){n.length>0&&Yy(n,n[n.length-1])}function Q2e(n,e){let t,r;n.length>0&&(e===n[0]?t=n[n.length-1]:(r=n.indexOf(e),t=n[r-1]),Yy(n,t))}function J2e(n,e){let t,r;n.length>0&&(e===n[n.length-1]?t=n[0]:(r=n.indexOf(e),t=n[r+1]),Yy(n,t))}function eSe(n,e,t,r){let a,i;return!n||!t||!r||r.length>1?-1:(r=r.toLowerCase(),a=n.indexOf(e)+1,a>=n.length&&(a=0),i=t.indexOf(r,a),i===-1&&(i=t.indexOf(r,0)),i>=0?i:-1)}function tSe(n,e){if(!n)return null;for(;n.parentElement&&H(n.parentElement,"attributes.role.value","")!==e;)n=n.parentElement;return n.parentElement}function nSe(n,e){for(let t=0;t{this._adapter.removePortal()},this.setDisplayNone=(r,a)=>{this._adapter.setDisplayNone(r,a)},this.onResize=()=>{this.calcPosition()},this.delayShow=()=>{const r=this.getProp("mouseEnterDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.show(),this.clearDelayTimer()},r):this.show()},this.show=()=>{const r=this.getProp("content"),a=this.getProp("trigger"),i=this.getProp("clickTriggerToHide"),{visible:o,displayNone:s}=this.getStates();s&&this.setDisplayNone(!1),!o&&(this.clearDelayTimer(),this._adapter.on("portalInserted",()=>{this.calcPosition()}),this._adapter.on("positionUpdated",()=>{this._togglePortalVisible(!0)}),this._adapter.insertPortal(r,{left:-9999,top:-9999}),a==="custom"&&this._adapter.registerClickOutsideHandler(()=>{}),(a==="click"||i||a==="contextMenu")&&this._adapter.registerClickOutsideHandler(this.hide),this._bindScrollEvent(),this._bindResizeEvent())},this.calcPosition=function(r,a,i){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r=(vt(r)?t._adapter.getTriggerBounding():r)||Object.assign({},_h),i=(vt(i)?t._adapter.getPopupContainerRect():i)||Object.assign({},_h),a=(vt(a)?t._adapter.getWrapperBounding():a)||Object.assign({},_h);let s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i}),l=t.getProp("position");if(t.getProp("autoAdjustOverflow")){const{position:u,isHeightOverFlow:c,isWidthOverFlow:d}=t.adjustPosIfNeed(l,s,r,a,i);(l!==u||c||d)&&(l=u,s=t.calcPosStyle({triggerRect:r,wrapperRect:a,containerRect:i,position:l,spacing:null,isOverFlow:[c,d]}))}return o&&t._mounted&&t._adapter.setPosition(Object.assign(Object.assign({},s),{position:l})),s},this.delayHide=()=>{const r=this.getProp("mouseLeaveDelay");this.clearDelayTimer(),r>0?this._timer=setTimeout(()=>{this.hide(),this.clearDelayTimer()},r):this.hide()},this.hide=()=>{this.clearDelayTimer(),this._togglePortalVisible(!1),this._adapter.off("portalInserted"),this._adapter.off("positionUpdated")},this.handleContainerKeydown=r=>{const{guardFocus:a,closeOnEsc:i}=this.getProps();switch(r&&r.key){case"Escape":i&&this._handleEscKeyDown(r);break;case"Tab":if(a){const o=this._adapter.getContainer(),s=this._adapter.getFocusableElements(o);s.length&&(r.shiftKey?this._handleContainerShiftTabKeyDown(s,r):this._handleContainerTabKeyDown(s,r))}break}},this._timer=null}init(){const{wrapperId:e}=this.getProps();this._mounted=!0,this._bindEvent(),this._shouldShow(),this._initContainerPosition(),e||this._adapter.setId()}destroy(){this._mounted=!1,this.unBindEvent()}_bindEvent(){const e=this.getProp("trigger"),{triggerEventSet:t,portalEventSet:r}=this._generateEvent(e);this._bindTriggerEvent(t),this._bindPortalEvent(r),this._bindResizeEvent()}unBindEvent(){this._adapter.unregisterClickOutsideHandler(),this.unBindResizeEvent(),this.unBindScrollEvent(),clearTimeout(this._timer)}_bindTriggerEvent(e){this._adapter.registerTriggerEvent(e)}_bindPortalEvent(e){this._adapter.registerPortalEvent(e)}_bindResizeEvent(){this._adapter.registerResizeHandler(this.onResize)}unBindResizeEvent(){this._adapter.unregisterResizeHandler(this.onResize)}_adjustPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"reverse",a=arguments.length>3?arguments[3]:void 0;switch(r){case"reverse":return this._reversePos(e,t);case"expand":return this._expandPos(e,a);case"reduce":return this._reducePos(e);default:return this._reversePos(e,t)}}_reversePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1){if(hb.TOP.test(e))return e.replace("top","bottom").replace("Top","Bottom");if(hb.BOTTOM.test(e))return e.replace("bottom","top").replace("Bottom","Top")}else{if(hb.LEFT.test(e))return e.replace("left","right").replace("Left","Right");if(hb.RIGHT.test(e))return e.replace("right","left").replace("Right","Left")}return e}_expandPos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return e.concat(t)}_reducePos(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=["Top","Bottom","Left","Right"].find(r=>e.endsWith(r));return t?e.replace(t,""):e}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_generateEvent(e){const t=this._adapter.getEventName(),r={[t.keydown]:i=>{this._handleTriggerKeydown(i)}};let a={};switch(e){case"focus":r[t.focus]=()=>{this.delayShow()},r[t.blur]=()=>{this.delayHide()},a=r;break;case"click":r[t.click]=()=>{this.show()},a={};break;case"hover":r[t.mouseEnter]=()=>{this.setCache("isClickToHide",!1),this.delayShow()},r[t.mouseLeave]=()=>{this.delayHide()},r[t.focus]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayShow()},r[t.blur]=()=>{const{disableFocusListener:i}=this.getProps();!i&&this.delayHide()},a=Object.assign({},r),this.getProp("clickToHide")&&(a[t.click]=()=>{this.setCache("isClickToHide",!0),this.hide()},a[t.mouseEnter]=()=>{this.getCache("isClickToHide")||this.delayShow()});break;case"custom":break;case"contextMenu":r[t.contextMenu]=i=>{i.preventDefault(),this.show()};break}return{triggerEventSet:r,portalEventSet:a}}_shouldShow(){this.getProp("visible")&&this.show()}_togglePortalVisible(e){this.getState("visible")!==e&&this._adapter.togglePortalVisible(e,()=>{e&&this._adapter.setInitialFocus(),this._adapter.notifyVisibleChange(e)})}_roundPixel(e){return typeof e=="number"?Math.round(e):e}calcTransformOrigin(e,t,r,a){if(e&&t&&r!=null&&a!=null){if(this.getProp("transformFromCenter")){if(["topLeft","bottomLeft"].includes(e))return`${this._roundPixel(t.width/2)}px ${-a*100}%`;if(["topRight","bottomRight"].includes(e))return`calc(100% - ${this._roundPixel(t.width/2)}px) ${-a*100}%`;if(["leftTop","rightTop"].includes(e))return`${-r*100}% ${this._roundPixel(t.height/2)}px`;if(["leftBottom","rightBottom"].includes(e))return`${-r*100}% calc(100% - ${this._roundPixel(t.height/2)}px)`}return`${-r*100}% ${-a*100}%`}return null}calcPosStyle(e){const{spacing:t,isOverFlow:r}=e,{innerWidth:a}=window,i=(vt(e.triggerRect)?e.triggerRect:this._adapter.getTriggerBounding())||Object.assign({},_h),o=(vt(e.containerRect)?e.containerRect:this._adapter.getPopupContainerRect())||Object.assign({},_h),s=(vt(e.wrapperRect)?e.wrapperRect:this._adapter.getWrapperBounding())||Object.assign({},_h),l=e.position!=null?e.position:this.getProp("position"),u=t??this.getProp("spacing"),{arrowPointAtCenter:c,showArrow:d,arrowBounding:f}=this.getProps(),h=d&&c;let p=u,g=0;if(typeof u!="number"){const ee=l.includes("top")||l.includes("bottom");p=ee?u.y:u.x,g=ee?u.x:u.y}const m=H(f,"width",24),y=H(f,"width",24),b=H(f,"offsetY",0),_=6,S=6;let C,w,T=0,E=0;const O=i.left+i.width/2,I=i.top+i.height/2,P=_+m/2,A=S+y/2,R=s.height-o.height,L=s.width-o.width,k=R>0?R:0,N=L>0?L:0,z=r&&r[0],F=r&&r[1],j=O-o.lefta;switch(l){case"top":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.bottom+k:i.top-p,T=-.5,E=-1;break;case"topLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.bottom+k:i.top-p,E=-1;break;case"topRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.bottom+k:i.top-p,E=-1,T=-1;break;case"left":C=F?o.right+N-p+P:i.left-p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,T=-1,E=-.5;break;case"leftTop":C=F?o.right+N-p+P:i.left-p,w=z?o.top:h?I-A+g:i.top+g,T=-1;break;case"leftBottom":C=F?o.right+N-p+P:i.left-p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,T=-1,E=-1;break;case"bottom":C=F?j?o.left+s.width/2:o.right-s.width/2+N:O+g,w=z?o.top+A-p:i.top+i.height+p,T=-.5;break;case"bottomLeft":C=F?G?o.left:o.right-s.width:h?O-P+g:i.left+g,w=z?o.top+A-p:i.top+i.height+p;break;case"bottomRight":C=F?o.right+N:h?O+P+g:i.right+g,w=z?o.top+A-p:i.top+i.height+p,T=-1;break;case"right":C=F?o.left-p+P:i.right+p,w=z?U?o.top+s.height/2:o.bottom-s.height/2+k:I+g,E=-.5;break;case"rightTop":C=F?o.left-p+P:i.right+p,w=z?o.top:h?I-A+g:i.top+g;break;case"rightBottom":C=F?o.left-p+P:i.right+p,w=z?o.bottom+k:h?I+A+g:i.bottom+g,E=-1;break;case"leftTopOver":C=i.left-p,w=i.top-p;break;case"rightTopOver":C=i.right+p,w=i.top-p,T=-1;break;case"leftBottomOver":C=i.left-p,w=i.bottom+p,E=-1;break;case"rightBottomOver":C=i.right+p,w=i.bottom+p,T=-1,E=-1;break}const Y=this.calcTransformOrigin(l,i,T,E),Q=this._adapter.containerIsBody();if(C=C-o.left,w=w-o.top,Q&&!this._adapter.containerIsRelativeOrAbsolute()){const ee=this._adapter.getDocumentElementBounding();C+=o.left-ee.left,w+=o.top-ee.top}C=Q?C:C+o.scrollLeft,w=Q?w:w+o.scrollTop;const Z=i.height;if(this.getProp("showArrow")&&!c&&Z<=(y/2+b)*2){const ee=Z/2-(b+y/2);(l.includes("Top")||l.includes("Bottom"))&&!l.includes("Over")&&(w=l.includes("Top")?w+ee:w-ee)}const ae={left:this._roundPixel(C),top:this._roundPixel(w)};let se="";return T!=null&&(se+=`translateX(${T*100}%) `,Object.defineProperty(ae,"translateX",{enumerable:!1,value:T})),E!=null&&(se+=`translateY(${E*100}%) `,Object.defineProperty(ae,"translateY",{enumerable:!1,value:E})),Y!=null&&(ae.transformOrigin=Y),se&&(ae.transform=se),ae}isLR(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("left")||e.includes("right")}isTB(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e.includes("top")||e.includes("bottom")}isReverse(e,t,r){return er}isOverFlow(e,t,r){return e=r||t>=r}getReverse(e,t,r,a){return e&&a||r}adjustPosIfNeed(e,t,r,a,i){const{innerWidth:o,innerHeight:s}=window,{margin:l}=this.getProps(),u=typeof l=="number"?l:l.marginLeft,c=typeof l=="number"?l:l.marginTop,d=typeof l=="number"?l:l.marginRight,f=typeof l=="number"?l:l.marginBottom;let h=!1,p=!1;const g=this.getProp("spacing");let m=g,y=0;if(typeof g!="number"){const b=e.includes("top")||e.includes("bottom");m=b?g.y:g.x,y=b?g.x:g.y}if(a.width>0&&a.height>0){const b=r.left,_=r.right,S=r.top,C=r.bottom,w=o-b,T=s-S,E=o-_,O=s-C,I=a.width>r.width,P=a.height>r.height,A=S-ca.height+m,R=b-ua.width+m,L=O-fa.height+m,k=E-da.width+m;T-fa.height+m,C-ca.height+m;const N=Ta.height+y,z=Ca.height+y,F=wa.width+y,j=_a.width+y,U=Ta.height+m,G=Ca.height+m,Y=wa.width,Q=_a.width,Z=S-i.top,ae=b-i.left,se=Z+r.height,ee=ae+r.width,ne=i.bottom-C,re=i.right-_,te=ne+r.height,oe=re+r.width,pe=this.isReverse(Z-c,ne-f,a.height+m),We=this.isReverse(ae-u,re-d,a.width+m),Ce=this.isReverse(ne-f,Z-c,a.height+m),Je=this.isReverse(re-d,ae-u,a.width+m);this.isReverse(te-f,se-c,a.height+m),this.isReverse(se-c,te-f,a.height+m);const Ve=this.isReverse(te,se,a.height+y),Rt=this.isReverse(se,te,a.height+y),$n=this.isReverse(oe,ee,a.width+y),Vn=this.isReverse(ee,oe,a.width+y),on=r.height/2,wn=r.width/2,mi=this.isOverFlow(S-c,O-f,a.height+m),Ba=this.isOverFlow(b-u,E-d,a.width+m),vu=this.isOverFlow(C-c,T-f,a.height+m),mh=this.isOverFlow(_-u,w-d,a.width+m),yh=this.isHalfOverFlow(C-on,T-on,(a.height+y)/2),fs=this.isHalfOverFlow(_-wn,w-wn,(a.width+y)/2),qr=this.isHalfAllEnough(C-on,T-on,(a.height+y)/2),Vr=this.isHalfAllEnough(_-wn,w-wn,(a.width+y)/2),hs=this.isOverFlow(Z-c,ne-f,a.height+m),Qr=this.isOverFlow(ae-u,re-d,a.width+m),Hi=this.isOverFlow(se-c,te-f,a.height+m),ps=this.isOverFlow(ee-u,oe-d,a.width+m),ba=this.isHalfOverFlow(se-on,te-on,(a.height+y)/2),hl=this.isHalfOverFlow(ee-wn,oe-wn,(a.width+y)/2),mu=this.isHalfAllEnough(se-on,te-on,(a.height+y)/2),pl=this.isHalfAllEnough(ee-wn,oe-wn,(a.width+y)/2),qc=this.getReverse(mi,hs,A,pe),gs=this.getReverse(Ba,Qr,R,We),Qc=this.getReverse(mi,hs,L,Ce),In=this.getReverse(Ba,Qr,k,Je),jn=this.getReverse(vu,Hi,N,Ve),sr=this.getReverse(vu,Hi,z,Rt),zn=this.getReverse(mh,ps,F,$n),Bn=this.getReverse(mh,ps,j,Vn),pr=yh&&ba,Or=fs&&hl;switch(e){case"top":qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"topLeft":qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"topRight":qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"left":gs&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"leftTop":gs&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftBottom":gs&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"bottom":Qc&&(e=this._adjustPos(e,!0)),Or&&(zn||Bn)&&(e=this._adjustPos(e,!0,"expand",zn?"Right":"Left"));break;case"bottomLeft":Qc&&(e=this._adjustPos(e,!0)),zn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"bottomRight":Qc&&(e=this._adjustPos(e,!0)),Bn&&I&&(e=this._adjustPos(e)),p&&(Vr||pl)&&(e=this._adjustPos(e,!0,"reduce"));break;case"right":In&&(e=this._adjustPos(e)),pr&&(jn||sr)&&(e=this._adjustPos(e,!1,"expand",jn?"Bottom":"Top"));break;case"rightTop":In&&(e=this._adjustPos(e)),jn&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"rightBottom":In&&(e=this._adjustPos(e)),sr&&P&&(e=this._adjustPos(e,!0)),h&&(qr||mu)&&(e=this._adjustPos(e,!1,"reduce"));break;case"leftTopOver":U&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"leftBottomOver":G&&(e=this._adjustPos(e,!0)),Y&&(e=this._adjustPos(e));break;case"rightTopOver":U&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break;case"rightBottomOver":G&&(e=this._adjustPos(e,!0)),Q&&(e=this._adjustPos(e));break}this.isTB(e)&&(h=mi&&hs,e==="top"||e==="bottom"?p=fs&&hl||_<0||E<0:p=mh&&ps||_<0||E<0),this.isLR(e)&&(p=Ba&&Qr,e==="left"||e==="right"?h=yh&&ba||S<0||T<0:h=vu&&Hi||S<0||T<0)}return{position:e,isHeightOverFlow:h,isWidthOverFlow:p}}_bindScrollEvent(){this._adapter.registerScrollHandler(()=>this.calcPosition())}unBindScrollEvent(){this._adapter.unregisterScrollHandler()}_initContainerPosition(){this._adapter.updateContainerPosition()}_handleTriggerKeydown(e){const{closeOnEsc:t,disableArrowKeyDown:r}=this.getProps(),a=this._adapter.getContainer(),i=this._adapter.getFocusableElements(a),o=i.length;switch(e&&e.key){case"Escape":Ra(e),t&&this._handleEscKeyDown(e);break;case"ArrowUp":!r&&o&&this._handleTriggerArrowUpKeydown(i,e);break;case"ArrowDown":!r&&o&&this._handleTriggerArrowDownKeydown(i,e);break}}focusTrigger(){const{trigger:e,returnFocusOnClose:t,preventScroll:r}=this.getProps();if(t&&e!=="custom"){const a=this._adapter.getTriggerNode();a&&"focus"in a&&a.focus({preventScroll:r})}}_handleEscKeyDown(e){const{trigger:t}=this.getProps();t!=="custom"&&(this.focusTrigger(),this.hide()),this._adapter.notifyEscKeydown(e)}_handleContainerTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[e.length-1]===a&&(e[0].focus({preventScroll:r}),t.preventDefault())}_handleContainerShiftTabKeyDown(e,t){const{preventScroll:r}=this.getProps(),a=this._adapter.getActiveElement();e[0]===a&&(e[e.length-1].focus({preventScroll:r}),t.preventDefault())}_handleTriggerArrowDownKeydown(e,t){const{preventScroll:r}=this.getProps();e[0].focus({preventScroll:r}),t.preventDefault()}_handleTriggerArrowUpKeydown(e,t){const{preventScroll:r}=this.getProps();e[e.length-1].focus({preventScroll:r}),t.preventDefault()}};const aSe={PREFIX:`${q}-tooltip`},mc={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver","leftBottomOver","rightBottomOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],STATUS_DISABLED:"disabled",STATUS_LOADING:"loading"},Vu={ARROW_BOUNDING:{offsetX:0,offsetY:2,width:24,height:7},DEFAULT_Z_INDEX:1060,MOUSE_ENTER_DELAY:50,MOUSE_LEAVE_DELAY:50,SPACING:8,MARGIN:0};function yS(n){return`${n}-${new Date().getTime()}-${Math.random()}`}function q_(){var n,e;try{return(e=(n=crypto==null?void 0:crypto.randomUUID)===null||n===void 0?void 0:n.call(crypto))!==null&&e!==void 0?e:String(9987e3+-1e11).replace(/[018]/g,t=>(Number(t)^crypto.getRandomValues(new Uint8Array(1))[0]&15>>Number(t)/4).toString(16))}catch{return yS("semi")}}function Lf(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefix:e="",length:t=7}=n,r="0123456789abcdefghijklmnopqrstuvwxyz",a=r.length;let i="";for(let o=0;on.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),bSe=n=>{let{autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}=n;return r.filter(i=>i).reduce((i,o)=>{e&&(o=ySe(o));const s=new RegExp(o,t?"g":"gi");let l;for(;l=s.exec(a);){const u=l.index,c=s.lastIndex;c>u&&i.push({highlight:!1,start:u,end:c}),l.index===s.lastIndex&&s.lastIndex++}return i},[])},_Se=n=>{let{chunks:e}=n;return e=e.sort((t,r)=>t.start-r.start).reduce((t,r)=>{if(t.length===0)return[r];{const a=t.pop();if(r.start<=a.end){const i=Math.max(a.end,r.end);t.push({highlight:!1,start:a.start,end:i})}else t.push(a,r);return t}},[]),e},SSe=n=>{let{chunksToHighlight:e,totalLength:t}=n;const r=[],a=(i,o,s)=>{o-i>0&&r.push({start:i,end:o,highlight:s})};if(e.length===0)a(0,t,!1);else{let i=0;e.forEach(o=>{a(i,o.start,!1),a(o.start,o.end,!0),i=o.end}),a(i,t,!1)}return r},CSe=n=>{let{autoEscape:e=!0,caseSensitive:t=!1,searchWords:r,sourceString:a}=n;Xe(r)&&(r=[r]);const i=bSe({autoEscape:e,caseSensitive:t,searchWords:r,sourceString:a}),o=_Se({chunks:i});return SSe({chunksToHighlight:o,totalLength:a?a.length:0})};function pb(n,e){n&&typeof n.stopPropagation=="function"&&n.stopPropagation(),!e&&n.nativeEvent&&typeof n.nativeEvent.stopImmediatePropagation=="function"&&n.nativeEvent.stopImmediatePropagation()}function ti(n,e){return jK(n,t=>{if(typeof e=="function")return e(t);if(typeof t=="function"||x.isValidElement(t)||Object.prototype.toString.call(t)==="[object Error]")return t;if(Array.isArray(t)&&t.length===0){const r=Object.keys(t);if(r.length){const a=[];r.forEach(i=>{ai(a,i,t[i])});try{_n(H(process,"env.NODE_ENV")!=="production",`[Semi] You may use an out-of-bounds array. In some cases, your program may not behave as expected. - The maximum length of an array is 4294967295. - Please check whether the array subscript in your data exceeds the maximum value of the JS array subscript`)}catch{}return a}else return}})}const E7=n=>{let{sourceString:e="",searchWords:t=[],option:r={autoEscape:!0,caseSensitive:!1}}=n;const a=CSe(Object.assign({sourceString:e,searchWords:t},r)),i=r.highlightTag||"mark",o=r.highlightClassName||"",s=r.highlightStyle||{};return a.map((l,u)=>{const{end:c,start:d,highlight:f}=l,h=e.substr(d,c-d);return f?x.createElement(i,{style:s,className:o,key:h+u},h):h})},zK=(n,e)=>{let{match:t,unmatch:r,callInInit:a=!0}=e;if(typeof window<"u"){let s=function(l){l.matches?t&&t(l):r&&r(l)};var i=s;const o=window.matchMedia(n);return a&&s(o),Object.prototype.hasOwnProperty.call(o,"addEventListener")?(o.addEventListener("change",s),()=>o.removeEventListener("change",s)):(o.addListener(s),()=>o.removeListener(s))}return()=>{}},Hr=n=>x.isValidElement(n)&&H(n.type,"elementType")==="Icon";function BK(){return document?document.activeElement:null}function HK(n){if(!It(n))return[];const t=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(n.querySelectorAll(t))}function wSe(){return globalThis&&Object.prototype.toString.call(globalThis)==="[object Window]"?window.innerWidth-document.documentElement.clientWidth:0}const xSe=x.createContext({}),Fr=xSe,TSe=()=>document.body;class Ew extends D.PureComponent{constructor(e,t){var r;super(e),r=this,this.initContainer=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var o,s;try{let l;if(!r.el||!(!((o=r.state)===null||o===void 0)&&o.container)||!Array.from(r.state.container.childNodes).includes(r.el)){r.el=document.createElement("div");const c=(r.props.getPopupContainer||a.getPopupContainer||TSe)();return c.appendChild(r.el),r.addStyle(r.props.style),r.addClass(r.props.prefixCls,a,r.props.className),l=c,l}}catch(l){if(!i)throw l}return(s=r.state)===null||s===void 0?void 0:s.container},this.addStyle=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(r.el)for(const i of Object.keys(a))r.el.style[i]=a[i]},this.addClass=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.context;const{direction:o}=i;for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u{const{className:e,style:t}=n,r=ESe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"24",height:"7",viewBox:"0 0 24 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"}),x.createElement("path",{d:"M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z"}))},ISe=OSe;var PSe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{className:e,style:t}=n,r=PSe(n,["className","style"]);return x.createElement("svg",Object.assign({"aria-hidden":!0,className:e,style:t},r,{width:"7",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z"}))},ASe=DSe,MSe=v.shape({offsetX:v.number,offsetY:v.number,width:v.number,height:v.number});class WK extends x.Component{constructor(e){super(e),this.handleAnimationStart=()=>{var t,r;(r=(t=this.props).onAnimationStart)===null||r===void 0||r.call(t)},this.handleAnimationEnd=()=>{this.setState({currentClassName:this.props.endClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!1},()=>{var t,r;(r=(t=this.props).onAnimationEnd)===null||r===void 0||r.call(t,!1)})},this.state={currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0}}componentDidMount(){var e,t,r,a;(t=(e=this.props).onAnimationStart)===null||t===void 0||t.call(e),this.props.motion||((a=(r=this.props).onAnimationEnd)===null||a===void 0||a.call(r,!1),this.setState({isAnimating:!1}))}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(i=>!Ke(this.props[i],e[i]));a.includes("animationState"),(a.includes("startClassName")||a.includes("replayKey")||a.includes("motion"))&&this.setState({currentClassName:this.props.startClassName,extraStyle:{animationFillMode:this.props.fillMode},isAnimating:!0},()=>{var i,o,s,l;(o=(i=this.props).onAnimationStart)===null||o===void 0||o.call(i),this.props.motion||((l=(s=this.props).onAnimationEnd)===null||l===void 0||l.call(s,this.state.isAnimating),this.setState({isAnimating:!1}))})}render(){var e;return this.props.motion?this.props.children({animationClassName:(e=this.state.currentClassName)!==null&&e!==void 0?e:"",animationStyle:this.state.extraStyle,animationEventsNeedBind:{onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},isAnimating:this.state.isAnimating}):this.props.children({animationClassName:"",animationStyle:{},animationEventsNeedBind:{},isAnimating:this.state.isAnimating})}}WK.defaultProps={motion:!0,replayKey:""};const ig=WK;var Sk=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);adocument.body;class Sr extends Pe{constructor(e){super(e),this.setContainerEl=t=>this.containerEl={current:t},this.isSpecial=t=>{if(It(t))return!!t.disabled;if(D.isValidElement(t)){if(H(t,"props.disabled"))return mc.STATUS_DISABLED;const a=H(t,"props.loading"),i=!vt(t)&&!vt(t.type)&&(H(t,"type.elementType")==="Button"||H(t,"type.elementType")==="IconButton");if(a&&i)return mc.STATUS_LOADING}return!1},this.didLeave=()=>{this.props.keepDOM?this.foundation.setDisplayNone(!0):this.foundation.removePortal(),this.foundation.unBindEvent()},this.renderIcon=()=>{const{placement:t}=this.state,{showArrow:r,prefixCls:a,style:i}=this.props;let o=null;const s=$([`${a}-icon-arrow`]),l=H(i,"backgroundColor"),u=t.includes("left")||t.includes("right")?x.createElement(ASe,null):x.createElement(ISe,null);return r&&(D.isValidElement(r)?o=r:o=x.cloneElement(u,{className:s,style:{color:l,fill:"currentColor"}})),o},this.handlePortalInnerClick=t=>{this.props.clickToHide&&this.foundation.hide(),this.props.stopPropagation&&pb(t)},this.handlePortalMouseDown=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalFocus=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalBlur=t=>{this.props.stopPropagation&&pb(t)},this.handlePortalInnerKeyDown=t=>{this.foundation.handleContainerKeydown(t)},this.renderContentNode=t=>{const r={initialFocusRef:this.initialFocusRef};return ke(t)?t(r):t},this.renderPortal=()=>{const{containerStyle:t={},visible:r,portalEventSet:a,placement:i,displayNone:o,transitionState:s,id:l,isPositionUpdated:u}=this.state,{prefixCls:c,content:d,showArrow:f,style:h,motion:p,role:g,zIndex:m}=this.props,y=this.renderContentNode(d),{className:b}=this.props,_=this.context.direction,S=$(b,{[`${c}-wrapper`]:!0,[`${c}-wrapper-show`]:r,[`${c}-with-arrow`]:!!f,[`${c}-rtl`]:_==="rtl"}),C=this.renderIcon(),w=fr(t,p?["transformOrigin"]:void 0),T=H(t,"transformOrigin"),E=H(h,"opacity",null),O=E||1,I=x.createElement(ig,{fillMode:"forwards",animationState:s,motion:p&&u,startClassName:s==="enter"?`${Q_}-animation-show`:`${Q_}-animation-hide`,onAnimationEnd:()=>{var P,A;s==="leave"&&(this.didLeave(),(A=(P=this.props).afterClose)===null||A===void 0||A.call(P))}},P=>{let{animationStyle:A,animationClassName:R,animationEventsNeedBind:L}=P;return x.createElement("div",Object.assign({className:$(S,R),style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),o?{display:"none"}:{}),{transformOrigin:T}),h),E?{opacity:u?O:"0"}:{})},a,L,{role:g,"x-placement":i,id:l}),x.createElement("div",{className:`${Q_}-content`},y),C)});return x.createElement(UK,{getPopupContainer:this.props.getPopupContainer,style:{zIndex:m}},x.createElement("div",{tabIndex:-1,className:`${q}-portal-inner`,style:w,ref:this.setContainerEl,onClick:this.handlePortalInnerClick,onFocus:this.handlePortalFocus,onBlur:this.handlePortalBlur,onMouseDown:this.handlePortalMouseDown,onKeyDown:this.handlePortalInnerKeyDown},I))},this.wrapSpan=t=>{const{wrapperClassName:r}=this.props,a=H(t,"props.style.display"),i=H(t,"props.block"),o=typeof t=="string",s={};return o||(s.display="inline-block"),(i||kSe.includes(a))&&(s.width="100%"),x.createElement("span",{className:r,style:s},t)},this.mergeEvents=(t,r)=>{const a={};return Br(r,(i,o)=>{typeof i=="function"&&(a[o]=function(){i(...arguments),t&&typeof t[o]=="function"&&t[o](...arguments)})}),a},this.getPopupId=()=>this.state.id,this.state={visible:!1,transitionState:"",triggerEventSet:{},portalEventSet:{},containerStyle:{},isInsert:!1,placement:e.position||"top",transitionStyle:{},isPositionUpdated:!1,id:e.wrapperId,displayNone:!1},this.foundation=new rSe(this.adapter),this.eventManager=new FK,this.triggerEl=x.createRef(),this.containerEl=x.createRef(),this.initialFocusRef=x.createRef(),this.clickOutsideHandler=null,this.resizeHandler=null,this.isWrapped=!1,this.containerPosition=void 0}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{on:function(){return e.eventManager.on(...arguments)},off:function(){return e.eventManager.off(...arguments)},insertPortal:(t,r)=>{var a=Sk(r,["position"]);this.setState({isInsert:!0,transitionState:"enter",containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a)},()=>{setTimeout(()=>{this.eventManager.emit("portalInserted")},0)})},removePortal:()=>{this.setState({isInsert:!1,isPositionUpdated:!1})},getEventName:()=>({mouseEnter:"onMouseEnter",mouseLeave:"onMouseLeave",mouseOut:"onMouseOut",mouseOver:"onMouseOver",click:"onClick",focus:"onFocus",blur:"onBlur",keydown:"onKeyDown",contextMenu:"onContextMenu"}),registerTriggerEvent:t=>{this.setState({triggerEventSet:t})},registerPortalEvent:t=>{this.setState({portalEventSet:t})},getTriggerBounding:()=>{const t=this.adapter.getTriggerNode();return this.triggerEl.current=t,t&&t.getBoundingClientRect()},getPopupContainerRect:()=>{const t=this.getPopupContainer();let r=null;if(t&&It(t)){const a=K2e(t.getBoundingClientRect());r=Object.assign(Object.assign({},a),{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop})}return r},containerIsBody:()=>this.getPopupContainer()===document.body,containerIsRelative:()=>{const t=this.getPopupContainer();return window.getComputedStyle(t).getPropertyValue("position")==="relative"},containerIsRelativeOrAbsolute:()=>["relative","absolute"].includes(this.containerPosition),getWrapperBounding:()=>{const t=this.containerEl&&this.containerEl.current;return t&&t.getBoundingClientRect()},getDocumentElementBounding:()=>document.documentElement.getBoundingClientRect(),setPosition:t=>{var{position:r}=t,a=Sk(t,["position"]);this.setState({containerStyle:Object.assign(Object.assign({},this.state.containerStyle),a),placement:r,isPositionUpdated:!0},()=>{this.eventManager.emit("positionUpdated")})},setDisplayNone:(t,r)=>{this.setState({displayNone:t},r)},updatePlacementAttr:t=>{this.setState({placement:t})},togglePortalVisible:(t,r)=>{const a={};a.transitionState=t?"enter":"leave",a.visible=t,this.mounted&&this.setState(a,()=>{r()})},registerClickOutsideHandler:t=>{this.clickOutsideHandler&&this.adapter.unregisterClickOutsideHandler(),this.clickOutsideHandler=r=>{if(!this.mounted)return!1;let a=this.triggerEl&&this.triggerEl.current,i=this.containerEl&&this.containerEl.current;a=ui.findDOMNode(a),i=ui.findDOMNode(i),(a&&!a.contains(r.target)&&i&&!i.contains(r.target)||this.props.clickTriggerToHide&&a&&a.contains(r.target))&&(this.props.onClickOutSide(r),t())},window.addEventListener("mousedown",this.clickOutsideHandler)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(window.removeEventListener("mousedown",this.clickOutsideHandler),this.clickOutsideHandler=null)},registerResizeHandler:t=>{this.resizeHandler&&this.adapter.unregisterResizeHandler(),this.resizeHandler=yO(r=>{if(!this.mounted)return!1;t(r)},10),window.addEventListener("resize",this.resizeHandler,!1)},unregisterResizeHandler:()=>{this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler,!1),this.resizeHandler=null)},notifyVisibleChange:t=>{this.props.onVisibleChange(t)},registerScrollHandler:t=>{this.scrollHandler&&this.adapter.unregisterScrollHandler(),this.scrollHandler=yO(r=>{if(!this.mounted)return!1;const a=this.adapter.getTriggerNode();if(r.target.contains(a)){const o={x:r.target.scrollLeft,y:r.target.scrollTop};t(o)}},10),window.addEventListener("scroll",this.scrollHandler,!0)},unregisterScrollHandler:()=>{this.scrollHandler&&(window.removeEventListener("scroll",this.scrollHandler,!0),this.scrollHandler=null)},canMotion:()=>!!this.props.motion,updateContainerPosition:()=>{const t=this.getPopupContainer();if(t&&It(t)){const a=window.getComputedStyle(t).getPropertyValue("position");this.containerPosition=a}},getContainerPosition:()=>this.containerPosition,getContainer:()=>this.containerEl&&this.containerEl.current,getTriggerNode:()=>{let t=this.triggerEl.current;return It(this.triggerEl.current)||(t=ui.findDOMNode(this.triggerEl.current)),t},getFocusableElements:t=>HK(t),getActiveElement:()=>BK(),setInitialFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"initialFocusRef.current");r&&"focus"in r&&r.focus({preventScroll:t})},notifyEscKeydown:t=>{this.props.onEscKeyDown(t)},setId:()=>{this.setState({id:Lf()})}})}componentDidMount(){this.mounted=!0,this.getPopupContainer=this.props.getPopupContainer||this.context.getPopupContainer||NSe,this.foundation.init()}componentWillUnmount(){this.mounted=!1,this.foundation.destroy()}focusTrigger(){this.foundation.focusTrigger()}rePosition(){return this.foundation.calcPosition()}componentDidUpdate(e,t){_n(this.props.mouseLeaveDelay{this.triggerEl.current=h;const{ref:p}=l;typeof p=="function"?p(h):p&&typeof p=="object"&&(p.current=h)},tabIndex:l.props.tabIndex||0,"data-popupid":a}));return x.createElement(x.Fragment,null,e?this.renderPortal():null,f)}}Sr.contextType=Fr;Sr.propTypes={children:v.node,motion:v.bool,autoAdjustOverflow:v.bool,position:v.oneOf(RSe),getPopupContainer:v.func,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(LSe).isRequired,className:v.string,wrapperClassName:v.string,clickToHide:v.bool,clickTriggerToHide:v.bool,visible:v.bool,style:v.object,content:v.oneOfType([v.node,v.func]),prefixCls:v.string,onVisibleChange:v.func,onClickOutSide:v.func,spacing:v.oneOfType([v.number,v.object]),margin:v.oneOfType([v.number,v.object]),showArrow:v.oneOfType([v.bool,v.node]),zIndex:v.number,rePosKey:v.oneOfType([v.string,v.number]),arrowBounding:MSe,transformFromCenter:v.bool,arrowPointAtCenter:v.bool,stopPropagation:v.bool,role:v.string,wrapWhenSpecial:v.bool,guardFocus:v.bool,returnFocusOnClose:v.bool,preventScroll:v.bool,keepDOM:v.bool};Sr.defaultProps={arrowBounding:Vu.ARROW_BOUNDING,autoAdjustOverflow:!0,arrowPointAtCenter:!0,trigger:"hover",transformFromCenter:!0,position:"top",prefixCls:Q_,role:"tooltip",mouseEnterDelay:Vu.MOUSE_ENTER_DELAY,mouseLeaveDelay:Vu.MOUSE_LEAVE_DELAY,motion:!0,onVisibleChange:B,onClickOutSide:B,spacing:Vu.SPACING,margin:Vu.MARGIN,showArrow:!0,wrapWhenSpecial:!0,zIndex:Vu.DEFAULT_Z_INDEX,closeOnEsc:!1,guardFocus:!1,returnFocusOnClose:!1,onEscKeyDown:B,disableFocusListener:!1,disableArrowKeyDown:!1,keepDOM:!1};var O7={exports:{}};const GK=(n,{target:e=document.body}={})=>{const t=document.createElement("textarea"),r=document.activeElement;t.value=n,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const a=document.getSelection();let i=!1;a.rangeCount>0&&(i=a.getRangeAt(0)),e.append(t),t.select(),t.selectionStart=0,t.selectionEnd=n.length;let o=!1;try{o=document.execCommand("copy")}catch{}return t.remove(),i&&(a.removeAllRanges(),a.addRange(i)),r&&r.focus(),o};O7.exports=GK;O7.exports.default=GK;var FSe=O7.exports;const $Se=Ie(FSe);function Ht(){}const VSe=x.createContext(null),YK=VSe;function $p(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}function Ds(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&n.formattingValues){var i=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):i;a=n.formattingValues[o]||n.formattingValues[i]}else{var s=n.defaultWidth,l=t!=null&&t.width?String(t.width):n.defaultWidth;a=n.values[l]||n.values[s]}var u=n.argumentCallback?n.argumentCallback(e):e;return a[u]}}function As(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;var o=i[0],s=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(s)?zSe(s,function(d){return d.test(o)}):jSe(s,function(d){return d.test(o)}),u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;var c=e.slice(o.length);return{value:u,rest:c}}}function jSe(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function zSe(n,e){for(var t=0;t1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var a=r[0],i=e.match(n.parsePattern);if(!i)return null;var o=n.valueCallback?n.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}function Xs(n){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xs(n)}function fn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qe(n,e){if(e.length1?"s":"")+" required, but only "+e.length+" present")}function dt(n){qe(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Xs(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ku(n,e){qe(2,arguments);var t=dt(n),r=fn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var a=t.getDate(),i=new Date(t.getTime());i.setMonth(t.getMonth()+r+1,0);var o=i.getDate();return a>=o?i:(t.setFullYear(i.getFullYear(),i.getMonth(),a),t)}function BSe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=fn(e);return new Date(t+r)}var HSe={};function Hg(){return HSe}function ZK(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}function Ck(n){qe(1,arguments);var e=dt(n);return e.setHours(0,0,0,0),e}function bS(n,e){qe(2,arguments);var t=fn(e);return Ku(n,t*12)}var I7=6e4,P7=36e5,USe=1e3;function D7(n,e){qe(2,arguments);var t=Ck(n),r=Ck(e);return t.getTime()===r.getTime()}function TO(n){return qe(1,arguments),n instanceof Date||Xs(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function uo(n){if(qe(1,arguments),!TO(n)&&typeof n!="number")return!1;var e=dt(n);return!isNaN(Number(e))}function Rd(n,e){qe(2,arguments);var t=dt(n),r=dt(e),a=t.getFullYear()-r.getFullYear(),i=t.getMonth()-r.getMonth();return a*12+i}function WSe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getFullYear()-r.getFullYear()}function GSe(n){qe(1,arguments);var e=dt(n);return e.setDate(1),e.setHours(0,0,0,0),e}function XK(n,e){qe(2,arguments);var t=fn(e);return BSe(n,-t)}var YSe=864e5;function KSe(n){qe(1,arguments);var e=dt(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/YSe)+1}function og(n){qe(1,arguments);var e=1,t=dt(n),r=t.getUTCDay(),a=(r=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function ZSe(n){qe(1,arguments);var e=qK(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=og(t);return r}var XSe=6048e5;function QK(n){qe(1,arguments);var e=dt(n),t=og(e).getTime()-ZSe(e).getTime();return Math.round(t/XSe)+1}function Ql(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&t!==void 0?t:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=dt(n),h=f.getUTCDay(),p=(h=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,h),p.setUTCHours(0,0,0,0);var g=Ql(p,e),m=new Date(0);m.setUTCFullYear(d,0,h),m.setUTCHours(0,0,0,0);var y=Ql(m,e);return c.getTime()>=g.getTime()?d+1:c.getTime()>=y.getTime()?d:d-1}function qSe(n,e){var t,r,a,i,o,s,l,u;qe(1,arguments);var c=Hg(),d=fn((t=(r=(a=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:c.firstWeekContainsDate)!==null&&r!==void 0?r:(l=c.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&t!==void 0?t:1),f=A7(n,e),h=new Date(0);h.setUTCFullYear(f,0,d),h.setUTCHours(0,0,0,0);var p=Ql(h,e);return p}var QSe=6048e5;function JK(n,e){qe(1,arguments);var t=dt(n),r=Ql(t,e).getTime()-qSe(t,e).getTime();return Math.round(r/QSe)+1}function Gt(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length0?r:1-r;return Gt(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):Gt(r+1,2)},d:function(e,t){return Gt(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return Gt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Gt(e.getUTCHours(),t.length)},m:function(e,t){return Gt(e.getUTCMinutes(),t.length)},s:function(e,t){return Gt(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),i=Math.floor(a*Math.pow(10,r-3));return Gt(i,t.length)}};const bu=JSe;var Sh={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eCe={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),i=a>0?a:1-a;return r.ordinalNumber(i,{unit:"year"})}return bu.y(e,t)},Y:function(e,t,r,a){var i=A7(e,a),o=i>0?i:1-i;if(t==="YY"){var s=o%100;return Gt(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):Gt(o,t.length)},R:function(e,t){var r=qK(e);return Gt(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return Gt(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return Gt(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return Gt(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return bu.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return Gt(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var i=JK(e,a);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):Gt(i,t.length)},I:function(e,t,r){var a=QK(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):Gt(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):bu.d(e,t)},D:function(e,t,r){var a=KSe(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):Gt(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Gt(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var i=e.getUTCDay(),o=(i-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Gt(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),i=a===0?7:a;switch(t){case"i":return String(i);case"ii":return Gt(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),i=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),i;switch(a===12?i=Sh.noon:a===0?i=Sh.midnight:i=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),i;switch(a>=17?i=Sh.evening:a>=12?i=Sh.afternoon:a>=4?i=Sh.morning:i=Sh.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return bu.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):bu.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):Gt(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):bu.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):bu.s(e,t)},S:function(e,t){return bu.S(e,t)},X:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return xk(o);case"XXXX":case"XX":return Ld(o);case"XXXXX":case"XXX":default:return Ld(o,":")}},x:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"x":return xk(o);case"xxxx":case"xx":return Ld(o);case"xxxxx":case"xxx":default:return Ld(o,":")}},O:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+wk(o,":");case"OOOO":default:return"GMT"+Ld(o,":")}},z:function(e,t,r,a){var i=a._originalDate||e,o=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+wk(o,":");case"zzzz":default:return"GMT"+Ld(o,":")}},t:function(e,t,r,a){var i=a._originalDate||e,o=Math.floor(i.getTime()/1e3);return Gt(o,t.length)},T:function(e,t,r,a){var i=a._originalDate||e,o=i.getTime();return Gt(o,t.length)}};function wk(n,e){var t=n>0?"-":"+",r=Math.abs(n),a=Math.floor(r/60),i=r%60;if(i===0)return t+String(a);var o=e||"";return t+String(a)+o+Gt(i,2)}function xk(n,e){if(n%60===0){var t=n>0?"-":"+";return t+Gt(Math.abs(n)/60,2)}return Ld(n,e)}function Ld(n,e){var t=e||"",r=n>0?"-":"+",a=Math.abs(n),i=Gt(Math.floor(a/60),2),o=Gt(a%60,2);return r+i+t+o}const tCe=eCe;var Tk=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},eZ=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},nCe=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],i=r[2];if(!i)return Tk(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Tk(a,t)).replace("{{time}}",eZ(i,t))},rCe={p:eZ,P:nCe};const EO=rCe;var aCe=["D","DD"],iCe=["YY","YYYY"];function tZ(n){return aCe.indexOf(n)!==-1}function nZ(n){return iCe.indexOf(n)!==-1}function _S(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oCe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},sCe=function(e,t,r){var a,i=oCe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const lCe=sCe;var uCe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},cCe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dCe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},fCe={date:$p({formats:uCe,defaultWidth:"full"}),time:$p({formats:cCe,defaultWidth:"full"}),dateTime:$p({formats:dCe,defaultWidth:"full"})};const hCe=fCe;var pCe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},gCe=function(e,t,r,a){return pCe[e]};const vCe=gCe;var mCe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},yCe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bCe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_Ce={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},SCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},CCe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wCe=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xCe={ordinalNumber:wCe,era:Ds({values:mCe,defaultWidth:"wide"}),quarter:Ds({values:yCe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:bCe,defaultWidth:"wide"}),day:Ds({values:_Ce,defaultWidth:"wide"}),dayPeriod:Ds({values:SCe,defaultWidth:"wide",formattingValues:CCe,defaultFormattingWidth:"wide"})};const TCe=xCe;var ECe=/^(\d+)(th|st|nd|rd)?/i,OCe=/\d+/i,ICe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},PCe={any:[/^b/i,/^(a|c)/i]},DCe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ACe={any:[/1/i,/2/i,/3/i,/4/i]},MCe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},RCe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},LCe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kCe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},NCe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},FCe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},$Ce={ordinalNumber:KK({matchPattern:ECe,parsePattern:OCe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:ICe,defaultMatchWidth:"wide",parsePatterns:PCe,defaultParseWidth:"any"}),quarter:As({matchPatterns:DCe,defaultMatchWidth:"wide",parsePatterns:ACe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:MCe,defaultMatchWidth:"wide",parsePatterns:RCe,defaultParseWidth:"any"}),day:As({matchPatterns:LCe,defaultMatchWidth:"wide",parsePatterns:kCe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:NCe,defaultMatchWidth:"any",parsePatterns:FCe,defaultParseWidth:"any"})};const VCe=$Ce;var jCe={code:"en-US",formatDistance:lCe,formatLong:hCe,formatRelative:vCe,localize:TCe,match:VCe,options:{weekStartsOn:0,firstWeekContainsDate:1}};const M7=jCe;var zCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,BCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HCe=/^'([^]*?)'?$/,UCe=/''/g,WCe=/[a-zA-Z]/;function Lt(n,e,t){var r,a,i,o,s,l,u,c,d,f,h,p,g,m,y,b,_,S;qe(2,arguments);var C=String(e),w=Hg(),T=(r=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:w.locale)!==null&&r!==void 0?r:M7,E=fn((i=(o=(s=(l=t==null?void 0:t.firstWeekContainsDate)!==null&&l!==void 0?l:t==null||(u=t.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:w.firstWeekContainsDate)!==null&&o!==void 0?o:(d=w.locale)===null||d===void 0||(f=d.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(E>=1&&E<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=fn((h=(p=(g=(m=t==null?void 0:t.weekStartsOn)!==null&&m!==void 0?m:t==null||(y=t.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&g!==void 0?g:w.weekStartsOn)!==null&&p!==void 0?p:(_=w.locale)===null||_===void 0||(S=_.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var I=dt(n);if(!uo(I))throw new RangeError("Invalid time value");var P=ZK(I),A=XK(I,P),R={firstWeekContainsDate:E,weekStartsOn:O,locale:T,_originalDate:I},L=C.match(BCe).map(function(k){var N=k[0];if(N==="p"||N==="P"){var z=EO[N];return z(k,T.formatLong)}return k}).join("").match(zCe).map(function(k){if(k==="''")return"'";var N=k[0];if(N==="'")return GCe(k);var z=tCe[N];if(z)return!(t!=null&&t.useAdditionalWeekYearTokens)&&nZ(k)&&_S(k,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&tZ(k)&&_S(k,e,String(n)),z(A,k,T.localize,R);if(N.match(WCe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return k}).join("");return L}function GCe(n){var e=n.match(HCe);return e?e[1].replace(UCe,"'"):n}function YCe(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}function rZ(n){qe(1,arguments);var e=dt(n),t=e.getFullYear(),r=e.getMonth(),a=new Date(0);return a.setFullYear(t,r+1,0),a.setHours(0,0,0,0),a.getDate()}function KCe(n){qe(1,arguments);var e=dt(n),t=e.getHours();return t}function ZCe(n){qe(1,arguments);var e=dt(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(0,0,0,0),e}function XCe(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()>r.getTime()}function aZ(n,e){qe(2,arguments);var t=dt(n),r=dt(e);return t.getTime()n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(u){throw u},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){t=t.call(n)},n:function(){var u=t.next();return i=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function Se(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function CS(n,e){return CS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},CS(n,e)}function At(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&CS(n,e)}function wS(n){return wS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wS(n)}function QCe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function JCe(n,e){if(e&&(Xs(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(n)}function Mt(n){var e=QCe();return function(){var r=wS(n),a;if(e){var i=wS(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return JCe(this,a)}}function St(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ewe(n,e){if(Xs(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Xs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function iZ(n){var e=ewe(n,"string");return Xs(e)==="symbol"?e:String(e)}function Ik(n,e){for(var t=0;t0,r=t?e:1-e,a;if(r<=50)a=n||100;else{var i=r+50,o=Math.floor(i/100)*100,s=n>=i%100;a=n+o-(s?100:0)}return t?a:1-a}function uZ(n){return n%400===0||n%4===0&&n%100!==0}var iwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=lZ(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var u=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),owe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o0}},{key:"set",value:function(a,i,o,s){var l=A7(a,s);if(o.isTwoDigitYear){var u=lZ(o.year,l);return a.setUTCFullYear(u,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}var c=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(c,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),Ql(a,s)}}]),t}(jt),swe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),cwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),dwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt),fwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function hwe(n,e,t){qe(2,arguments);var r=dt(n),a=fn(e),i=JK(r,t)-a;return r.setUTCDate(r.getUTCDate()-i*7),r}var pwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o,s){return Ql(hwe(a,o,s),s)}}]),t}(jt);function gwe(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=QK(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var vwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=53}},{key:"set",value:function(a,i,o){return og(gwe(a,o))}}]),t}(jt),mwe=[31,28,31,30,31,30,31,31,30,31,30,31],ywe=[31,29,31,30,31,30,31,31,30,31,30,31],bwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=ywe[l]:i>=1&&i<=mwe[l]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),_we=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function L7(n,e,t){var r,a,i,o,s,l,u,c;qe(2,arguments);var d=Hg(),f=fn((r=(a=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&a!==void 0?a:(u=d.locale)===null||u===void 0||(c=u.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(n),p=fn(e),g=h.getUTCDay(),m=p%7,y=(m+7)%7,b=(y=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Cwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt),wwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=L7(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(jt);function xwe(n,e){qe(2,arguments);var t=fn(e);t%7===0&&(t=t-7);var r=1,a=dt(n),i=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s=1&&i<=7}},{key:"set",value:function(a,i,o){return a=xwe(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(jt),Ewe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Dwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),t}(jt),Awe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(jt),Mwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(jt),Rwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),t}(jt),Lwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),t}(jt),kwe=function(n){At(t,n);var e=Mt(t);function t(){var r;St(this,t);for(var a=arguments.length,i=new Array(a),o=0;o=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=fn((p=(g=(m=(y=r==null?void 0:r.weekStartsOn)!==null&&y!==void 0?y:r==null||(b=r.locale)===null||b===void 0||(_=b.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&g!==void 0?g:(S=E.locale)===null||S===void 0||(C=S.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(T==="")return w===""?dt(t):new Date(NaN);var A={firstWeekContainsDate:I,weekStartsOn:P,locale:O},R=[new rwe],L=T.match(Bwe).map(function(ne){var re=ne[0];if(re in EO){var te=EO[re];return te(ne,O.formatLong)}return ne}).join("").match(zwe),k=[],N=Ok(L),z;try{var F=function(){var re=z.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&nZ(re)&&_S(re,T,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&tZ(re)&&_S(re,T,n);var te=re[0],oe=jwe[te];if(oe){var pe=oe.incompatibleTokens;if(Array.isArray(pe)){var We=k.find(function(Je){return pe.includes(Je.token)||Je.token===te});if(We)throw new RangeError("The format string mustn't contain `".concat(We.fullToken,"` and `").concat(re,"` at the same time"))}else if(oe.incompatibleTokens==="*"&&k.length>0)throw new RangeError("The format string mustn't contain `".concat(re,"` and any other token at the same time"));k.push({token:te,fullToken:re});var Ce=oe.run(w,re,O.match,A);if(!Ce)return{v:new Date(NaN)};R.push(Ce.setter),w=Ce.rest}else{if(te.match(Gwe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+te+"`");if(re==="''"?re="'":te==="'"&&(re=Ywe(re)),w.indexOf(re)===0)w=w.slice(re.length);else return{v:new Date(NaN)}}};for(N.s();!(z=N.n()).done;){var j=F();if(Xs(j)==="object")return j.v}}catch(ne){N.e(ne)}finally{N.f()}if(w.length>0&&Wwe.test(w))return new Date(NaN);var U=R.map(function(ne){return ne.priority}).sort(function(ne,re){return re-ne}).filter(function(ne,re,te){return te.indexOf(ne)===re}).map(function(ne){return R.filter(function(re){return re.priority===ne}).sort(function(re,te){return te.subPriority-re.subPriority})}).map(function(ne){return ne[0]}),G=dt(t);if(isNaN(G.getTime()))return new Date(NaN);var Y=XK(G,ZK(G)),Q={},Z=Ok(U),ae;try{for(Z.s();!(ae=Z.n()).done;){var se=ae.value;if(!se.validate(Y,A))return new Date(NaN);var ee=se.set(Y,Q,A);Array.isArray(ee)?(Y=ee[0],YCe(Q,ee[1])):Y=ee}}catch(ne){Z.e(ne)}finally{Z.f()}return Y}function Ywe(n){return n.match(Hwe)[1].replace(Uwe,"'")}function Pk(n){qe(1,arguments);var e=dt(n);return e.setMilliseconds(0),e}function Dk(n,e){qe(2,arguments);var t=Pk(n),r=Pk(e);return t.getTime()===r.getTime()}function Kwe(n,e){qe(2,arguments);var t=dt(n).getTime(),r=dt(e.start).getTime(),a=dt(e.end).getTime();if(!(r<=a))throw new RangeError("Invalid interval");return t>=r&&t<=a}function mo(n,e){var t;qe(1,arguments);var r=fn((t=e==null?void 0:e.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var a=Qwe(n),i;if(a.date){var o=Jwe(a.date,r);i=exe(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),l=0,u;if(a.time&&(l=txe(a.time),isNaN(l)))return new Date(NaN);if(a.timezone){if(u=nxe(a.timezone),isNaN(u))return new Date(NaN)}else{var c=new Date(s+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(s+l+u)}var gb={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Zwe=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Xwe=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,qwe=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Qwe(n){var e={},t=n.split(gb.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],gb.timeZoneDelimiter.test(e.date)&&(e.date=n.split(gb.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var a=gb.timezone.exec(r);a?(e.time=r.replace(a[1],""),e.timezone=a[1]):e.time=r}return e}function Jwe(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:i===null?a:i*100,restDateString:n.slice((r[1]||r[2]).length)}}function exe(n,e){if(e===null)return new Date(NaN);var t=n.match(Zwe);if(!t)return new Date(NaN);var r=!!t[4],a=Lv(t[1]),i=Lv(t[2])-1,o=Lv(t[3]),s=Lv(t[4]),l=Lv(t[5])-1;if(r)return sxe(e,s,l)?rxe(e,s,l):new Date(NaN);var u=new Date(0);return!ixe(e,i,o)||!oxe(e,a)?new Date(NaN):(u.setUTCFullYear(e,i,Math.max(a,o)),u)}function Lv(n){return n?parseInt(n):1}function txe(n){var e=n.match(Xwe);if(!e)return NaN;var t=e5(e[1]),r=e5(e[2]),a=e5(e[3]);return lxe(t,r,a)?t*P7+r*I7+a*1e3:NaN}function e5(n){return n&&parseFloat(n.replace(",","."))||0}function nxe(n){if(n==="Z")return 0;var e=n.match(qwe);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),a=e[3]&&parseInt(e[3])||0;return uxe(r,a)?t*(r*P7+a*I7):NaN}function rxe(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var a=r.getUTCDay()||7,i=(e-1)*7+t+1-a;return r.setUTCDate(r.getUTCDate()+i),r}var axe=[31,null,31,30,31,30,31,31,30,31,30,31];function dZ(n){return n%400===0||n%4===0&&n%100!==0}function ixe(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(axe[e]||(dZ(n)?29:28))}function oxe(n,e){return e>=1&&e<=(dZ(n)?366:365)}function sxe(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function lxe(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function uxe(n,e){return e>=0&&e<=59}function Vp(n,e){qe(2,arguments);var t=dt(n),r=fn(e),a=t.getFullYear(),i=t.getDate(),o=new Date(0);o.setFullYear(a,r,15),o.setHours(0,0,0,0);var s=rZ(o);return t.setMonth(r,Math.min(i,s)),t}function fZ(n,e){if(qe(2,arguments),Xs(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var t=dt(n);return isNaN(t.getTime())?new Date(NaN):(e.year!=null&&t.setFullYear(e.year),e.month!=null&&(t=Vp(t,e.month)),e.date!=null&&t.setDate(fn(e.date)),e.hours!=null&&t.setHours(fn(e.hours)),e.minutes!=null&&t.setMinutes(fn(e.minutes)),e.seconds!=null&&t.setSeconds(fn(e.seconds)),e.milliseconds!=null&&t.setMilliseconds(fn(e.milliseconds)),t)}function hZ(n,e){qe(2,arguments);var t=dt(n),r=fn(e);return isNaN(t.getTime())?new Date(NaN):(t.setFullYear(r),t)}function cxe(n,e){qe(2,arguments);var t=fn(e);return Ku(n,-t)}function dxe(n,e){qe(2,arguments);var t=fn(e);return bS(n,-t)}function fxe(n,e,t){qe(2,arguments);var r=Ql(n,t),a=Ql(e,t);return r.getTime()===a.getTime()}var hxe={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},pxe=function(e,t,r){var a,i=hxe[e];return typeof i=="string"?a=i:t===1?a=i.one:a=i.other.replace("{{count}}",String(t)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a};const gxe=pxe;var vxe={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},mxe={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},yxe={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},bxe={date:$p({formats:vxe,defaultWidth:"full"}),time:$p({formats:mxe,defaultWidth:"full"}),dateTime:$p({formats:yxe,defaultWidth:"full"})};const _xe=bxe;function Ak(n,e,t){var r="eeee p";return fxe(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}var Sxe={lastWeek:Ak,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:Ak,other:"PP p"},Cxe=function(e,t,r,a){var i=Sxe[e];return typeof i=="function"?i(t,r,a):i};const wxe=Cxe;var xxe={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Txe={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Exe={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Oxe={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},Ixe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Pxe={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Dxe=function(e,t){var r=Number(e);switch(t==null?void 0:t.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},Axe={ordinalNumber:Dxe,era:Ds({values:xxe,defaultWidth:"wide"}),quarter:Ds({values:Txe,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Ds({values:Exe,defaultWidth:"wide"}),day:Ds({values:Oxe,defaultWidth:"wide"}),dayPeriod:Ds({values:Ixe,defaultWidth:"wide",formattingValues:Pxe,defaultFormattingWidth:"wide"})};const Mxe=Axe;var Rxe=/^(第\s*)?\d+(日|时|分|秒)?/i,Lxe=/\d+/i,kxe={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Nxe={any:[/^(前)/i,/^(公元)/i]},Fxe={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},$xe={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},Vxe={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},jxe={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},zxe={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Bxe={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Hxe={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},Uxe={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Wxe={ordinalNumber:KK({matchPattern:Rxe,parsePattern:Lxe,valueCallback:function(e){return parseInt(e,10)}}),era:As({matchPatterns:kxe,defaultMatchWidth:"wide",parsePatterns:Nxe,defaultParseWidth:"any"}),quarter:As({matchPatterns:Fxe,defaultMatchWidth:"wide",parsePatterns:$xe,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:As({matchPatterns:Vxe,defaultMatchWidth:"wide",parsePatterns:jxe,defaultParseWidth:"any"}),day:As({matchPatterns:zxe,defaultMatchWidth:"wide",parsePatterns:Bxe,defaultParseWidth:"any"}),dayPeriod:As({matchPatterns:Hxe,defaultMatchWidth:"any",parsePatterns:Uxe,defaultParseWidth:"any"})};const Gxe=Wxe;var Yxe={code:"zh-CN",formatDistance:gxe,formatLong:_xe,formatRelative:wxe,localize:Mxe,match:Gxe,options:{weekStartsOn:1,firstWeekContainsDate:4}};const k7=Yxe,Kxe={code:"zh-CN",dateFnsLocale:k7,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"}},OO=Kxe;class hn extends D.Component{renderChildren(e,t){const{componentName:r}=this.props;let a=e;e!=null&&e.code||(a=OO);const i=H(OO,"dateFnsLocale"),o=H(a,"dateFnsLocale",i);return t(a[r],a.code,o)}render(){const{children:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{locale:r}=t;return x.createElement(YK.Consumer,null,a=>this.renderChildren(r||a,e))})}}hn.propTypes={componentName:v.string.isRequired,children:v.any};hn.defaultProps={componentName:""};const Zxe="semi";var Xxe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{svg:t,spin:r=!1,rotate:a,style:i,className:o,prefixCls:s=Zxe,type:l,size:u="default"}=n,c=Xxe(n,["svg","spin","rotate","style","className","prefixCls","type","size"]),d=$(`${s}-icon`,{[`${s}-icon-extra-small`]:u==="extra-small",[`${s}-icon-small`]:u==="small",[`${s}-icon-default`]:u==="default",[`${s}-icon-large`]:u==="large",[`${s}-icon-extra-large`]:u==="extra-large",[`${s}-icon-spinning`]:r===!0,[`${s}-icon-${l}`]:!!l},o),f={};return Number.isSafeInteger(a)&&(f.transform=`rotate(${a}deg)`),Object.assign(f,i),x.createElement("span",Object.assign({role:"img",ref:e,"aria-label":l,className:d,style:f},c),t)});pZ.elementType="Icon";const Qe=(n,e)=>{const t=x.forwardRef((r,a)=>x.createElement(pZ,Object.assign({svg:x.createElement(n),type:e,ref:a},r)));return t.elementType="Icon",t};function qxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM13.5 17.5C13.5 16.6716 12.8284 16 12 16C11.1716 16 10.5 16.6716 10.5 17.5C10.5 18.3284 11.1716 19 12 19C12.8284 19 13.5 18.3284 13.5 17.5ZM12 5C10.9138 5 10.0507 5.91244 10.1109 6.99692L10.4168 12.5023C10.4635 13.3426 11.1584 14 12 14C12.8416 14 13.5365 13.3426 13.5832 12.5023L13.8891 6.99692C13.9493 5.91244 13.0862 5 12 5Z",fill:"currentColor"}))}const Qxe=Qe(qxe,"alert_circle"),z1=Qxe;function Jxe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2268 2.3986L1.52616 19.0749C0.831449 20.4064 1.79747 22 3.29933 22H20.7007C22.2025 22 23.1686 20.4064 22.4739 19.0749L13.7732 2.3986C13.0254 0.965441 10.9746 0.965442 10.2268 2.3986ZM13.1415 14.0101C13.0603 14.5781 12.5739 15 12.0001 15C11.4263 15 10.9398 14.5781 10.8586 14.0101L10.2829 9.97992C10.1336 8.93495 10.9445 8.00002 12.0001 8.00002C13.0556 8.00002 13.8665 8.93495 13.7172 9.97992L13.1415 14.0101ZM13.5001 18.5C13.5001 19.3284 12.8285 20 12.0001 20C11.1716 20 10.5001 19.3284 10.5001 18.5C10.5001 17.6716 11.1716 17 12.0001 17C12.8285 17 13.5001 17.6716 13.5001 18.5Z",fill:"currentColor"}))}const eTe=Qe(Jxe,"alert_triangle"),Ow=eTe;function tTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 20V8H20V20H4ZM2 4C2 2.89543 2.89543 2 4 2H20C21.1046 2 22 2.89543 22 4V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4ZM6 10.5C6 10.2239 6.22386 10 6.5 10H8.5C8.77614 10 9 10.2239 9 10.5V12.5C9 12.7761 8.77614 13 8.5 13H6.5C6.22386 13 6 12.7761 6 12.5V10.5ZM6.5 15C6.22386 15 6 15.2239 6 15.5V17.5C6 17.7761 6.22386 18 6.5 18H8.5C8.77614 18 9 17.7761 9 17.5V15.5C9 15.2239 8.77614 15 8.5 15H6.5ZM10.5 10.5C10.5 10.2239 10.7239 10 11 10H13C13.2761 10 13.5 10.2239 13.5 10.5V12.5C13.5 12.7761 13.2761 13 13 13H11C10.7239 13 10.5 12.7761 10.5 12.5V10.5ZM11 15C10.7239 15 10.5 15.2239 10.5 15.5V17.5C10.5 17.7761 10.7239 18 11 18H13C13.2761 18 13.5 17.7761 13.5 17.5V15.5C13.5 15.2239 13.2761 15 13 15H11ZM15 10.5C15 10.2239 15.2239 10 15.5 10H17.5C17.7761 10 18 10.2239 18 10.5V12.5C18 12.7761 17.7761 13 17.5 13H15.5C15.2239 13 15 12.7761 15 12.5V10.5ZM15.5 15C15.2239 15 15 15.2239 15 15.5V17.5C15 17.7761 15.2239 18 15.5 18H17.5C17.7761 18 18 17.7761 18 17.5V15.5C18 15.2239 17.7761 15 17.5 15H15.5Z",fill:"currentColor"}))}const nTe=Qe(tTe,"calendar"),gZ=nTe;function rTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M2 5V19C2 20.6569 3.34315 22 5 22H12.101C11.5151 21.4259 11.0297 20.7496 10.6736 20H6C4.89543 20 4 19.1046 4 18V8C4 7.44772 4.44772 7 5 7H19C19.5523 7 20 7.44772 20 8V10.6736C20.7496 11.0297 21.4259 11.5151 22 12.101V5C22 3.34315 20.6569 2 19 2H5C3.34315 2 2 3.34315 2 5Z",fill:"currentColor"}),D.createElement("path",{d:"M16 10H17C16.4614 10 15.9369 10.0608 15.4332 10.176C15.5943 10.065 15.7896 10 16 10Z",fill:"currentColor"}),D.createElement("path",{d:"M13.4981 10.9376C13.4659 10.4144 13.0313 10 12.5 10H11.5C10.9477 10 10.5 10.4477 10.5 11V12C10.5 12.4742 10.83 12.8712 11.2729 12.9741C11.857 12.1446 12.6168 11.4478 13.4981 10.9376Z",fill:"currentColor"}),D.createElement("path",{d:"M7 10C6.44772 10 6 10.4477 6 11V12C6 12.5523 6.44772 13 7 13H8C8.55228 13 9 12.5523 9 12V11C9 10.4477 8.55228 10 8 10H7Z",fill:"currentColor"}),D.createElement("path",{d:"M6 16C6 15.4477 6.44772 15 7 15H8C8.55228 15 9 15.4477 9 16V17C9 17.5523 8.55228 18 8 18H7C6.44772 18 6 17.5523 6 17V16Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 17C22 19.7614 19.7614 22 17 22C14.2386 22 12 19.7614 12 17C12 14.2386 14.2386 12 17 12C19.7614 12 22 14.2386 22 17ZM18 15C18 14.4477 17.5523 14 17 14C16.4477 14 16 14.4477 16 15V17C16 17.2652 16.1054 17.5196 16.2929 17.7071L17.7929 19.2071C18.1834 19.5976 18.8166 19.5976 19.2071 19.2071C19.5976 18.8166 19.5976 18.1834 19.2071 17.7929L18 16.5858V15Z",fill:"currentColor"}))}const aTe=Qe(rTe,"calendar_clock"),iTe=aTe;function oTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.549 15.659L12.753 21.139C12.6591 21.2464 12.5434 21.3325 12.4135 21.3915C12.2836 21.4505 12.1427 21.481 12 21.481C11.8574 21.481 11.7164 21.4505 11.5865 21.3915C11.4566 21.3325 11.3409 21.2464 11.247 21.139L6.45101 15.659C5.88501 15.011 6.34501 14 7.20401 14H16.796C17.656 14 18.115 15.012 17.549 15.659Z",fill:"currentColor"}))}const sTe=Qe(oTe,"caretdown"),lTe=sTe;function uTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M6.45096 8.34102L11.247 2.86102C11.3408 2.75361 11.4566 2.66753 11.5865 2.60854C11.7163 2.54956 11.8573 2.51904 12 2.51904C12.1426 2.51904 12.2836 2.54956 12.4135 2.60854C12.5433 2.66753 12.6591 2.75361 12.753 2.86102L17.549 8.34102C18.115 8.98802 17.655 10 16.796 10H7.20396C6.34396 10 5.88496 8.98802 6.45096 8.34102Z",fill:"currentColor"}))}const cTe=Qe(uTe,"caretup"),dTe=cTe;function fTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 12.5C5 11.6716 5.67157 11 6.5 11H17.5C18.3284 11 19 11.6716 19 12.5C19 13.3284 18.3284 14 17.5 14H6.5C5.67157 14 5 13.3284 5 12.5Z",fill:"currentColor"}))}const hTe=Qe(fTe,"checkbox_indeterminate"),pTe=hTe;function gTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4111 7.30848C18.0692 7.81171 18.1947 8.75312 17.6915 9.41119L11.1915 17.9112C10.909 18.2806 10.4711 18.4981 10.0061 18.5C9.54105 18.5019 9.10143 18.288 8.81592 17.9209L5.31592 13.4209C4.80731 12.767 4.92512 11.8246 5.57904 11.316C6.23296 10.8074 7.17537 10.9252 7.68398 11.5791L9.98988 14.5438L15.3084 7.58884C15.8116 6.93077 16.7531 6.80525 17.4111 7.30848Z",fill:"currentColor"}))}const vTe=Qe(gTe,"checkbox_tick"),mTe=vTe;function yTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z",fill:"currentColor"}))}const bTe=Qe(yTe,"chevron_down"),kf=bTe;function _Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.2782 4.23933C16.864 4.82511 16.864 5.77486 16.2782 6.36065L10.6213 12.0175L16.2782 17.6744C16.864 18.2601 16.864 19.2099 16.2782 19.7957C15.6924 20.3815 14.7426 20.3815 14.1569 19.7957L7.43934 13.0782C6.85355 12.4924 6.85355 11.5426 7.43934 10.9568L14.1569 4.23933C14.7426 3.65354 15.6924 3.65354 16.2782 4.23933Z",fill:"currentColor"}))}const STe=Qe(_Te,"chevron_left"),N7=STe;function CTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.43934 19.7957C6.85355 19.2099 6.85355 18.2601 7.43934 17.6744L13.0962 12.0175L7.43934 6.36065C6.85355 5.77486 6.85355 4.82511 7.43934 4.23933C8.02513 3.65354 8.97487 3.65354 9.56066 4.23933L16.2782 10.9568C16.864 11.5426 16.864 12.4924 16.2782 13.0782L9.56066 19.7957C8.97487 20.3815 8.02513 20.3815 7.43934 19.7957Z",fill:"currentColor"}))}const wTe=Qe(CTe,"chevron_right"),sg=wTe;function xTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.637 16.4369C19.0513 17.0227 18.1015 17.0227 17.5157 16.4369L11.8589 10.7801L6.20202 16.4369C5.61623 17.0227 4.66648 17.0227 4.0807 16.4369C3.49491 15.8511 3.49491 14.9014 4.0807 14.3156L10.7982 7.59809C11.384 7.01231 12.3337 7.01231 12.9195 7.59809L19.637 14.3156C20.2228 14.9014 20.2228 15.8511 19.637 16.4369Z",fill:"currentColor"}))}const TTe=Qe(xTe,"chevron_up"),ETe=TTe;function OTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.0352 16.8626C16.4597 17.4585 15.5101 17.4751 14.9142 16.8996L12.0368 14.121L9.25822 16.9984C8.68274 17.5943 7.73314 17.6109 7.13722 17.0354C6.5413 16.4599 6.52472 15.5103 7.1002 14.9144L9.87883 12.037L7.00147 9.2584C6.40555 8.68293 6.38897 7.73332 6.96445 7.1374C7.53992 6.54148 8.48953 6.52491 9.08545 7.10038L11.9628 9.87901L14.7414 7.00165C15.3169 6.40573 16.2665 6.38916 16.8624 6.96463C17.4584 7.54011 17.4749 8.48971 16.8995 9.08563L14.1208 11.963L16.9982 14.7416C17.5941 15.3171 17.6107 16.2667 17.0352 16.8626Z",fill:"currentColor"}))}const ITe=Qe(OTe,"clear"),Gc=ITe;function PTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM13.5 6.5V11.3787L17.0607 14.9393C17.6464 15.5251 17.6464 16.4749 17.0607 17.0607C16.4749 17.6464 15.5251 17.6464 14.9393 17.0607L10.9393 13.0607C10.658 12.7794 10.5 12.3978 10.5 12V6.5C10.5 5.67157 11.1716 5 12 5C12.8284 5 13.5 5.67157 13.5 6.5Z",fill:"currentColor"}))}const DTe=Qe(PTe,"clock"),vZ=DTe;function ATe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M17.6568 19.7782C18.2426 20.3639 19.1924 20.3639 19.7782 19.7782C20.3639 19.1924 20.3639 18.2426 19.7782 17.6568L14.1213 12L19.7782 6.34313C20.3639 5.75734 20.3639 4.8076 19.7782 4.22181C19.1924 3.63602 18.2426 3.63602 17.6568 4.22181L12 9.87866L6.34313 4.22181C5.75734 3.63602 4.8076 3.63602 4.22181 4.22181C3.63602 4.8076 3.63602 5.75734 4.22181 6.34313L9.87866 12L4.22181 17.6568C3.63602 18.2426 3.63602 19.1924 4.22181 19.7782C4.8076 20.3639 5.75734 20.3639 6.34313 19.7782L12 14.1213L17.6568 19.7782Z",fill:"currentColor"}))}const MTe=Qe(ATe,"close"),Ky=MTe;function RTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M7 4C7 2.89543 7.89543 2 9 2H20C21.1046 2 22 2.89543 22 4V15C22 16.1046 21.1046 17 20 17H19V8C19 6 18 5 16 5H7V4Z",fill:"currentColor"}),D.createElement("path",{d:"M5 7C3.89543 7 3 7.89543 3 9V19C3 20.1046 3.89543 21 5 21H15C16.1046 21 17 20.1046 17 19V9C17 7.89543 16.1046 7 15 7H5Z",fill:"currentColor"}))}const LTe=Qe(RTe,"copy"),kTe=LTe;function NTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6185 4.39653C13.1272 4.92524 13.1272 5.78245 12.6185 6.31116L7.14483 12L12.6185 17.6888C13.1272 18.2176 13.1272 19.0748 12.6185 19.6035C12.1098 20.1322 11.285 20.1322 10.7763 19.6035L4.38153 12.9573C3.87282 12.4286 3.87282 11.5714 4.38153 11.0427L10.7763 4.39653C11.285 3.86782 12.1098 3.86782 12.6185 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.6185 4.39653C20.1272 4.92524 20.1272 5.78245 19.6185 6.31116L14.1448 12L19.6185 17.6888C20.1272 18.2176 20.1272 19.0748 19.6185 19.6035C19.1098 20.1322 18.285 20.1322 17.7763 19.6035L11.3815 12.9573C10.8728 12.4286 10.8728 11.5714 11.3815 11.0427L17.7763 4.39653C18.285 3.86782 19.1098 3.86782 19.6185 4.39653Z",fill:"currentColor"}))}const FTe=Qe(NTe,"double_chevron_left"),mZ=FTe;function $Te(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.38153 4.39653C4.89024 3.86782 5.71502 3.86782 6.22373 4.39653L12.6185 11.0427C13.1272 11.5714 13.1272 12.4286 12.6185 12.9573L6.22373 19.6035C5.71502 20.1322 4.89024 20.1322 4.38153 19.6035C3.87282 19.0748 3.87282 18.2176 4.38153 17.6888L9.85517 12L4.38153 6.31116C3.87282 5.78245 3.87282 4.92524 4.38153 4.39653Z",fill:"currentColor"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3815 4.39653C11.8902 3.86782 12.715 3.86782 13.2237 4.39653L19.6185 11.0427C20.1272 11.5714 20.1272 12.4286 19.6185 12.9573L13.2237 19.6035C12.715 20.1322 11.8902 20.1322 11.3815 19.6035C10.8728 19.0748 10.8728 18.2176 11.3815 17.6888L16.8552 12L11.3815 6.31116C10.8728 5.78245 10.8728 4.92524 11.3815 4.39653Z",fill:"currentColor"}))}const VTe=Qe($Te,"double_chevron_right"),yZ=VTe;function jTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7071 3.70711C22.0976 3.31658 22.0976 2.68342 21.7071 2.29289C21.3166 1.90237 20.6834 1.90237 20.2929 2.29289L17.3135 5.27233C15.8114 4.50566 14.0321 4 12 4C5 4 1 10 1 12C1 13.1757 2.38219 15.7335 4.94345 17.6423L2.29289 20.2929C1.90237 20.6834 1.90237 21.3166 2.29289 21.7071C2.68342 22.0976 3.31658 22.0976 3.70711 21.7071L21.7071 3.70711ZM7.8284 14.7574L9.29237 13.2934C9.10495 12.9018 9 12.4631 9 12C9 10.3431 10.3431 9 12 9C12.4631 9 12.9018 9.10495 13.2934 9.29237L14.7574 7.8284C13.967 7.30488 13.0191 7 12 7C9.23858 7 7 9.23858 7 12C7 13.0191 7.30488 13.967 7.8284 14.7574Z",fill:"currentColor"}),D.createElement("path",{d:"M12 20C10.7789 20 9.64914 19.8174 8.61594 19.5054L11.1871 16.9342C11.4516 16.9775 11.7232 17 12 17C14.7614 17 17 14.7614 17 12C17 11.7232 16.9775 11.4516 16.9342 11.1871L20.5032 7.61808C22.1342 9.27317 23 11.0695 23 12C23 14 19 20 12 20Z",fill:"currentColor"}))}const zTe=Qe(jTe,"eye_closed_solid"),BTe=zTe;function HTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C5 4 1 10 1 12C1 14 5 20 12 20C19 20 23 14 23 12C23 10 19 4 12 4ZM17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12ZM12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",fill:"currentColor"}))}const UTe=Qe(HTe,"eye_opened"),WTe=UTe;function GTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C12 1.44772 11.5523 1 11 1H6C4.89543 1 4 1.89543 4 3V21C4 22.1046 4.89543 23 6 23H18C19.1046 23 20 22.1046 20 21V10C20 9.44772 19.5523 9 19 9H14C12.8954 9 12 8.10457 12 7V2ZM7 8C7 7.44772 7.44772 7 8 7H9C9.55228 7 10 7.44772 10 8C10 8.55228 9.55228 9 9 9H8C7.44772 9 7 8.55228 7 8ZM7 13C7 12.4477 7.44772 12 8 12H16C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13ZM8 17C7.44772 17 7 17.4477 7 18C7 18.5523 7.44772 19 8 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H8ZM19.0686 7.49999H14.5C13.9477 7.49999 13.5 7.05228 13.5 6.49999V1.93136C13.5 1.21864 14.3617 0.861707 14.8657 1.36568L19.6343 6.13431C20.1383 6.63828 19.7814 7.49999 19.0686 7.49999Z",fill:"currentColor"}))}const YTe=Qe(GTe,"file"),IO=YTe;function KTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.0929 2.57912C1.25675 2.22596 1.61069 2 2.00001 2H22C22.3893 2 22.7433 2.22596 22.9071 2.57912C23.071 2.93229 23.015 3.34845 22.7636 3.64573L14.5654 12.8261V21C14.5654 21.3466 14.386 21.6684 14.0911 21.8507C13.7963 22.0329 13.4282 22.0494 13.1182 21.8944L10.0528 19.8944C9.71401 19.725 9.5 19.3788 9.5 19V12.8261L1.23644 3.64573C0.985045 3.34845 0.929036 2.93229 1.0929 2.57912Z",fill:"currentColor"}))}const ZTe=Qe(KTe,"filter"),XTe=ZTe;function qTe(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M5 2C3.34315 2 2 3.34315 2 5V8H22C22 6 21 4 19 4H12.5523C11.8711 4 11.2102 3.76816 10.6783 3.34261L9.54783 2.43826C9.1932 2.15456 8.75258 2 8.29844 2H5Z",fill:"currentColor"}),D.createElement("path",{d:"M22 10H2V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V10Z",fill:"currentColor"}))}const QTe=Qe(qTe,"folder"),JTe=QTe;function e5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 5C2 3.34315 3.34315 2 5 2H8.29844C8.75258 2 9.1932 2.15456 9.54783 2.43826L10.6783 3.34261C11.2102 3.76816 11.8711 4 12.5523 4H18C20 4 21 6 21 8H7.53361C6.62889 8 5.83683 8.60735 5.6021 9.48109L2.57151 20.7617C2.21202 20.2671 2 19.6583 2 19V5ZM22.1667 10H9.5C8.61111 10 7.82889 10.5867 7.58 11.44L4.87333 20.72C4.68667 21.36 5.16667 22 5.83333 22H18.5C19.3889 22 20.1711 21.4133 20.42 20.56L23.1267 11.28C23.3133 10.64 22.8333 10 22.1667 10Z",fill:"currentColor"}))}const t5e=Qe(e5e,"folder_open"),n5e=t5e;function r5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M12.0101 1C5.92171 1 1 5.92171 1 12.0101C1 16.8771 4.15354 20.9967 8.5284 22.455C9.07526 22.5644 9.27577 22.218 9.27577 21.9264C9.27577 21.6712 9.25754 20.7962 9.25754 19.8848C6.19514 20.541 5.55714 18.5723 5.55714 18.5723C5.06497 17.2963 4.33583 16.9682 4.33583 16.9682C3.33326 16.2938 4.40874 16.2938 4.40874 16.2938C5.52069 16.3667 6.104 17.4239 6.104 17.4239C7.08834 19.101 8.67423 18.627 9.31223 18.3354C9.40337 17.6245 9.69503 17.1323 10.0049 16.8589C7.56229 16.6037 4.99206 15.6558 4.99206 11.4267C4.99206 10.2237 5.42954 9.23931 6.12223 8.47371C6.01286 8.20028 5.63006 7.07011 6.2316 5.55714C6.2316 5.55714 7.16126 5.26548 9.25754 6.68731C10.1325 6.45034 11.0804 6.32274 12.0101 6.32274C12.9397 6.32274 13.8876 6.45034 14.7626 6.68731C16.8589 5.26548 17.7885 5.55714 17.7885 5.55714C18.3901 7.07011 18.0073 8.20028 17.8979 8.47371C18.6088 9.23931 19.0281 10.2237 19.0281 11.4267C19.0281 15.6558 16.4578 16.5854 13.997 16.8589C14.398 17.2052 14.7443 17.8614 14.7443 18.9004C14.7443 20.377 14.7261 21.5618 14.7261 21.9264C14.7261 22.218 14.9266 22.5644 15.4735 22.455C19.8483 20.9967 23.0019 16.8771 23.0019 12.0101C23.0201 5.92171 18.0802 1 12.0101 1Z",fill:"currentColor"}),D.createElement("path",{d:"M5.17419 16.8042C5.15596 16.8589 5.06482 16.8771 4.99191 16.8406C4.91899 16.8042 4.86431 16.7313 4.90076 16.6766C4.91899 16.6219 5.01014 16.6037 5.08305 16.6401C5.15596 16.6766 5.19242 16.7495 5.17419 16.8042ZM5.61168 17.2964C5.55699 17.351 5.44762 17.3146 5.39294 17.2417C5.32002 17.1688 5.30179 17.0594 5.35648 17.0047C5.41116 16.95 5.50231 16.9865 5.57522 17.0594C5.64814 17.1505 5.66636 17.2599 5.61168 17.2964ZM6.04916 17.9344C5.97625 17.989 5.86688 17.9344 5.81219 17.8432C5.73928 17.7521 5.73928 17.6245 5.81219 17.588C5.88511 17.5333 5.99448 17.588 6.04916 17.6792C6.12208 17.7703 6.12208 17.8797 6.04916 17.9344ZM6.65071 18.5541C6.59602 18.627 6.46842 18.6088 6.35905 18.5177C6.26791 18.4265 6.23145 18.2989 6.30436 18.2442C6.35905 18.1713 6.48665 18.1896 6.59602 18.2807C6.68716 18.3536 6.70539 18.4812 6.65071 18.5541ZM7.47099 18.9005C7.45276 18.9916 7.32516 19.0281 7.19756 18.9916C7.06996 18.9552 6.99705 18.8458 7.01528 18.7729C7.03351 18.6817 7.16111 18.6453 7.28871 18.6817C7.41631 18.7182 7.48922 18.8093 7.47099 18.9005ZM8.36419 18.9734C8.36419 19.0645 8.25482 19.1374 8.12722 19.1374C7.99962 19.1374 7.89025 19.0645 7.89025 18.9734C7.89025 18.8822 7.99962 18.8093 8.12722 18.8093C8.25482 18.8093 8.36419 18.8822 8.36419 18.9734ZM9.20271 18.8276C9.22093 18.9187 9.12979 19.0098 9.00219 19.0281C8.87459 19.0463 8.76522 18.9916 8.74699 18.9005C8.72876 18.8093 8.81991 18.7182 8.94751 18.7C9.07511 18.6817 9.18448 18.7364 9.20271 18.8276Z",fill:"currentColor"}))}const a5e=Qe(r5e,"github_logo"),i5e=a5e;function o5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9 7C10.1046 7 11 6.10457 11 5C11 3.89543 10.1046 3 9 3C7.89543 3 7 3.89543 7 5C7 6.10457 7.89543 7 9 7Z",fill:"currentColor"}),D.createElement("path",{d:"M9 14C10.1046 14 11 13.1046 11 12C11 10.8954 10.1046 10 9 10C7.89543 10 7 10.8954 7 12C7 13.1046 7.89543 14 9 14Z",fill:"currentColor"}),D.createElement("path",{d:"M11 19C11 20.1046 10.1046 21 9 21C7.89543 21 7 20.1046 7 19C7 17.8954 7.89543 17 9 17C10.1046 17 11 17.8954 11 19Z",fill:"currentColor"}),D.createElement("path",{d:"M15 7C16.1046 7 17 6.10457 17 5C17 3.89543 16.1046 3 15 3C13.8954 3 13 3.89543 13 5C13 6.10457 13.8954 7 15 7Z",fill:"currentColor"}),D.createElement("path",{d:"M17 12C17 13.1046 16.1046 14 15 14C13.8954 14 13 13.1046 13 12C13 10.8954 13.8954 10 15 10C16.1046 10 17 10.8954 17 12Z",fill:"currentColor"}),D.createElement("path",{d:"M15 21C16.1046 21 17 20.1046 17 19C17 17.8954 16.1046 17 15 17C13.8954 17 13 17.8954 13 19C13 20.1046 13.8954 21 15 21Z",fill:"currentColor"}))}const s5e=Qe(o5e,"handle"),l5e=s5e;function u5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8281 14.6094C10.9688 14.6094 10.5391 14.0723 10.5391 13.3691C10.5391 12.3242 11.0566 11.6504 12.2676 10.7324C12.2894 10.7158 12.3111 10.6993 12.3326 10.6829C13.1573 10.0555 13.7324 9.61807 13.7324 8.82812C13.7324 7.93945 12.9023 7.42188 11.9746 7.42188C11.2129 7.42188 10.627 7.70508 10.168 8.30078C9.83594 8.64258 9.57227 8.82812 9.12305 8.82812C8.38086 8.82812 8 8.31055 8 7.71484C8 7.10938 8.3418 6.49414 8.87891 6.02539C9.60156 5.40039 10.7539 5 12.2773 5C14.9922 5 16.8965 6.33789 16.8965 8.64258C16.8965 10.3223 15.8906 11.1328 14.709 11.9531C13.9082 12.5391 13.5273 12.8809 13.2246 13.5742L13.2238 13.5756C12.8922 14.1609 12.638 14.6094 11.8281 14.6094ZM11.8086 18.7695C10.8711 18.7695 10.0996 18.1641 10.0996 17.2266C10.0996 16.2891 10.8711 15.6836 11.8086 15.6836C12.7461 15.6836 13.5078 16.2891 13.5078 17.2266C13.5078 18.1641 12.7461 18.7695 11.8086 18.7695Z",fill:"currentColor"}))}const c5e=Qe(u5e,"help_circle"),J_=c5e;function d5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 4C2.34315 4 1 5.34315 1 7V18C1 19.6569 2.34315 21 4 21H20C21.6569 21 23 19.6569 23 18V7C23 5.34315 21.6569 4 20 4H4ZM9.80467 12.1709C9.33102 13.3521 8.46885 14.1429 7.50001 14.1429C6.53131 14.1429 5.66924 13.3523 5.19554 12.1714C4.90071 12.0544 4.62002 11.698 4.49196 11.2325C4.32554 10.6275 4.35872 10.0874 4.81298 9.9199C4.85705 7.8147 5.71 7 7.50001 7C9.29014 7 10.1431 7.81481 10.1871 9.92031C10.6403 10.0883 10.6733 10.628 10.507 11.2325C10.3791 11.6974 10.099 12.0534 9.80467 12.1709ZM11.8349 16.026C12.2505 16.4518 11.821 17 11.2179 17H3.78213C3.17902 17 2.7495 16.4518 3.1651 16.026C3.98149 15.1898 5.61634 14.619 7.5 14.619C9.38366 14.619 11.0185 15.1898 11.8349 16.026ZM14 10C14 9.44772 14.4477 9 15 9H20C20.5523 9 21 9.44772 21 10C21 10.5523 20.5523 11 20 11H15C14.4477 11 14 10.5523 14 10ZM15 13C14.4477 13 14 13.4477 14 14C14 14.5523 14.4477 15 15 15H18C18.5523 15 19 14.5523 19 14C19 13.4477 18.5523 13 18 13H15Z",fill:"currentColor"}))}const f5e=Qe(d5e,"id_card"),h5e=f5e;function p5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM14 7C14 8.10457 13.1046 9 12 9C10.8954 9 10 8.10457 10 7C10 5.89543 10.8954 5 12 5C13.1046 5 14 5.89543 14 7ZM9 10.75C9 10.3358 9.33579 10 9.75 10H12.5C13.0523 10 13.5 10.4477 13.5 11V16.5H14.25C14.6642 16.5 15 16.8358 15 17.25C15 17.6642 14.6642 18 14.25 18H9.75C9.33579 18 9 17.6642 9 17.25C9 16.8358 9.33579 16.5 9.75 16.5H10.5V11.5H9.75C9.33579 11.5 9 11.1642 9 10.75Z",fill:"currentColor"}))}const g5e=Qe(p5e,"info_circle"),bZ=g5e;function v5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2C3.34315 2 2 3.34315 2 5V19C2 20.6569 3.34315 22 5 22H19C20.6569 22 22 20.6569 22 19V5C22 3.34315 20.6569 2 19 2H5ZM12.8944 6.05279C12.725 5.714 12.3787 5.5 12 5.5C11.6212 5.5 11.2749 5.714 11.1055 6.05279L6.10555 16.0528C5.85856 16.5468 6.05878 17.1474 6.55276 17.3944C7.04674 17.6414 7.64741 17.4412 7.8944 16.9472L9.11801 14.5H14.8819L16.1055 16.9472C16.3525 17.4412 16.9532 17.6414 17.4472 17.3944C17.9412 17.1474 18.1414 16.5468 17.8944 16.0528L12.8944 6.05279ZM12 8.73607L13.8819 12.5H10.118L12 8.73607Z",fill:"currentColor"}))}const m5e=Qe(v5e,"mark"),y5e=m5e;function b5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17 15C17.476 15 17.9408 14.9525 18.3901 14.862C17.296 17.3011 14.8464 19 12 19C8.13401 19 5 15.866 5 12C5 8.60996 7.40983 5.78277 10.6099 5.13803C10.218 6.01173 10 6.98041 10 8C10 11.866 13.134 15 17 15Z",fill:"currentColor"}))}const _5e=Qe(b5e,"moon"),S5e=_5e;function C5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("circle",{cx:12,cy:12,r:5,fill:"currentColor"}))}const w5e=Qe(C5e,"radio"),x5e=w5e;function T5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.49993 11.9998C4.49993 7.85775 7.85775 4.49993 11.9998 4.49993C14.6403 4.49993 16.9645 5.86506 18.3012 7.9305L16.2939 7.52902C15.4815 7.36656 14.6913 7.89337 14.5288 8.7057C14.3664 9.51803 14.8932 10.3083 15.7055 10.4707L20.7055 11.4707C21.4643 11.6225 22.214 11.1721 22.4363 10.4309L23.9363 5.43095C24.1744 4.63747 23.7241 3.80126 22.9307 3.56321C22.1372 3.32517 21.301 3.77543 21.0629 4.56891L20.6287 6.01635C18.7332 3.28781 15.5765 1.49998 11.9998 1.49998C6.20092 1.49998 1.49998 6.20092 1.49998 11.9998C1.49998 17.7987 6.20092 22.4997 11.9998 22.4997C16.5739 22.4997 20.4611 19.5757 21.9018 15.4996C22.1779 14.7186 21.7685 13.8616 20.9874 13.5855C20.2064 13.3095 19.3494 13.7189 19.0733 14.4999C18.0431 17.4149 15.263 19.4997 11.9998 19.4997C7.85775 19.4997 4.49993 16.1419 4.49993 11.9998Z",fill:"currentColor"}))}const E5e=Qe(T5e,"refresh"),O5e=E5e;function I5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2C5.80558 2 2 5.80558 2 10.5C2 15.1944 5.80558 19 10.5 19C12.3054 19 13.9794 18.4371 15.356 17.4773L19.4393 21.5606C20.0251 22.1464 20.9749 22.1464 21.5606 21.5606C22.1464 20.9749 22.1464 20.0251 21.5606 19.4393L17.4773 15.356C18.4371 13.9794 19 12.3054 19 10.5C19 5.80558 15.1944 2 10.5 2ZM5 10.5C5 7.46243 7.46243 5 10.5 5C13.5376 5 16 7.46243 16 10.5C16 13.5376 13.5376 16 10.5 16C7.46243 16 5 13.5376 5 10.5Z",fill:"currentColor"}))}const P5e=Qe(I5e,"search"),D5e=P5e;function A5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2H19C20.6569 2 22 3.34315 22 5V19C22 20.6569 20.6569 22 19 22H5C3.34315 22 2 20.6569 2 19V5C2 3.34315 3.34315 2 5 2ZM6 4C5.44772 4 5 4.44772 5 5V19C5 19.5523 5.44772 20 6 20H9C9.55229 20 10 19.5523 10 19V5C10 4.44772 9.55229 4 9 4H6Z",fill:"currentColor"}))}const M5e=Qe(A5e,"sidebar"),R5e=M5e;function L5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.7525 1.90411C11.1451 0.698628 12.8549 0.698631 13.2475 1.90411L15.2395 8.01946H21.6858C22.9565 8.01946 23.4848 9.64143 22.4568 10.3865L17.2417 14.1659L19.2337 20.2813C19.6263 21.4868 18.2431 22.4892 17.2151 21.7442L12 17.9647L6.78489 21.7442C5.75687 22.4892 4.37368 21.4868 4.76635 20.2813L6.75834 14.1659L1.54323 10.3865C0.515206 9.64142 1.04354 8.01946 2.31425 8.01946H8.76048L10.7525 1.90411Z",fill:"currentColor"}))}const k5e=Qe(L5e,"star"),N5e=k5e;function F5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M10.5 1.5C10.5 0.671573 11.1716 0 12 0C12.8284 0 13.5 0.671573 13.5 1.5V2.5C13.5 3.32843 12.8284 4 12 4C11.1716 4 10.5 3.32843 10.5 2.5V1.5Z",fill:"currentColor"}),D.createElement("path",{d:"M10.5 21.5C10.5 20.6716 11.1716 20 12 20C12.8284 20 13.5 20.6716 13.5 21.5V22.5C13.5 23.3284 12.8284 24 12 24C11.1716 24 10.5 23.3284 10.5 22.5V21.5Z",fill:"currentColor"}),D.createElement("path",{d:"M24 12C24 11.1716 23.3284 10.5 22.5 10.5H21.5C20.6716 10.5 20 11.1716 20 12C20 12.8284 20.6716 13.5 21.5 13.5H22.5C23.3284 13.5 24 12.8284 24 12Z",fill:"currentColor"}),D.createElement("path",{d:"M2.5 10.5C3.32843 10.5 4 11.1716 4 12C4 12.8284 3.32843 13.5 2.5 13.5H1.5C0.671573 13.5 0 12.8284 0 12C0 11.1716 0.671573 10.5 1.5 10.5H2.5Z",fill:"currentColor"}),D.createElement("path",{d:"M20.4853 3.51472C19.8995 2.92893 18.9497 2.92893 18.364 3.51472L17.6569 4.22182C17.0711 4.80761 17.0711 5.75736 17.6569 6.34314C18.2426 6.92893 19.1924 6.92893 19.7782 6.34314L20.4853 5.63604C21.0711 5.05025 21.0711 4.1005 20.4853 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M4.22181 17.6569C4.8076 17.0711 5.75734 17.0711 6.34313 17.6569C6.92892 18.2426 6.92892 19.1924 6.34313 19.7782L5.63602 20.4853C5.05024 21.0711 4.10049 21.0711 3.5147 20.4853C2.92892 19.8995 2.92892 18.9497 3.5147 18.364L4.22181 17.6569Z",fill:"currentColor"}),D.createElement("path",{d:"M3.5147 3.51472C2.92891 4.1005 2.92891 5.05025 3.5147 5.63604L4.22181 6.34315C4.80759 6.92893 5.75734 6.92893 6.34313 6.34315C6.92891 5.75736 6.92891 4.80761 6.34313 4.22183L5.63602 3.51472C5.05023 2.92893 4.10049 2.92893 3.5147 3.51472Z",fill:"currentColor"}),D.createElement("path",{d:"M17.6569 19.7782C17.0711 19.1924 17.0711 18.2426 17.6569 17.6569C18.2426 17.0711 19.1924 17.0711 19.7782 17.6569L20.4853 18.364C21.0711 18.9497 21.0711 19.8995 20.4853 20.4853C19.8995 21.0711 18.9497 21.0711 18.364 20.4853L17.6569 19.7782Z",fill:"currentColor"}),D.createElement("path",{d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19Z",fill:"currentColor"}))}const $5e=Qe(F5e,"sun"),V5e=$5e;function j5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.3516 4.2652C22.0336 4.73552 22.2052 5.66964 21.7348 6.35162L11.7348 20.8516C11.4765 21.2262 11.0622 21.4632 10.6084 21.4961C10.1546 21.529 9.71041 21.3541 9.40082 21.0207L2.90082 14.0207C2.33711 13.4136 2.37226 12.4645 2.97933 11.9008C3.5864 11.3371 4.53549 11.3723 5.0992 11.9793L10.3268 17.6091L19.2652 4.64842C19.7355 3.96644 20.6696 3.79487 21.3516 4.2652Z",fill:"currentColor"}))}const z5e=Qe(j5e,"tick"),lg=z5e;function B5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM17.8831 9.82235L11.6854 17.4112C11.4029 17.7806 10.965 17.9981 10.5 18C10.035 18.0019 9.59533 17.788 9.30982 17.421L5.81604 13.4209C5.30744 12.767 5.42524 11.8246 6.07916 11.316C6.73308 10.8074 7.67549 10.9252 8.1841 11.5791L10.4838 14.0439L15.5 8C16.0032 7.34193 16.9446 7.21641 17.6027 7.71964C18.2608 8.22287 18.3863 9.16428 17.8831 9.82235Z",fill:"currentColor"}))}const H5e=Qe(B5e,"tick_circle"),_Z=H5e;function U5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M20.5598 9.65618L12.7546 18.6322C12.3559 19.0906 11.644 19.0906 11.2453 18.6322L3.4401 9.65618C2.8773 9.00895 3.33701 8 4.19471 8L19.8052 8C20.6629 8 21.1226 9.00895 20.5598 9.65618Z",fill:"currentColor"}))}const W5e=Qe(U5e,"tree_triangle_down"),SZ=W5e;function G5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{d:"M9.65618 3.44015L18.6322 11.2454C19.0906 11.644 19.0906 12.356 18.6322 12.7546L9.65618 20.5598C9.00895 21.1226 8 20.6629 8 19.8052V4.19475C8 3.33705 9.00895 2.87734 9.65618 3.44015Z",fill:"currentColor"}))}const Y5e=Qe(G5e,"tree_triangle_right"),K5e=Y5e;function Z5e(n){return D.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.8395 8.05827C17.1837 5.16226 14.5944 3 11.5 3C7.91015 3 5 5.91015 5 9.5C5 10.0204 5.06115 10.5264 5.17665 11.0114C2.84229 11.1772 1 13.1234 1 15.5C1 17.9853 3.01469 20 5.49995 20H17C20.3137 20 23 17.3137 23 14C23 10.9712 20.7558 8.46659 17.8395 8.05827ZM12.3201 8.26674C12.1347 8.11222 11.8653 8.11222 11.6799 8.26674L6.53047 12.5579C6.35084 12.7076 6.45669 13 6.69051 13H10V17.5C10 17.7761 10.2239 18 10.5 18H13.5C13.7761 18 14 17.7761 14 17.5V13H17.3095C17.5433 13 17.6492 12.7076 17.4695 12.5579L12.3201 8.26674Z",fill:"currentColor"}))}const X5e=Qe(Z5e,"upload"),q5e=X5e,Q5e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229},F7="Enter",Rr=Q5e;function ha(n){return H(n,"key")===F7}const t5=gw.PREFIX;class $7 extends x.PureComponent{constructor(e){super(e),this.copy=t=>{const{content:r,duration:a,onCopy:i}=this.props,o=$Se(r);i&&i(t,r,o),this.setCopied(r,a)},this.setCopied=(t,r)=>{this.setState({copied:!0,item:t}),this._timeId=setTimeout(()=>{this.resetCopied()},r*1e3)},this.resetCopied=()=>{this._timeId&&(clearTimeout(this._timeId),this._timeId=null,this.setState({copied:!1,item:""}))},this.renderSuccessTip=()=>{const{successTip:t}=this.props;return typeof t<"u"?t:x.createElement(hn,{componentName:"Typography"},r=>x.createElement("span",null,x.createElement(lg,null),r.copied))},this.renderCopyIcon=()=>{const{icon:t}=this.props,r={role:"button",tabIndex:0,onClick:this.copy,onKeyPress:i=>ha(i)&&this.copy(i)},a=x.createElement("a",{className:`${t5}-action-copy-icon`},x.createElement(kTe,Object.assign({onClick:this.copy},r)));return x.isValidElement(t)?x.cloneElement(t,r):a},this.state={copied:!1,item:""}}componentWillUnmount(){this._timeId&&(clearTimeout(this._timeId),this._timeId=null)}render(){const{style:e,className:t,forwardRef:r,copyTip:a}=this.props,{copied:i}=this.state,o=$(t,{[`${t5}-action-copy`]:!i,[`${t5}-action-copied`]:i});return x.createElement(hn,{componentName:"Typography"},s=>x.createElement("span",{style:Object.assign({marginLeft:"4px"},e),className:o,ref:r},i?this.renderSuccessTip():x.createElement(Sr,{content:typeof a<"u"?a:s.copy},this.renderCopyIcon())))}}$7.propTypes={content:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node,duration:v.number,style:v.object,className:v.string,icon:v.node};$7.defaultProps={content:"",onCopy:Ht,duration:3,style:{},className:""};const J5e=$7,CZ={PREFIX:`${q}-popover`,ARROW:`${q}-popover-icon-arrow`},gf={POSITION_SET:["top","topLeft","topRight","left","leftTop","leftBottom","right","rightTop","rightBottom","bottom","bottomLeft","bottomRight","leftTopOver","rightTopOver"],TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_ARROW_STYLE:{borderOpacity:"1",backgroundColor:"var(--semi-color-bg-3)",borderColor:"var(--semi-color-border)"}},ci={ARROW_BOUNDING:Object.assign(Object.assign({},Vu.ARROW_BOUNDING),{offsetY:6,offsetX:0,height:8}),SPACING:4,SPACING_WITH_ARROW:10,DEFAULT_Z_INDEX:1030};var e4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{position:e="",className:t,arrowStyle:r,popStyle:a}=n,i=e4e(n,["position","className","arrowStyle","popStyle"]),o=e.indexOf("top")===0||e.indexOf("bottom")===0,s=$(t,CZ.ARROW),l=H(r,"borderOpacity",gf.DEFAULT_ARROW_STYLE.borderOpacity),u=H(r,"backgroundColor",H(a,"backgroundColor",gf.DEFAULT_ARROW_STYLE.backgroundColor)),c=H(r,"borderColor",H(a,"borderColor",gf.DEFAULT_ARROW_STYLE.borderColor)),d=Object.assign(Object.assign({},i),{width:ci.ARROW_BOUNDING.width,height:ci.ARROW_BOUNDING.height,xmlns:"http://www.w3.org/2000/svg",className:s});return o?x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0 0.5L0 1.5C4 1.5, 5.5 3, 7.5 5S10,8 12,8S14.5 7, 16.5 5S20,1.5 24,1.5L24 0.5L0 0.5z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L0 1C4 1, 5.5 2, 7.5 4S10,7 12,7S14.5 6, 16.5 4S20,1 24,1L24 0L0 0z",fill:u})):x.createElement("svg",Object.assign({},d),x.createElement("path",{d:"M0.5 0L1.5 0C1.5 4, 3 5.5, 5 7.5S8,10 8,12S7 14.5, 5 16.5S1.5,20 1.5,24L0.5 24L0.5 0z",fill:c,opacity:l}),x.createElement("path",{d:"M0 0L1 0C1 4, 2 5.5, 4 7.5S7,10 7,12S6 14.5, 4 16.5S1,20 1,24L0 24L0 0z",fill:u}))};wZ.propTypes={position:v.string,className:v.string,arrowStyle:v.object,popStyle:v.object};const t4e=wZ;var n4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var t;(t=this.tooltipRef.current)===null||t===void 0||t.focusTrigger()},this.renderPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,contentClassName:i,prefixCls:o}=this.props,{direction:s}=this.context,l=$(o,i,{[`${o}-rtl`]:s==="rtl"}),u=this.renderContentNode({initialFocusRef:r,content:a});return x.createElement("div",{className:l},x.createElement("div",{className:`${o}-content`},u))},this.renderContentNode=t=>{const{initialFocusRef:r,content:a}=t,i={initialFocusRef:r};return ke(a)?a(i):a},this.tooltipRef=x.createRef()}render(){const e=this.props,{children:t,prefixCls:r,showArrow:a,arrowStyle:i={},arrowBounding:o,position:s,style:l,trigger:u}=e,c=n4e(e,["children","prefixCls","showArrow","arrowStyle","arrowBounding","position","style","trigger"]);let{spacing:d}=this.props;const f={position:s,className:"",popStyle:l,arrowStyle:i},h=a?x.createElement(t4e,Object.assign({},f)):!1;ct(d)&&(d=a?ci.SPACING_WITH_ARROW:ci.SPACING);const p=u==="click"||u==="custom"?"dialog":"tooltip";return x.createElement(Sr,Object.assign({guardFocus:!0,ref:this.tooltipRef},c,{trigger:u,position:s,style:l,content:this.renderPopCard,prefixCls:r,spacing:d,showArrow:h,arrowBounding:o,role:p}),t)}}Iw.contextType=Fr;Iw.propTypes={children:v.node,content:v.oneOfType([v.node,v.func]),visible:v.bool,autoAdjustOverflow:v.bool,motion:v.bool,position:v.oneOf(r4e),margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,trigger:v.oneOf(a4e).isRequired,contentClassName:v.oneOfType([v.string,v.array]),onVisibleChange:v.func,onClickOutSide:v.func,style:v.object,spacing:v.oneOfType([v.number,v.object]),zIndex:v.number,showArrow:v.bool,arrowStyle:v.shape({borderColor:v.string,backgroundColor:v.string,borderOpacity:v.oneOfType([v.string,v.number])}),arrowPointAtCenter:v.bool,arrowBounding:v.object,prefixCls:v.string,guardFocus:v.bool,disableArrowKeyDown:v.bool};Iw.defaultProps={arrowBounding:ci.ARROW_BOUNDING,showArrow:!1,autoAdjustOverflow:!0,zIndex:ci.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",cancelText:"No",okText:"Yes",position:"bottom",prefixCls:CZ.PREFIX,onClickOutSide:B,onEscKeyDown:B,closeOnEsc:!0,returnFocusOnClose:!0,guardFocus:!0,disableFocusListener:!0};const di=Iw;let Xn;function n5(n){if(!n)return 0;const e=n.match(/^\d*(\.\d*)?/);return e?Number(e[0]):0}function i4e(n){return Array.prototype.slice.apply(n).map(t=>`${t}: ${n.getPropertyValue(t)};`).join("")}const o4e=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(t.length===0)return"";Xn||(Xn=document.createElement("div"),Xn.setAttribute("aria-hidden","true"),document.body.appendChild(Xn));const s=window.getComputedStyle(n),l=i4e(s),u=n5(s.lineHeight),c=Math.round(u*(e+1)+n5(s.paddingTop)+n5(s.paddingBottom)),d=parseInt(s.width);Xn.setAttribute("style",l),Xn.style.position="fixed",Xn.style.left="0",Xn.style.height="auto",Xn.style.top="-999999px",Xn.style.zIndex="-1000",Xn.style.textOverflow="clip",Xn.style.webkitLineClamp="none",ui.render(x.createElement(x.Fragment,null),Xn);function f(){return s.whiteSpace==="nowrap"?Xn.scrollWidth<=d:Xn.scrollHeight0){const _=document.createTextNode(i);h.appendChild(_)}Xn.appendChild(h),Object.values(fr(r,"expand")).map(_=>_&&Xn.appendChild(_.cloneNode(!0)));function g(){Xn.innerHTML="",Xn.appendChild(h),Object.values(r).map(_=>_&&Xn.appendChild(_.cloneNode(!0)))}function m(_,S){const C=_.length;return S?o==="end"?_.slice(0,S)+a:_.slice(0,S)+a+_.slice(C-S,C):a}function y(_,S){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S.length,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const E=Math.floor((C+w)/2),O=m(S,E);if(_.textContent=O,C>=w-1&&w>0)for(let I=w;I>=C;I-=1){const P=m(S,I);if(_.textContent=P,f())return P}else if(w===0)return a;return f()?y(_,S,E,w,E):y(_,S,C,E,T)}let b=t;return f()||(g(),b=y(p,t,0,o==="middle"?Math.floor(t.length/2):t.length)),Xn.innerHTML="",b},s4e=o4e;var xZ=function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a0},n.prototype.connect_=function(){!PO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h4e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!PO||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=f4e.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n}(),TZ=function(n,e){for(var t=0,r=Object.keys(e);t"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C4e(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof ug(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new w4e(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n}(),OZ=typeof WeakMap<"u"?new WeakMap:new xZ,IZ=function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=p4e.getInstance(),r=new x4e(e,t,this);OZ.set(this,r)}return n}();["observe","unobserve","disconnect"].forEach(function(n){IZ.prototype[n]=function(){var e;return(e=OZ.get(this))[n].apply(e,arguments)}});var T4e=function(){return typeof TS.ResizeObserver<"u"?TS.ResizeObserver:IZ}();const Rk=T4e;class vf extends Pe{constructor(e){super(e),this.getElement=()=>{try{return Ti.findDOMNode(this.childNode||this)}catch{return null}},this.mergeRef=(t,r)=>{this.childNode=r,typeof t=="function"?t(r):typeof t=="object"&&t&&"current"in t&&(t.current=r)},this.observer=new Rk(e.onResize)}componentDidMount(){this.observeElement()}componentDidUpdate(e){this.observeElement(this.props.observeParent!==e.observeParent)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null,this.element=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t=this.getElement();if(this.observer||(this.observer=new Rk(this.props.onResize)),!(t&&t instanceof Element)){this.observer.disconnect();return}t===this.element&&!e||(this.observer.disconnect(),this.element=t,this.observer.observe(t),this.props.observeParent&&t.parentNode&&t.parentNode.ownerDocument&&t.parentNode.ownerDocument.defaultView&&t.parentNode instanceof t.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=t.parentNode,this.observer.observe(this._parentNode)))}render(){const e=x.Children.only(this.props.children),{ref:t}=e;return x.cloneElement(e,{ref:r=>this.mergeRef(t,r)})}}vf.propTypes={onResize:v.func,observeParent:v.bool};vf.defaultProps={onResize:()=>{},observeParent:!1};var E4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{mark:t,code:r,underline:a,strong:i,link:o,disabled:s}=n;let l=e;const u=(c,d)=>{let f={};c&&(typeof c=="object"&&(f=Object.assign({},c)),l=x.createElement(d,f,l))};return u(t,"mark"),u(r,"code"),u(a&&!o,"u"),u(i,"strong"),u(n.delete,"del"),u(o,s?"span":"a"),l};class Ug extends D.Component{constructor(e){super(e),this.onResize=()=>{this.rafId&&window.cancelAnimationFrame(this.rafId),this.rafId=window.requestAnimationFrame(this.getEllipsisState.bind(this))},this.canUseCSSEllipsis=()=>{const{copyable:t}=this.props,{expandable:r,expandText:a,pos:i,suffix:o}=this.getEllipsisOpt();return!r&&Vt(a)&&!t&&i==="end"&&!o.length},this.shouldTruncated=t=>!t||t<1?!1:t<=1?this.wrapperRef.current.scrollWidth>this.wrapperRef.current.offsetWidth:this.wrapperRef.current.scrollHeight>this.wrapperRef.current.offsetHeight,this.showTooltip=()=>{var t,r;const{isOverflowed:a,isTruncated:i,expanded:o}=this.state,{showTooltip:s,expandable:l,expandText:u}=this.getEllipsisOpt(),c=!o&&(a||i),f=!l&&Vt(u)&&c&&s;if(!f)return f;const h={type:"tooltip"};return typeof s=="object"?s.type&&s.type.toLowerCase()==="popover"?Gy({opts:{showArrow:!0}},s,{opts:{className:$({[`${Pr}-ellipsis-popover`]:!0,[(t=s==null?void 0:s.opts)===null||t===void 0?void 0:t.className]:!!(!((r=s==null?void 0:s.opts)===null||r===void 0)&&r.className)})}}):Object.assign(Object.assign({},h),s):h},this.toggleOverflow=t=>{const{onExpand:r,expandable:a,collapsible:i}=this.getEllipsisOpt(),{expanded:o}=this.state;r&&r(!o,t),(a&&!o||i&&o)&&this.setState({expanded:!o})},this.getEllipsisOpt=()=>{const{ellipsis:t}=this.props;return t?Object.assign({rows:1,expandable:!1,pos:"end",suffix:"",showTooltip:!1,collapsible:!1,expandText:t.expandable?this.expandStr:void 0,collapseText:t.collapsible?this.collapseStr:void 0},typeof t=="object"?t:null):{}},this.renderExpandable=()=>{const{expanded:t,isTruncated:r}=this.state;if(!r)return null;const{expandText:a,expandable:i,collapseText:o,collapsible:s}=this.getEllipsisOpt(),l=!i&&Vt(a),u=!s&&Vt(o);let c;return!t&&!l?c=a:t&&!u&&(c=o),!l||!u?x.createElement("a",{role:"button",tabIndex:0,className:`${Pr}-ellipsis-expand`,key:"expand",ref:this.expandRef,"aria-label":c,onClick:this.toggleOverflow,onKeyPress:d=>ha(d)&&this.toggleOverflow(d)},c):null},this.getEllipsisStyle=()=>{const{ellipsis:t,component:r}=this.props;if(!t)return{ellipsisCls:"",ellipsisStyle:{}};const{rows:a}=this.getEllipsisOpt(),{expanded:i}=this.state,o=!i&&this.canUseCSSEllipsis(),s=$({[`${Pr}-ellipsis`]:!0,[`${Pr}-ellipsis-single-line`]:a===1,[`${Pr}-ellipsis-multiple-line`]:a>1,[`${Pr}-ellipsis-multiple-line-text`]:a>1&&r==="span",[`${Pr}-ellipsis-overflow-ellipsis`]:a===1&&o,[`${Pr}-ellipsis-overflow-ellipsis-text`]:a===1&&o&&r==="span"}),l=o&&a>1?{WebkitLineClamp:a}:{};return{ellipsisCls:s,ellipsisStyle:l}},this.renderEllipsisText=t=>{const{suffix:r}=t,{children:a}=this.props,{isTruncated:i,expanded:o,ellipsisContent:s}=this.state;return o||!i?x.createElement(x.Fragment,null,a,r&&r.length?r:null):x.createElement("span",null,s,r)},this.state={editable:!1,copied:!1,isOverflowed:!0,ellipsisContent:e.children,expanded:!1,isTruncated:!0,prevChildren:null},this.wrapperRef=x.createRef(),this.expandRef=x.createRef(),this.copyRef=x.createRef()}componentDidMount(){this.props.ellipsis&&this.onResize()}static getDerivedStateFromProps(e,t){const{prevChildren:r}=t,a={};return a.prevChildren=e.children,e.ellipsis&&r!==e.children&&(a.isOverflowed=!0,a.ellipsisContent=e.children,a.expanded=!1,a.isTruncated=!0),a}componentDidUpdate(e){this.props.children!==e.children&&(this.forceUpdate(),this.props.ellipsis&&this.onResize())}componentWillUnmount(){this.rafId&&window.cancelAnimationFrame(this.rafId)}getEllipsisState(){const{rows:e,suffix:t,pos:r}=this.getEllipsisOpt(),{children:a}=this.props;if(!this.wrapperRef||!this.wrapperRef.current)return this.onResize(),!1;const{expanded:i}=this.state,o=this.canUseCSSEllipsis();if(ql(a)){this.setState({isTruncated:!1,isOverflowed:!1});return}if(_n("children"in this.props&&typeof a!="string","[Semi Typography] Only children with pure text could be used with ellipsis at this moment."),!e||e<0||i)return;if(o){const u=this.shouldTruncated(e);this.setState({isOverflowed:u,isTruncated:!1});return}const s={expand:this.expandRef.current,copy:this.copyRef&&this.copyRef.current},l=s4e(this.wrapperRef.current,e,String(a),s,O4e,t,r);this.setState({isOverflowed:!1,ellipsisContent:l,isTruncated:a!==l})}renderOperations(){return x.createElement(x.Fragment,null,this.renderExpandable(),this.renderCopy())}renderCopy(){var e;const{copyable:t,children:r}=this.props;if(!t)return null;const a=(e=t==null?void 0:t.content)!==null&&e!==void 0?e:r;let i,o=!1;Array.isArray(a)?(i="",a.forEach(l=>{typeof l=="object"&&(o=!0),i+=String(l)})):(typeof a!="object"||(o=!0),i=String(a)),_n(o,"Content to be copied in Typography is a object, it will case a [object Object] mistake when copy to clipboard.");const s=Object.assign({content:i,duration:3},typeof t=="object"?t:null);return x.createElement(J5e,Object.assign({},s,{forwardRef:this.copyRef}))}renderIcon(){const{icon:e,size:t}=this.props;if(!e)return null;const r=t==="small"?"small":"default";return x.createElement("span",{className:`${Pr}-icon`,"x-semi-prop":"icon"},Hr(e)?x.cloneElement(e,{size:r}):e)}renderContent(){const e=this.props,{component:t,children:r,className:a,type:i,spacing:o,disabled:s,style:l,ellipsis:u,icon:c,size:d,link:f,heading:h,weight:p}=e,g=E4e(e,["component","children","className","type","spacing","disabled","style","ellipsis","icon","size","link","heading","weight"]),m=fr(g,["strong","editable","mark","copyable","underline","code","delete"]),y=this.renderIcon(),b=this.getEllipsisOpt(),{ellipsisCls:_,ellipsisStyle:S}=this.getEllipsisStyle();let C=u?this.renderEllipsisText(b):r;const w=$({[`${Pr}-link-text`]:f,[`${Pr}-link-underline`]:this.props.underline&&f});C=I4e(this.props,x.createElement(x.Fragment,null,y,this.props.link?x.createElement("span",{className:w},C):C));const T=/^h[1-6]$/,E=Xe(h)&&T.test(h),O=$(a,_,{[`${Pr}-${i}`]:i&&!f,[`${Pr}-${d}`]:d,[`${Pr}-link`]:f,[`${Pr}-disabled`]:s,[`${Pr}-${o}`]:o,[`${Pr}-${h}`]:E,[`${Pr}-${h}-weight-${p}`]:E&&p&&isNaN(Number(p))}),I=Object.assign(Object.assign({},isNaN(Number(p))?{}:{fontWeight:p}),l);return x.createElement(XY,Object.assign({className:O,style:Object.assign(Object.assign({},I),S),component:t,forwardRef:this.wrapperRef},m),C,this.renderOperations())}renderTipWrapper(){const{children:e}=this.props,t=this.showTooltip(),r=this.renderContent();if(t){const{type:a,opts:i,renderTooltip:o}=t;return ke(o)?o(e,r):a.toLowerCase()==="popover"?x.createElement(di,Object.assign({content:e,position:"top"},i),r):x.createElement(Sr,Object.assign({content:e,position:"top"},i),r)}else return r}render(){const e=x.createElement(hn,{componentName:"Typography"},t=>(this.expandStr=t.expand,this.collapseStr=t.collapse,this.renderTipWrapper()));return this.props.ellipsis?x.createElement(vf,{onResize:this.onResize,observeParent:!0},e):e}}Ug.propTypes={children:v.node,copyable:v.oneOfType([v.shape({text:v.string,onCopy:v.func,successTip:v.node,copyTip:v.node}),v.bool]),delete:v.bool,disabled:v.bool,ellipsis:v.oneOfType([v.shape({rows:v.number,expandable:v.bool,expandText:v.string,onExpand:v.func,suffix:v.string,showTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),collapsible:v.bool,collapseText:v.string,pos:v.oneOf(["end","middle"])}),v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),spacing:v.oneOf(ua.SPACING),strong:v.bool,size:v.oneOf(ua.SIZE),type:v.oneOf(ua.TYPE),style:v.object,className:v.string,icon:v.oneOfType([v.node,v.string]),heading:v.string,component:v.string};Ug.defaultProps={children:null,copyable:!1,delete:!1,disabled:!1,ellipsis:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",spacing:"normal",size:"normal",style:{},className:""};let Dw=class extends D.PureComponent{render(){return x.createElement(Ug,Object.assign({component:"span"},this.props))}};Dw.propTypes={copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),ellipsis:v.oneOfType([v.object,v.bool]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};Dw.defaultProps={copyable:!1,delete:!1,disabled:!1,icon:"",ellipsis:!1,mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};var P4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];let l=0;for(;o>=1e3;)o/=1e3,l++;return`${this.truncatePrecision(o)} ${s[l]}`},"bytes-binary":o=>{const s=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let l=0;for(;o>=1024;)o/=1024,l++;return`${this.truncatePrecision(o)} ${s[l]}`},percentages:o=>`${this.truncatePrecision(o*100)}%`,exponential:o=>{const l=o.toExponential(this.precision+2).split("e");return`${this.truncatePrecision(Number(l[0]))}e${l[1]}`}},this.truncateMethods={ceil:Math.ceil,floor:Math.floor,round:Math.round},this.isDiyParser=typeof i<"u",this.content=e,this.rule=t,this.precision=r,this.truncate=a,this.parser=i}format(){return this.isDiyParser?this.parser(this.content):this.rule==="text"?r5(this.content).map(e=>a5(e)?this.truncatePrecision(e):e).join(""):this.rule==="numbers"?r5(this.content).filter(e=>a5(e)).map(e=>this.truncatePrecision(e)).join(","):r5(this.content).map(e=>a5(e)?this.ruleMethods[this.rule](Number(e)):e).join("")}truncatePrecision(e){const t=this.truncateMethods[this.truncate](Number(e)*Math.pow(10,this.precision))/Math.pow(10,this.precision),r=t.toString().split(".");if(r.length===1)return t.toFixed(this.precision);const a=r[1].length;return atypeof t=="string"||typeof t=="number"?new A4e(String(t),this.props.rule,this.props.precision,this.props.truncate,this.props.parser).format():typeof t=="function"?this.formatNodeDFS(t()):typeof t=="object"&&"children"in t.props?Object.assign(Object.assign({},t),{props:Object.assign(Object.assign({},t.props),{children:this.formatNodeDFS(t.props.children)})}):t),e.length===1?e[0]:e}render(){const e=Object.assign({},this.props);return delete e.rule,delete e.parser,e.children=this.formatNodeDFS(this.props.children),x.createElement(Ug,Object.assign({component:"span"},e))}}j7.propTypes={rule:v.oneOf(ua.RULE),precision:v.number,truncate:v.oneOf(ua.TRUNCATE),parser:v.func,copyable:v.oneOfType([v.object,v.bool]),delete:v.bool,disabled:v.bool,icon:v.oneOfType([v.node,v.string]),mark:v.bool,underline:v.bool,link:v.oneOfType([v.object,v.bool]),strong:v.bool,type:v.oneOf(ua.TYPE),size:v.oneOf(ua.SIZE),style:v.object,className:v.string,code:v.bool,component:v.string};j7.defaultProps={rule:"text",precision:0,truncate:"round",parser:void 0,copyable:!1,delete:!1,icon:"",mark:!1,underline:!1,strong:!1,link:!1,type:"primary",style:{},size:"normal",className:""};const Zy=XY;Zy.Text=Dw;Zy.Title=V7;Zy.Paragraph=Aw;Zy.Numeral=j7;const Nf=Zy,PZ={PREFIX:`${q}-autocomplete`,PREFIX_OPTION:`${q}-autoComplete-option`,PREFIX_GROUP:`${q}-autoComplete-group`},z7={SIZE:["small","large","default"],POSITION:mc.POSITION_SET,OPTIONS:["children","value"],STATUS:kg};var M4e=ss,R4e=gi,L4e="[object Number]";function k4e(n){return typeof n=="number"||R4e(n)&&M4e(n)==L4e}var DZ=k4e;const Rn=Ie(DZ);class N4e extends ze{constructor(e){super(Object.assign({},e)),this.isPanelOpen=!1}init(){this._setDropdownWidth();const{defaultOpen:e,data:t,defaultValue:r,value:a}=this.getProps();if(t&&t.length){const o=this._generateList(t);this._adapter.updateOptionList(o)}e&&this.openDropdown();let i;typeof r<"u"&&(i=r),typeof a<"u"&&(i=a),typeof i<"u"&&this.handleValueChange(i)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}handleInputClick(e){this.getStates();const{disabled:t}=this.getProps();t||(this.isPanelOpen?this.closeDropdown():this.openDropdown())}openDropdown(){this.isPanelOpen=!0,this._adapter.toggleListVisible(!0),this._setDropdownWidth(),this._adapter.registerClickOutsideHandler(e=>this.closeDropdown(e)),this._adapter.notifyDropdownVisibleChange(!0),this._modifyFocusIndexOnPanelOpen()}closeDropdown(e){this.isPanelOpen=!1,this._adapter.toggleListVisible(!1),this._adapter.unregisterClickOutsideHandler(),this._adapter.notifyDropdownVisibleChange(!1)}_generateList(e){const{renderItem:t}=this.getProps(),r=[];return e&&e.length&&e.forEach((a,i)=>{const o=String(new Date().getTime())+i;let s={};Xe(a)||Rn(a)?s={value:a,key:o,label:a,show:!0}:oa(a)&&!Vt(a.value)&&(s=Object.assign({show:!0},a)),t&&typeof t=="function"&&(s.label=t(a)),r.push(s)}),r}handleSearch(e){this._adapter.updateInputValue(e),this._adapter.notifySearch(e),this._adapter.notifyChange(e),this._modifyFocusIndex(e),this.isPanelOpen||this.openDropdown()}handleSelect(e,t){const{renderSelectedItem:r}=this.getProps();let a="";r&&typeof r=="function"?(a=r(e),_n(typeof a!="string","Warning: [Semi AutoComplete] renderSelectedItem must return string, please check your function return")):a=e.value,this._isControlledComponent()?(this.closeDropdown(),this.notifySelect(e)):(this._adapter.updateInputValue(a),this.updateSelection(e),this.notifySelect(e),this.closeDropdown()),this._adapter.notifyChange(a),this._adapter.updateFocusIndex(t)}updateSelection(e){const t=new Map;e&&t.set(e.label,e),this._adapter.updateSelection(t)}notifySelect(e){this._backwardLabelInValue()?this._adapter.notifySelect(e):this._adapter.notifySelect(e.value)}_backwardLabelInValue(){const e=this.getProps();let{onSelectWithObject:t}=e;return t}handleDataChange(e){const t=this._generateList(e);this._adapter.updateOptionList(t),this._adapter.rePositionDropdown()}handleValueChange(e){let{data:t,defaultActiveFirstOption:r}=this.getProps(),a="";this._backwardLabelInValue()&&Object.prototype.toString.call(e)==="[object Object]"?a=e.value:a=e;let i=this._getRenderSelectedItem();const o=this._generateList(t);let s=o.filter(d=>i(d)===a);const l=s.length,u=o.findIndex(d=>i(d)===a);let c="";if(l)s=s[0],c=i(s);else{const d=this._backwardLabelInValue()?e:{label:a,value:a};c=i(d)}this._adapter.updateInputValue(c),this.updateSelection(l?s:null),u===-1&&r?this._adapter.updateFocusIndex(0):this._adapter.updateFocusIndex(u)}_modifyFocusIndex(e){let{focusIndex:t}=this.getStates(),{data:r,defaultActiveFirstOption:a}=this.getProps(),i=this._getRenderSelectedItem();const s=this._generateList(r).findIndex(l=>i(l)===e);s===-1&&a?t!==0&&this._adapter.updateFocusIndex(0):s!==t&&this._adapter.updateFocusIndex(s)}_modifyFocusIndexOnPanelOpen(){let{inputValue:e}=this.getStates();this._modifyFocusIndex(e)}_getRenderSelectedItem(){let{renderSelectedItem:e}=this.getProps();return typeof e>"u"&&(e=t=>t.value),e}handleClear(){this._adapter.notifyClear()}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}_handleKeyDown(e){const t=e.keyCode;switch(this.getStates(),t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.ENTER:e.preventDefault(),this._handleEnterKeyDown();break;case Rr.ESC:this.closeDropdown();break;case Rr.TAB:this.closeDropdown();break}this._adapter.notifyKeyDown(e)}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s.show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o)}_handleArrowKeyDown(e){const{visible:t}=this.getStates();t?this._getEnableFocusIndex(e):this.openDropdown()}_handleEnterKeyDown(){const{visible:e,options:t,focusIndex:r}=this.getStates();if(!e)this.openDropdown();else if(r!==void 0&&r!==-1&&t.length!==0){const i=t.filter(o=>o.show)[r];this.handleSelect(i,r)}else this.closeDropdown()}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleFocus(e){this.bindKeyBoardEvent(),this._adapter.notifyFocus(e)}handleBlur(e){this._persistEvent(e),this._adapter.notifyBlur(e)}}const F4e=N4e,$4e=`${q}-spin`,V4e={PREFIX:$4e},j4e={SIZE:["small","middle","large"]};class B7 extends ze{static get spinDefaultAdapter(){return{getProp:()=>{},setLoading:e=>{}}}constructor(e){super(Object.assign(Object.assign({},B7.spinDefaultAdapter),e))}updateLoadingIfNeedDelay(){const{spinning:e,delay:t}=this._adapter.getProps(),{delay:r}=this._adapter.getStates();if(r){const a=this;this._timer=setTimeout(()=>{a._adapter.setState({loading:e,delay:0})},t)}}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}}const z4e=B7;var B4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};const{id:e,className:t}=n,r=B4e(n,["id","className"]);let a=e;ct(a)&&(Lk++,a=Lk);const i=`linearGradient-${a}`;return x.createElement("svg",Object.assign({},r,{className:t,width:"48",height:"48",viewBox:"0 0 36 36",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,"data-icon":"spin"}),x.createElement("defs",null,x.createElement("linearGradient",{x1:"0%",y1:"100%",x2:"100%",y2:"100%",id:i},x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0",offset:"0%"}),x.createElement("stop",{stopColor:"currentColor",stopOpacity:"0.50",offset:"39.9430698%"}),x.createElement("stop",{stopColor:"currentColor",offset:"100%"}))),x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fillOpacity:"0.01",fill:"none",x:"0",y:"0",width:"36",height:"36"}),x.createElement("path",{d:"M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",stroke:`url(#${i})`,strokeWidth:"4",strokeLinecap:"round"})))}var H4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({loading:e})}})}componentWillUnmount(){this.foundation.destroy()}renderSpin(){const{indicator:e,tip:t}=this.props,{loading:r}=this.state;return r?x.createElement("div",{className:`${td}-wrapper`},e?x.createElement("div",{className:`${td}-animate`,"x-semi-prop":"indicator"},e):x.createElement(AZ,null),t?x.createElement("div",{"x-semi-prop":"tip"},t):null):null}render(){this.foundation.updateLoadingIfNeedDelay();const e=this.props,{children:t,style:r,wrapperClassName:a,childStyle:i,size:o}=e,s=H4e(e,["children","style","wrapperClassName","childStyle","size"]),{loading:l}=this.state,u=$(td,a,{[`${td}-${o}`]:o,[`${td}-block`]:t,[`${td}-hidden`]:!l});return x.createElement("div",Object.assign({className:u,style:r},this.getDataAttr(s)),this.renderSpin(),x.createElement("div",{className:`${td}-children`,style:i,"x-semi-prop":"children"},t))}}H7.propTypes={size:v.oneOf(j4e.SIZE),spinning:v.bool,children:v.node,indicator:v.node,delay:v.number,tip:v.node,wrapperClassName:v.string,childStyle:v.object,style:v.object};H7.defaultProps={size:"middle",spinning:!0,children:null,indicator:null,delay:0};const Jl=H7,Mw={PREFIX:`${q}-input`},Yc={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},U4e={};let W4e=class MZ extends ze{static get inputDefaultAdapter(){return{notifyChange:B,setValue:B}}constructor(e){super(Object.assign(Object.assign({},MZ.inputDefaultAdapter),e))}init(){this._setInitValue()}destroy(){this._timer&&(clearTimeout(this._timer),this._timer=null)}setDisable(){}_setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}setValue(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi Input] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleClear(e){let t=e;const r="";this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),(!t||typeof t!="object")&&(t={}),ai(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG,!0),this._adapter.notifyChange(r,t),this._adapter.notifyClear(t),t&&this.stopPropagation(t)}handleClick(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();t||r||this._adapter.isEventTarget(e)&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handleModeChange(e){e==="password"?this._adapter.setEyeClosed(!0):this._adapter.setEyeClosed(!1)}handleClickEye(e){const t=this._adapter.getState("eyeClosed");this._adapter.focusInput(),this._adapter.toggleFocusing(!0),this._adapter.setEyeClosed(!t)}handleInputType(e){const t=this._adapter.getProp("mode"),r=this._adapter.getState("eyeClosed");return t==="password"?r?"password":"text":e}handleMouseDown(e){e.preventDefault()}handleMouseUp(e){e.preventDefault()}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleInput(e){this._adapter.notifyInput(e)}handleKeyDown(e){this._adapter.notifyKeyDown(e)}handleKeyUp(e){this._adapter.notifyKeyUp(e)}handleKeyPress(e){this._adapter.notifyKeyPress(e),e.key===F7&&this._adapter.notifyEnterPress(e)}isAllowClear(){const{value:e,isFocus:t,isHovering:r}=this._adapter.getStates(),{showClear:a,disabled:i,showClearIgnoreDisabled:o}=this._adapter.getProps();return e&&a&&(!i||o)&&(t||r)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&(this._adapter.focusInput(),this._adapter.toggleFocusing(!0))}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}handleModeEnterPress(e){["Enter"," "].includes(e==null?void 0:e.key)&&(this.handlePreventMouseDown(e),this.handleClickEye(e))}};const G4e=W4e;var Y4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleMouseOver=t=>{this.setState({isHovering:!0})},this.handleMouseLeave=t=>{this.setState({isHovering:!1})},this.handleModeChange=t=>{this.foundation.handleModeChange(t)},this.handleClickEye=t=>{this.foundation.handleClickEye(t)},this.handleMouseDown=t=>{this.foundation.handleMouseDown(t)},this.handleMouseUp=t=>{this.foundation.handleMouseUp(t)},this.handleModeEnterPress=t=>{this.foundation.handleModeEnterPress(t)},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.state={value:"",cachedValue:null,disabled:!1,props:{},isFocus:!1,isHovering:!1,eyeClosed:e.mode==="password",minLength:e.minLength},this.inputRef=x.createRef(),this.prefixRef=x.createRef(),this.suffixRef=x.createRef(),this.foundation=new G4e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e}),setEyeClosed:e=>this.setState({eyeClosed:e}),toggleFocusing:e=>{this.setState({isFocus:e})},focusInput:()=>{const{preventScroll:e}=this.props,t=this.inputRef&&this.inputRef.current;t&&t.focus({preventScroll:e})},toggleHovering:e=>this.setState({isHovering:e}),getIfFocusing:()=>this.state.isFocus,notifyChange:(e,t)=>this.props.onChange(e,t),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyInput:e=>this.props.onInput(e),notifyKeyPress:e=>this.props.onKeyPress(e),notifyKeyDown:e=>this.props.onKeyDown(e),notifyKeyUp:e=>this.props.onKeyUp(e),notifyEnterPress:e=>this.props.onEnterPress(e),notifyClear:e=>this.props.onClear(e),setMinLength:e=>this.setState({minLength:e}),isEventTarget:e=>e&&e.target===e.currentTarget})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidUpdate(e){const{mode:t}=this.props;e.mode!==t&&this.handleModeChange(t)}componentDidMount(){this.foundation.init();const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&(t||this.props.autofocus)&&this.inputRef.current.focus({preventScroll:r})}renderPrepend(){const{addonBefore:e}=this.props;if(e){const t=$({[`${$t}-prepend`]:!0,[`${$t}-prepend-text`]:e&&Xe(e),[`${$t}-prepend-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonBefore"},e)}return null}renderAppend(){const{addonAfter:e}=this.props;if(e){const t=$({[`${$t}-append`]:!0,[`${$t}-append-text`]:e&&Xe(e),[`${$t}-append-icon`]:Hr(e)});return x.createElement("div",{className:t,"x-semi-prop":"addonAfter"},e)}return null}renderClearBtn(){const e=$(`${$t}-clearbtn`),{clearIcon:t}=this.props;return this.foundation.isAllowClear()?x.createElement("div",{className:e,onMouseDown:this.handleClear},t||x.createElement(Gc,null)):null}renderModeBtn(){const{eyeClosed:e}=this.state,{mode:t,disabled:r}=this.props,a=$(`${$t}-modebtn`),i=e?x.createElement(BTe,null):x.createElement(WTe,null),o=t==="password"&&!r,s=e?"Show password":"Hidden password";return o?x.createElement("div",{role:"button",tabIndex:0,"aria-label":s,className:a,onClick:this.handleClickEye,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onKeyPress:this.handleModeEnterPress},i):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(!a)return null;const i=$({[`${$t}-prefix`]:!0,[`${$t}-inset-label`]:t,[`${$t}-prefix-text`]:a&&Xe(a),[`${$t}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix,insetLabel"},a)}renderSuffix(e){const{suffix:t,hideSuffix:r}=this.props;if(!t)return null;const a=$({[`${$t}-suffix`]:!0,[`${$t}-suffix-text`]:t&&Xe(t),[`${$t}-suffix-icon`]:Hr(t),[`${$t}-suffix-hidden`]:e&&!!r});return x.createElement("div",{className:a,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},t)}getInputRef(){const{forwardRef:e}=this.props;if(!Vt(e)){if(typeof e=="function")return t=>{e(t),this.inputRef={current:t}};if(Object.prototype.toString.call(e)==="[object Object]")return this.inputRef=e,e}return this.inputRef}render(){const e=this.props,{addonAfter:t,addonBefore:r,autoFocus:a,clearIcon:i,className:o,disabled:s,defaultValue:l,placeholder:u,prefix:c,mode:d,insetLabel:f,insetLabelId:h,validateStatus:p,type:g,readonly:m,size:y,suffix:b,style:_,showClear:S,onEnterPress:C,onClear:w,hideSuffix:T,inputStyle:E,forwardRef:O,maxLength:I,getValueLength:P,preventScroll:A,borderless:R,showClearIgnoreDisabled:L}=e,k=Y4e(e,["addonAfter","addonBefore","autoFocus","clearIcon","className","disabled","defaultValue","placeholder","prefix","mode","insetLabel","insetLabelId","validateStatus","type","readonly","size","suffix","style","showClear","onEnterPress","onClear","hideSuffix","inputStyle","forwardRef","maxLength","getValueLength","preventScroll","borderless","showClearIgnoreDisabled"]),{value:N,isFocus:z,minLength:F}=this.state,j=this.foundation.isAllowClear(),U=Hr(b),G=this.getInputRef(),Y=`${$t}-wrapper`,Q=$(Y,o,{[`${$t}-wrapper__with-prefix`]:c||f,[`${$t}-wrapper__with-suffix`]:b,[`${$t}-wrapper__with-suffix-hidden`]:j&&!!T,[`${$t}-wrapper__with-suffix-icon`]:U,[`${$t}-wrapper__with-append`]:r,[`${$t}-wrapper__with-prepend`]:t,[`${$t}-wrapper__with-append-only`]:r&&!t,[`${$t}-wrapper__with-prepend-only`]:!r&&t,[`${Y}-readonly`]:m,[`${Y}-disabled`]:s,[`${Y}-warning`]:p==="warning",[`${Y}-error`]:p==="error",[`${Y}-focus`]:z,[`${Y}-clearable`]:S,[`${Y}-modebtn`]:d==="password",[`${Y}-hidden`]:g==="hidden",[`${Y}-${y}`]:y,[`${$t}-borderless`]:R}),Z=$($t,{[`${$t}-${y}`]:y,[`${$t}-disabled`]:s,[`${$t}-sibling-clearbtn`]:this.foundation.isAllowClear(),[`${$t}-sibling-modebtn`]:d==="password"}),ae=N??"",se=Object.assign(Object.assign({},k),{style:E,className:Z,disabled:s,readOnly:m,type:this.foundation.handleInputType(g),placeholder:u,onInput:ee=>this.foundation.handleInput(ee),onChange:ee=>this.foundation.handleChange(ee.target.value,ee),onFocus:ee=>this.foundation.handleFocus(ee),onBlur:ee=>this.foundation.handleBlur(ee),onKeyUp:ee=>this.foundation.handleKeyUp(ee),onKeyDown:ee=>this.foundation.handleKeyDown(ee),onKeyPress:ee=>this.foundation.handleKeyPress(ee),value:ae});return ke(P)||(se.maxLength=I),F&&(se.minLength=F),p==="error"&&(se["aria-invalid"]="true"),x.createElement("div",{className:Q,style:_,onMouseEnter:ee=>this.handleMouseOver(ee),onMouseLeave:ee=>this.handleMouseLeave(ee),onClick:ee=>this.handleClick(ee)},this.renderPrepend(),this.renderPrefix(),x.createElement("input",Object.assign({},se,{ref:G})),this.renderClearBtn(),this.renderSuffix(j),this.renderModeBtn(),this.renderAppend())}}U7.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,addonBefore:v.node,addonAfter:v.node,clearIcon:v.node,prefix:v.node,suffix:v.node,mode:v.oneOf(X4e),value:v.any,defaultValue:v.any,disabled:v.bool,readonly:v.bool,autoFocus:v.bool,type:v.string,showClear:v.bool,hideSuffix:v.bool,placeholder:v.any,size:v.oneOf(K4e),className:v.string,style:v.object,validateStatus:v.oneOf(Z4e),onClear:v.func,onChange:v.func,onBlur:v.func,onFocus:v.func,onInput:v.func,onKeyDown:v.func,onKeyUp:v.func,onKeyPress:v.func,onEnterPress:v.func,insetLabel:v.node,insetLabelId:v.string,inputStyle:v.object,getValueLength:v.func,preventScroll:v.bool,borderless:v.bool};U7.defaultProps={addonBefore:"",addonAfter:"",prefix:"",suffix:"",readonly:!1,type:"text",showClear:!1,hideSuffix:!1,placeholder:"",size:"default",className:"",onClear:B,onChange:B,onBlur:B,onFocus:B,onInput:B,onKeyDown:B,onKeyUp:B,onKeyPress:B,onEnterPress:B,validateStatus:"default",borderless:!1};const q4e=x.forwardRef((n,e)=>x.createElement(U7,Object.assign({},n,{forwardRef:e}))),Ri=q4e;var Q4e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:_,"x-semi-prop":"emptyContent"},l||w.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:w=>p(w),onClick:w=>this.onClick(Object.assign({value:a,label:o,children:t},b),w)},b));const C={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:_,onClick:w=>{this.onClick(Object.assign({value:a,label:o,children:t},b),w)},onMouseEnter:w=>p&&p(w),role:"option","aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:S},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:C,inputValue:y,prefixCls:g})):t)}};Rw.isSelectOption=!0;Rw.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};Rw.defaultProps={prefixCls:PZ.PREFIX_OPTION};const LZ=Rw,vb=PZ.PREFIX,J4e=z7.SIZE,eEe=z7.POSITION,tEe=z7.STATUS;class Lw extends Pe{constructor(e){super(e),this.onSelect=(r,a,i)=>{this.foundation.handleSelect(r,a)},this.onSearch=r=>{this.foundation.handleSearch(r)},this.onBlur=r=>this.foundation.handleBlur(r),this.onFocus=r=>this.foundation.handleFocus(r),this.onInputClear=()=>this.foundation.handleClear(),this.handleInputClick=r=>this.foundation.handleInputClick(r),this.foundation=new F4e(this.adapter);const t=1;this.state={dropdownMinWidth:null,inputValue:"",options:[],visible:!1,focusIndex:e.defaultActiveFirstOption?0:-1,selection:new Map,rePosKey:t},this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,_n("triggerRender"in this.props&&typeof this.props.triggerRender=="function",`[Semi AutoComplete] - - If you are using the following props: 'suffix', 'prefix', 'showClear', 'validateStatus', and 'size', - please notice that they will be removed in the next major version. - Please use 'componentProps' to retrieve these props instead. - - If you are using 'onBlur', 'onFocus', please try to avoid using them and look for changes in the future.`)}get adapter(){const e={registerKeyDown:t=>{const r={onKeyDown:t};this.setState({keyboardEventSet:r})},unregisterKeyDown:t=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:t=>{this.setState({focusIndex:t})}};return Object.assign(Object.assign(Object.assign({},super.adapter),e),{getTriggerWidth:()=>{const t=this.triggerRef.current;return t&&t.getBoundingClientRect().width},setOptionWrapperWidth:t=>{this.setState({dropdownMinWidth:t})},updateInputValue:t=>{this.setState({inputValue:t})},toggleListVisible:t=>{this.setState({visible:t})},updateOptionList:t=>{this.setState({options:t})},updateSelection:t=>{this.setState({selection:t})},notifySearch:t=>{this.props.onSearch(t)},notifyChange:t=>{this.props.onChange(t)},notifySelect:t=>{this.props.onSelect(t)},notifyDropdownVisibleChange:t=>{this.props.onDropdownVisibleChange(t)},notifyClear:()=>{this.props.onClear()},notifyFocus:t=>{this.props.onFocus(t)},notifyBlur:t=>{this.props.onBlur(t)},notifyKeyDown:t=>{this.props.onKeyDown(t)},rePositionDropdown:()=>{let{rePosKey:t}=this.state;t=t+1,this.setState({rePosKey:t})},registerClickOutsideHandler:t=>{const r=a=>{const i=this.optionsRef&&this.optionsRef.current,o=this.triggerRef&&this.triggerRef.current,s=ui.findDOMNode(i),l=a.target;s&&(!s.contains(l)||!s.contains(l.parentNode))&&o&&!o.contains(l)&&t(a)};this.clickOutsideHandler=r,document.addEventListener("mousedown",r,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&document.removeEventListener("mousedown",this.clickOutsideHandler,!1)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){Ke(this.props.data,e.data)||this.foundation.handleDataChange(this.props.data),this.props.value!==e.value&&this.foundation.handleValueChange(this.props.value)}renderInput(){const{size:e,prefix:t,insetLabel:r,insetLabelId:a,suffix:i,placeholder:o,style:s,className:l,showClear:u,disabled:c,triggerRender:d,validateStatus:f,autoFocus:h,value:p,id:g,clearIcon:m}=this.props,{inputValue:y,keyboardEventSet:b,selection:_}=this.state,C=Object.assign(Object.assign(Object.assign({style:s,className:typeof d=="function"?$(l):$({[vb]:!0,[`${vb}-disabled`]:c},l),onClick:this.handleInputClick,ref:this.triggerRef,id:g},b),{tabIndex:-1}),this.getDataAttr(this.props)),w={disabled:c,placeholder:o,autofocus:h,onChange:this.onSearch,onClear:this.onInputClear,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],suffix:i,prefix:t||r,insetLabelId:a,showClear:u,validateStatus:f,size:e,onBlur:this.onBlur,onFocus:this.onFocus,clearIcon:m};return x.createElement("div",Object.assign({},C),typeof d=="function"?x.createElement(Wg,Object.assign({},w,{inputValue:typeof p<"u"?p:y,value:Array.from(_.values()),triggerRender:d,componentName:"AutoComplete",componentProps:Object.assign({},this.props)})):x.createElement(Ri,Object.assign({},w,{value:typeof p<"u"?p:y})))}renderLoading(){const e=`${vb}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t){const{focusIndex:r}=this.state,a=t===r;return x.createElement(LZ,Object.assign({showTick:!1,onSelect:(i,o)=>this.onSelect(i,t,o),focused:a,onMouseEnter:()=>this.foundation.handleOptionMouseEnter(t),key:e.key||e.label+e.value+t},e),e.label)}renderOptionList(){const{maxHeight:e,dropdownStyle:t,dropdownClassName:r,loading:a,emptyContent:i}=this.props,{options:o,dropdownMinWidth:s}=this.state,l=$({[`${vb}-option-list`]:!0},r);let u;o.length===0?u=i:u=o.filter(d=>d.show).map((d,f)=>this.renderOption(d,f));const c=Object.assign({maxHeight:e,minWidth:s},t);return x.createElement("div",{className:l,role:"listbox",style:c},a?this.renderLoading():u)}render(){const{position:e,motion:t,zIndex:r,mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l}=this.props,{visible:u,rePosKey:c}=this.state,d=this.renderInput(),f=this.renderOptionList();return x.createElement(di,{mouseEnterDelay:a,mouseLeaveDelay:i,autoAdjustOverflow:o,trigger:"custom",motion:t,visible:u,content:f,position:e,ref:this.optionsRef,zIndex:r,stopPropagation:s,getPopupContainer:l,rePosKey:c},d)}}Lw.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoAdjustOverflow:v.bool,className:v.string,clearIcon:v.node,children:v.node,data:v.array,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.number]),defaultActiveFirstOption:v.bool,disabled:v.bool,dropdownMatchSelectWidth:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,emptyContent:v.node,id:v.string,insetLabel:v.node,insetLabelId:v.string,onSearch:v.func,onSelect:v.func,onClear:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onKeyDown:v.func,position:v.oneOf(eEe),placeholder:v.string,prefix:v.node,onChangeWithObject:v.bool,onSelectWithObject:v.bool,renderItem:v.func,renderSelectedItem:v.func,suffix:v.node,showClear:v.bool,size:v.oneOf(J4e),style:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),maxHeight:v.oneOfType([v.string,v.number]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,motion:v.oneOfType([v.bool,v.func,v.object]),getPopupContainer:v.func,triggerRender:v.func,value:v.oneOfType([v.string,v.number]),validateStatus:v.oneOf(tEe),zIndex:v.number};Lw.Option=LZ;Lw.defaultProps={stopPropagation:!0,motion:!0,zIndex:ci.DEFAULT_Z_INDEX,position:"bottomLeft",data:[],showClear:!1,size:"default",onFocus:B,onSearch:B,onClear:B,onBlur:B,onSelect:B,onChange:B,onSelectWithObject:!1,onDropdownVisibleChange:B,defaultActiveFirstOption:!1,dropdownMatchSelectWidth:!0,loading:!1,maxHeight:300,validateStatus:"default",autoFocus:!1,emptyContent:null,onKeyDown:B};const nEe=Lw,rEe={PREFIX:`${q}-avatar`},Xy={SHAPE:["circle","square"],SIZE:["extra-extra-small","extra-small","small","default","medium","large","extra-large"],COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],OVERLAP_FROM:["start","end"]};class aEe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Avatar] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){}destroy(){}handleImgLoadError(){const{onError:e}=this.getProps();(e?e():void 0)!==!1&&this._adapter.notifyImgState(!1)}handleEnter(e){this._adapter.notifyEnter(e)}handleLeave(e){this._adapter.notifyLeave(e)}}var iEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{const{children:t,onClick:r,imgAttr:a,src:i,srcSet:o,alt:s}=this.props,{isImgExist:l}=this.state;let u=t;const c=r!==Ht,d=i&&l,f={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(d){const h=c?`clickable Avatar: ${s}`:s,p=Object.assign(Object.assign({src:i,srcSet:o,onError:this.handleError},a),{className:$({[`${Ao}-no-focus-visible`]:c})}),g=c?Object.assign(Object.assign({},p),f):p;u=x.createElement("img",Object.assign({alt:h},g))}else if(typeof t=="string"){const h=s??t,g={role:"img","aria-label":c?`clickable Avatar: ${h}`:h,className:$(`${Ao}-label`,{[`${Ao}-no-focus-visible`]:c})},m=c?Object.assign(Object.assign({},g),f):g;u=x.createElement("span",{className:`${Ao}-content`},x.createElement("span",Object.assign({},m,{"x-semi-prop":"children"}),t))}return u},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:e=>{this.setState({isImgExist:e})},notifyEnter:e=>{const{hoverMask:t}=this.props,r=t;this.setState({hoverContent:r},()=>{const{onMouseEnter:a}=this.props;a&&a(e)})},notifyLeave:e=>{this.setState({hoverContent:""},()=>{const{onMouseLeave:t}=this.props;t&&t(e)})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}componentDidMount(){this.foundation=new aEe(this.adapter),this.foundation.init()}componentDidUpdate(e){if(this.props.src&&this.props.src!==e.src){const t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}}componentWillUnmount(){this.foundation.destroy()}onEnter(e){this.foundation.handleEnter(e)}onLeave(e){this.foundation.handleLeave(e)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(e){const{onClick:t}=this.props;switch(e.key){case"Enter":t(e),Ra(e);break;case"Escape":e.target.blur();break}}render(){const e=this.props,{shape:t,children:r,size:a,color:i,className:o,hoverMask:s,onClick:l,imgAttr:u,src:c,srcSet:d,style:f,alt:h}=e,p=iEe(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt"]),{isImgExist:g,hoverContent:m,focusVisible:y}=this.state,b=c&&g,_=$(Ao,{[`${Ao}-${t}`]:t,[`${Ao}-${a}`]:a,[`${Ao}-${i}`]:i&&!b,[`${Ao}-img`]:b,[`${Ao}-focus`]:y},o),S=m?x.createElement("div",{className:`${Ao}-hover`,"x-semi-prop":"hoverContent"},m):null;return x.createElement("span",Object.assign({},p,{style:f,className:_,onClick:l,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave,role:"listitem"}),this.getContent(),S)}};cg.defaultProps={size:"medium",color:"grey",shape:"circle",onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht};cg.propTypes={children:v.node,color:v.oneOf(lEe),shape:v.oneOf(sEe),size:v.oneOf(oEe),hoverMask:v.node,className:v.string,style:v.object,imgAttr:v.object,src:v.string,srcSet:v.string,alt:v.string,onError:v.func,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func};cg.elementType="Avatar";var uEe=4,cEe=.001,dEe=1e-7,fEe=10,Em=11,mb=1/(Em-1),hEe=typeof Float32Array=="function";function kZ(n,e){return 1-3*e+3*n}function NZ(n,e){return 3*e-6*n}function FZ(n){return 3*n}function OS(n,e,t){return((kZ(e,t)*n+NZ(e,t))*n+FZ(e))*n}function $Z(n,e,t){return 3*kZ(e,t)*n*n+2*NZ(e,t)*n+FZ(e)}function pEe(n,e,t,r,a){var i,o,s=0;do o=e+(t-e)/2,i=OS(o,r,a)-n,i>0?t=o:e=o;while(Math.abs(i)>dEe&&++s=cEe?gEe(l,h,e,r):p===0?h:pEe(l,u,u+mb,e,r)}return function(u){return u===0?0:u===1?1:OS(s(u),t,a)}};const i5=Ie(mEe);function Nk(n,e,t){return Math.min(Math.max(n,e),t)}function yEe(n){const e=/\(([^)]+)\)/.exec(n);return e?e[1].split(",").map(t=>parseFloat(t)):[]}function yb(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5;const t=Nk(n,1,10),r=Nk(e,.1,2);return a=>a===0||a===1?a:-t*Math.pow(2,10*(a-1))*Math.sin((a-1-r/(Math.PI*2)*Math.asin(1/t))*(Math.PI*2)/r)}const o5=(()=>{const n=["Quad","Cubic","Quart","Quint","Sine","Expo","Circ","Back","Elastic"],e={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],yb],Out:[[.25,.46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],(r,a)=>i=>1-yb(r,a)(1-i)],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],(r,a)=>i=>i<.5?yb(r,a)(i*2)/2:1-yb(r,a)(i*-2+2)/2]},t={linear:[.25,.25,.75,.75]};for(const r of Object.keys(e))e[r].forEach((a,i)=>{t["ease"+r+n[i]]=a});return t})();function Fk(n){if(typeof n=="function")return n;!n||typeof n!="string"?n="linear":n=n.trim();let e=n.split("(")[0];const t=yEe(n);let r;return e==="cubic-bezier"||e==="cubicBezier"?i5(...t.length?t:o5.linear):((!e||typeof e!="string"||typeof e=="string"&&o5[e]==null)&&(e="linear"),r=o5[e],typeof r=="function"?r(...t):t.length?i5(...t):i5(...r))}class bEe{constructor(){this._eventMap=new Map}on(e,t){return e&&typeof t=="function"&&(this._eventMap.has(e)||this._eventMap.set(e,[]),this._eventMap.get(e).push(t)),this}once(e,t){var r=this;if(e&&typeof t=="function"){const a=function(){t(...arguments),r.off(e,a)};this.on(e,a)}}off(e,t){if(e)if(typeof t=="function"){const r=this._eventMap.get(e);if(Array.isArray(r)&&r.length){let a=-1;for(;(a=r.findIndex(i=>i===t))>-1;)r.splice(a,1)}}else t==null&&this._eventMap.delete(e);return this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ai(...r)),!0):!1}}function B1(n){return!!(n&&typeof n=="object"&&(n.duration>0||typeof n.easing=="string"||typeof n.easing=="function"))}function _Ee(n,e,t,r,a){for(const i of Object.keys(e)){const o=e[i],s=typeof o=="number"?o:o.val;if(!(typeof o=="object"&&o.done)){if(B1(o)&&r&&a&&o.duration){if(o.duration+r<=a||s!==n[i])return!1}else if(typeof t[i]=="number"&&t[i]!==0)return!1;if(n[i]!==s)return!1}}return!0}function bb(n){const e={};for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=typeof n[t]=="number"?n[t]:n[t].val);return e}const Ch=[0,0];function $k(n,e,t,r,a,i,o){const s=-a*(e-r),l=-i*t,u=s+l,c=t+u*n,d=e+c*n;return Math.abs(c)1&&arguments[1]!==void 0?arguments[1]:{};if(B1(e)){const r=Fk(e.easing),a=typeof e.duration=="number"&&e.duration>0?e.duration:1e3;e=Object.assign(Object.assign({},e),{easing:r,duration:a})}let t=Object.assign(Object.assign(Object.assign({},wEe),e),{done:!1});if(n&&typeof n=="object"&&"val"in n){if(B1(n)){const r=Fk(n.easing),a=typeof n.duration=="number"&&n.duration>0?n.duration:parseInt(e.duration)||1e3;n=Object.assign(Object.assign({},n),{easing:r,duration:a})}t=Object.assign(Object.assign({},t),n)}else t=Object.assign(Object.assign({},t),{val:n});return t}const kv=()=>Date.now(),_u=1e3/60;let VZ=class extends bEe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),this._props=Object.assign({},e),this._config=Object.assign({},t),this.initStates()}_wrapConfig(e,t){t=t&&typeof t=="object"?t:this._config;const r={};for(const a of Object.keys(e))r[a]=xEe(e[a],t);return r}initStates(e,t){e=e&&typeof e=="object"?e:this._props,t=t&&typeof t=="object"?t:this._config;const{from:r,to:a}=e;if(this._from={},r)for(const s of Object.keys(r))this._from[s]=typeof r[s]=="object"&&r[s].val?r[s].val:r[s];this._to=this._wrapConfig(a,t),this._delay=parseInt(t.delay)||0;const i=this._from&&bb(this._from)||bb(this._to),o=SEe(i);this._currentStyle=Object.assign({},i),this._currentVelocity=Object.assign({},o),this._lastIdealStyle=Object.assign({},i),this._lastIdealVelocity=Object.assign({},o),this.resetPlayStates(),this._frameCount=0,this._prevTime=0}animate(){this._timer==null&&(this._timer=requestAnimationFrame(e=>{const t=kv();if(_Ee(this._currentStyle,this._to,this._currentVelocity,this._startedTime||t,t)||this._ended||this._stopped){this._wasAnimating&&!this._ended&&!this._stopped&&(this._timer=setTimeout(()=>{clearTimeout(this._timer),this._timer=null,this._ended=!0,this.emit("rest",this.getCurrentStates())},_u)),this.resetPlayStates();return}this._started||(this._started=!0,this.emit("start",this.getCurrentStates())),this._stopped=!1,this._paused=!1,this._wasAnimating=!0,this._startedTime===0&&(this._startedTime=t);const r=t,a=r-this._prevTime;this._prevTime=r,r-this._startedTime=this._startedTime+y&&(p=h,d.done=!0),i[c]=p,s[c]=p}else if(h!=null&&h===this._currentStyle[c])s[c]=h,l[c]=0,i[c]=h,o[c]=0;else{const m=(this._accumulatedTime[c]-Math.floor(this._accumulatedTime[c]/_u)*_u)/_u,y=Math.floor(this._accumulatedTime[c]/_u);for(let S=0;Su&&b.stopPropagation()},y),t))}};qy.defaultProps={disabled:!1,size:"default",type:"primary",theme:"light",block:!1,htmlType:"button",onMouseDown:Ht,onClick:Ht,onMouseEnter:Ht,onMouseLeave:Ht,prefixCls:W7.PREFIX};qy.propTypes={children:v.node,disabled:v.bool,prefixCls:v.string,style:v.object,size:v.oneOf(OEe),type:v.oneOf(PEe),block:v.bool,onClick:v.func,onMouseDown:v.func,circle:v.bool,loading:v.bool,htmlType:v.oneOf(IEe),theme:v.oneOf(eh.themes),className:v.string,onMouseEnter:v.func,onMouseLeave:v.func,"aria-label":v.string};var DEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){const e=Object.assign({},this.props),t=!!e.icon,r=!!e.loading,a=!!e.disabled;return t||r&&!a?x.createElement(Dl,Object.assign({},e)):x.createElement(qy,Object.assign({},e))}};G7.propTypes=Object.assign(Object.assign({},qy.propTypes),Dl.propTypes);G7.elementType="Button";const Jt=G7;var MEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a1?(e.slice(0,-1).forEach((a,i)=>{const o=H(a,"type.elementType")==="Button",s=H(a,"props");if(s){const{type:l,theme:u,disabled:c}=s;r=$(`${wh}-group-line`,`${wh}-group-line-${u??"light"}`,`${wh}-group-line-${l??"primary"}`,{[`${wh}-group-line-disabled`]:c})}o?t.push(a,x.createElement("span",{className:r,key:`line-${i}`})):t.push(a)}),t.push(e.slice(-1)),t):e}render(){const e=this.props,{children:t,disabled:r,size:a,type:i,className:o,style:s,"aria-label":l}=e,u=MEe(e,["children","disabled","size","type","className","style","aria-label"]);let c,d=[];const f=$(`${wh}-group`,o);return t&&(c=(Array.isArray(t)?t:[t]).map((h,p)=>{var g;return D.isValidElement(h)?D.cloneElement(h,Object.assign(Object.assign(Object.assign({disabled:r,size:a,type:i},h.props),u),{key:(g=h.key)!==null&&g!==void 0?g:p})):h}),d=this.getInnerWithLine(c)),x.createElement("div",{className:f,style:s,role:"group","aria-label":l},d)}}Pc.propTypes={children:v.node,disabled:v.bool,type:v.string,size:v.oneOf(REe),theme:v.oneOf(eh.themes),"aria-label":v.string};Pc.defaultProps={size:"default"};const jZ={PREFIX:`${q}-card`},LEe={SHADOWS:["hover","always"],TYPE:["grid"]};var kEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ae=>t=>x.createElement(e,Object.assign({type:n},t));class Gg extends D.PureComponent{render(){const e=this.props,{prefixCls:t,className:r,type:a,size:i,shape:o}=e,s=FEe(e,["prefixCls","className","type","size","shape"]),l=$(r,`${t}-${a}`,{[`${t}-${a}-${i}`]:a.toUpperCase()==="AVATAR"},{[`${t}-${a}-${o}`]:a.toUpperCase()==="AVATAR"});return x.createElement("div",Object.assign({className:l},s))}}Gg.propTypes={type:v.string,prefixCls:v.string,style:v.object,className:v.string,size:v.oneOf($Ee),shape:v.oneOf(VEe)};Gg.defaultProps={prefixCls:Y7.PREFIX,size:"medium",shape:"circle"};const jEe=Nw("avatar")(Gg),zEe=Nw("image")(Gg),BEe=Nw("title")(Gg),HEe=Nw("button")(Gg);class K7 extends D.PureComponent{render(){const{prefixCls:e,className:t,style:r,rows:a}=this.props,i=$(t,`${e}-paragraph`);return x.createElement("ul",{className:i,style:r},[...Array(a)].map((o,s)=>x.createElement("li",{key:s})))}}K7.propTypes={rows:v.number,prefixCls:v.string,style:v.object,className:v.string};K7.defaultProps={prefixCls:Y7.PREFIX,rows:4};var UEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e=[];return x.Children.forEach(n,t=>{t!=null&&(Array.isArray(t)?e=e.concat(DO(t)):D.isValidElement(t)&&t.type&&t.type.toString()===GEe&&t.props?e=e.concat(DO(t.props.children)):e.push(t))}),e},Mo=WEe.PREFIX;class Z7 extends D.PureComponent{render(){const{children:e=null,style:t,className:r,spacing:a,wrap:i,align:o,vertical:s}=this.props,l=i&&s?!1:i,u=Object.assign({},t);let c="",d="";Xe(a)?(c=a,d=a):Rn(a)?(u.rowGap=a,u.columnGap=a):r7(a)&&(Xe(a[0])?c=a[0]:Rn(a[0])&&(u.columnGap=`${a[0]}px`),Xe(a[1])?d=a[1]:Rn(a[1])&&(u.rowGap=`${a[1]}px`));const f=$(Mo,r,{[`${Mo}-align-${o}`]:o,[`${Mo}-vertical`]:s,[`${Mo}-horizontal`]:!s,[`${Mo}-wrap`]:l,[`${Mo}-tight-horizontal`]:c===kd.SPACING_TIGHT,[`${Mo}-tight-vertical`]:d===kd.SPACING_TIGHT,[`${Mo}-medium-horizontal`]:c===kd.SPACING_MEDIUM,[`${Mo}-medium-vertical`]:d===kd.SPACING_MEDIUM,[`${Mo}-loose-horizontal`]:c===kd.SPACING_LOOSE,[`${Mo}-loose-vertical`]:d===kd.SPACING_LOOSE}),h=DO(e),p=Ic(this.props);return x.createElement("div",Object.assign({},p,{className:f,style:u,"x-semi-prop":"children"}),h)}}Z7.propTypes={wrap:v.bool,align:v.oneOf(kd.ALIGN_SET),vertical:v.bool,spacing:v.oneOfType([v.string,v.number,v.array]),children:v.node,style:v.object,className:v.string};Z7.defaultProps={vertical:!1,wrap:!1,spacing:"tight",align:"center"};const BZ=Z7;var YEe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{title:e,headerExtraContent:t,header:r,headerLine:a,headerStyle:i}=this.props,o=$(`${ta}-header`,{[`${ta}-header-bordered`]:!!a}),s=$(`${ta}-header-wrapper`),l=$(`${ta}-header-wrapper-title`,{[`${ta}-header-wrapper-spacing`]:!!t});return r||t||e?x.createElement("div",{style:i,className:o},r||x.createElement("div",{className:s},t&&x.createElement("div",{className:`${ta}-header-wrapper-extra`,"x-semi-prop":"headerExtraContent"},t),e&&x.createElement("div",{className:l},Xe(e)?x.createElement(Nf.Title,{heading:6,ellipsis:{showTooltip:!0,rows:1},"x-semi-prop":"title"},e):e))):null},this.renderCover=()=>{const{cover:e}=this.props,t=$(`${ta}-cover`);return e&&x.createElement("div",{className:t,"x-semi-prop":"cover"},e)},this.renderBody=()=>{const{bodyStyle:e,children:t,actions:r,loading:a}=this.props,i=$(`${ta}-body`),o=$(`${ta}-body-actions`),s=$(`${ta}-body-actions-item`),l=x.createElement("div",null,x.createElement(s5.Title,null),x.createElement("br",null),x.createElement(s5.Paragraph,{rows:3}));return x.createElement("div",{style:e,className:i},t&&x.createElement(s5,{placeholder:l,loading:a,active:!0},t),Array.isArray(r)&&x.createElement("div",{className:o},x.createElement(BZ,{spacing:12},r.map((u,c)=>x.createElement("div",{key:c,className:s,"x-semi-prop":`actions.${c}`},u)))))},this.renderFooter=()=>{const{footer:e,footerLine:t,footerStyle:r}=this.props,a=$(`${ta}-footer`,{[`${ta}-footer-bordered`]:t});return e&&x.createElement("div",{style:r,className:a,"x-semi-prop":"footer"},e)}}render(){const e=this.props,{bordered:t,shadows:r,style:a,className:i}=e,o=YEe(e,["bordered","shadows","style","className"]),s=fr(o,["actions","bodyStyle","cover","headerExtraContent","footer","footerLine","footerStyle","header","headerLine","headerStyle","loading","title"]),l=$(ta,i,{[`${ta}-bordered`]:t,[`${ta}-shadows`]:r,[`${ta}-shadows-${r}`]:r});return x.createElement("div",Object.assign({},s,{"aria-busy":this.props.loading,className:l,style:a}),this.renderHeader(),this.renderCover(),this.renderBody(),this.renderFooter())}}Fw.Meta=NEe;Fw.propTypes={actions:v.array,bodyStyle:v.object,bordered:v.bool,children:v.node,className:v.string,cover:v.node,footer:v.node,footerLine:v.bool,footerStyle:v.object,header:v.node,headerExtraContent:v.node,headerLine:v.bool,headerStyle:v.object,loading:v.bool,shadows:v.oneOf(LEe.SHADOWS),style:v.object,title:v.node,"aria-label":v.string};Fw.defaultProps={bordered:!0,footerLine:!1,headerLine:!0,loading:!1};const Gs=Fw;function KEe(n,e,t,r){for(var a=n.length,i=t+(r?1:-1);r?i--:++i-1:!!a&&g3e(n,e,t)>-1}var C3e=S3e;const Fs=Ie(C3e);var w3e=ww,x3e=1,T3e=4;function E3e(n){return w3e(n,x3e|T3e)}var O3e=E3e;const Ii=Ie(O3e);var I3e=bw,P3e=Jf,D3e=pK,A3e=ls,M3e=jy,R3e=Wc,L3e=Object.prototype,k3e=L3e.hasOwnProperty,N3e=D3e(function(n,e){if(M3e(e)||A3e(e)){P3e(e,R3e(e),n);return}for(var t in e)k3e.call(e,t)&&I3e(n,t,e[t])}),F3e=N3e;const $3e=Ie(F3e);var V3e=q7;function j3e(n,e){var t=n==null?0:n.length;return!!t&&V3e(n,e,0)>-1}var WZ=j3e;function z3e(n,e,t){for(var r=-1,a=n==null?0:n.length;++r=K3e&&(i=Y3e,o=!1,e=new B3e(e));e:for(;++ae}var AOe=DOe,MOe=POe,ROe=AOe,LOe=Wy;function kOe(n){return n&&n.length?MOe(n,LOe,ROe):void 0}var NOe=kOe;const FOe=Ie(NOe);var l5=CK,$Oe=FY,VOe=T7,jOe=1/0,zOe=l5&&1/VOe(new l5([,-0]))[1]==jOe?function(n){return new l5(n)}:$Oe,BOe=zOe,HOe=w7,UOe=WZ,WOe=GZ,GOe=x7,YOe=BOe,KOe=T7,ZOe=200;function XOe(n,e,t){var r=-1,a=UOe,i=n.length,o=!0,s=[],l=s;if(t)o=!1,a=WOe;else if(i>=ZOe){var u=e?null:YOe(n);if(u)return KOe(u);o=!1,a=GOe,l=new HOe}else l=e?[]:s;e:for(;++r3&&arguments[3]!==void 0?arguments[3]:!1;const a=[],i=!!r,o=H(t,"key","key"),s=H(t,"children","children");function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const h=ZZ(c?c.pos:"0",f),p=d[o],g={};t&&Object.entries(fr(t,"children")).forEach(b=>{let[_,S]=b;const C=d[S];!Vt(C)&&(g[_]=C)});const m=Object.assign(Object.assign(Object.assign({},eu(d,["key","label","value","icon","disabled","isLeaf"])),g),{parent:c,pos:h,children:null,data:d,_innerDataTag:!0}),y=typeof r=="boolean";return(!i||!y&&r.has(p))&&a.push(m),e.has(p)&&(!i||!y&&r.has(p))?m.children=l(d[s]||[],m):m.children=[],m})}return l(n),a}function nIe(n,e,t){const r=H(t,"key","key"),a=H(t,"children","children"),i=(o,s,l)=>{const u=o?o[a]:n,c=o?ZZ(l.pos,s):"0";if(o){const d=H(o,r,null),f={data:Object.assign({},o),ind:s,pos:c,key:d!==null?d:c,parentPos:l.node?l.pos:null,level:Number(l.level)+1};e(f)}u&&u.forEach((d,f)=>{i(d,f,{node:o,pos:c,level:l?Number(l.level)+1:-1})})};i(null)}function rIe(n,e){const t={},r={},a={},i={posEntities:t,keyEntities:r,valueEntities:a},o=H(e,"value","value");return nIe(n,s=>{const{pos:l,key:u,parentPos:c}=s,d=Object.assign({},s),f=H(d,`data.${o}`,null);f!==null&&(a[f]=u),t[l]=d,r[u]=d,d.parent=t[c],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d))},e),i}function Nd(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!$w(n))return[];if(!t&&Array.isArray(n)?n=n.length?[n[0]]:[]:Array.isArray(n)||(n=[n]),vt(e))return n;const r=[];return n.forEach(a=>{a in e?r.push(e[a]):a&&r.push(a)}),r}function Fl(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{if(!i)return;const{children:o}=i;$w(o)&&o.forEach(l=>{r.push(l.key),a(e[l.key])})};return n.forEach(i=>{t&&r.push(i),a(e[i])}),r}function aIe(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=[];return n&&n.forEach(a=>{const i=e[a];i&&i.children&&i.children.forEach(o=>{(!t.length||!t.includes(o.key))&&r.push(o.key)})}),r}function Q7(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[];return n.forEach(i=>{e[i]&&e[i].parent&&r.push(e[i].parent.key)}),aIe(tIe(r),e,t?[]:n)}function $l(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=[],a=i=>{i.parent&&(r.push(i.parent.key),a(i.parent))};return n.forEach(i=>{e[i]&&a(e[i]),t&&r.push(i)}),r}function iIe(n,e){const t={};return n.forEach(r=>{if(!e[r])return;const{level:a}=e[r];t[a]?t[a].push(r):t[a]=[r]}),t}function Jy(n,e){const t=Array.isArray(n)?n:[n],r=Fl(t,e,!0),a=new Set([...r]);let i=new Set([]),o=[];const s=iIe(t,e),l=u=>{const{key:c,parent:d,level:f}=u;if(!d||o.includes(c))return;const h=Q7([c],e);if(o=[...o,...h],h.every(g=>a.has(g)))a.add(d.key),f-1 in s&&f?s[f-1].push(d.key):s[f-1]=[d.key];else{const g=$l([c],e,!1);i=new Set([...i,...g])}};for(;!vt(s);){const u=FOe(Object.keys(s).map(c=>Number(c)));s[u].forEach(c=>l(e[c])),delete s[u]}return{checkedKeys:a,halfCheckedKeys:i}}function Bk(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(Array.isArray(n)||(n=[n]),t){const r=$l(n,e,!0);return new Set(r)}return new Set(n)}function Hk(n,e,t,r){const a=Nd(n,r,t);return new Set($l(a,e,!1))}function oIe(n,e,t){let r="show";const a=[...n],i=[...e];if(Math.abs(a.length-i.length)!==1)return{motionType:r,motionKeys:[]};let o=[];return a.length>i.length?(r="hide",o=dg(a,i)):o=dg(i,a),{motionType:o.length===1?r:"show",motionKeys:o.length===1?Fl(o,t,!1):[]}}function XZ(n,e,t,r,a){if(!t)return!0;let i=t,o=a??e;return typeof t=="boolean"&&(i=(s,l)=>{const u=s.toLowerCase();return l.toString().toLowerCase().includes(u)}),r&&(o=e[r]),i(n,o,e)}function sIe(n){return Array.isArray(n)?n:[n]}function Pi(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=arguments.length>3?arguments[3]:void 0;const a=[],i=new Set(n);return t?n.forEach(o=>{e[o]&&!$w(e[o].children)&&a.push(o),!e[o]&&r&&a.push(o)}):n.forEach(o=>{if(!e[o]){r&&a.push(o);return}const{parent:s}=e[o];s&&i.has(s.key)||a.push(o)}),a}function Uk(n,e,t){const r=[],a=i=>{t[i].children&&t[i].children.forEach(o=>{const{key:s}=o;r.push(s),e.has(s)&&a(s)})};return a(n),r}function qZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];t=new Set([...t,n]);const o=s=>{if(!s.parent)return;const{key:l}=s;if(Q7([l],e).every(d=>t.has(d))){const d=s.parent;t.add(d.key),o(d)}else{const d=$l([l],e,!1);r=new Set([...r,...d])}};return o(i),{checkedKeys:new Set([...t,...a]),halfCheckedKeys:r}}function QZ(n,e,t,r){const a=Fl([n],e,!0),i=e[n];a.forEach(s=>{t.has(s)&&t.delete(s),r.has(s)&&r.delete(s)});const o=s=>{const l=s.parent;if(!l||!t.has(l.key)&&!r.has(l.key))return;const{key:u}=s,d=Q7([u],e).some(h=>t.has(h)||r.has(h)),f=$l([u],e,!1);d?f.forEach(h=>{t.has(h)&&(t.delete(h),r.add(h))}):(t.has(l.key)&&t.delete(l.key),r.has(l.key)&&r.delete(l.key),o(l))};return i&&o(i),{checkedKeys:t,halfCheckedKeys:r}}function IS(n,e){const t=H(e,"value","value"),r=H(e,"key","key");return Array.isArray(n)?n.map(a=>H(a,t,a[r])):H(n,t,n[r])}function Su(n,e,t){return e&&$w(n)?IS(n,t):n}function Wk(n,e){return[...n].filter(r=>r in e)}function JZ(n,e){const t=H(e,"disabled","disabled"),r=Object.keys(n).filter(i=>n[i].data[t]),{checkedKeys:a}=Jy(r,n);return a}const eX={PREFIX:`${q}-cascader`,PREFIX_OPTION:`${q}-cascader-option`},ur={SIZE_SET:["small","large","default"],VALIDATE_STATUS:["success","default","error","warning"],IS_KEY:"isKey",IS_VALUE:"isValue",SHOW_NEXT_BY_CLICK:"click",SHOW_NEXT_BY_HOVER:"hover",LEAF_ONLY_MERGE_TYPE:"leafOnly",AUTO_MERGE_VALUE_MERGE_TYPE:"autoMergeValue",NONE_MERGE_TYPE:"none"};function lIe(n,e){return`${n}-${e}`}function uIe(n){return!ql(n)&&!Vt(n)}function e2(n){return Array.isArray(n)?n:[n]}function cIe(n,e){const t=(r,a,i)=>{const o=r?r.children:n;let s=null;if(r){const l=i?lIe(i.key,a):`${a}`;s={data:Object.assign({},r),ind:a,key:l,level:i?i.level+1:0,parentKey:i?i.key:null,path:i?[...i.path,l]:[l],valuePath:i?[...i.valuePath,r.value]:[r.value]},e(s)}o&&o.forEach((l,u)=>{t(l,u,s)})};t(null)}function tX(n){const e={};return cIe(n,t=>{const{key:r,parentKey:a}=t,i=Object.assign({},t);e[r]=i,i.parent=e[a],i.parent&&(i.parent.children=i.parent.children||[],i.parent.children.push(i))}),e}function AO(n,e){const t=e2(n);return Object.values(e).filter(a=>Ke(a.valuePath,t)).map(a=>a.key)}function MO(n,e){let t;return e?t=ur.LEAF_ONLY_MERGE_TYPE:n?t=ur.AUTO_MERGE_VALUE_MERGE_TYPE:t=ur.NONE_MERGE_TYPE,t}class dIe extends ze{constructor(e){super(Object.assign({},e)),this.updateSearching=t=>{this._adapter.updateStates({isSearching:!1})}}init(){const e=this.getProp("open")||this.getProp("defaultOpen");this.collectOptions(!0),this._adapter.updateLoadingKeyRefValue(new Set),this._adapter.updateLoadedKeyRefValue(new Set),e&&!this._isDisabled()&&this.open()}destroy(){this._adapter.unregisterClickOutsideHandler()}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filterTreeNode")}_notifyChange(e){const{onChangeWithObject:t,multiple:r}=this.getProps(),a=t?[]:"value";if(r){const i=[];e.forEach(o=>{const s=this.getItemPropPath(o,a);i.push(s)}),this._adapter.notifyChange(i)}else{const i=Vt(e)||!("key"in e)?[]:this.getItemPropPath(e.key,a);this._adapter.notifyChange(i)}}_isLeaf(e){return this.getProp("loadData")?!!e.isLeaf:!e.children||!e.children.length}_clearInput(){this._adapter.updateInputValue("")}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}_isOptionDisabled(e,t){return $l([e],t,!0).some(a=>t[a].data.disabled)}getCopyFromState(e){const t={};return e2(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getItemPropPath(e,t,r){const a=r||this.getState("keyEntities"),i=a[e];let o=[];if(i)if(i._notExist)o=i.path;else{const s=i.path;o=Array.isArray(t)?s.map(l=>a[l].data):s.map(l=>a[l].data[t])}return o}_getCacheValue(e){const{selectedKeys:t}=this.getStates(),r=Array.from(t)[0];let a;if(vt(e[r]))if(Fs(r,"not-exist-")){const i=r.match(/not-exist-(\S*)/)[1];vt(e[i])?a=i:a=e[i].valuePath}else a=r;else a=e[r].valuePath;return a}collectOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{treeData:t,value:r,defaultValue:a}=this.getProps(),i=tX(t);this._adapter.rePositionDropdown();let o;e?o=a:vt(i)||(o=this._getCacheValue(i));const s=this._isControlledComponent()?r:o;uIe(s)?this.updateSelectedKey(s,i):this._adapter.updateStates({keyEntities:i})}handleValueChange(e){const{keyEntities:t}=this.getStates(),{multiple:r}=this.getProps();!r&&this.updateSelectedKey(e,t)}_getClearSelectedKey(e){const t={},{searchPlaceholder:r,placeholder:a,multiple:i}=this.getProps();return t.selectedKeys=new Set([]),t.activeKeys=new Set([]),t.filteredKeys=new Set([]),e&&!i&&(t.inputPlaceHolder=r||a||"",t.inputValue=""),t}updateSelectedKey(e,t){const{changeOnSelect:r,onChangeWithObject:a,multiple:i}=this.getProps(),{activeKeys:o,loading:s,keyEntities:l,selectedKeys:u}=this.getStates(),c=this._adapter.getLoadingKeyRefValue(),d=this._isFilterable(),f=[...o].filter(m=>c.has(m)),h=a?e2(e).map(m=>m.value):e2(e),p=AO(h,t);let g={};if(p.length){const m=p[0],y=t[m];if(r||this._isLeaf(y.data)){if(g.selectedKeys=new Set([m]),f.length||(g.activeKeys=new Set(y.path)),d&&!i){const b=this.renderDisplayText(m,t);g.inputPlaceHolder=b}}else Ke(p,Array.from(u))&&(g=this._getClearSelectedKey(d))}else if(e&&e.length){const m=h[h.length-1],y=`not-exist-${m}`,b={data:{label:m,value:m},key:y,path:h,_notExist:!0};if(g.selectedKeys=new Set([y]),d&&!i){const _=this._defaultRenderText(h);g.inputPlaceHolder=_}t[y]=b}else if(s){g.keyEntities=$3e(l,t),this._adapter.updateStates(g);return}else g=this._getClearSelectedKey(d);g.keyEntities=t,this._adapter.updateStates(g)}open(){const e=this._isFilterable(),{multiple:t}=this.getProps();this._adapter.openMenu(),e&&(this._clearInput(),!t&&this.toggle2SearchInput(!0)),this._isControlledComponent()&&this.reCalcActiveKeys(),this._adapter.notifyDropdownVisibleChange(!0),this._adapter.registerClickOutsideHandler(r=>this.close(r))}reCalcActiveKeys(){const{selectedKeys:e,activeKeys:t,keyEntities:r}=this.getStates(),a=[...e][0],i=r[a];if(!i)return;const o=new Set(i.path);Ke(o,t)||this._adapter.updateStates({activeKeys:o})}close(e,t){const{multiple:r}=this.getProps();if(this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.unregisterClickOutsideHandler(),this._isFilterable()){const{selectedKeys:a,isSearching:i}=this.getStates();let o="";t&&!r?o=this.renderDisplayText(t):a.size&&!r&&(o=this.renderDisplayText([...a][0])),this._adapter.updateStates({inputValue:o}),!r&&this.toggle2SearchInput(!1),!r&&this._adapter.updateFocusState(!1)}this._notifyBlur(e)}focus(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.focusInput(),this._adapter.updateFocusState(!0)}blur(){const{filterTreeNode:e}=this.getProps();e&&this._adapter.blurInput(),this._adapter.updateFocusState(!1)}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focus()):this._adapter.toggleInputShow(e,()=>{})}handleItemClick(e,t){this._isDisabled()||(this.handleSingleSelect(e,t),this._adapter.rePositionDropdown())}handleItemHover(e,t){this._isDisabled()||this.handleShowNextByHover(t)}handleShowNextByHover(e){const{keyEntities:t}=this.getStates(),{data:r,key:a}=e,i=this._isLeaf(r),o=t[a].path;this._adapter.updateStates({activeKeys:new Set(o)}),i||this.notifyIfLoadData(e)}onItemCheckboxClick(e){this._isDisabled()||(this._handleMultipleSelect(e),this._adapter.rePositionDropdown())}handleClick(e){const t=this._isDisabled(),r=this._isFilterable(),{isOpen:a}=this.getStates();t||(a?a&&!r&&this.close(e):(this.open(),this._notifyFocus(e)))}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}toggleHoverState(e){this._adapter.toggleHovering(e)}_defaultRenderText(e,t){const r=this.getProp("separator");return t&&typeof t=="function"?t(e):e.join(r)}renderDisplayText(e,t){const r=this.getProp("displayRender"),a=this.getProp("displayProp"),i=this.getItemPropPath(e,a,t);return this._defaultRenderText(i,r)}handleNodeLoad(e){const{data:t,key:r}=e,a=Ii(this._adapter.getLoadingKeyRefValue()),o=Ii(this._adapter.getLoadedKeyRefValue()).add(r),s=new Set([...a]);s.delete(r),this._adapter.notifyOnLoad(o,t),this._adapter.updateLoadingKeyRefValue(s),this._adapter.updateLoadedKeyRefValue(o),this._adapter.updateStates({loadingKeys:s,loadedKeys:o})}notifyIfLoadData(e){const{data:t,key:r}=e;if(this._adapter.updateStates({loading:!1}),!t.isLeaf&&!t.children&&this.getProp("loadData")){const a=this._adapter.getLoadedKeyRefValue(),i=Ii(this._adapter.getLoadingKeyRefValue());if(a.has(r)||i.has(r))return;this._adapter.updateStates({loading:!0});const{keyEntities:o}=this.getStates(),s=this.getItemPropPath(r,[],o),l=i.add(r);this._adapter.updateLoadingKeyRefValue(l),this._adapter.updateStates({loadingKeys:l}),this._adapter.notifyLoadData(s,this.handleNodeLoad.bind(this,e))}}handleSingleSelect(e,t){const{changeOnSelect:r,filterLeafOnly:a,multiple:i,enableLeafClick:o}=this.getProps(),{keyEntities:s,selectedKeys:l,isSearching:u}=this.getStates(),c=this._isFilterable(),{data:d,key:f}=t,h=this._isLeaf(d),p=s[f].path,g=[f],m=f!==[...l][0];if(!h&&!r&&!u){this._adapter.updateStates({activeKeys:new Set(p)}),this.notifyIfLoadData(t);return}if(i)this._adapter.updateStates({activeKeys:new Set(p)}),h&&o&&this.onItemCheckboxClick(t);else if(this._adapter.notifySelect(d.value),m){if(this._notifyChange(t),this.notifyIfLoadData(t),this._isControlledComponent()){this._adapter.updateStates({activeKeys:new Set(p)}),h&&this.close(e);return}this._adapter.updateStates({activeKeys:new Set(p),selectedKeys:new Set(g)});const y=this.renderDisplayText(f);c&&this._adapter.updateInputPlaceHolder(y),h?this.close(e,f):!a&&u&&this.close(e,f)}else this.close(e)}_handleMultipleSelect(e){const{key:t}=e,{checkedKeys:r,keyEntities:a,resolvedCheckedKeys:i}=this.getStates(),{autoMergeValue:o,max:s,disableStrictly:l,leafOnly:u}=this.getProps(),c=r.has(t),d=l?this.calcCheckedStatus(!c,t):!c,{checkedKeys:f,halfCheckedKeys:h}=l?this.calcNonDisabledCheckedKeys(t,d):this.calcCheckedKeys(t,d),p=MO(o,u),g=p===ur.LEAF_ONLY_MERGE_TYPE,m=p===ur.NONE_MERGE_TYPE,y=new Set(Pi(f,a,g)),b=m?f:y;if(Rn(s)){if(m){if(r.sizes){const _=[];f.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}else if(i.sizes){const _=[];y.forEach(S=>{_.push(a[S])}),this._adapter.notifyOnExceed(_);return}}this._isControlledComponent()||this._adapter.updateStates({checkedKeys:f,halfCheckedKeys:h,resolvedCheckedKeys:y}),this._notifyChange(b),d&&this._notifySelect(b),this._adapter.updateStates({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}_notifySelect(e){const{keyEntities:t}=this.getStates(),r=[];e.forEach(i=>{if(!vt(t)&&!vt(t[i])){const o=t[i].data.value;r.push(o)}});const a=r.length===1?r[0]:r;this._adapter.notifySelect(a)}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleInputChange(e){this._adapter.updateInputValue(e);const{keyEntities:t}=this.getStates(),{treeNodeFilterProp:r,filterTreeNode:a,filterLeafOnly:i}=this.getProps();let o=[];e&&(o=Object.values(t).filter(s=>{const{key:l,_notExist:u,data:c}=s;if(u)return!1;const d=this.getItemPropPath(l,r).join();return XZ(e,c,a,!1,d)}).filter(s=>a&&!i||this._isLeaf(s)).map(s=>s.key)),this._adapter.updateStates({isSearching:!!e,filteredKeys:new Set(o)}),this._adapter.notifyOnSearch(e)}handleClear(){const{isSearching:e}=this.getStates(),{searchPlaceholder:t,placeholder:r,multiple:a}=this.getProps(),i=this._isFilterable(),o=this._isControlledComponent(),s={};a?(this._adapter.updateInputValue(""),this._adapter.notifyOnSearch(""),s.checkedKeys=new Set([]),s.halfCheckedKeys=new Set([]),s.selectedKeys=new Set([]),s.activeKeys=new Set([]),s.resolvedCheckedKeys=new Set([]),this._adapter.notifyChange([])):i&&e?(s.isSearching=!1,this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")):(i&&(s.inputValue="",s.inputPlaceHolder=t||r||"",this._adapter.updateInputValue(""),this._adapter.notifyOnSearch("")),o||(s.selectedKeys=new Set([])),s.activeKeys=new Set([]),s.filteredKeys=new Set([]),this._adapter.notifyChange([])),this._adapter.updateStates(s),this._adapter.notifyClear(),this._adapter.rePositionDropdown()}handleClearEnterPress(e){ha(e)&&this.handleClear()}getRenderData(){const{keyEntities:e,isSearching:t}=this.getStates(),r=this._isFilterable();return t&&r?this.getFilteredData():Object.values(e).filter(a=>a.parentKey===null&&!a._notExist).sort((a,i)=>parseInt(a.ind,10)-parseInt(i.ind,10))}getFilteredData(){const{treeNodeFilterProp:e,filterSorter:t}=this.getProps(),{filteredKeys:r,keyEntities:a,inputValue:i}=this.getStates(),o=[];return[...r].forEach(l=>{const u=a[l];if(!u)return;const c=this.getItemPropPath(l,[]),d=c.map(h=>h[e]),f=this._isOptionDisabled(l,a);o.push({data:u.data,pathData:c,key:l,disabled:f,searchText:d})}),ke(t)&&o.sort((l,u)=>t(l.pathData,u.pathData,i)),o}handleListScroll(e,t){const{activeKeys:r,keyEntities:a}=this.getStates(),i=[...r][r.size-1],o=i?H(a,[i,"data"],null):null;this._adapter.notifyListScroll(e,{panelIndex:t,activeNode:o})}handleTagRemove(e,t){const{keyEntities:r}=this.getStates(),{disabled:a}=this.getProps();if(a)return;const i=Object.values(r).filter(o=>Ke(o.valuePath,t))[0];!vt(i)&&!i.data.disabled&&this._handleMultipleSelect(i)}}var fIe=ss,hIe=gi,pIe="[object Boolean]";function gIe(n){return n===!0||n===!1||hIe(n)&&fIe(n)==pIe}var vIe=gIe;const nX=Ie(vIe),t2={PREFIX:`${q}-checkbox`,INNER:`${q}-checkbox-inner`,TEXT:`${q}-checkbox-text`,INPUT:`${q}-checkbox-input`,CHECKED:`${q}-checkbox-checked`,DISABLED:`${q}-checkbox-disabled`,BUTTON:`${q}-checkbox-button`,WRAPPER:""},mIe={PREFIX:`${q}-checkboxGroup`,INNER:`${q}-checkboxGroup-inner`,TEXT:`${q}-checkboxGroup-text`,INPUT:`${q}-checkboxGroup-input`,CHECKED:`${q}-checkboxGroup-checked`,DISABLED:`${q}-checkboxGroup-disabled`},$s={DIRECTION_SET:["horizontal","vertical"],TYPE_DEFAULT:"default",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",DEFAULT_DIRECTION:"vertical"};class yIe extends ze{constructor(e){super(Object.assign({},e)),this.clickState=!1,this.handleFocusVisible=t=>{const{target:r}=t;try{if(this.clickState){this.clickState=!1;return}r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Checkbox] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this.clickState=!1,this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}notifyChange(e,t){const r=this._adapter.generateEvent(e,t);this._adapter.notifyChange(r)}handleChange(e){if(this.getProp("disabled"))return;if((e==null?void 0:e.type)==="click"&&(this.clickState=!0),this._adapter.focusCheckboxEntity(),this._adapter.getIsInGroup()){this._adapter.getGroupDisabled()||this.handleChangeInGroup(e);return}const i=!this.getState("checked");this._isControlledComponent("checked")?this.notifyChange(i,e):(this.setChecked(i),this.notifyChange(i,e))}handleChangeInGroup(e){const{value:t}=this.getProps(),i=!this._adapter.getGroupValue().includes(t),o=this._adapter.generateEvent(i,e);this._adapter.notifyChange(o),this._adapter.notifyGroupChange(o)}handleEnterPress(e){ha(e)&&this.handleChange(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}destroy(){}}const bIe=yIe,J7=x.createContext({});class Vw extends D.PureComponent{blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}render(){const{indeterminate:e,checked:t,disabled:r,prefixCls:a,name:i,isPureCardType:o,addonId:s,extraId:l,focusInner:u,onInputFocus:c,onInputBlur:d}=this.props,f=a||t2.PREFIX,h=$({[`${f}-inner`]:!0,[`${f}-inner-checked`]:!!t,[`${f}-inner-pureCardType`]:o},t2.WRAPPER),p=$({[`${f}-inner-display`]:!0,[`${f}-focus`]:u,[`${f}-focus-border`]:u&&!t}),g=t?x.createElement(mTe,null):e?x.createElement(pTe,null):null,m={type:"checkbox","aria-label":this.props["aria-label"],"aria-disabled":r,"aria-checked":t,"aria-labelledby":s,"aria-describedby":l||this.props["aria-describedby"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-required":this.props["aria-required"],className:t2.INPUT,onChange:B,checked:t,disabled:r,onFocus:c,onBlur:d};return i&&(m.name=i),x.createElement("span",{className:h},x.createElement("input",Object.assign({},m,{ref:y=>{this.inputEntity=y}})),x.createElement("span",{className:p},g))}}Vw.contextType=J7;Vw.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,disabled:v.bool,onChange:v.func,children:v.node,grouped:v.bool,value:v.any,isPureCardType:v.bool,addonId:v.string,extraId:v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};Vw.defaultProps={onChange:B};const _Ie=Vw;class e0 extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{const{onChange:t}=this.props;t&&t(e)},generateEvent:(e,t)=>{const{props:r}=this;return{target:Object.assign(Object.assign({},r),{checked:e}),stopPropagation:()=>{t.stopPropagation()},preventDefault:()=>{t.preventDefault()},nativeEvent:{stopImmediatePropagation:()=>{t.nativeEvent&&typeof t.nativeEvent.stopImmediatePropagation=="function"&&t.nativeEvent.stopImmediatePropagation()}}}},getIsInGroup:()=>this.isInGroup(),getGroupValue:()=>this.context&&this.context.checkboxGroup.value||[],notifyGroupChange:e=>{this.context.checkboxGroup.onChange(e)},getGroupDisabled:()=>this.context&&this.context.checkboxGroup.disabled,setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})},focusCheckboxEntity:()=>{this.focus()}})}constructor(e){super(e),this.handleChange=r=>this.foundation.handleChange(r),this.handleEnterPress=r=>this.foundation.handleEnterPress(r),this.handleFocusVisible=r=>{this.foundation.handleFocusVisible(r)},this.handleBlur=r=>{this.foundation.handleBlur()};const t=!1;this.state={checked:e.checked||e.defaultChecked||t,addonId:e.addonId,extraId:e.extraId,focusVisible:!1},this.checkboxEntity=null,this.foundation=new bIe(this.adapter)}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}isInGroup(){return!!(this.context&&this.context.checkboxGroup&&"value"in this.props)}focus(){this.checkboxEntity&&this.checkboxEntity.focus()}blur(){this.checkboxEntity&&this.checkboxEntity.blur()}render(){const{disabled:e,style:t,prefixCls:r,className:a,indeterminate:i,children:o,onMouseEnter:s,onMouseLeave:l,extra:u,value:c,role:d,tabIndex:f,id:h,type:p}=this.props,{checked:g,addonId:m,extraId:y,focusVisible:b}=this.state,_={checked:g,disabled:e},S=this.isInGroup();if(S){if(this.context.checkboxGroup.value){const R=(this.context.checkboxGroup.value||[]).includes(c);_.checked=R}this.context.checkboxGroup.disabled&&(_.disabled=this.context.checkboxGroup.disabled||this.props.disabled);const{isCardType:P,isPureCardType:A}=this.context.checkboxGroup;_.isCardType=P,_.isPureCardType=A,_.name=this.context.checkboxGroup.name}else _.isPureCardType=p===$s.TYPE_PURECARD,_.isCardType=p===$s.TYPE_CARD||_.isPureCardType;const C=r||t2.PREFIX,w=_.isCardType||_.isPureCardType,T=$(C,{[`${C}-disabled`]:_.disabled,[`${C}-indeterminate`]:i,[`${C}-checked`]:_.checked,[`${C}-unChecked`]:!_.checked,[`${C}-cardType`]:_.isCardType,[`${C}-cardType_disabled`]:_.disabled&&_.isCardType,[`${C}-cardType_unDisabled`]:!(_.disabled&&_.isCardType),[`${C}-cardType_checked`]:_.isCardType&&_.checked&&!_.disabled,[`${C}-cardType_checked_disabled`]:_.isCardType&&_.checked&&_.disabled,[a]:!!a,[`${C}-focus`]:b&&w}),E=$(`${C}-extra`,{[`${C}-cardType_extra_noChildren`]:_.isCardType&&!o});S&&this.context.checkboxGroup.name;const O=this.props["x-semi-children-alias"]||"children",I=()=>!o&&!u?null:x.createElement("div",{className:`${C}-content`},o?x.createElement("span",{id:m,className:`${C}-addon`,"x-semi-prop":O},o):null,u?x.createElement("div",{id:y,className:E,"x-semi-prop":"extra"},u):null);return x.createElement("span",Object.assign({role:d,tabIndex:f,style:t,className:T,id:h,onMouseEnter:s,onMouseLeave:l,onClick:this.handleChange,onKeyPress:this.handleEnterPress,"aria-labelledby":this.props["aria-labelledby"]},this.getDataAttr(this.props)),x.createElement(_Ie,Object.assign({},this.props,_,{addonId:o&&m,extraId:u&&y,isPureCardType:_.isPureCardType,ref:P=>{this.checkboxEntity=P},focusInner:b&&!w,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),I())}}e0.contextType=J7;e0.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,checked:v.bool,defaultChecked:v.bool,disabled:v.bool,indeterminate:v.bool,onChange:v.func,value:v.any,style:v.object,className:v.string,prefixCls:v.string,onMouseEnter:v.func,onMouseLeave:v.func,extra:v.node,index:v.number,"aria-label":v.string,tabIndex:v.number,preventScroll:v.bool,type:v.string};e0.defaultProps={defaultChecked:!1,indeterminate:!1,onChange:B,onMouseEnter:B,onMouseLeave:B,type:"default"};e0.elementType="Checkbox";const Ff=e0;class eA extends ze{static get checkboxGroupDefaultAdapter(){return{}}constructor(e){super(Object.assign(Object.assign({},eA.checkboxGroupDefaultAdapter),e))}init(){const{defaultValue:e,value:t}=this.getProps();typeof e<"u"&&!Array.isArray(e)&&_n(!0,"Warning: [Semi CheckboxGroup] defaultValue should be an Array"),typeof t<"u"&&!Array.isArray(t)&&_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array")}notifyChange(e){this._adapter.notifyChange(e)}handleChange(e){const t=this.getState("value");let r=[];Array.isArray(t)||(r=[t]),e.target.checked?r=[...t,e.target.value]:r=t.filter((i,o)=>i!==e.target.value),"value"in this.getProps()?this.notifyChange(r):(this._adapter.updateGroupValue(r),this.notifyChange(r))}getFormatName(){return this.getProp("name")||"default"}handlePropValueChange(e){Array.isArray(e)?this._adapter.updateGroupValue(e):(typeof e>"u"&&this._adapter.updateGroupValue([]),_n(!0,"Warning: [Semi CheckboxGroup] value should be an Array"))}destroy(){}}const SIe=eA;class tA extends Pe{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateGroupValue:e=>{this.setState({value:e})},notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}constructor(e){super(e),this.state={value:e.value||e.defaultValue},this.foundation=new SIe(this.adapter),this.onChange=this.onChange.bind(this)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){Ke(e.value,this.props.value)||this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}onChange(e){this.foundation.handleChange(e)}render(){const{children:e,options:t,prefixCls:r,direction:a,className:i,id:o,style:s,type:l,disabled:u}=this.props,c=l===$s.TYPE_PURECARD,d=l===$s.TYPE_CARD||c,f=r||mIe.PREFIX,h=$({[f]:!0,[`${f}-wrapper`]:!0,[`${f}-${a}`]:a,[`${f}-${a}-cardType`]:a&&d,[`${f}-${a}-pureCardType`]:a&&c},i),p=this.state.value.slice();let g;return t?g=(t||[]).map((m,y)=>typeof m=="string"?x.createElement(Ff,{role:"listitem",key:y,disabled:this.props.disabled,value:m,prefixCls:r},m):x.createElement(Ff,{role:"listitem",key:y,disabled:m.disabled||this.props.disabled,value:m.value,prefixCls:r,extra:m.extra,className:m.className,style:m.style,onChange:m.onChange},m.label)):e&&(g=x.Children.toArray(e).map((m,y)=>x.cloneElement(m,{key:y,role:"listitem"}))),x.createElement("div",Object.assign({id:o,role:"list","aria-label":this.props["aria-label"],className:h,style:s,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"]},this.getDataAttr(this.props)),x.createElement(J7.Provider,{value:{checkboxGroup:{onChange:this.onChange,value:p,disabled:this.props.disabled,name:this.foundation.getFormatName(),isCardType:d,isPureCardType:c}}},g))}}tA.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,defaultValue:v.array,disabled:v.bool,name:v.string,options:v.array,value:v.array,onChange:v.func,children:v.node,prefixCls:v.string,direction:v.oneOf($s.DIRECTION_SET),className:v.string,type:v.oneOf([$s.TYPE_DEFAULT,$s.TYPE_CARD,$s.TYPE_PURECARD]),style:v.object};tA.defaultProps={disabled:!1,onChange:()=>{},type:$s.TYPE_DEFAULT,defaultValue:[],direction:$s.DEFAULT_DIRECTION};const nA=tA;class RO extends Ff{}RO.Group=nA;function LO(){return LO=Object.assign?Object.assign.bind():function(n){for(var e=1;e=e?n.call(null):a.id=requestAnimationFrame(r)}var a={id:requestAnimationFrame(r)};return a}var u5=-1;function Zk(n){if(n===void 0&&(n=!1),u5===-1||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),u5=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return u5}var xh=null;function Xk(n){if(n===void 0&&(n=!1),xh===null||n){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?xh="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?xh="negative":xh="positive-ascending"),document.body.removeChild(e),xh}return xh}var OIe=150,IIe=function(e,t){return e};function rX(n){var e,t=n.getItemOffset,r=n.getEstimatedTotalSize,a=n.getItemSize,i=n.getOffsetForIndexAndAlignment,o=n.getStartIndexForOffset,s=n.getStopIndexForStartIndex,l=n.initInstanceProps,u=n.shouldResetStyleCacheOnItemSizeChange,c=n.validateProps;return e=function(d){CIe(f,d);function f(p){var g;return g=d.call(this,p)||this,g._instanceProps=l(g.props,Se(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Se(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Jd(function(m,y,b,_){return g.props.onItemsRendered({overscanStartIndex:m,overscanStopIndex:y,visibleStartIndex:b,visibleStopIndex:_})}),g._callOnScroll=void 0,g._callOnScroll=Jd(function(m,y,b){return g.props.onScroll({scrollDirection:m,scrollOffset:y,scrollUpdateWasRequested:b})}),g._getItemStyle=void 0,g._getItemStyle=function(m){var y=g.props,b=y.direction,_=y.itemSize,S=y.layout,C=g._getItemStyleCache(u&&_,u&&S,u&&b),w;if(C.hasOwnProperty(m))w=C[m];else{var T=t(g.props,m,g._instanceProps),E=a(g.props,m,g._instanceProps),O=b==="horizontal"||S==="horizontal",I=b==="rtl",P=O?T:0;C[m]=w={position:"absolute",left:I?void 0:P,right:I?P:void 0,top:O?0:T,height:O?"100%":E,width:O?E:"100%"}}return w},g._getItemStyleCache=void 0,g._getItemStyleCache=Jd(function(m,y,b){return{}}),g._onScrollHorizontal=function(m){var y=m.currentTarget,b=y.clientWidth,_=y.scrollLeft,S=y.scrollWidth;g.setState(function(C){if(C.scrollOffset===_)return null;var w=g.props.direction,T=_;if(w==="rtl")switch(Xk()){case"negative":T=-_;break;case"positive-descending":T=S-b-_;break}return T=Math.max(0,Math.min(T,S-b)),{isScrolling:!0,scrollDirection:C.scrollOffsetw.clientWidth?Zk():0:C=w.scrollHeight>w.clientHeight?Zk():0}this.scrollTo(i(this.props,g,m,S,this._instanceProps,C))},h.componentDidMount=function(){var g=this.props,m=g.direction,y=g.initialScrollOffset,b=g.layout;if(typeof y=="number"&&this._outerRef!=null){var _=this._outerRef;m==="horizontal"||b==="horizontal"?_.scrollLeft=y:_.scrollTop=y}this._callPropsCallbacks()},h.componentDidUpdate=function(){var g=this.props,m=g.direction,y=g.layout,b=this.state,_=b.scrollOffset,S=b.scrollUpdateWasRequested;if(S&&this._outerRef!=null){var C=this._outerRef;if(m==="horizontal"||y==="horizontal")if(m==="rtl")switch(Xk()){case"negative":C.scrollLeft=-_;break;case"positive-ascending":C.scrollLeft=_;break;default:var w=C.clientWidth,T=C.scrollWidth;C.scrollLeft=T-w-_;break}else C.scrollLeft=_;else C.scrollTop=_}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Kk(this._resetIsScrollingTimeoutId)},h.render=function(){var g=this.props,m=g.children,y=g.className,b=g.direction,_=g.height,S=g.innerRef,C=g.innerElementType,w=g.innerTagName,T=g.itemCount,E=g.itemData,O=g.itemKey,I=O===void 0?IIe:O,P=g.layout,A=g.outerElementType,R=g.outerTagName,L=g.style,k=g.useIsScrolling,N=g.width,z=this.state.isScrolling,F=b==="horizontal"||P==="horizontal",j=F?this._onScrollHorizontal:this._onScrollVertical,U=this._getRangeToRender(),G=U[0],Y=U[1],Q=[];if(T>0)for(var Z=G;Z<=Y;Z++)Q.push(D.createElement(m,{data:E,key:I(Z,E),index:Z,isScrolling:k?z:void 0,style:this._getItemStyle(Z)}));var ae=r(this.props,this._instanceProps);return D.createElement(A||R||"div",{className:y,onScroll:j,ref:this._outerRefSetter,style:LO({position:"relative",height:_,width:N,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:b},L)},D.createElement(C||w||"div",{children:Q,ref:S,style:{height:F?"100%":ae,pointerEvents:z?"none":void 0,width:F?ae:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var m=this._getRangeToRender(),y=m[0],b=m[1],_=m[2],S=m[3];this._callOnItemsRendered(y,b,_,S)}}if(typeof this.props.onScroll=="function"){var C=this.state,w=C.scrollDirection,T=C.scrollOffset,E=C.scrollUpdateWasRequested;this._callOnScroll(w,T,E)}},h._getRangeToRender=function(){var g=this.props,m=g.itemCount,y=g.overscanCount,b=this.state,_=b.isScrolling,S=b.scrollDirection,C=b.scrollOffset;if(m===0)return[0,0,0,0];var w=o(this.props,C,this._instanceProps),T=s(this.props,w,C,this._instanceProps),E=!_||S==="backward"?Math.max(1,y):1,O=!_||S==="forward"?Math.max(1,y):1;return[Math.max(0,w-E),Math.max(0,Math.min(m-1,T+O)),w,T]},f}(D.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var PIe=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},DIe=50,bp=function(e,t,r){var a=e,i=a.itemSize,o=r.itemMetadataMap,s=r.lastMeasuredIndex;if(t>s){var l=0;if(s>=0){var u=o[s];l=u.offset+u.size}for(var c=s+1;c<=t;c++){var d=i(c);o[c]={offset:l,size:d},l+=d}r.lastMeasuredIndex=t}return o[t]},AIe=function(e,t,r){var a=t.itemMetadataMap,i=t.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=r?aX(e,t,i,0,r):MIe(e,t,Math.max(0,i),r)},aX=function(e,t,r,a,i){for(;a<=r;){var o=a+Math.floor((r-a)/2),s=bp(e,o,t).offset;if(s===i)return o;si&&(r=o-1)}return a>0?a-1:0},MIe=function(e,t,r,a){for(var i=e.itemCount,o=1;r=r&&(o=r-1),o>=0){var l=a[o];s=l.offset+l.size}var u=r-o-1,c=u*i;return s+c},RIe=rX({getItemOffset:function(e,t,r){return bp(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:qk,getOffsetForIndexAndAlignment:function(e,t,r,a,i,o){var s=e.direction,l=e.height,u=e.layout,c=e.width,d=s==="horizontal"||u==="horizontal",f=d?c:l,h=bp(e,t,i),p=qk(e,i),g=Math.max(0,Math.min(p-f,h.offset)),m=Math.max(0,h.offset-f+h.size+o);switch(r==="smart"&&(a>=m-f&&a<=g+f?r="auto":r="center"),r){case"start":return g;case"end":return m;case"center":return Math.round(m+(g-m)/2);case"auto":default:return a>=m&&a<=g?a:a=y-p&&a<=m+p?r="auto":r="center"),r){case"start":return m;case"end":return y;case"center":{var b=Math.round(y+(m-y)/2);return bg+Math.floor(p/2)?g:b}case"auto":default:return a>=y&&a<=m?a:a{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},kIe=LIe,Ut=eX.PREFIX_OPTION;let zw=class extends D.PureComponent{constructor(){super(...arguments),this.onClick=(e,t)=>{const{onItemClick:r}=this.props;t.data.disabled||"disabled"in t&&t.disabled||r(e,t)},this.handleItemEnterPress=(e,t)=>{ha(e)&&this.onClick(e,t)},this.onHover=(e,t)=>{const{showNext:r,onItemHover:a}=this.props;t.data.disabled||r===ur.SHOW_NEXT_BY_HOVER&&a(e,t)},this.onCheckboxChange=(e,t)=>{const{onItemCheckboxClick:r}=this.props;e.stopPropagation(),e.nativeEvent&&typeof e.nativeEvent.stopImmediatePropagation=="function"&&e.nativeEvent.stopImmediatePropagation(),r(t)},this.getItemStatus=e=>{const{activeKeys:t,selectedKeys:r,loadedKeys:a,loadingKeys:i}=this.props,o={active:!1,selected:!1,loading:!1};return t.has(e)&&(o.active=!0),r.has(e)&&(o.selected=!0),i.has(e)&&!a.has(e)&&(o.loading=!0),o},this.renderIcon=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=a=>a+(t?` ${Ut}-icon-left`:"");switch(e){case"child":return x.createElement(sg,{className:r(`${Ut}-icon ${Ut}-icon-expand`)});case"tick":return x.createElement(lg,{className:r(`${Ut}-icon ${Ut}-icon-active`)});case"loading":return x.createElement(Jl,{wrapperClassName:r(`${Ut}-spin-icon`)});case"empty":return x.createElement("span",{"aria-hidden":!0,className:r(`${Ut}-icon ${Ut}-icon-empty`)});default:return null}},this.highlight=e=>{const t=[],{keyword:r,separator:a}=this.props;return e.forEach((i,o)=>{typeof i=="string"&&Fs(i,r)?i.split(r).forEach((s,l)=>{l>0&&t.push(x.createElement("span",{className:`${Ut}-label-highlight`,key:`${l}-${o}`},r)),t.push(s)}):t.push(i),o!==e.length-1&&t.push(a)}),t},this.renderFlattenOptionItem=(e,t,r)=>{var a;const{multiple:i,selectedKeys:o,checkedKeys:s,halfCheckedKeys:l,keyword:u,filterRender:c,virtualize:d}=this.props,{searchText:f,key:h,disabled:p,pathData:g}=e,m=o.has(h),y=$(Ut,{[`${Ut}-flatten`]:!c,[`${Ut}-disabled`]:p,[`${Ut}-select`]:m&&!i}),b=C=>{this.onClick(C,e)},_=C=>this.handleItemEnterPress(C,e),S=C=>this.onCheckboxChange(C,e);if(c){const C={className:y,inputValue:u,disabled:p,data:g,checkStatus:{checked:s.has(e.key),halfChecked:l.has(e.key)},selected:m,onClick:b,onCheck:S},w=c(C),T=d?{key:h,style:Object.assign(Object.assign({},(a=w.props.style)!==null&&a!==void 0?a:{}),r)}:{key:h};return x.cloneElement(w,T)}return x.createElement("li",{role:"menuitem",className:y,style:r,key:h,onClick:b,onKeyPress:_},x.createElement("span",{className:`${Ut}-label`},!i&&this.renderIcon("empty"),i&&x.createElement(RO,{onChange:S,disabled:p,indeterminate:l.has(e.key),checked:s.has(e.key),className:`${Ut}-label-checkbox`}),this.highlight(f)))},this.renderFlattenOption=e=>{const{virtualize:t}=this.props;return x.createElement("ul",{className:`${Ut}-list`,key:"flatten-list"},t?this.renderVirtualizeList(e):e.map(a=>this.renderFlattenOptionItem(a)))},this.renderVirtualizeList=e=>{var t;const{direction:r}=this.context,{virtualize:a}=this.props;return x.createElement(jw,{height:a.height,itemCount:e.length,itemSize:a.itemSize,itemData:{visibleOptions:e,renderOption:this.renderFlattenOptionItem},width:(t=a.width)!==null&&t!==void 0?t:"100%",style:{direction:r}},kIe)}}renderItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const{multiple:r,checkedKeys:a,halfCheckedKeys:i}=this.props;let o;const s=t.length;return t.push(x.createElement("ul",{role:"menu",className:`${Ut}-list`,key:e[0].key,onScroll:l=>this.props.onListScroll(l,s)},e.map(l=>{const{data:u,key:c,parentKey:d}=l,{children:f,label:h,disabled:p,isLeaf:g}=u,{active:m,selected:y,loading:b}=this.getItemStatus(c),_=!!f&&f.length,S=_||this.props.loadData&&!g;m&&_&&(o=l);const C=$(Ut,{[`${Ut}-active`]:m&&!y,[`${Ut}-select`]:y&&!r,[`${Ut}-disabled`]:p}),w=d?{"aria-owns":`cascaderItem-${d}`}:{};return x.createElement("li",Object.assign({role:"menuitem",id:`cascaderItem-${c}`,"aria-expanded":m,"aria-haspopup":!!S,"aria-disabled":p},w,{className:C,key:c,onClick:T=>{this.onClick(T,l)},onKeyPress:T=>this.handleItemEnterPress(T,l),onMouseEnter:T=>{this.onHover(T,l)}}),x.createElement("span",{className:`${Ut}-label`},y&&!r&&this.renderIcon("tick"),!y&&!r&&this.renderIcon("empty"),r&&x.createElement(RO,{onChange:T=>this.onCheckboxChange(T,l),disabled:p,indeterminate:i.has(l.key),checked:a.has(l.key),className:`${Ut}-label-checkbox`}),x.createElement("span",null,h)),S?this.renderIcon(b?"loading":"child",!0):null)}))),o&&t.concat(this.renderItem(o.children,t)),t}renderEmpty(){const{emptyContent:e}=this.props;return x.createElement(hn,{componentName:"Cascader"},t=>x.createElement("ul",{className:`${Ut} ${Ut}-empty`,key:"empty-list"},x.createElement("span",{className:`${Ut}-label`,"x-semi-prop":"emptyContent"},e||t.emptyText)))}render(){const{data:e,searchable:t}=this.props,{direction:r}=this.context,a=!e||!e.length;let i;const o=$({[`${Ut}-lists`]:!0,[`${Ut}-lists-rtl`]:r==="rtl",[`${Ut}-lists-empty`]:a});return a?i=this.renderEmpty():i=t?this.renderFlattenOption(e):this.renderItem(e),x.createElement("div",{className:o},i)}};zw.contextType=Fr;zw.propTypes={data:v.array,emptyContent:v.node,searchable:v.bool,onItemClick:v.func,onItemHover:v.func,multiple:v.bool,showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),checkedKeys:v.object,halfCheckedKeys:v.object,onItemCheckboxClick:v.func,separator:v.string,keyword:v.string,virtualize:v.object};zw.defaultProps={empty:!1};const iX={PREFIX:`${q}-tag`},Yg={TAG_SIZE:["default","small","large"],TAG_COLOR:["grey","red","pink","purple","violet","indigo","blue","light-blue","cyan","teal","green","light-green","lime","yellow","amber","orange","white"],TAG_TYPE:["light","solid","ghost"],AVATAR_SHAPE:["square","circle"]};var NIe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.close(P,r,t)},x.createElement(Ky,{size:"small"})):null,O=Xe(r),I=$(`${na}-content`,`${na}-content-${O?"ellipsis":"center"}`);return x.createElement("div",Object.assign({"aria-label":this.props["aria-label"]||O?`${o?"Closable ":""}Tag: ${r}`:""},T),m?x.createElement("div",{className:`${na}-prefix-icon`},m):null,h?this.renderAvatar():null,x.createElement("div",{className:I},r),y?x.createElement("div",{className:`${na}-suffix-icon`},y):null,E)}}ca.defaultProps={size:sX[0],color:oX[0],closable:!1,type:lX[0],onClose:()=>{},onClick:()=>{},onMouseEnter:()=>{},style:{},className:"",shape:"square",avatarShape:"square",prefixIcon:null,suffixIcon:null};ca.propTypes={children:v.node,tagKey:v.oneOfType([v.string,v.number]),size:v.oneOf(sX),color:v.oneOf(oX),type:v.oneOf(lX),closable:v.bool,visible:v.bool,onClose:v.func,onClick:v.func,prefixIcon:v.node,suffixIcon:v.node,style:v.object,className:v.string,avatarSrc:v.string,avatarShape:v.oneOf(FIe),"aria-label":v.string};const $Ie={PREFIX:`${q}-tagInput`},Qk={SIZE_SET:["large","default","small"],STATUS:["success","default","error","warning"]},VIe=(n,e)=>{let t=[];if(Xe(e)||Rn(e))t=n.split(e);else if(r7(e)){const r=e[0];t=n;for(let a=1;a{const{value:r}=t.target,{entering:a}=this.getStates();a?this._onInputChange(r,t):this._checkInputChangeValid(r)&&this._onInputChange(r,t)},this.handleInputCompositionStart=t=>{const{maxLength:r}=this.getProps();Rn(r)&&this._adapter.setEntering(!0)},this.handleInputCompositionEnd=t=>{const{value:r}=t.target,{maxLength:a,onInputExceed:i,separator:o}=this.getProps();if(!Rn(a))return;this._adapter.setEntering(!1);let s=!0;const l=_b(r,o);let u=0;for(;ua){s=!1,ke(i)&&i(r);break}if(s)this._adapter.setInputValue(r);else{const c=l.slice(0,u);u{const{maxLength:r,onInputExceed:a,separator:i}=this._adapter.getProps(),{inputValue:o}=this._adapter.getStates();let s=!0;if(Rn(r)){const l=_b(t,i),u=_b(o,i),c=Math.max(l.length,u.length);for(let d=0;du[d].length)&&l[d].length>r){s=!1,ke(a)&&a(t);break}}return s},this.handleKeyDown=t=>{const{inputValue:r,tagsArray:a}=this._adapter.getStates(),i=t.keyCode;i===Rr.ENTER&&(t.preventDefault(),r!==""&&this._handleAddTags(t));const{length:o}=a;if(i===Rr.BACKSPACE&&r===""&&o>0){const s=a.slice(0,o-1),l=a[o-1];this._onRemove(s,l,o-1)}this._adapter.notifyKeyDown(t)}}_handleAddTags(e){const{separator:t,max:r,onExceed:a,allowDuplicates:i}=this._adapter.getProps(),{inputValue:o,tagsArray:s}=this._adapter.getStates();let l=_b(o,t);l=l.filter((c,d)=>!i&&(s.includes(c)||l.indexOf(c)!==d)?!1:Xe(c)&&c.trim()!=="");let u=s.concat(l);Rn(r)&&u.length>r&&(ke(a)&&a(u),u=u.slice(0,r),l=l.slice(0,r-s.length)),l.length>0&&this._onAdd(u,l),this._onInputChange("",e)}handleInputBlur(e){const{addOnBlur:t}=this._adapter.getProps();t===!0&&this._handleAddTags(e),this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputFocus(e){this._adapter.setFocusing(!0),this._adapter.notifyFocus(e)}handleClearEnterPress(e){ha(e)&&this.handleClearBtn(e)}handleClearBtn(e){const{inputValue:t,tagsArray:r}=this._adapter.getStates();r.length>0&&(this._adapter.setTagsArray([]),this._adapter.notifyTagChange([])),t.length>0&&this._onInputChange("",e),e.stopPropagation()}handleTagClose(e){const{tagsArray:t}=this._adapter.getStates(),r=[...t];r.splice(e,1);const a=t[e];this._onRemove(r,a,e)}handleInputMouseEnter(){this._adapter.setHovering(!0)}handleInputMouseLeave(){this._adapter.setHovering(!1)}handleClick(e){const{disabled:t}=this.getProps();if(t)return;this._adapter.getClickOutsideHandler()||(this._adapter.setActive(!0),this._adapter.registerClickOutsideHandler(a=>this.clickOutsideCallBack()))}clickOutsideCallBack(){this._adapter.unregisterClickOutsideHandler(),this._adapter.setActive(!1)}handleClickPrefixOrSuffix(e){const{disabled:t}=this._adapter.getProps(),{isFocus:r}=this._adapter.getStates();!t&&!r&&this._adapter.toggleFocusing(!0)}handlePreventMouseDown(e){e&&ke(e.preventDefault)&&e.preventDefault()}_onRemove(e,t,r){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagRemove(t,r)}_onAdd(e,t){this._isControlledComponent()||this._adapter.setTagsArray(e),this._adapter.notifyTagChange(e),this._adapter.notifyTagAdd(t)}_onInputChange(e,t){this._adapter.setInputValue(e),this._adapter.notifyInputChange(e,t)}handleSortEnd(e){const{oldIndex:t,newIndex:r}=e,{tagsArray:a}=this.getStates(),i=jIe(a,t,r);this._isControlledComponent()||this._adapter.setTagsArray(i),this._adapter.notifyTagChange(i)}}const BIe=zIe;function HIe(){for(var n=arguments.length,e=new Array(n),t=0;tr=>{e.forEach(a=>a(r))},e)}const Bw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Kg(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function rA(n){return"nodeType"in n}function ja(n){var e,t;return n?Kg(n)?n:rA(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function aA(n){const{Document:e}=ja(n);return n instanceof e}function t0(n){return Kg(n)?!1:n instanceof ja(n).HTMLElement}function uX(n){return n instanceof ja(n).SVGElement}function Zg(n){return n?Kg(n)?n.document:rA(n)?aA(n)?n:t0(n)||uX(n)?n.ownerDocument:document:document:document}const Co=Bw?D.useLayoutEffect:D.useEffect;function Hw(n){const e=D.useRef(n);return Co(()=>{e.current=n}),D.useCallback(function(){for(var t=arguments.length,r=new Array(t),a=0;a{n.current=setInterval(r,a)},[]),t=D.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function H1(n,e){e===void 0&&(e=[n]);const t=D.useRef(n);return Co(()=>{t.current!==n&&(t.current=n)},e),t}function n0(n,e){const t=D.useRef();return D.useMemo(()=>{const r=n(t.current);return t.current=r,r},[...e])}function PS(n){const e=Hw(n),t=D.useRef(null),r=D.useCallback(a=>{a!==t.current&&(e==null||e(a,t.current)),t.current=a},[]);return[t,r]}function DS(n){const e=D.useRef();return D.useEffect(()=>{e.current=n},[n]),e.current}let c5={};function r0(n,e){return D.useMemo(()=>{if(e)return e;const t=c5[n]==null?0:c5[n]+1;return c5[n]=t,n+"-"+t},[n,e])}function cX(n){return function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const s=Object.entries(o);for(const[l,u]of s){const c=i[l];c!=null&&(i[l]=c+n*u)}return i},{...e})}}const jp=cX(1),U1=cX(-1);function WIe(n){return"clientX"in n&&"clientY"in n}function Uw(n){if(!n)return!1;const{KeyboardEvent:e}=ja(n.target);return e&&n instanceof e}function GIe(n){if(!n)return!1;const{TouchEvent:e}=ja(n.target);return e&&n instanceof e}function AS(n){if(GIe(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return WIe(n)?{x:n.clientX,y:n.clientY}:null}const Dc=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[Dc.Translate.toString(n),Dc.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:r}=n;return e+" "+t+"ms "+r}}}),Jk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function YIe(n){return n.matches(Jk)?n:n.querySelector(Jk)}const KIe={display:"none"};function ZIe(n){let{id:e,value:t}=n;return x.createElement("div",{id:e,style:KIe},t)}function XIe(n){let{id:e,announcement:t,ariaLiveType:r="assertive"}=n;const a={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return x.createElement("div",{id:e,style:a,role:"status","aria-live":r,"aria-atomic":!0},t)}function qIe(){const[n,e]=D.useState("");return{announce:D.useCallback(r=>{r!=null&&e(r)},[]),announcement:n}}const dX=D.createContext(null);function QIe(n){const e=D.useContext(dX);D.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of ");return e(n)},[n,e])}function JIe(){const[n]=D.useState(()=>new Set),e=D.useCallback(r=>(n.add(r),()=>n.delete(r)),[n]);return[D.useCallback(r=>{let{type:a,event:i}=r;n.forEach(o=>{var s;return(s=o[a])==null?void 0:s.call(o,i)})},[n]),e]}const ePe={draggable:` - To pick up a draggable item, press the space bar. - While dragging, use the arrow keys to move the item. - Press space again to drop the item in its new position, or press escape to cancel. - `},tPe={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function nPe(n){let{announcements:e=tPe,container:t,hiddenTextDescribedById:r,screenReaderInstructions:a=ePe}=n;const{announce:i,announcement:o}=qIe(),s=r0("DndLiveRegion"),[l,u]=D.useState(!1);if(D.useEffect(()=>{u(!0)},[]),QIe(D.useMemo(()=>({onDragStart(d){let{active:f}=d;i(e.onDragStart({active:f}))},onDragMove(d){let{active:f,over:h}=d;e.onDragMove&&i(e.onDragMove({active:f,over:h}))},onDragOver(d){let{active:f,over:h}=d;i(e.onDragOver({active:f,over:h}))},onDragEnd(d){let{active:f,over:h}=d;i(e.onDragEnd({active:f,over:h}))},onDragCancel(d){let{active:f,over:h}=d;i(e.onDragCancel({active:f,over:h}))}}),[i,e])),!l)return null;const c=x.createElement(x.Fragment,null,x.createElement(ZIe,{id:r,value:a.draggable}),x.createElement(XIe,{id:s,announcement:o}));return t?Ti.createPortal(c,t):c}var mr;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(mr||(mr={}));function MS(){}function d5(n,e){return D.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function rPe(){for(var n=arguments.length,e=new Array(n),t=0;t[...e].filter(r=>r!=null),[...e])}const ts=Object.freeze({x:0,y:0});function fX(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function aPe(n,e){const t=AS(n);if(!t)return"0 0";const r={x:(t.x-e.left)/e.width*100,y:(t.y-e.top)/e.height*100};return r.x+"% "+r.y+"%"}function hX(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function iPe(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function eN(n){let{left:e,top:t,height:r,width:a}=n;return[{x:e,y:t},{x:e+a,y:t},{x:e,y:t+r},{x:e+a,y:t+r}]}function pX(n,e){if(!n||n.length===0)return null;const[t]=n;return e?t[e]:t}function tN(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const oPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=tN(e,e.left,e.top),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=fX(tN(l),a);i.push({id:s,data:{droppableContainer:o,value:u}})}}return i.sort(hX)},sPe=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=eN(e),i=[];for(const o of r){const{id:s}=o,l=t.get(s);if(l){const u=eN(l),c=a.reduce((f,h,p)=>f+fX(u[p],h),0),d=Number((c/4).toFixed(4));i.push({id:s,data:{droppableContainer:o,value:d}})}}return i.sort(hX)};function lPe(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),a=Math.min(e.left+e.width,n.left+n.width),i=Math.min(e.top+e.height,n.top+n.height),o=a-r,s=i-t;if(r{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const a=[];for(const i of r){const{id:o}=i,s=t.get(o);if(s){const l=lPe(s,e);l>0&&a.push({id:o,data:{droppableContainer:i,value:l}})}}return a.sort(iPe)};function cPe(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function gX(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:ts}function dPe(n){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i({...o,top:o.top+n*s.y,bottom:o.bottom+n*s.y,left:o.left+n*s.x,right:o.right+n*s.x}),{...t})}}const fPe=dPe(1);function vX(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function hPe(n,e,t){const r=vX(e);if(!r)return n;const{scaleX:a,scaleY:i,x:o,y:s}=r,l=n.left-o-(1-a)*parseFloat(t),u=n.top-s-(1-i)*parseFloat(t.slice(t.indexOf(" ")+1)),c=a?n.width/a:n.width,d=i?n.height/i:n.height;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l}}const pPe={ignoreTransform:!1};function Xg(n,e){e===void 0&&(e=pPe);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:c}=ja(n).getComputedStyle(n);u&&(t=hPe(t,u,c))}const{top:r,left:a,width:i,height:o,bottom:s,right:l}=t;return{top:r,left:a,width:i,height:o,bottom:s,right:l}}function nN(n){return Xg(n,{ignoreTransform:!0})}function gPe(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function vPe(n,e){return e===void 0&&(e=ja(n).getComputedStyle(n)),e.position==="fixed"}function mPe(n,e){e===void 0&&(e=ja(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const i=e[a];return typeof i=="string"?t.test(i):!1})}function Ww(n,e){const t=[];function r(a){if(e!=null&&t.length>=e||!a)return t;if(aA(a)&&a.scrollingElement!=null&&!t.includes(a.scrollingElement))return t.push(a.scrollingElement),t;if(!t0(a)||uX(a)||t.includes(a))return t;const i=ja(n).getComputedStyle(a);return a!==n&&mPe(a,i)&&t.push(a),vPe(a,i)?t:r(a.parentNode)}return n?r(n):t}function mX(n){const[e]=Ww(n,1);return e??null}function f5(n){return!Bw||!n?null:Kg(n)?n:rA(n)?aA(n)||n===Zg(n).scrollingElement?window:t0(n)?n:null:null}function yX(n){return Kg(n)?n.scrollX:n.scrollLeft}function bX(n){return Kg(n)?n.scrollY:n.scrollTop}function kO(n){return{x:yX(n),y:bX(n)}}var Ar;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(Ar||(Ar={}));function _X(n){return!Bw||!n?!1:n===document.scrollingElement}function SX(n){const e={x:0,y:0},t=_X(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},a=n.scrollTop<=e.y,i=n.scrollLeft<=e.x,o=n.scrollTop>=r.y,s=n.scrollLeft>=r.x;return{isTop:a,isLeft:i,isBottom:o,isRight:s,maxScroll:r,minScroll:e}}const yPe={x:.2,y:.2};function bPe(n,e,t,r,a){let{top:i,left:o,right:s,bottom:l}=t;r===void 0&&(r=10),a===void 0&&(a=yPe);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=SX(n),h={x:0,y:0},p={x:0,y:0},g={height:e.height*a.y,width:e.width*a.x};return!u&&i<=e.top+g.height?(h.y=Ar.Backward,p.y=r*Math.abs((e.top+g.height-i)/g.height)):!c&&l>=e.bottom-g.height&&(h.y=Ar.Forward,p.y=r*Math.abs((e.bottom-g.height-l)/g.height)),!f&&s>=e.right-g.width?(h.x=Ar.Forward,p.x=r*Math.abs((e.right-g.width-s)/g.width)):!d&&o<=e.left+g.width&&(h.x=Ar.Backward,p.x=r*Math.abs((e.left+g.width-o)/g.width)),{direction:h,speed:p}}function _Pe(n){if(n===document.scrollingElement){const{innerWidth:i,innerHeight:o}=window;return{top:0,left:0,right:i,bottom:o,width:i,height:o}}const{top:e,left:t,right:r,bottom:a}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:a,width:n.clientWidth,height:n.clientHeight}}function CX(n){return n.reduce((e,t)=>jp(e,kO(t)),ts)}function SPe(n){return n.reduce((e,t)=>e+yX(t),0)}function CPe(n){return n.reduce((e,t)=>e+bX(t),0)}function wX(n,e){if(e===void 0&&(e=Xg),!n)return;const{top:t,left:r,bottom:a,right:i}=e(n);mX(n)&&(a<=0||i<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const wPe=[["x",["left","right"],SPe],["y",["top","bottom"],CPe]];let iA=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Ww(t),a=CX(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[i,o,s]of wPe)for(const l of o)Object.defineProperty(this,l,{get:()=>{const u=s(r),c=a[i]-u;return this.rect[l]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}};class Xm{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var a;(a=this.target)==null||a.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function xPe(n){const{EventTarget:e}=ja(n);return n instanceof e?n:Zg(n)}function h5(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var no;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(no||(no={}));function rN(n){n.preventDefault()}function TPe(n){n.stopPropagation()}var wt;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter"})(wt||(wt={}));const xX={start:[wt.Space,wt.Enter],cancel:[wt.Esc],end:[wt.Space,wt.Enter]},EPe=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case wt.Right:return{...t,x:t.x+25};case wt.Left:return{...t,x:t.x-25};case wt.Down:return{...t,y:t.y+25};case wt.Up:return{...t,y:t.y-25}}};class oA{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Xm(Zg(t)),this.windowListeners=new Xm(ja(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(no.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&wX(r),t(ts)}handleKeyDown(e){if(Uw(e)){const{active:t,context:r,options:a}=this.props,{keyboardCodes:i=xX,coordinateGetter:o=EPe,scrollBehavior:s="smooth"}=a,{code:l}=e;if(i.end.includes(l)){this.handleEnd(e);return}if(i.cancel.includes(l)){this.handleCancel(e);return}const{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:ts;this.referenceCoordinates||(this.referenceCoordinates=c);const d=o(e,{active:t,context:r.current,currentCoordinates:c});if(d){const f=U1(d,c),h={x:0,y:0},{scrollableAncestors:p}=r.current;for(const g of p){const m=e.code,{isTop:y,isRight:b,isLeft:_,isBottom:S,maxScroll:C,minScroll:w}=SX(g),T=_Pe(g),E={x:Math.min(m===wt.Right?T.right-T.width/2:T.right,Math.max(m===wt.Right?T.left:T.left+T.width/2,d.x)),y:Math.min(m===wt.Down?T.bottom-T.height/2:T.bottom,Math.max(m===wt.Down?T.top:T.top+T.height/2,d.y))},O=m===wt.Right&&!b||m===wt.Left&&!_,I=m===wt.Down&&!S||m===wt.Up&&!y;if(O&&E.x!==d.x){const P=g.scrollLeft+f.x,A=m===wt.Right&&P<=C.x||m===wt.Left&&P>=w.x;if(A&&!f.y){g.scrollTo({left:P,behavior:s});return}A?h.x=g.scrollLeft-P:h.x=m===wt.Right?g.scrollLeft-C.x:g.scrollLeft-w.x,h.x&&g.scrollBy({left:-h.x,behavior:s});break}else if(I&&E.y!==d.y){const P=g.scrollTop+f.y,A=m===wt.Down&&P<=C.y||m===wt.Up&&P>=w.y;if(A&&!f.x){g.scrollTo({top:P,behavior:s});return}A?h.y=g.scrollTop-P:h.y=m===wt.Down?g.scrollTop-C.y:g.scrollTop-w.y,h.y&&g.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(e,jp(U1(d,this.referenceCoordinates),h))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}oA.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=xX,onActivation:a}=e,{active:i}=t;const{code:o}=n.nativeEvent;if(r.start.includes(o)){const s=i.activatorNode.current;return s&&n.target!==s?!1:(n.preventDefault(),a==null||a({event:n.nativeEvent}),!0)}return!1}}];function aN(n){return!!(n&&"distance"in n)}function iN(n){return!!(n&&"delay"in n)}class sA{constructor(e,t,r){var a;r===void 0&&(r=xPe(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=Zg(o),this.documentListeners=new Xm(this.document),this.listeners=new Xm(r),this.windowListeners=new Xm(ja(o)),this.initialCoordinates=(a=AS(i))!=null?a:ts,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(no.Resize,this.handleCancel),this.windowListeners.add(no.DragStart,rN),this.windowListeners.add(no.VisibilityChange,this.handleCancel),this.windowListeners.add(no.ContextMenu,rN),this.documentListeners.add(no.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(iN(t)){this.timeoutId=setTimeout(this.handleStart,t.delay);return}if(aN(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(no.Click,TPe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(no.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:a,props:i}=this,{onMove:o,options:{activationConstraint:s}}=i;if(!a)return;const l=(t=AS(e))!=null?t:ts,u=U1(a,l);if(!r&&s){if(aN(s)){if(s.tolerance!=null&&h5(u,s.tolerance))return this.handleCancel();if(h5(u,s.distance))return this.handleStart()}return iN(s)&&h5(u,s.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(l)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===wt.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const OPe={move:{name:"pointermove"},end:{name:"pointerup"}};class TX extends sA{constructor(e){const{event:t}=e,r=Zg(t.target);super(e,OPe,r)}}TX.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const IPe={move:{name:"mousemove"},end:{name:"mouseup"}};var NO;(function(n){n[n.RightClick=2]="RightClick"})(NO||(NO={}));class EX extends sA{constructor(e){super(e,IPe,Zg(e.event.target))}}EX.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===NO.RightClick?!1:(r==null||r({event:t}),!0)}}];const p5={move:{name:"touchmove"},end:{name:"touchend"}};class OX extends sA{constructor(e){super(e,p5)}static setup(){return window.addEventListener(p5.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(p5.move.name,e)};function e(){}}}OX.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:a}=t;return a.length>1?!1:(r==null||r({event:t}),!0)}}];var qm;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(qm||(qm={}));var W1;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(W1||(W1={}));function PPe(n){let{acceleration:e,activator:t=qm.Pointer,canScroll:r,draggingRect:a,enabled:i,interval:o=5,order:s=W1.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:c,delta:d,threshold:f}=n;const h=APe({delta:d,disabled:!i}),[p,g]=UIe(),m=D.useRef({x:0,y:0}),y=D.useRef({x:0,y:0}),b=D.useMemo(()=>{switch(t){case qm.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case qm.DraggableRect:return a}},[t,a,l]),_=D.useRef(null),S=D.useCallback(()=>{const w=_.current;if(!w)return;const T=m.current.x*y.current.x,E=m.current.y*y.current.y;w.scrollBy(T,E)},[]),C=D.useMemo(()=>s===W1.TreeOrder?[...u].reverse():u,[s,u]);D.useEffect(()=>{if(!i||!u.length||!b){g();return}for(const w of C){if((r==null?void 0:r(w))===!1)continue;const T=u.indexOf(w),E=c[T];if(!E)continue;const{direction:O,speed:I}=bPe(w,E,b,e,f);for(const P of["x","y"])h[P][O[P]]||(I[P]=0,O[P]=0);if(I.x>0||I.y>0){g(),_.current=w,p(S,o),m.current=I,y.current=O;return}}m.current={x:0,y:0},y.current={x:0,y:0},g()},[e,S,r,g,i,o,JSON.stringify(b),JSON.stringify(h),p,u,C,c,JSON.stringify(f)])}const DPe={x:{[Ar.Backward]:!1,[Ar.Forward]:!1},y:{[Ar.Backward]:!1,[Ar.Forward]:!1}};function APe(n){let{delta:e,disabled:t}=n;const r=DS(e);return n0(a=>{if(t||!r||!a)return DPe;const i={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[Ar.Backward]:a.x[Ar.Backward]||i.x===-1,[Ar.Forward]:a.x[Ar.Forward]||i.x===1},y:{[Ar.Backward]:a.y[Ar.Backward]||i.y===-1,[Ar.Forward]:a.y[Ar.Forward]||i.y===1}}},[t,e,r])}function MPe(n,e){const t=e!==null?n.get(e):void 0,r=t?t.node.current:null;return n0(a=>{var i;return e===null?null:(i=r??a)!=null?i:null},[r,e])}function RPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{const{sensor:a}=r,i=a.activators.map(o=>({eventName:o.eventName,handler:e(o.handler,r)}));return[...t,...i]},[]),[n,e])}var G1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(G1||(G1={}));var FO;(function(n){n.Optimized="optimized"})(FO||(FO={}));const oN=new Map;function LPe(n,e){let{dragging:t,dependencies:r,config:a}=e;const[i,o]=D.useState(null),{frequency:s,measure:l,strategy:u}=a,c=D.useRef(n),d=m(),f=H1(d),h=D.useCallback(function(y){y===void 0&&(y=[]),!f.current&&o(b=>b===null?y:b.concat(y.filter(_=>!b.includes(_))))},[f]),p=D.useRef(null),g=n0(y=>{if(d&&!t)return oN;if(!y||y===oN||c.current!==n||i!=null){const b=new Map;for(let _ of n){if(!_)continue;if(i&&i.length>0&&!i.includes(_.id)&&_.rect.current){b.set(_.id,_.rect.current);continue}const S=_.node.current,C=S?new iA(l(S),S):null;_.rect.current=C,C&&b.set(_.id,C)}return b}return y},[n,i,t,d,l]);return D.useEffect(()=>{c.current=n},[n]),D.useEffect(()=>{d||h()},[t,d]),D.useEffect(()=>{i&&i.length>0&&o(null)},[JSON.stringify(i)]),D.useEffect(()=>{d||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{h(),p.current=null},s))},[s,d,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:i!=null};function m(){switch(u){case G1.Always:return!1;case G1.BeforeDragging:return t;default:return!t}}}function lA(n,e){return n0(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function kPe(n,e){return lA(n,e)}function NPe(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function Gw(n){let{callback:e,disabled:t}=n;const r=Hw(e),a=D.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[t]);return D.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function FPe(n){return new iA(Xg(n),n)}function sN(n,e,t){e===void 0&&(e=FPe);const[r,a]=D.useReducer(s,null),i=NPe({callback(l){if(n)for(const u of l){const{type:c,target:d}=u;if(c==="childList"&&d instanceof HTMLElement&&d.contains(n)){a();break}}}}),o=Gw({callback:a});return Co(()=>{a(),n?(o==null||o.observe(n),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),i==null||i.disconnect())},[n]),r;function s(l){if(!n)return null;if(n.isConnected===!1){var u;return(u=l??t)!=null?u:null}const c=e(n);return JSON.stringify(l)===JSON.stringify(c)?l:c}}function $Pe(n){const e=lA(n);return gX(n,e)}const lN=[];function VPe(n){const e=D.useRef(n),t=n0(r=>n?r&&r!==lN&&n&&e.current&&n.parentNode===e.current.parentNode?r:Ww(n):lN,[n]);return D.useEffect(()=>{e.current=n},[n]),t}function jPe(n){const[e,t]=D.useState(null),r=D.useRef(n),a=D.useCallback(i=>{const o=f5(i.target);o&&t(s=>s?(s.set(o,kO(o)),new Map(s)):null)},[]);return D.useEffect(()=>{const i=r.current;if(n!==i){o(i);const s=n.map(l=>{const u=f5(l);return u?(u.addEventListener("scroll",a,{passive:!0}),[u,kO(u)]):null}).filter(l=>l!=null);t(s.length?new Map(s):null),r.current=n}return()=>{o(n),o(i)};function o(s){s.forEach(l=>{const u=f5(l);u==null||u.removeEventListener("scroll",a)})}},[a,n]),D.useMemo(()=>n.length?e?Array.from(e.values()).reduce((i,o)=>jp(i,o),ts):CX(n):ts,[n,e])}function uN(n,e){e===void 0&&(e=[]);const t=D.useRef(null);return D.useEffect(()=>{t.current=null},e),D.useEffect(()=>{const r=n!==ts;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?U1(n,t.current):ts}function zPe(n){D.useEffect(()=>{if(!Bw)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function BPe(n,e){return D.useMemo(()=>n.reduce((t,r)=>{let{eventName:a,handler:i}=r;return t[a]=o=>{i(o,e)},t},{}),[n,e])}function IX(n){return D.useMemo(()=>n?gPe(n):null,[n])}const g5=[];function HPe(n,e){e===void 0&&(e=Xg);const[t]=n,r=IX(t?ja(t):null),[a,i]=D.useReducer(s,g5),o=Gw({callback:i});return n.length>0&&a===g5&&i(),Co(()=>{n.length?n.forEach(l=>o==null?void 0:o.observe(l)):(o==null||o.disconnect(),i())},[n]),a;function s(){return n.length?n.map(l=>_X(l)?r:new iA(e(l),l)):g5}}function PX(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return t0(e)?e:n}function UPe(n){let{measure:e}=n;const[t,r]=D.useState(null),a=D.useCallback(u=>{for(const{target:c}of u)if(t0(c)){r(d=>{const f=e(c);return d?{...d,width:f.width,height:f.height}:f});break}},[e]),i=Gw({callback:a}),o=D.useCallback(u=>{const c=PX(u);i==null||i.disconnect(),c&&(i==null||i.observe(c)),r(c?e(c):null)},[e,i]),[s,l]=PS(o);return D.useMemo(()=>({nodeRef:s,rect:t,setRef:l}),[t,s,l])}const WPe=[{sensor:TX,options:{}},{sensor:oA,options:{}}],GPe={current:{}},n2={draggable:{measure:nN},droppable:{measure:nN,strategy:G1.WhileDragging,frequency:FO.Optimized},dragOverlay:{measure:Xg}};class Qm extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const YPe={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Qm,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:MS},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:n2,measureDroppableContainers:MS,windowRect:null,measuringScheduled:!1},DX={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:MS,draggableNodes:new Map,over:null,measureDroppableContainers:MS},a0=D.createContext(DX),AX=D.createContext(YPe);function KPe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Qm}}}function ZPe(n,e){switch(e.type){case mr.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case mr.DragMove:return n.draggable.active?{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}}:n;case mr.DragEnd:case mr.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case mr.RegisterDroppable:{const{element:t}=e,{id:r}=t,a=new Qm(n.droppable.containers);return a.set(r,t),{...n,droppable:{...n.droppable,containers:a}}}case mr.SetDroppableDisabled:{const{id:t,key:r,disabled:a}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Qm(n.droppable.containers);return o.set(t,{...i,disabled:a}),{...n,droppable:{...n.droppable,containers:o}}}case mr.UnregisterDroppable:{const{id:t,key:r}=e,a=n.droppable.containers.get(t);if(!a||r!==a.key)return n;const i=new Qm(n.droppable.containers);return i.delete(t),{...n,droppable:{...n.droppable,containers:i}}}default:return n}}function XPe(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:a}=D.useContext(a0),i=DS(r),o=DS(t==null?void 0:t.id);return D.useEffect(()=>{if(!e&&!r&&i&&o!=null){if(!Uw(i)||document.activeElement===i.target)return;const s=a.get(o);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[l.current,u.current]){if(!c)continue;const d=YIe(c);if(d){d.focus();break}}})}},[r,e,a,o,i]),null}function MX(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((a,i)=>i({transform:a,...r}),t):t}function qPe(n){return D.useMemo(()=>({draggable:{...n2.draggable,...n==null?void 0:n.draggable},droppable:{...n2.droppable,...n==null?void 0:n.droppable},dragOverlay:{...n2.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function QPe(n){let{activeNode:e,measure:t,initialRect:r,config:a=!0}=n;const i=D.useRef(!1),{x:o,y:s}=typeof a=="boolean"?{x:a,y:a}:a;Co(()=>{if(!o&&!s||!e){i.current=!1;return}if(i.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const c=t(u),d=gX(c,r);if(o||(d.x=0),s||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=mX(u);f&&f.scrollBy({top:d.y,left:d.x})}},[e,o,s,r,t])}const Yw=D.createContext({...ts,scaleX:1,scaleY:1});var ju;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(ju||(ju={}));const JPe=D.memo(function(e){var t,r,a,i;let{id:o,accessibility:s,autoScroll:l=!0,children:u,sensors:c=WPe,collisionDetection:d=uPe,measuring:f,modifiers:h,...p}=e;const g=D.useReducer(ZPe,void 0,KPe),[m,y]=g,[b,_]=JIe(),[S,C]=D.useState(ju.Uninitialized),w=S===ju.Initialized,{draggable:{active:T,nodes:E,translate:O},droppable:{containers:I}}=m,P=T?E.get(T):null,A=D.useRef({initial:null,translated:null}),R=D.useMemo(()=>{var In;return T!=null?{id:T,data:(In=P==null?void 0:P.data)!=null?In:GPe,rect:A}:null},[T,P]),L=D.useRef(null),[k,N]=D.useState(null),[z,F]=D.useState(null),j=H1(p,Object.values(p)),U=r0("DndDescribedBy",o),G=D.useMemo(()=>I.getEnabled(),[I]),Y=qPe(f),{droppableRects:Q,measureDroppableContainers:Z,measuringScheduled:ae}=LPe(G,{dragging:w,dependencies:[O.x,O.y],config:Y.droppable}),se=MPe(E,T),ee=D.useMemo(()=>z?AS(z):null,[z]),ne=Qc(),re=kPe(se,Y.draggable.measure);QPe({activeNode:T?E.get(T):null,config:ne.layoutShiftCompensation,initialRect:re,measure:Y.draggable.measure});const te=sN(se,Y.draggable.measure,re),oe=sN(se?se.parentElement:null),pe=D.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:I,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),We=I.getNodeFor((t=pe.current.over)==null?void 0:t.id),Ce=UPe({measure:Y.dragOverlay.measure}),Je=(r=Ce.nodeRef.current)!=null?r:se,Ve=w?(a=Ce.rect)!=null?a:te:null,Rt=!!(Ce.nodeRef.current&&Ce.rect),$n=$Pe(Rt?null:te),Vn=IX(Je?ja(Je):null),on=VPe(w?We??se:null),wn=HPe(on),mi=MX(h,{transform:{x:O.x-$n.x,y:O.y-$n.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:Ve,over:pe.current.over,overlayNodeRect:Ce.rect,scrollableAncestors:on,scrollableAncestorRects:wn,windowRect:Vn}),Ba=ee?jp(ee,O):null,vu=jPe(on),mh=uN(vu),yh=uN(vu,[te]),fs=jp(mi,mh),qr=Ve?fPe(Ve,mi):null,Vr=R&&qr?d({active:R,collisionRect:qr,droppableRects:Q,droppableContainers:G,pointerCoordinates:Ba}):null,hs=pX(Vr,"id"),[Qr,Hi]=D.useState(null),ps=Rt?mi:jp(mi,yh),ba=cPe(ps,(i=Qr==null?void 0:Qr.rect)!=null?i:null,te),hl=D.useCallback((In,jn)=>{let{sensor:sr,options:zn}=jn;if(L.current==null)return;const Bn=E.get(L.current);if(!Bn)return;const pr=In.nativeEvent,Or=new sr({active:L.current,activeNode:Bn,event:pr,options:zn,context:pe,onStart(Ha){const Jc=L.current;if(Jc==null)return;const ut=E.get(Jc);if(!ut)return;const{onDragStart:tn}=j.current,Hn={active:{id:Jc,data:ut.data,rect:A}};Ti.unstable_batchedUpdates(()=>{tn==null||tn(Hn),C(ju.Initializing),y({type:mr.DragStart,initialCoordinates:Ha,active:Jc}),b({type:"onDragStart",event:Hn})})},onMove(Ha){y({type:mr.DragMove,coordinates:Ha})},onEnd:gl(mr.DragEnd),onCancel:gl(mr.DragCancel)});Ti.unstable_batchedUpdates(()=>{N(Or),F(In.nativeEvent)});function gl(Ha){return async function(){const{active:ut,collisions:tn,over:Hn,scrollAdjustedTranslate:nn}=pe.current;let Ir=null;if(ut&&nn){const{cancelDrop:sn}=j.current;Ir={activatorEvent:pr,active:ut,collisions:tn,delta:nn,over:Hn},Ha===mr.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Ir))&&(Ha=mr.DragCancel)}L.current=null,Ti.unstable_batchedUpdates(()=>{y({type:Ha}),C(ju.Uninitialized),Hi(null),N(null),F(null);const sn=Ha===mr.DragEnd?"onDragEnd":"onDragCancel";if(Ir){const vn=j.current[sn];vn==null||vn(Ir),b({type:sn,event:Ir})}})}}},[E]),mu=D.useCallback((In,jn)=>(sr,zn)=>{const Bn=sr.nativeEvent,pr=E.get(zn);if(L.current!==null||!pr||Bn.dndKit||Bn.defaultPrevented)return;const Or={active:pr};In(sr,jn.options,Or)===!0&&(Bn.dndKit={capturedBy:jn.sensor},L.current=zn,hl(sr,jn))},[E,hl]),pl=RPe(c,mu);zPe(c),Co(()=>{te&&S===ju.Initializing&&C(ju.Initialized)},[te,S]),D.useEffect(()=>{const{onDragMove:In}=j.current,{active:jn,activatorEvent:sr,collisions:zn,over:Bn}=pe.current;if(!jn||!sr)return;const pr={active:jn,activatorEvent:sr,collisions:zn,delta:{x:fs.x,y:fs.y},over:Bn};Ti.unstable_batchedUpdates(()=>{In==null||In(pr),b({type:"onDragMove",event:pr})})},[fs.x,fs.y]),D.useEffect(()=>{const{active:In,activatorEvent:jn,collisions:sr,droppableContainers:zn,scrollAdjustedTranslate:Bn}=pe.current;if(!In||L.current==null||!jn||!Bn)return;const{onDragOver:pr}=j.current,Or=zn.get(hs),gl=Or&&Or.rect.current?{id:Or.id,rect:Or.rect.current,data:Or.data,disabled:Or.disabled}:null,Ha={active:In,activatorEvent:jn,collisions:sr,delta:{x:Bn.x,y:Bn.y},over:gl};Ti.unstable_batchedUpdates(()=>{Hi(gl),pr==null||pr(Ha),b({type:"onDragOver",event:Ha})})},[hs]),Co(()=>{pe.current={activatorEvent:z,active:R,activeNode:se,collisionRect:qr,collisions:Vr,droppableRects:Q,draggableNodes:E,draggingNode:Je,draggingNodeRect:Ve,droppableContainers:I,over:Qr,scrollableAncestors:on,scrollAdjustedTranslate:fs},A.current={initial:Ve,translated:qr}},[R,se,Vr,qr,E,Je,Ve,Q,I,Qr,on,fs]),PPe({...ne,delta:O,draggingRect:qr,pointerCoordinates:Ba,scrollableAncestors:on,scrollableAncestorRects:wn});const qc=D.useMemo(()=>({active:R,activeNode:se,activeNodeRect:te,activatorEvent:z,collisions:Vr,containerNodeRect:oe,dragOverlay:Ce,draggableNodes:E,droppableContainers:I,droppableRects:Q,over:Qr,measureDroppableContainers:Z,scrollableAncestors:on,scrollableAncestorRects:wn,measuringConfiguration:Y,measuringScheduled:ae,windowRect:Vn}),[R,se,te,z,Vr,oe,Ce,E,I,Q,Qr,Z,on,wn,Y,ae,Vn]),gs=D.useMemo(()=>({activatorEvent:z,activators:pl,active:R,activeNodeRect:te,ariaDescribedById:{draggable:U},dispatch:y,draggableNodes:E,over:Qr,measureDroppableContainers:Z}),[z,pl,R,te,y,U,E,Qr,Z]);return x.createElement(dX.Provider,{value:_},x.createElement(a0.Provider,{value:gs},x.createElement(AX.Provider,{value:qc},x.createElement(Yw.Provider,{value:ba},u)),x.createElement(XPe,{disabled:(s==null?void 0:s.restoreFocus)===!1})),x.createElement(nPe,{...s,hiddenTextDescribedById:U}));function Qc(){const In=(k==null?void 0:k.autoScrollEnabled)===!1,jn=typeof l=="object"?l.enabled===!1:l===!1,sr=w&&!In&&!jn;return typeof l=="object"?{...l,enabled:sr}:{enabled:sr}}}),eDe=D.createContext(null),cN="button",tDe="Droppable";function nDe(n){let{id:e,data:t,disabled:r=!1,attributes:a}=n;const i=r0(tDe),{activators:o,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=D.useContext(a0),{role:h=cN,roleDescription:p="draggable",tabIndex:g=0}=a??{},m=(l==null?void 0:l.id)===e,y=D.useContext(m?Yw:eDe),[b,_]=PS(),[S,C]=PS(),w=BPe(o,e),T=H1(t);Co(()=>(d.set(e,{id:e,key:i,node:b,activatorNode:S,data:T}),()=>{const O=d.get(e);O&&O.key===i&&d.delete(e)}),[d,e]);const E=D.useMemo(()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":m&&h===cN?!0:void 0,"aria-roledescription":p,"aria-describedby":c.draggable}),[r,h,g,m,p,c.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:m,listeners:r?void 0:w,node:b,over:f,setNodeRef:_,setActivatorNodeRef:C,transform:y}}function RX(){return D.useContext(AX)}const rDe="Droppable",aDe={timeout:25};function iDe(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:a}=n;const i=r0(rDe),{active:o,dispatch:s,over:l,measureDroppableContainers:u}=D.useContext(a0),c=D.useRef({disabled:t}),d=D.useRef(!1),f=D.useRef(null),h=D.useRef(null),{disabled:p,updateMeasurementsFor:g,timeout:m}={...aDe,...a},y=H1(g??r),b=D.useCallback(()=>{if(!d.current){d.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null},m)},[m]),_=Gw({callback:b,disabled:p||!o}),S=D.useCallback((E,O)=>{_&&(O&&(_.unobserve(O),d.current=!1),E&&_.observe(E))},[_]),[C,w]=PS(S),T=H1(e);return D.useEffect(()=>{!_||!C.current||(_.disconnect(),d.current=!1,_.observe(C.current))},[C,_]),Co(()=>(s({type:mr.RegisterDroppable,element:{id:r,key:i,disabled:t,node:C,rect:f,data:T}}),()=>s({type:mr.UnregisterDroppable,key:i,id:r})),[r]),D.useEffect(()=>{t!==c.current.disabled&&(s({type:mr.SetDroppableDisabled,id:r,key:i,disabled:t}),c.current.disabled=t)},[r,i,t,s]),{active:o,rect:f,isOver:(l==null?void 0:l.id)===r,node:C,over:l,setNodeRef:w}}function oDe(n){let{animation:e,children:t}=n;const[r,a]=D.useState(null),[i,o]=D.useState(null),s=DS(t);return!t&&!r&&s&&a(s),Co(()=>{if(!i)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){a(null);return}Promise.resolve(e(u,i)).then(()=>{a(null)})},[e,r,i]),x.createElement(x.Fragment,null,t,r?D.cloneElement(r,{ref:o}):null)}const sDe={x:0,y:0,scaleX:1,scaleY:1};function lDe(n){let{children:e}=n;return x.createElement(a0.Provider,{value:DX},x.createElement(Yw.Provider,{value:sDe},e))}const uDe={position:"fixed",touchAction:"none"},cDe=n=>Uw(n)?"transform 250ms ease":void 0,dDe=D.forwardRef((n,e)=>{let{as:t,activatorEvent:r,adjustScale:a,children:i,className:o,rect:s,style:l,transform:u,transition:c=cDe}=n;if(!s)return null;const d=a?u:{...u,scaleX:1,scaleY:1},f={...uDe,width:s.width,height:s.height,top:s.top,left:s.left,transform:Dc.Transform.toString(d),transformOrigin:a&&r?aPe(r,s):void 0,transition:typeof c=="function"?c(r):c,...l};return x.createElement(t,{className:o,style:f,ref:e},i)}),fDe=n=>e=>{let{active:t,dragOverlay:r}=e;const a={},{styles:i,className:o}=n;if(i!=null&&i.active)for(const[s,l]of Object.entries(i.active))l!==void 0&&(a[s]=t.node.style.getPropertyValue(s),t.node.style.setProperty(s,l));if(i!=null&&i.dragOverlay)for(const[s,l]of Object.entries(i.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(const[l,u]of Object.entries(a))t.node.style.setProperty(l,u);o!=null&&o.active&&t.node.classList.remove(o.active)}},hDe=n=>{let{transform:{initial:e,final:t}}=n;return[{transform:Dc.Transform.toString(e)},{transform:Dc.Transform.toString(t)}]},pDe={duration:250,easing:"ease",keyframes:hDe,sideEffects:fDe({styles:{active:{opacity:"0"}}})};function gDe(n){let{config:e,draggableNodes:t,droppableContainers:r,measuringConfiguration:a}=n;return Hw((i,o)=>{if(e===null)return;const s=t.get(i);if(!s)return;const l=s.node.current;if(!l)return;const u=PX(o);if(!u)return;const{transform:c}=ja(o).getComputedStyle(o),d=vX(c);if(!d)return;const f=typeof e=="function"?e:vDe(e);return wX(l,a.draggable.measure),f({active:{id:i,data:s.data,node:l,rect:a.draggable.measure(l)},draggableNodes:t,dragOverlay:{node:o,rect:a.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:a,transform:d})})}function vDe(n){const{duration:e,easing:t,sideEffects:r,keyframes:a}={...pDe,...n};return i=>{let{active:o,dragOverlay:s,transform:l,...u}=i;if(!e)return;const c={x:s.rect.left-o.rect.left,y:s.rect.top-o.rect.top},d={scaleX:l.scaleX!==1?o.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?o.rect.height*l.scaleY/s.rect.height:1},f={x:l.x-c.x,y:l.y-c.y,...d},h=a({...u,active:o,dragOverlay:s,transform:{initial:l,final:f}}),[p]=h,g=h[h.length-1];if(JSON.stringify(p)===JSON.stringify(g))return;const m=r==null?void 0:r({active:o,dragOverlay:s,...u}),y=s.node.animate(h,{duration:e,easing:t,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{m==null||m(),b()}})}}let dN=0;function mDe(n){return D.useMemo(()=>{if(n!=null)return dN++,dN},[n])}const yDe=x.memo(n=>{let{adjustScale:e=!1,children:t,dropAnimation:r,style:a,transition:i,modifiers:o,wrapperElement:s="div",className:l,zIndex:u=999}=n;const{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:p,droppableContainers:g,dragOverlay:m,over:y,measuringConfiguration:b,scrollableAncestors:_,scrollableAncestorRects:S,windowRect:C}=RX(),w=D.useContext(Yw),T=mDe(d==null?void 0:d.id),E=MX(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:m.rect,over:y,overlayNodeRect:m.rect,scrollableAncestors:_,scrollableAncestorRects:S,transform:w,windowRect:C}),O=lA(f),I=gDe({config:r,draggableNodes:p,droppableContainers:g,measuringConfiguration:b}),P=O?m.setRef:void 0;return x.createElement(lDe,null,x.createElement(oDe,{animation:I},d&&T?x.createElement(dDe,{key:T,id:d.id,ref:P,as:s,activatorEvent:c,adjustScale:e,className:l,transition:i,rect:O,style:{zIndex:u,...a},transform:E},t):null))});function LX(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function bDe(n,e){return n.reduce((t,r,a)=>{const i=e.get(r);return i&&(t[a]=i),t},Array(n.length))}function Sb(n){return n!==null&&n>=0}function _De(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t{let{rects:e,activeIndex:t,overIndex:r,index:a}=n;const i=LX(e,r,t),o=e[a],s=i[a];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},kX="Sortable",NX=x.createContext({activeIndex:-1,containerId:kX,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:uA,disabled:{draggable:!1,droppable:!1}});function CDe(n){let{children:e,id:t,items:r,strategy:a=uA,disabled:i=!1}=n;const{active:o,dragOverlay:s,droppableRects:l,over:u,measureDroppableContainers:c}=RX(),d=r0(kX,t),f=s.rect!==null,h=D.useMemo(()=>r.map(w=>typeof w=="object"&&"id"in w?w.id:w),[r]),p=o!=null,g=o?h.indexOf(o.id):-1,m=u?h.indexOf(u.id):-1,y=D.useRef(h),b=!_De(h,y.current),_=m!==-1&&g===-1||b,S=SDe(i);Co(()=>{b&&p&&c(h)},[b,h,p,c]),D.useEffect(()=>{y.current=h},[h]);const C=D.useMemo(()=>({activeIndex:g,containerId:d,disabled:S,disableTransforms:_,items:h,overIndex:m,useDragOverlay:f,sortedRects:bDe(h,l),strategy:a}),[g,d,S.draggable,S.droppable,_,h,m,l,f,a]);return x.createElement(NX.Provider,{value:C},e)}const wDe=n=>{let{id:e,items:t,activeIndex:r,overIndex:a}=n;return LX(t,r,a).indexOf(e)},xDe=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:a,items:i,newIndex:o,previousItems:s,previousContainerId:l,transition:u}=n;return!u||!r||s!==i&&a===o?!1:t?!0:o!==a&&e===l},TDe={duration:200,easing:"ease"},FX="transform",EDe=Dc.Transition.toString({property:FX,duration:0,easing:"linear"}),ODe={roleDescription:"sortable"};function IDe(n){let{disabled:e,index:t,node:r,rect:a}=n;const[i,o]=D.useState(null),s=D.useRef(t);return Co(()=>{if(!e&&t!==s.current&&r.current){const l=a.current;if(l){const u=Xg(r.current,{ignoreTransform:!0}),c={x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height};(c.x||c.y)&&o(c)}}t!==s.current&&(s.current=t)},[e,t,r,a]),D.useEffect(()=>{i&&o(null)},[i]),i}function PDe(n){let{animateLayoutChanges:e=xDe,attributes:t,disabled:r,data:a,getNewIndex:i=wDe,id:o,strategy:s,resizeObserverConfig:l,transition:u=TDe}=n;const{items:c,containerId:d,activeIndex:f,disabled:h,disableTransforms:p,sortedRects:g,overIndex:m,useDragOverlay:y,strategy:b}=D.useContext(NX),_=DDe(r,h),S=c.indexOf(o),C=D.useMemo(()=>({sortable:{containerId:d,index:S,items:c},...a}),[d,a,S,c]),w=D.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:T,node:E,isOver:O,setNodeRef:I}=iDe({id:o,data:C,disabled:_.droppable,resizeObserverConfig:{updateMeasurementsFor:w,...l}}),{active:P,activatorEvent:A,activeNodeRect:R,attributes:L,setNodeRef:k,listeners:N,isDragging:z,over:F,setActivatorNodeRef:j,transform:U}=nDe({id:o,data:C,attributes:{...ODe,...t},disabled:_.draggable}),G=HIe(I,k),Y=!!P,Q=Y&&!p&&Sb(f)&&Sb(m),Z=!y&&z,ae=Z&&Q?U:null,ee=Q?ae??(s??b)({rects:g,activeNodeRect:R,activeIndex:f,overIndex:m,index:S}):null,ne=Sb(f)&&Sb(m)?i({id:o,items:c,activeIndex:f,overIndex:m}):S,re=P==null?void 0:P.id,te=D.useRef({activeId:re,items:c,newIndex:ne,containerId:d}),oe=c!==te.current.items,pe=e({active:P,containerId:d,isDragging:z,isSorting:Y,id:o,index:S,items:c,newIndex:te.current.newIndex,previousItems:te.current.items,previousContainerId:te.current.containerId,transition:u,wasDragging:te.current.activeId!=null}),We=IDe({disabled:!pe,index:S,node:E,rect:T});return D.useEffect(()=>{Y&&te.current.newIndex!==ne&&(te.current.newIndex=ne),d!==te.current.containerId&&(te.current.containerId=d),c!==te.current.items&&(te.current.items=c)},[Y,ne,d,c]),D.useEffect(()=>{if(re===te.current.activeId)return;if(re&&!te.current.activeId){te.current.activeId=re;return}const Je=setTimeout(()=>{te.current.activeId=re},50);return()=>clearTimeout(Je)},[re]),{active:P,activeIndex:f,attributes:L,data:C,rect:T,index:S,newIndex:ne,items:c,isOver:O,isSorting:Y,isDragging:z,listeners:N,node:E,overIndex:m,over:F,setNodeRef:G,setActivatorNodeRef:j,setDroppableNodeRef:I,setDraggableNodeRef:k,transform:We??ee,transition:Ce()};function Ce(){if(We||oe&&te.current.newIndex===S)return EDe;if(!(Z&&!Uw(A)||!u)&&(Y||pe))return Dc.Transition.toString({...u,property:FX})}}function DDe(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}function RS(n){if(!n)return!1;const e=n.data.current;return!!(e&&"sortable"in e&&typeof e.sortable=="object"&&"containerId"in e.sortable&&"items"in e.sortable&&"index"in e.sortable)}const ADe=[wt.Down,wt.Right,wt.Up,wt.Left],MDe=(n,e)=>{let{context:{active:t,collisionRect:r,droppableRects:a,droppableContainers:i,over:o,scrollableAncestors:s}}=e;if(ADe.includes(n.code)){if(n.preventDefault(),!t||!r)return;const l=[];i.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const f=a.get(d.id);if(f)switch(n.code){case wt.Down:r.topf.top&&l.push(d);break;case wt.Left:r.left>f.left&&l.push(d);break;case wt.Right:r.left1&&(c=u[1].id),c!=null){const d=i.get(t.id),f=i.get(c),h=f?a.get(f.id):null,p=f==null?void 0:f.node.current;if(p&&h&&d&&f){const m=Ww(p).some((w,T)=>s[T]!==w),y=$X(d,f),b=RDe(d,f),_=m||!y?{x:0,y:0}:{x:b?r.width-h.width:0,y:b?r.height-h.height:0},S={x:h.left,y:h.top};return _.x&&_.y?S:U1(S,_)}}}};function $X(n,e){return!RS(n)||!RS(e)?!1:n.data.current.sortable.containerId===e.data.current.sortable.containerId}function RDe(n,e){return!RS(n)||!RS(e)||!$X(n,e)?!1:n.data.current.sortable.indexe.indexOf(C),[e]),y=D.useMemo(()=>h?m(h):-1,[m,h]),b=D.useCallback(C=>{let{active:w}=C;w&&p(w.id)},[]),_=D.useCallback(C=>{let{over:w}=C;if(p(null),w){const T=m(w.id);y!==T&&t({oldIndex:y,newIndex:T})}},[y,m,t]),S=D.useCallback(()=>{p(null)},[]);return x.createElement(JPe,{sensors:g,collisionDetection:s,onDragStart:b,onDragEnd:_,onDragCancel:S,autoScroll:{order:W1.ReversedTreeOrder}},x.createElement(CDe,{items:e,strategy:l},x.createElement(d,null,e.map((C,w)=>x.createElement($De,{key:C,id:C,index:w,renderItem:a,useDragOverlay:u,prefix:f,transition:i})))),u?Ti.createPortal(x.createElement(yDe,{adjustScale:r,style:{zIndex:void 0},className:c},h?a({id:h,sortableHandle:C=>C}):null),document.body):null)}function $De(n){let{animateLayoutChanges:e,id:t,renderItem:r,prefix:a,transition:i}=n;const{listeners:o,setNodeRef:s,transform:l,transition:u,active:c,isOver:d,attributes:f}=PDe({id:t,animateLayoutChanges:e,transition:i}),h=D.useCallback(m=>()=>x.createElement("span",Object.assign({},o,{style:{lineHeight:0},onMouseDown:y=>{o.onMouseDown(y),y.preventDefault(),y.stopPropagation()}}),x.createElement(m,null)),[o]),p=$(`${a}-sortable-item`,{[`${a}-sortable-item-over`]:d,[`${a}-sortable-item-active`]:(c==null?void 0:c.id)===t}),g=ql(i)?void 0:{transform:Dc.Transform.toString(Object.assign(Object.assign({},l),{scaleX:1,scaleY:1})),transition:u};return x.createElement("div",Object.assign({ref:s,style:g,className:p},f),r({id:t,sortableHandle:h}))}var VDe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleInputChange(t)},this.handleKeyDown=t=>{this.foundation.handleKeyDown(t)},this.handleInputFocus=t=>{this.foundation.handleInputFocus(t)},this.handleInputBlur=t=>{this.foundation.handleInputBlur(t)},this.handleClearBtn=t=>{this.foundation.handleClearBtn(t)},this.handleClearEnterPress=t=>{this.foundation.handleClearEnterPress(t)},this.handleTagClose=t=>{this.foundation.handleTagClose(t)},this.handleInputMouseLeave=t=>{this.foundation.handleInputMouseLeave()},this.handleClick=t=>{this.foundation.handleClick(t)},this.handleInputMouseEnter=t=>{this.foundation.handleInputMouseEnter()},this.handleClickPrefixOrSuffix=t=>{this.foundation.handleClickPrefixOrSuffix(t)},this.handlePreventMouseDown=t=>{this.foundation.handlePreventMouseDown(t)},this.getAllTags=()=>{const{tagsArray:t}=this.state;return t.map((r,a)=>this.renderTag(r,a))},this.renderTag=(t,r,a)=>{const{size:i,disabled:o,renderTagItem:s,showContentTooltip:l,draggable:u}=this.props,{active:c}=this.state,d=c&&u,f=$(`${Et}-wrapper-tag`,{[`${Et}-wrapper-tag-size-${i}`]:i,[`${Et}-wrapper-tag-icon`]:d}),h=$(`${Et}-wrapper-typo`,{[`${Et}-wrapper-typo-disabled`]:o}),p=$({[`${Et}-drag-item`]:d,[`${Et}-wrapper-tag-icon`]:d}),g=a&&a(()=>x.createElement(l5e,{className:`${Et}-drag-handler`})),m=d?t:`${r}${t}`,y=()=>{!o&&this.handleTagClose(r)};return ke(s)?x.createElement("div",{className:p,key:m},d&&a?x.createElement(g,null):null,s(t,r,y)):x.createElement(ca,{className:f,color:"white",size:i==="small"?"small":"large",type:"light",onClose:y,closable:!o,key:m,visible:!0,"aria-label":`${o?"":"Closable "}Tag: ${t}`},d&&a?x.createElement(g,null):null,x.createElement(Aw,{className:h,ellipsis:{showTooltip:l,rows:1}},t))},this.renderSortTag=t=>{const{id:r,sortableHandle:a}=t,{tagsArray:i}=this.state,o=i.indexOf(r);return this.renderTag(r,o,a)},this.onSortEnd=t=>{this.foundation.handleSortEnd(t)},this.handleInputCompositionStart=t=>{this.foundation.handleInputCompositionStart(t)},this.handleInputCompositionEnd=t=>{this.foundation.handleInputCompositionEnd(t)},this.foundation=new BIe(this.adapter),this.state={tagsArray:e.defaultValue||[],inputValue:"",focusing:!1,hovering:!1,active:!1,entering:!1},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.clickOutsideHandler=null}static getDerivedStateFromProps(e,t){const{value:r,inputValue:a}=e,{tagsArray:i}=t;let o;return r7(r)?o=r:"value"in e&&!r?o=[]:o=i,{tagsArray:o,inputValue:Xe(a)?a:t.inputValue}}get adapter(){return Object.assign(Object.assign({},super.adapter),{setInputValue:e=>{this.setState({inputValue:e})},setTagsArray:e=>{this.setState({tagsArray:e})},setFocusing:e=>{this.setState({focusing:e})},toggleFocusing:e=>{const{preventScroll:t}=this.props,r=this.inputRef&&this.inputRef.current;e?r&&r.focus({preventScroll:t}):r&&r.blur(),this.setState({focusing:e})},setHovering:e=>{this.setState({hovering:e})},setActive:e=>{this.setState({active:e})},setEntering:e=>{this.setState({entering:e})},getClickOutsideHandler:()=>this.clickOutsideHandler,notifyBlur:e=>{this.props.onBlur(e)},notifyFocus:e=>{this.props.onFocus(e)},notifyInputChange:(e,t)=>{this.props.onInputChange(e,t)},notifyTagChange:e=>{this.props.onChange(e)},notifyTagAdd:e=>{this.props.onAdd(e)},notifyTagRemove:(e,t)=>{this.props.onRemove(e,t)},notifyKeyDown:e=>{this.props.onKeyDown(e)},registerClickOutsideHandler:e=>{const t=r=>{const a=this.tagInputRef&&this.tagInputRef.current,i=r.target;a&&!a.contains(i)&&e(r)};this.clickOutsideHandler=t,document.addEventListener("click",t,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("click",this.clickOutsideHandler,!1),this.clickOutsideHandler=null}})}componentDidMount(){const{disabled:e,autoFocus:t,preventScroll:r}=this.props;!e&&t&&(this.inputRef.current.focus({preventScroll:r}),this.foundation.handleClick()),this.foundation.init()}renderClearBtn(){const{hovering:e,tagsArray:t,inputValue:r}=this.state,{showClear:a,disabled:i,clearIcon:o}=this.props,s=$(`${Et}-clearBtn`,{[`${Et}-clearBtn-invisible`]:!e||r===""&&t.length===0||i});return a?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TagInput value",className:s,onClick:l=>this.handleClearBtn(l),onKeyPress:l=>this.handleClearEnterPress(l)},o||x.createElement(Gc,null)):null}renderPrefix(){const{prefix:e,insetLabel:t,insetLabelId:r}=this.props,a=e||t;if(ql(a)||Vt(a))return null;const i=$(`${Et}-prefix`,{[`${Et}-inset-label`]:t,[`${Et}-prefix-text`]:a&&Xe(a),[`${Et}-prefix-icon`]:Hr(a)});return x.createElement("div",{className:i,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,id:r,"x-semi-prop":"prefix"},a)}renderSuffix(){const{suffix:e}=this.props;if(ql(e)||Vt(e))return null;const t=$(`${Et}-suffix`,{[`${Et}-suffix-text`]:e&&Xe(e),[`${Et}-suffix-icon`]:Hr(e)});return x.createElement("div",{className:t,onMouseDown:this.handlePreventMouseDown,onClick:this.handleClickPrefixOrSuffix,"x-semi-prop":"suffix"},e)}renderTags(){const{disabled:e,maxTagCount:t,showRestTagsPopover:r,restTagsPopoverProps:a={},draggable:i,expandRestTagsOnClick:o}=this.props,{tagsArray:s,active:l}=this.state,u=$(`${Et}-wrapper-n`,{[`${Et}-wrapper-n-disabled`]:e}),c=this.getAllTags();let d=[],f=[...c];(!l||!o)&&t&&t({item:g,key:s[m]}));return l&&i&&p.length>0?x.createElement(FDe,{items:s,onSortEnd:this.onSortEnd,renderItem:this.renderSortTag,container:jDe,prefix:Et,transition:null,dragOverlayCls:`${Et}-right-item-drag-item-move`}):x.createElement(x.Fragment,null,f,d.length>0&&(r?x.createElement(di,Object.assign({content:d,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},a),h):h))}blur(){this.inputRef.current.blur(),this.foundation.clickOutsideCallBack()}focus(){const{preventScroll:e,disabled:t}=this.props;this.inputRef.current.focus({preventScroll:e}),t||this.foundation.handleClick()}render(){const e=this.props,{size:t,style:r,className:a,disabled:i,placeholder:o,validateStatus:s}=e,l=VDe(e,["size","style","className","disabled","placeholder","validateStatus"]),{focusing:u,hovering:c,tagsArray:d,inputValue:f,active:h}=this.state,p=$(Et,a,{[`${Et}-focus`]:u||h,[`${Et}-disabled`]:i,[`${Et}-hover`]:c&&!i,[`${Et}-error`]:s==="error",[`${Et}-warning`]:s==="warning",[`${Et}-small`]:t==="small",[`${Et}-large`]:t==="large"}),g=$(`${Et}-wrapper-input`,`${Et}-wrapper-input-${t}`),m=$(`${Et}-wrapper`);return x.createElement("div",Object.assign({ref:this.tagInputRef,style:r,className:p,"aria-disabled":i,"aria-label":this.props["aria-label"],"aria-invalid":s==="error",onMouseEnter:y=>{this.handleInputMouseEnter(y)},onMouseLeave:y=>{this.handleInputMouseLeave(y)},onClick:y=>{this.handleClick(y)}},this.getDataAttr(l)),this.renderPrefix(),x.createElement("div",{className:m},this.renderTags(),x.createElement(Ri,{"aria-label":"input value",ref:this.inputRef,className:g,disabled:i,value:f,size:t,placeholder:d.length===0?o:"",onKeyDown:y=>{this.handleKeyDown(y)},onChange:(y,b)=>{this.handleInputChange(b)},onBlur:y=>{this.handleInputBlur(y)},onFocus:y=>{this.handleInputFocus(y)},onCompositionStart:this.handleInputCompositionStart,onCompositionEnd:this.handleInputCompositionEnd})),this.renderClearBtn(),this.renderSuffix())}}cA.propTypes={children:v.node,clearIcon:v.node,style:v.object,className:v.string,disabled:v.bool,allowDuplicates:v.bool,max:v.number,maxTagCount:v.number,maxLength:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,showContentTooltip:v.oneOfType([v.shape({type:v.string,opts:v.object}),v.bool]),defaultValue:v.array,value:v.array,inputValue:v.string,placeholder:v.string,separator:v.oneOfType([v.string,v.array]),showClear:v.bool,addOnBlur:v.bool,draggable:v.bool,expandRestTagsOnClick:v.bool,autoFocus:v.bool,renderTagItem:v.func,onBlur:v.func,onFocus:v.func,onChange:v.func,onInputChange:v.func,onExceed:v.func,onInputExceed:v.func,onAdd:v.func,onRemove:v.func,onKeyDown:v.func,size:v.oneOf(Qk.SIZE_SET),validateStatus:v.oneOf(Qk.STATUS),prefix:v.oneOfType([v.string,v.node]),suffix:v.oneOfType([v.string,v.node]),"aria-label":v.string,preventScroll:v.bool};cA.defaultProps={showClear:!1,addOnBlur:!1,allowDuplicates:!0,showRestTagsPopover:!0,autoFocus:!1,draggable:!1,expandRestTagsOnClick:!0,showContentTooltip:!0,separator:",",size:"default",validateStatus:"default",onBlur:B,onFocus:B,onChange:B,onInputChange:B,onExceed:B,onInputExceed:B,onAdd:B,onRemove:B,onKeyDown:B};const dA=cA,pt=eX.PREFIX,zDe=0;class Kw extends Pe{constructor(e){super(e),this.handleInputChange=t=>{this.foundation.handleInputChange(t)},this.handleTagRemove=(t,r)=>{this.foundation.handleTagRemove(t,r)},this.handleRemoveByKey=t=>{const{keyEntities:r}=this.state;this.handleTagRemove(null,r[t].valuePath)},this.renderTagItem=(t,r,a)=>{const{keyEntities:i,disabledKeys:o}=this.state,{size:s,disabled:l,displayProp:u,displayRender:c,disableStrictly:d}=this.props,f=a===ur.IS_VALUE?AO(t,i)[0]:t,h=l||i[f].data.disabled||d&&o.has(f);if(!vt(i)&&!vt(i[f])){const p=$(`${pt}-selection-tag`,{[`${pt}-selection-tag-disabled`]:h});return ke(c)?c(i[f],r):x.createElement(ca,{size:s==="default"?"large":s,key:`tag-${f}-${r}`,color:"white",className:p,closable:!0,onClose:(g,m)=>{m.preventDefault(),this.handleTagRemove(m,i[f].valuePath)}},i[f].data[u])}return null},this.handleItemClick=(t,r)=>{this.foundation.handleItemClick(t,r)},this.handleItemHover=(t,r)=>{this.foundation.handleItemHover(t,r)},this.onItemCheckboxClick=t=>{this.foundation.onItemCheckboxClick(t)},this.handleListScroll=(t,r)=>{this.foundation.handleListScroll(t,r)},this.renderContent=()=>{const{inputValue:t,isSearching:r,activeKeys:a,selectedKeys:i,checkedKeys:o,halfCheckedKeys:s,loadedKeys:l,loadingKeys:u}=this.state,{filterTreeNode:c,dropdownClassName:d,dropdownStyle:f,loadData:h,emptyContent:p,separator:g,topSlot:m,bottomSlot:y,showNext:b,multiple:_,filterRender:S,virtualizeInSearch:C}=this.props,w=!!c&&r,T=$(d,`${pt}-popover`),E=this.foundation.getRenderData();return x.createElement("div",{className:T,role:"listbox",style:f},m,x.createElement(zw,{activeKeys:a,selectedKeys:i,separator:g,loadedKeys:l,loadingKeys:u,onItemClick:this.handleItemClick,onItemHover:this.handleItemHover,showNext:b,onItemCheckboxClick:this.onItemCheckboxClick,onListScroll:this.handleListScroll,searchable:w,keyword:t,emptyContent:p,loadData:h,data:E,multiple:_,checkedKeys:o,halfCheckedKeys:s,filterRender:S,virtualize:C}),y)},this.renderPlusN=t=>{const{disabled:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props,o=$(`${pt}-selection-n`,{[`${pt}-selection-n-disabled`]:r}),s=x.createElement("span",{className:o},"+",t.length);return a?x.createElement(di,Object.assign({content:t,showArrow:!0,trigger:"hover",position:"top",autoAdjustOverflow:!0},i),s):s},this.renderMultipleTags=()=>{const{autoMergeValue:t,maxTagCount:r}=this.props,{checkedKeys:a,resolvedCheckedKeys:i}=this.state,o=this.mergeType===ur.NONE_MERGE_TYPE?a:i,s=[],l=[];return[...o].forEach((u,c)=>{const d=!Rn(r)||r>=c+1,f=this.renderTagItem(u,c,ur.IS_KEY);d?s.push(f):l.push(f)}),x.createElement(x.Fragment,null,s,!vt(l)&&this.renderPlusN(l))},this.renderDisplayText=()=>{const{displayProp:t,separator:r,displayRender:a}=this.props,{selectedKeys:i}=this.state;let o="";if(i.size){const s=this.foundation.getItemPropPath([...i][0],t);a&&typeof a=="function"?o=a(s):o=s.map((l,u)=>x.createElement(D.Fragment,{key:`${l}-${u}`},u{const{placeholder:t,filterTreeNode:r,multiple:a}=this.props,{checkedKeys:i}=this.state;if(!!!r){if(a)return vt(i)?x.createElement("span",{className:`${pt}-selection-placeholder`},t):this.renderMultipleTags();{const l=this.renderDisplayText(),u=$({[`${pt}-selection-placeholder`]:!l});return x.createElement("span",{className:u},l||t)}}return a?this.renderTagInput():this.renderInput()},this.renderSuffix=()=>{const{suffix:t}=this.props,r=$({[`${pt}-suffix`]:!0,[`${pt}-suffix-text`]:t&&Xe(t),[`${pt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${pt}-prefix`]:!0,[`${pt}-inset-label`]:r,[`${pt}-prefix-text`]:i&&Xe(i),[`${pt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderCustomTrigger=()=>{const{disabled:t,triggerRender:r,multiple:a}=this.props,{selectedKeys:i,inputValue:o,inputPlaceHolder:s,resolvedCheckedKeys:l,checkedKeys:u}=this.state;let c;return a?this.mergeType===ur.NONE_MERGE_TYPE?c=u:c=l:c=[...i][0],x.createElement(Wg,{value:c,inputValue:o,onChange:this.handleInputChange,onClear:this.handleClear,placeholder:s,disabled:t,triggerRender:r,componentName:"Cascader",componentProps:Object.assign({},this.props),onSearch:this.handleInputChange,onRemove:this.handleRemoveByKey})},this.handleMouseOver=()=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=()=>{this.foundation.toggleHoverState(!1)},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear()},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.showClearBtn=()=>{const{showClear:t,disabled:r,multiple:a}=this.props,{selectedKeys:i,isOpen:o,isHovering:s,checkedKeys:l}=this.state,u=i.size,c=a&&l.size;return t&&(u||c)&&!r&&(o||s)},this.renderClearBtn=()=>{const t=$(`${pt}-clearbtn`),{clearIcon:r}=this.props;return this.showClearBtn()?x.createElement("div",{className:t,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress,role:"button",tabIndex:0},r||x.createElement(Gc,null)):null},this.renderArrow=()=>{const{arrowIcon:t}=this.props;return this.showClearBtn()?null:t?x.createElement("div",{className:$(`${pt}-arrow`),"x-semi-prop":"arrowIcon"},t):null},this.renderSelection=()=>{const{disabled:t,multiple:r,filterTreeNode:a,style:i,size:o,className:s,validateStatus:l,prefix:u,suffix:c,insetLabel:d,triggerRender:f,showClear:h,id:p,borderless:g}=this.props,{isOpen:m,isFocus:y,isInput:b,checkedKeys:_}=this.state,S=!!a,C=typeof f=="function",w=C?$(s):$(pt,s,{[`${pt}-borderless`]:g,[`${pt}-focus`]:y||m&&!b,[`${pt}-disabled`]:t,[`${pt}-single`]:!0,[`${pt}-filterable`]:S,[`${pt}-error`]:l==="error",[`${pt}-warning`]:l==="warning",[`${pt}-small`]:o==="small",[`${pt}-large`]:o==="large",[`${pt}-with-prefix`]:u||d,[`${pt}-with-suffix`]:c}),T=h?{onMouseEnter:()=>this.handleMouseOver(),onMouseLeave:()=>this.handleMouseLeave()}:{},E=$(`${pt}-selection`,{[`${pt}-selection-multiple`]:r&&!vt(_)}),O=C?this.renderCustomTrigger():[x.createElement(D.Fragment,{key:"prefix"},u||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:E},this.renderSelectContent())),x.createElement(D.Fragment,{key:"clearbtn"},this.renderClearBtn()),x.createElement(D.Fragment,{key:"suffix"},c?this.renderSuffix():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())];return x.createElement("div",Object.assign({className:w,style:i,ref:this.triggerRef,onClick:I=>this.foundation.handleClick(I),onKeyPress:I=>this.foundation.handleSelectionEnterPress(I),"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],id:p},T,{role:"combobox",tabIndex:0},this.getDataAttr(this.props)),O)},this.state={disabledKeys:new Set,isOpen:e.defaultOpen,rePosKey:zDe,keyEntities:{},selectedKeys:new Set([]),activeKeys:new Set([]),filteredKeys:new Set([]),inputValue:"",isSearching:!1,inputPlaceHolder:e.searchPlaceholder||e.placeholder,prevProps:{},isHovering:!1,checkedKeys:new Set([]),halfCheckedKeys:new Set([]),resolvedCheckedKeys:new Set([]),loadedKeys:new Set,loadingKeys:new Set,loading:!1,showInput:!1},this.options={},this.isEmpty=!1,this.mergeType=MO(e.autoMergeValue,e.leafOnly),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new dIe(this.adapter),this.loadingKeysRef=x.createRef(),this.loadedKeysRef=x.createRef()}get adapter(){var e=this;const t={updateInputValue:a=>{this.setState({inputValue:a})},updateInputPlaceHolder:a=>{this.setState({inputPlaceHolder:a})},focusInput:()=>{const{preventScroll:a}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:a})},blurInput:()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.blur()}},r={registerClickOutsideHandler:a=>{const i=o=>{const s=this.optionsRef&&this.optionsRef.current,l=this.triggerRef&&this.triggerRef.current,u=ui.findDOMNode(s),c=o.target;u&&(!u.contains(c)||!u.contains(c.parentNode))&&l&&!l.contains(c)&&a(o)};this.clickOutsideHandler=i,document.addEventListener("mousedown",i,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1)},rePositionDropdown:()=>{let{rePosKey:a}=this.state;a=a+1,this.setState({rePosKey:a})}};return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),{updateStates:a=>{this.setState(Object.assign({},a))},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:a=>{this.setState({isOpen:!1},()=>{a&&a()})},updateSelection:a=>this.setState({selectedKeys:a}),notifyChange:a=>{this.props.onChange&&this.props.onChange(a)},notifySelect:a=>{this.props.onSelect&&this.props.onSelect(a)},notifyOnSearch:a=>{this.props.onSearch&&this.props.onSearch(a)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},notifyDropdownVisibleChange:a=>{this.props.onDropdownVisibleChange(a)},toggleHovering:a=>{this.setState({isHovering:a})},notifyLoadData:(a,i)=>{const{loadData:o}=this.props;o&&new Promise(s=>{o(a).then(()=>{i(),this.setState({loading:!1}),s()})})},notifyOnLoad:(a,i)=>{const{onLoad:o}=this.props;o&&o(a,i)},notifyListScroll:(a,i)=>{let{panelIndex:o,activeNode:s}=i;this.props.onListScroll(a,{panelIndex:o,activeNode:s})},notifyOnExceed:a=>this.props.onExceed(a),notifyClear:()=>this.props.onClear(),toggleInputShow:(a,i)=>{this.setState({showInput:a},()=>{i()})},updateFocusState:a=>{this.setState({isFocus:a})},updateLoadingKeyRefValue:a=>{this.loadingKeysRef.current=a},getLoadingKeyRefValue:()=>this.loadingKeysRef.current,updateLoadedKeyRefValue:a=>{this.loadedKeysRef.current=a},getLoadedKeyRefValue:()=>this.loadedKeysRef.current})}static getDerivedStateFromProps(e,t){const{multiple:r,value:a,defaultValue:i,onChangeWithObject:o,leafOnly:s,autoMergeValue:l}=e,{prevProps:u}=t;let c=t.keyEntities||{};const d={},f=y=>{const b=vt(u)&&y in e,_=u&&!Ke(u[y],e[y]);return b||_},h=()=>{const y=!u&&"treeData"in e,b=u&&u.treeData!==e.treeData;return y||b},p=(y,b)=>{let _=[];Array.isArray(y)?_=Array.isArray(y[0])?y:[y]:y!==void 0&&(_=[[y]]);const S=[];_.forEach(w=>{const T=o?w.map(E=>E==null?void 0:E.value):w;S.push(T)});const C=[];return S.forEach(w=>{const T=AO(w,b);!vt(T)&&C.push(T)}),C},g=f("treeData")||h(),m=f("value")||vt(u)&&i;if(r&&(g||m)){g&&(d.treeData=e.treeData,c=tX(e.treeData),d.keyEntities=c);let y=t.checkedKeys;if(m){const w=f("value")?a:i;y=p(w,c)}else g&&"value"in e&&(y=p(a,c));Ps(y)&&(y=[...y]);const b=Jy(Ybe(y),c),_=new Set(b.checkedKeys),S=new Set(b.halfCheckedKeys);e.disableStrictly&&(d.disabledKeys=JZ(c));const C=MO(l,s)===ur.LEAF_ONLY_MERGE_TYPE;d.prevProps=e,d.checkedKeys=_,d.halfCheckedKeys=S,d.resolvedCheckedKeys=new Set(Pi(_,c,C))}return d}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){let t=!1;Ke(e.treeData,this.props.treeData)||(t=!0,this.foundation.collectOptions()),e.value!==this.props.value&&!t&&this.foundation.handleValueChange(this.props.value)}renderTagInput(){const{size:e,disabled:t,placeholder:r,maxTagCount:a,showRestTagsPopover:i,restTagsPopoverProps:o}=this.props,{inputValue:s,checkedKeys:l,keyEntities:u,resolvedCheckedKeys:c}=this.state,d=$(`${pt}-tagInput-wrapper`),f=[];return[...this.mergeType===ur.NONE_MERGE_TYPE?l:c].forEach(p=>{vt(u[p])||f.push(u[p].valuePath)}),x.createElement(dA,{className:d,ref:this.inputRef,disabled:t,size:e,value:f,showRestTagsPopover:i,restTagsPopoverProps:o,maxTagCount:a,renderTagItem:(p,g)=>this.renderTagItem(p,g,ur.IS_VALUE),inputValue:s,onInputChange:this.handleInputChange,onRemove:p=>this.handleTagRemove(null,p),placeholder:r,expandRestTagsOnClick:!1})}renderInput(){const{size:e,disabled:t}=this.props,r=$(`${pt}-input`),{inputValue:a,inputPlaceHolder:i,showInput:o}=this.state,s={disabled:t,value:a,className:r,onChange:this.handleInputChange},l=$({[`${pt}-search-wrapper`]:!0,[`${pt}-search-wrapper-${e}`]:e!=="default"}),u=this.renderDisplayText(),c=$({[`${pt}-selection-placeholder`]:!u,[`${pt}-selection-text-hide`]:o&&a,[`${pt}-selection-text-inactive`]:o&&!a});return x.createElement("div",{className:l},x.createElement("span",{className:c},u||i),o&&x.createElement(Ri,Object.assign({ref:this.inputRef,size:e},s)))}close(){this.foundation.close()}open(){this.foundation.open()}focus(){this.foundation.focus()}blur(){this.foundation.blur()}render(){const{zIndex:e,getPopupContainer:t,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,position:s,motion:l,dropdownMargin:u}=this.props,{isOpen:c,rePosKey:d}=this.state,{direction:f}=this.context,h=this.renderContent(),p=this.renderSelection(),g=s??(f==="rtl"?"bottomRight":"bottomLeft");return x.createElement(di,{getPopupContainer:t,zIndex:e,motion:l,margin:u,ref:this.optionsRef,content:h,visible:c,trigger:"custom",rePosKey:d,position:g,autoAdjustOverflow:r,stopPropagation:a,mouseLeaveDelay:i,mouseEnterDelay:o,afterClose:()=>this.foundation.updateSearching(!1)},p)}}Kw.contextType=Fr;Kw.propTypes={"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,"aria-label":v.string,arrowIcon:v.node,borderless:v.bool,clearIcon:v.node,changeOnSelect:v.bool,defaultValue:v.oneOfType([v.string,v.array]),disabled:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),emptyContent:v.node,motion:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),filterLeafOnly:v.bool,placeholder:v.string,searchPlaceholder:v.string,size:v.oneOf(ur.SIZE_SET),style:v.object,className:v.string,treeData:v.arrayOf(v.shape({value:v.oneOfType([v.string,v.number]),label:v.any})),treeNodeFilterProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,id:v.string,displayProp:v.string,displayRender:v.func,onChange:v.func,onSearch:v.func,onSelect:v.func,onBlur:v.func,onFocus:v.func,children:v.node,getPopupContainer:v.func,zIndex:v.number,value:v.oneOfType([v.string,v.number,v.array]),validateStatus:v.oneOf(ur.VALIDATE_STATUS),showNext:v.oneOf([ur.SHOW_NEXT_BY_CLICK,ur.SHOW_NEXT_BY_HOVER]),stopPropagation:v.oneOfType([v.bool,v.string]),showClear:v.bool,defaultOpen:v.bool,autoAdjustOverflow:v.bool,onDropdownVisibleChange:v.func,triggerRender:v.func,onListScroll:v.func,onChangeWithObject:v.bool,bottomSlot:v.node,topSlot:v.node,multiple:v.bool,autoMergeValue:v.bool,maxTagCount:v.number,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,max:v.number,separator:v.string,onExceed:v.func,onClear:v.func,loadData:v.func,onLoad:v.func,loadedKeys:v.array,disableStrictly:v.bool,leafOnly:v.bool,enableLeafClick:v.bool,preventScroll:v.bool,position:v.string};Kw.defaultProps={borderless:!1,leafOnly:!1,arrowIcon:x.createElement(kf,null),stopPropagation:!0,motion:!0,defaultOpen:!1,zIndex:ci.DEFAULT_Z_INDEX,showClear:!1,autoClearSearchValue:!0,changeOnSelect:!1,disableStrictly:!1,autoMergeValue:!0,multiple:!1,filterTreeNode:!1,filterLeafOnly:!0,showRestTagsPopover:!1,restTagsPopoverProps:{},separator:" / ",size:"default",treeNodeFilterProp:"label",displayProp:"label",treeData:[],showNext:ur.SHOW_NEXT_BY_CLICK,onExceed:B,onClear:B,onDropdownVisibleChange:B,onListScroll:B,enableLeafClick:!1,"aria-label":"Cascader"};const BDe=Kw;class HDe extends ze{constructor(e){super(Object.assign({},e)),this.updateDOMInRenderTree=t=>{this._adapter.setDOMInRenderTree(t)},this.updateDOMHeight=t=>{this._adapter.setDOMHeight(t)},this.updateVisible=t=>{this._adapter.setVisible(t)},this.updateIsTransitioning=t=>{this._adapter.setIsTransitioning(t)}}}const UDe=HDe,fN={PREFIX:`${q}-collapsible`};class qg extends Pe{constructor(e){super(e),this.domRef=x.createRef(),this.handleResize=t=>{const r=t[0];if(r){const a=qg.getEntryInfo(r);this.foundation.updateDOMHeight(a.height),this.foundation.updateDOMInRenderTree(a.isShown)}},this.isChildrenInRenderTree=()=>this.domRef.current?this.domRef.current.offsetHeight>0:!1,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new UDe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:e=>{this.state.domInRenderTree!==e&&this.setState({domInRenderTree:e})},setDOMHeight:e=>{this.state.domHeight!==e&&this.setState({domHeight:e})},setVisible:e=>{this.state.visible!==e&&this.setState({visible:e})},setIsTransitioning:e=>{this.state.isTransitioning!==e&&this.setState({isTransitioning:e})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);const e=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(e),e&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(e,t,r){const a=Object.keys(this.props).filter(o=>!Ke(this.props[o],e[o])),i=Object.keys(this.state).filter(o=>!Ke(this.state[o],t[o]));a.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),i.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),a.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&e.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){const e=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||this.props.collapseHeight!==0?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),t=$(`${fN.PREFIX}-wrapper`,{[`${fN.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className);return x.createElement("div",Object.assign({className:t,style:e,onTransitionEnd:()=>{var r,a;this.props.isOpen||this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),(a=(r=this.props).onMotionEnd)===null||a===void 0||a.call(r)}},this.getDataAttr(this.props)),x.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},(this.props.keepDOM||this.props.collapseHeight!==0||this.state.visible||this.props.isOpen)&&this.props.children))}}qg.defaultProps={isOpen:!1,duration:250,motion:!0,keepDOM:!1,collapseHeight:0,fade:!1};qg.getEntryInfo=n=>{let e;n.borderBoxSize?e=!(n.borderBoxSize[0].blockSize===0&&n.borderBoxSize[0].inlineSize===0):e=!(n.contentRect.height===0&&n.contentRect.width===0);let t=0;return n.borderBoxSize?t=Math.ceil(n.borderBoxSize[0].blockSize):t=n.target.clientHeight,{isShown:e,height:t}};qg.propTypes={motion:v.bool,children:v.node,isOpen:v.bool,duration:v.number,keepDOM:v.bool,collapseHeight:v.number,style:v.object,className:v.string,reCalcKey:v.oneOfType([v.string,v.number])};const VX=qg;var WDe=PK;function GDe(n,e){return n==null?!0:WDe(n,e)}var YDe=GDe;const $O=Ie(YDe);var KDe=Xf,ZDe=mw,XDe=Tr,qDe=Lg,QDe=UY,JDe=qf,e6e=hw;function t6e(n){return XDe(n)?KDe(n,JDe):qDe(n)?[n]:ZDe(QDe(e6e(n)))}var n6e=t6e;const Y1=Ie(n6e),hN=n=>{const e=Y1(n);return Rn(n)&&e.length===1?!1:Number.isInteger(+e[e.length-1])};function r6e(n){if(oa(n)){const e=UZ(n);return e.length?e.every(t=>typeof t>"u"):!0}else return!1}function fA(n,e){if(e.length===0)return;const t=H(n,e);(Array.isArray(t)&&t.every(r=>r==null)||r6e(t))&&$O(n,e),fA(n,e.slice(0,e.length-1))}function a6e(n){return UZ(n).length===0}function Ea(n,e){return H(n,e)}function r2(n,e){$O(n,e);let t=Y1(e);t=t.slice(0,t.length-1),fA(n,t)}function v5(n,e,t,r){if(r||t!==void 0)return ai(n,e,t);if(hN(e)&&Ea(n,e)!==void 0){ai(n,e,void 0);let a=Y1(e);a=a.slice(0,a.length-1),fA(n,a)}else!hN(e)&&Ea(n,e)!==void 0&&r2(n,e)}function jX(n,e){return n&&(typeof n=="function"||typeof n=="object")&&e&&(typeof e=="function"||typeof e=="object")&&Object.entries(e).forEach(t=>{let[r,a]=t;n[r]=a}),n}const i6e={DAY_TODAY:`${q}-datepicker-day-today`,DAY_IN_RANGE:`${q}-datepicker-day-inrange`,DAY_HOVER:`${q}-datepicker-day-inhover`,DAY_SELECTED:`${q}-datepicker-day-selected`,DAY_SELECTED_START:`${q}-datepicker-day-selected-start`,DAY_SELECTED_END:`${q}-datepicker-day-selected-end`,DAY_DISABLED:`${q}-datepicker-day-disabled`,DAY_HOVER_DAY:`${q}-datepicker-day-hoverday`,DAY_HOVER_DAY_OFFSET:`${q}-datepicker-day-hoverday-offset`,DAY_IN_OFFSET_RANGE:`${q}-datepicker-day-inoffsetrange`,DAY_SELECTED_RANGE_HOVER:`${q}-datepicker-day-selectedrange-hover`,DAY_OFFSET_RANGE_START:`${q}-datepicker-day-offsetrange-start`,DAY_OFFSET_RANGE_END:`${q}-datepicker-day-offsetrange-end`,DAY_SELECTED_START_AFTER_HOVER:`${q}-datepicker-day-selected-start-afterhover`,DAY_SELECTED_END_BEFORE_HOVER:`${q}-datepicker-day-selected-end-beforehover`,DAY_HOVER_DAY_BEFORE_RANGE:`${q}-datepicker-day-hoverday-beforerange`,DAY_HOVER_DAY_AFTER_RANGE:`${q}-datepicker-day-hoverday-afterrange`,DAY_HOVER_DAY_IN_RANGE:`${q}-datepicker-day-hoverday-inrange`,DAY_HOVER_DAY_AROUND_SINGLE_SELECTED:`${q}-datepicker-day-hoverday-around-singleselected`},Ge=Object.assign({PREFIX:`${q}-datepicker`,NAVIGATION:`${q}-datepicker-navigation`,PANEL_YAM:`${q}-datepicker-panel-yam`,MONTH:`${q}-datepicker-month`,WEEKDAY:`${q}-datepicker-weekday`,WEEKS:`${q}-datepicker-weeks`,WEEK:`${q}-datepicker-week`,DAY:`${q}-datepicker-day`},i6e),o6e={FORMAT_FULL_DATE:"yyyy-MM-dd",FORMAT_TIME_PICKER:"HH:mm:ss",FORMAT_DATE_TIME:"yyyy-MM-dd HH:mm:ss",FORMAT_YEAR_MONTH:"yyyy-MM"},le=Object.assign({DEFAULT_SEPARATOR_MULTIPLE:",",DEFAULT_SEPARATOR_RANGE:" ~ ",SIZE_SET:["small","default","large"],TYPE_SET:["date","dateRange","year","month","monthRange","dateTime","dateTimeRange"],PRESET_POSITION_SET:["left","right","top","bottom"],DENSITY_SET:["default","compact"],PANEL_TYPE_LEFT:"left",PANEL_TYPE_RIGHT:"right",STATUS:kg,POSITION_SET:gf.POSITION_SET,POSITION_INLINE_INPUT:"leftTopOver"},o6e),fg={WEEK_START_ON:0,WEEK_HEIGHT:36,SPACING:ci.SPACING,SPACING_INSET_INPUT:1};var s6e=ss,l6e=gi,u6e="[object Date]";function c6e(n){return l6e(n)&&s6e(n)==u6e}var d6e=c6e,f6e=d6e,h6e=Qf,pN=Hy,gN=pN&&pN.isDate,p6e=gN?h6e(gN):f6e,g6e=p6e;const vN=Ie(g6e);function Vl(n){return typeof n=="string"}function mN(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return XCe(t,r)}function _p(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return aZ(t,r)}function Th(n,e){let{start:t,end:r}=e;const a=Vl(n)?mo(n):n,i=Vl(t)?mo(t):t,o=Vl(r)?mo(r):r;return aZ(i,o)&&Kwe(a,{start:i,end:o})&&!SS(a,i)&&!SS(a,o)}function Cu(n,e){const t=Vl(n)?mo(n):n,r=Vl(e)?mo(e):e;return D7(t,r)}function yo(n){return n&&Object.prototype.toString.call(n)==="[object Date]"&&!isNaN(n)}function v6e(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function VO(n){return v6e(n)&&yo(new Date(n))}const zX={date:le.FORMAT_FULL_DATE,dateTime:le.FORMAT_DATE_TIME,dateRange:le.FORMAT_FULL_DATE,dateTimeRange:le.FORMAT_DATE_TIME,month:le.FORMAT_YEAR_MONTH,monthRange:le.FORMAT_YEAR_MONTH},m6e=n=>zX;function Zu(n){return n&&zX[n]}const y6e=m6e,b6e=(n,e)=>{const t=new Date().getFullYear();let r=typeof n=="number"?n:t-100,a=typeof e=="number"?e:t+100;return ar+o)},_6e=b6e,S6e=(n,e)=>{if(!e)return"";const t=new Date(e),r=ke(n)?n(t):t;return Lt(new Date(r),le.FORMAT_FULL_DATE)},Cb=S6e;var jO={exports:{}},zO={exports:{}},BX={exports:{}};(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(BX);var Fn=BX.exports,BO={exports:{}},HO={exports:{}},HX={exports:{}};(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(HX);var UX=HX.exports,UO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(a.length1?"s":"")+" required, but only "+a.length+" present")}n.exports=e.default})(UO,UO.exports);var za=UO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){return(0,a.default)(1,arguments),o instanceof Date||(0,r.default)(o)==="object"&&Object.prototype.toString.call(o)==="[object Date]"}n.exports=e.default})(HO,HO.exports);var C6e=HO.exports,WO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(UX),a=t(za);function i(o){(0,a.default)(1,arguments);var s=Object.prototype.toString.call(o);return o instanceof Date||(0,r.default)(o)==="object"&&s==="[object Date]"?new Date(o.getTime()):typeof o=="number"||s==="[object Number]"?new Date(o):((typeof o=="string"||s==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}n.exports=e.default})(WO,WO.exports);var il=WO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(C6e),a=t(il),i=t(za);function o(s){if((0,i.default)(1,arguments),!(0,r.default)(s)&&typeof s!="number")return!1;var l=(0,a.default)(s);return!isNaN(Number(l))}n.exports=e.default})(BO,BO.exports);var w6e=BO.exports,GO={exports:{}},YO={exports:{}},KO={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}n.exports=e.default})(KO,KO.exports);var th=KO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(th),a=t(il),i=t(za);function o(s,l){(0,i.default)(2,arguments);var u=(0,a.default)(s).getTime(),c=(0,r.default)(l);return new Date(u+c)}n.exports=e.default})(YO,YO.exports);var x6e=YO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(x6e),a=t(za),i=t(th);function o(s,l){(0,a.default)(2,arguments);var u=(0,i.default)(l);return(0,r.default)(s,-u)}n.exports=e.default})(GO,GO.exports);var T6e=GO.exports,ZO={exports:{}},XO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(il),a=t(za),i=864e5;function o(s){(0,a.default)(1,arguments);var l=(0,r.default)(s),u=l.getTime();l.setUTCMonth(0,1),l.setUTCHours(0,0,0,0);var c=l.getTime(),d=u-c;return Math.floor(d/i)+1}n.exports=e.default})(XO,XO.exports);var E6e=XO.exports,qO={exports:{}},QO={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(il),a=t(za);function i(o){(0,a.default)(1,arguments);var s=1,l=(0,r.default)(o),u=l.getUTCDay(),c=(u=d.getTime()?u+1:l.getTime()>=h.getTime()?u:u-1}n.exports=e.default})(eI,eI.exports);var WX=eI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=t(WX),a=t(hA),i=t(za);function o(s){(0,i.default)(1,arguments);var l=(0,r.default)(s),u=new Date(0);u.setUTCFullYear(l,0,4),u.setUTCHours(0,0,0,0);var c=(0,a.default)(u);return c}n.exports=e.default})(JO,JO.exports);var O6e=JO.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(hA),i=t(O6e),o=t(za),s=6048e5;function l(u){(0,o.default)(1,arguments);var c=(0,r.default)(u),d=(0,a.default)(c).getTime()-(0,i.default)(c).getTime();return Math.round(d/s)+1}n.exports=e.default})(qO,qO.exports);var I6e=qO.exports,tI={exports:{}},nI={exports:{}},nh={};Object.defineProperty(nh,"__esModule",{value:!0});nh.getDefaultOptions=P6e;nh.setDefaultOptions=D6e;var GX={};function P6e(){return GX}function D6e(n){GX=n}(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=t(il),a=t(za),i=t(th),o=nh;function s(l,u){var c,d,f,h,p,g,m,y;(0,a.default)(1,arguments);var b=(0,o.getDefaultOptions)(),_=(0,i.default)((c=(d=(f=(h=u==null?void 0:u.weekStartsOn)!==null&&h!==void 0?h:u==null||(p=u.locale)===null||p===void 0||(g=p.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&f!==void 0?f:b.weekStartsOn)!==null&&d!==void 0?d:(m=b.locale)===null||m===void 0||(y=m.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&c!==void 0?c:0);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=(0,r.default)(l),C=S.getUTCDay(),w=(C<_?7:0)+C-_;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}n.exports=e.default})(nI,nI.exports);var pA=nI.exports,rI={exports:{}},aI={exports:{}};(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,r.default)(u),S=_.getUTCFullYear(),C=(0,s.getDefaultOptions)(),w=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:C.firstWeekContainsDate)!==null&&f!==void 0?f:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(w>=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=new Date(0);T.setUTCFullYear(S+1,0,w),T.setUTCHours(0,0,0,0);var E=(0,i.default)(T,c),O=new Date(0);O.setUTCFullYear(S,0,w),O.setUTCHours(0,0,0,0);var I=(0,i.default)(O,c);return _.getTime()>=E.getTime()?S+1:_.getTime()>=I.getTime()?S:S-1}n.exports=e.default})(aI,aI.exports);var YX=aI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(YX),a=t(za),i=t(pA),o=t(th),s=nh;function l(u,c){var d,f,h,p,g,m,y,b;(0,a.default)(1,arguments);var _=(0,s.getDefaultOptions)(),S=(0,o.default)((d=(f=(h=(p=c==null?void 0:c.firstWeekContainsDate)!==null&&p!==void 0?p:c==null||(g=c.locale)===null||g===void 0||(m=g.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&h!==void 0?h:_.firstWeekContainsDate)!==null&&f!==void 0?f:(y=_.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:1),C=(0,r.default)(u,c),w=new Date(0);w.setUTCFullYear(C,0,S),w.setUTCHours(0,0,0,0);var T=(0,i.default)(w,c);return T}n.exports=e.default})(rI,rI.exports);var A6e=rI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var r=t(il),a=t(pA),i=t(A6e),o=t(za),s=6048e5;function l(u,c){(0,o.default)(1,arguments);var d=(0,r.default)(u),f=(0,a.default)(d,c).getTime()-(0,i.default)(d,c).getTime();return Math.round(f/s)+1}n.exports=e.default})(tI,tI.exports);var M6e=tI.exports,iI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){for(var i=r<0?"-":"",o=Math.abs(r).toString();o.length0?u:1-u;return(0,r.default)(l==="yy"?c%100:c,l.length)},M:function(s,l){var u=s.getUTCMonth();return l==="M"?String(u+1):(0,r.default)(u+1,2)},d:function(s,l){return(0,r.default)(s.getUTCDate(),l.length)},a:function(s,l){var u=s.getUTCHours()/12>=1?"pm":"am";switch(l){case"a":case"aa":return u.toUpperCase();case"aaa":return u;case"aaaaa":return u[0];case"aaaa":default:return u==="am"?"a.m.":"p.m."}},h:function(s,l){return(0,r.default)(s.getUTCHours()%12||12,l.length)},H:function(s,l){return(0,r.default)(s.getUTCHours(),l.length)},m:function(s,l){return(0,r.default)(s.getUTCMinutes(),l.length)},s:function(s,l){return(0,r.default)(s.getUTCSeconds(),l.length)},S:function(s,l){var u=l.length,c=s.getUTCMilliseconds(),d=Math.floor(c*Math.pow(10,u-3));return(0,r.default)(d,l.length)}},i=a;e.default=i,n.exports=e.default})(oI,oI.exports);var R6e=oI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(E6e),a=t(I6e),i=t(WX),o=t(M6e),s=t(YX),l=t(KX),u=t(R6e),c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},d={G:function(y,b,_){var S=y.getUTCFullYear()>0?1:0;switch(b){case"G":case"GG":case"GGG":return _.era(S,{width:"abbreviated"});case"GGGGG":return _.era(S,{width:"narrow"});case"GGGG":default:return _.era(S,{width:"wide"})}},y:function(y,b,_){if(b==="yo"){var S=y.getUTCFullYear(),C=S>0?S:1-S;return _.ordinalNumber(C,{unit:"year"})}return u.default.y(y,b)},Y:function(y,b,_,S){var C=(0,s.default)(y,S),w=C>0?C:1-C;if(b==="YY"){var T=w%100;return(0,l.default)(T,2)}return b==="Yo"?_.ordinalNumber(w,{unit:"year"}):(0,l.default)(w,b.length)},R:function(y,b){var _=(0,i.default)(y);return(0,l.default)(_,b.length)},u:function(y,b){var _=y.getUTCFullYear();return(0,l.default)(_,b.length)},Q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"Q":return String(S);case"QQ":return(0,l.default)(S,2);case"Qo":return _.ordinalNumber(S,{unit:"quarter"});case"QQQ":return _.quarter(S,{width:"abbreviated",context:"formatting"});case"QQQQQ":return _.quarter(S,{width:"narrow",context:"formatting"});case"QQQQ":default:return _.quarter(S,{width:"wide",context:"formatting"})}},q:function(y,b,_){var S=Math.ceil((y.getUTCMonth()+1)/3);switch(b){case"q":return String(S);case"qq":return(0,l.default)(S,2);case"qo":return _.ordinalNumber(S,{unit:"quarter"});case"qqq":return _.quarter(S,{width:"abbreviated",context:"standalone"});case"qqqqq":return _.quarter(S,{width:"narrow",context:"standalone"});case"qqqq":default:return _.quarter(S,{width:"wide",context:"standalone"})}},M:function(y,b,_){var S=y.getUTCMonth();switch(b){case"M":case"MM":return u.default.M(y,b);case"Mo":return _.ordinalNumber(S+1,{unit:"month"});case"MMM":return _.month(S,{width:"abbreviated",context:"formatting"});case"MMMMM":return _.month(S,{width:"narrow",context:"formatting"});case"MMMM":default:return _.month(S,{width:"wide",context:"formatting"})}},L:function(y,b,_){var S=y.getUTCMonth();switch(b){case"L":return String(S+1);case"LL":return(0,l.default)(S+1,2);case"Lo":return _.ordinalNumber(S+1,{unit:"month"});case"LLL":return _.month(S,{width:"abbreviated",context:"standalone"});case"LLLLL":return _.month(S,{width:"narrow",context:"standalone"});case"LLLL":default:return _.month(S,{width:"wide",context:"standalone"})}},w:function(y,b,_,S){var C=(0,o.default)(y,S);return b==="wo"?_.ordinalNumber(C,{unit:"week"}):(0,l.default)(C,b.length)},I:function(y,b,_){var S=(0,a.default)(y);return b==="Io"?_.ordinalNumber(S,{unit:"week"}):(0,l.default)(S,b.length)},d:function(y,b,_){return b==="do"?_.ordinalNumber(y.getUTCDate(),{unit:"date"}):u.default.d(y,b)},D:function(y,b,_){var S=(0,r.default)(y);return b==="Do"?_.ordinalNumber(S,{unit:"dayOfYear"}):(0,l.default)(S,b.length)},E:function(y,b,_){var S=y.getUTCDay();switch(b){case"E":case"EE":case"EEE":return _.day(S,{width:"abbreviated",context:"formatting"});case"EEEEE":return _.day(S,{width:"narrow",context:"formatting"});case"EEEEEE":return _.day(S,{width:"short",context:"formatting"});case"EEEE":default:return _.day(S,{width:"wide",context:"formatting"})}},e:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"e":return String(w);case"ee":return(0,l.default)(w,2);case"eo":return _.ordinalNumber(w,{unit:"day"});case"eee":return _.day(C,{width:"abbreviated",context:"formatting"});case"eeeee":return _.day(C,{width:"narrow",context:"formatting"});case"eeeeee":return _.day(C,{width:"short",context:"formatting"});case"eeee":default:return _.day(C,{width:"wide",context:"formatting"})}},c:function(y,b,_,S){var C=y.getUTCDay(),w=(C-S.weekStartsOn+8)%7||7;switch(b){case"c":return String(w);case"cc":return(0,l.default)(w,b.length);case"co":return _.ordinalNumber(w,{unit:"day"});case"ccc":return _.day(C,{width:"abbreviated",context:"standalone"});case"ccccc":return _.day(C,{width:"narrow",context:"standalone"});case"cccccc":return _.day(C,{width:"short",context:"standalone"});case"cccc":default:return _.day(C,{width:"wide",context:"standalone"})}},i:function(y,b,_){var S=y.getUTCDay(),C=S===0?7:S;switch(b){case"i":return String(C);case"ii":return(0,l.default)(C,b.length);case"io":return _.ordinalNumber(C,{unit:"day"});case"iii":return _.day(S,{width:"abbreviated",context:"formatting"});case"iiiii":return _.day(S,{width:"narrow",context:"formatting"});case"iiiiii":return _.day(S,{width:"short",context:"formatting"});case"iiii":default:return _.day(S,{width:"wide",context:"formatting"})}},a:function(y,b,_){var S=y.getUTCHours(),C=S/12>=1?"pm":"am";switch(b){case"a":case"aa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"aaa":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"aaaa":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},b:function(y,b,_){var S=y.getUTCHours(),C;switch(S===12?C=c.noon:S===0?C=c.midnight:C=S/12>=1?"pm":"am",b){case"b":case"bb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"bbb":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"bbbb":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},B:function(y,b,_){var S=y.getUTCHours(),C;switch(S>=17?C=c.evening:S>=12?C=c.afternoon:S>=4?C=c.morning:C=c.night,b){case"B":case"BB":case"BBB":return _.dayPeriod(C,{width:"abbreviated",context:"formatting"});case"BBBBB":return _.dayPeriod(C,{width:"narrow",context:"formatting"});case"BBBB":default:return _.dayPeriod(C,{width:"wide",context:"formatting"})}},h:function(y,b,_){if(b==="ho"){var S=y.getUTCHours()%12;return S===0&&(S=12),_.ordinalNumber(S,{unit:"hour"})}return u.default.h(y,b)},H:function(y,b,_){return b==="Ho"?_.ordinalNumber(y.getUTCHours(),{unit:"hour"}):u.default.H(y,b)},K:function(y,b,_){var S=y.getUTCHours()%12;return b==="Ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},k:function(y,b,_){var S=y.getUTCHours();return S===0&&(S=24),b==="ko"?_.ordinalNumber(S,{unit:"hour"}):(0,l.default)(S,b.length)},m:function(y,b,_){return b==="mo"?_.ordinalNumber(y.getUTCMinutes(),{unit:"minute"}):u.default.m(y,b)},s:function(y,b,_){return b==="so"?_.ordinalNumber(y.getUTCSeconds(),{unit:"second"}):u.default.s(y,b)},S:function(y,b){return u.default.S(y,b)},X:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();if(w===0)return"Z";switch(b){case"X":return h(w);case"XXXX":case"XX":return p(w);case"XXXXX":case"XXX":default:return p(w,":")}},x:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"x":return h(w);case"xxxx":case"xx":return p(w);case"xxxxx":case"xxx":default:return p(w,":")}},O:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"O":case"OO":case"OOO":return"GMT"+f(w,":");case"OOOO":default:return"GMT"+p(w,":")}},z:function(y,b,_,S){var C=S._originalDate||y,w=C.getTimezoneOffset();switch(b){case"z":case"zz":case"zzz":return"GMT"+f(w,":");case"zzzz":default:return"GMT"+p(w,":")}},t:function(y,b,_,S){var C=S._originalDate||y,w=Math.floor(C.getTime()/1e3);return(0,l.default)(w,b.length)},T:function(y,b,_,S){var C=S._originalDate||y,w=C.getTime();return(0,l.default)(w,b.length)}};function f(m,y){var b=m>0?"-":"+",_=Math.abs(m),S=Math.floor(_/60),C=_%60;if(C===0)return b+String(S);var w=y||"";return b+String(S)+w+(0,l.default)(C,2)}function h(m,y){if(m%60===0){var b=m>0?"-":"+";return b+(0,l.default)(Math.abs(m)/60,2)}return p(m,y)}function p(m,y){var b=y||"",_=m>0?"-":"+",S=Math.abs(m),C=(0,l.default)(Math.floor(S/60),2),w=(0,l.default)(S%60,2);return _+C+b+w}var g=d;e.default=g,n.exports=e.default})(ZO,ZO.exports);var L6e=ZO.exports,sI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(l,u){switch(l){case"P":return u.date({width:"short"});case"PP":return u.date({width:"medium"});case"PPP":return u.date({width:"long"});case"PPPP":default:return u.date({width:"full"})}},r=function(l,u){switch(l){case"p":return u.time({width:"short"});case"pp":return u.time({width:"medium"});case"ppp":return u.time({width:"long"});case"pppp":default:return u.time({width:"full"})}},a=function(l,u){var c=l.match(/(P+)(p+)?/)||[],d=c[1],f=c[2];if(!f)return t(l,u);var h;switch(d){case"P":h=u.dateTime({width:"short"});break;case"PP":h=u.dateTime({width:"medium"});break;case"PPP":h=u.dateTime({width:"long"});break;case"PPPP":default:h=u.dateTime({width:"full"});break}return h.replace("{{date}}",t(d,u)).replace("{{time}}",r(f,u))},i={p:r,P:a},o=i;e.default=o,n.exports=e.default})(sI,sI.exports);var k6e=sI.exports,lI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}n.exports=e.default})(lI,lI.exports);var ZX=lI.exports,i0={};Object.defineProperty(i0,"__esModule",{value:!0});i0.isProtectedDayOfYearToken=$6e;i0.isProtectedWeekYearToken=V6e;i0.throwProtectedError=j6e;var N6e=["D","DD"],F6e=["YY","YYYY"];function $6e(n){return N6e.indexOf(n)!==-1}function V6e(n){return F6e.indexOf(n)!==-1}function j6e(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var uI={exports:{}},cI={exports:{}},dI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(o,s,l){var u,c=t[o];return typeof c=="string"?u=c:s===1?u=c.one:u=c.other.replace("{{count}}",s.toString()),l!=null&&l.addSuffix?l.comparison&&l.comparison>0?"in "+u:u+" ago":u},a=r;e.default=a,n.exports=e.default})(dI,dI.exports);var z6e=dI.exports,fI={exports:{}},hI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.width?String(a.width):r.defaultWidth,o=r.formats[i]||r.formats[r.defaultWidth];return o}}n.exports=e.default})(hI,hI.exports);var B6e=hI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(B6e),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},i={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},o={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},s={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:i,defaultWidth:"full"}),dateTime:(0,r.default)({formats:o,defaultWidth:"full"})},l=s;e.default=l,n.exports=e.default})(fI,fI.exports);var H6e=fI.exports,pI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(o,s,l,u){return t[o]},a=r;e.default=a,n.exports=e.default})(pI,pI.exports);var U6e=pI.exports,gI={exports:{}},vI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return function(a,i){var o=i!=null&&i.context?String(i.context):"standalone",s;if(o==="formatting"&&r.formattingValues){var l=r.defaultFormattingWidth||r.defaultWidth,u=i!=null&&i.width?String(i.width):l;s=r.formattingValues[u]||r.formattingValues[l]}else{var c=r.defaultWidth,d=i!=null&&i.width?String(i.width):r.defaultWidth;s=r.values[d]||r.values[c]}var f=r.argumentCallback?r.argumentCallback(a):a;return s[f]}}n.exports=e.default})(vI,vI.exports);var W6e=vI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(W6e),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},i={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},o={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},s={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},u={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(p,g){var m=Number(p),y=m%100;if(y>20||y<10)switch(y%10){case 1:return m+"st";case 2:return m+"nd";case 3:return m+"rd"}return m+"th"},d={ordinalNumber:c,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:i,defaultWidth:"wide",argumentCallback:function(p){return p-1}}),month:(0,r.default)({values:o,defaultWidth:"wide"}),day:(0,r.default)({values:s,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:l,defaultWidth:"wide",formattingValues:u,defaultFormattingWidth:"wide"})},f=d;e.default=f,n.exports=e.default})(gI,gI.exports);var G6e=gI.exports,mI={exports:{}},yI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(i){return function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.width,u=l&&i.matchPatterns[l]||i.matchPatterns[i.defaultMatchWidth],c=o.match(u);if(!c)return null;var d=c[0],f=l&&i.parsePatterns[l]||i.parsePatterns[i.defaultParseWidth],h=Array.isArray(f)?a(f,function(m){return m.test(d)}):r(f,function(m){return m.test(d)}),p;p=i.valueCallback?i.valueCallback(h):h,p=s.valueCallback?s.valueCallback(p):p;var g=o.slice(d.length);return{value:p,rest:g}}}function r(i,o){for(var s in i)if(i.hasOwnProperty(s)&&o(i[s]))return s}function a(i,o){for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:{},o=a.match(r.matchPattern);if(!o)return null;var s=o[0],l=a.match(r.parsePattern);if(!l)return null;var u=r.valueCallback?r.valueCallback(l[0]):l[0];u=i.valueCallback?i.valueCallback(u):u;var c=a.slice(s.length);return{value:u,rest:c}}}n.exports=e.default})(bI,bI.exports);var K6e=bI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Y6e),a=t(K6e),i=/^(\d+)(th|st|nd|rd)?/i,o=/\d+/i,s={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},l={any:[/^b/i,/^(a|c)/i]},u={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},d={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},f={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},p={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,a.default)({matchPattern:i,parsePattern:o,valueCallback:function(S){return parseInt(S,10)}}),era:(0,r.default)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:l,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(S){return S+1}}),month:(0,r.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},b=y;e.default=b,n.exports=e.default})(mI,mI.exports);var Z6e=mI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(z6e),a=t(H6e),i=t(U6e),o=t(G6e),s=t(Z6e),l={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:i.default,localize:o.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},u=l;e.default=u,n.exports=e.default})(cI,cI.exports);var X6e=cI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(X6e),a=r.default;e.default=a,n.exports=e.default})(uI,uI.exports);var q6e=uI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var r=t(w6e),a=t(T6e),i=t(il),o=t(L6e),s=t(k6e),l=t(ZX),u=i0,c=t(th),d=t(za),f=nh,h=t(q6e),p=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,m=/^'([^]*?)'?$/,y=/''/g,b=/[a-zA-Z]/;function _(C,w,T){var E,O,I,P,A,R,L,k,N,z,F,j,U,G,Y,Q,Z,ae;(0,d.default)(2,arguments);var se=String(w),ee=(0,f.getDefaultOptions)(),ne=(E=(O=T==null?void 0:T.locale)!==null&&O!==void 0?O:ee.locale)!==null&&E!==void 0?E:h.default,re=(0,c.default)((I=(P=(A=(R=T==null?void 0:T.firstWeekContainsDate)!==null&&R!==void 0?R:T==null||(L=T.locale)===null||L===void 0||(k=L.options)===null||k===void 0?void 0:k.firstWeekContainsDate)!==null&&A!==void 0?A:ee.firstWeekContainsDate)!==null&&P!==void 0?P:(N=ee.locale)===null||N===void 0||(z=N.options)===null||z===void 0?void 0:z.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(re>=1&&re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var te=(0,c.default)((F=(j=(U=(G=T==null?void 0:T.weekStartsOn)!==null&&G!==void 0?G:T==null||(Y=T.locale)===null||Y===void 0||(Q=Y.options)===null||Q===void 0?void 0:Q.weekStartsOn)!==null&&U!==void 0?U:ee.weekStartsOn)!==null&&j!==void 0?j:(Z=ee.locale)===null||Z===void 0||(ae=Z.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&F!==void 0?F:0);if(!(te>=0&&te<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ne.localize)throw new RangeError("locale must contain localize property");if(!ne.formatLong)throw new RangeError("locale must contain formatLong property");var oe=(0,i.default)(C);if(!(0,r.default)(oe))throw new RangeError("Invalid time value");var pe=(0,l.default)(oe),We=(0,a.default)(oe,pe),Ce={firstWeekContainsDate:re,weekStartsOn:te,locale:ne,_originalDate:oe},Je=se.match(g).map(function(Ve){var Rt=Ve[0];if(Rt==="p"||Rt==="P"){var $n=s.default[Rt];return $n(Ve,ne.formatLong)}return Ve}).join("").match(p).map(function(Ve){if(Ve==="''")return"'";var Rt=Ve[0];if(Rt==="'")return S(Ve);var $n=o.default[Rt];if($n)return!(T!=null&&T.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),!(T!=null&&T.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(Ve)&&(0,u.throwProtectedError)(Ve,w,String(C)),$n(We,Ve,ne.localize,Ce);if(Rt.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Rt+"`");return Ve}).join("");return Je}function S(C){var w=C.match(m);return w?w[1].replace(y,"'"):C}n.exports=e.default})(zO,zO.exports);var Q6e=zO.exports,_I={exports:{}},SI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(o,s,l){var u=i(o,l.timeZone,l.locale);return u.formatToParts?r(u,s):a(u,s)}function r(o,s){for(var l=o.formatToParts(s),u=l.length-1;u>=0;--u)if(l[u].type==="timeZoneName")return l[u].value}function a(o,s){var l=o.format(s).replace(/\u200E/g,""),u=/ [\w-+ ]+$/.exec(l);return u?u[0].substr(1):""}function i(o,s,l){if(l&&!l.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(l?[l.code,"en-US"]:void 0,{timeZone:s,timeZoneName:o})}n.exports=e.default})(SI,SI.exports);var J6e=SI.exports,CI={exports:{}},wI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(l,u){var c=s(u);return c.formatToParts?a(c,l):i(c,l)}var r={year:0,month:1,day:2,hour:3,minute:4,second:5};function a(l,u){try{for(var c=l.formatToParts(u),d=[],f=0;f=0&&(d[h]=parseInt(c[f].value,10))}return d}catch(p){if(p instanceof RangeError)return[NaN];throw p}}function i(l,u){var c=l.format(u).replace(/\u200E/g,""),d=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[d[3],d[1],d[2],d[4],d[5],d[6]]}var o={};function s(l){if(!o[l]){var u=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=u==="06/25/2014, 00:00:00"||u==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";o[l]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:l,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return o[l]}n.exports=e.default})(wI,wI.exports);var e7e=wI.exports,xI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a,i,o,s,l,u){var c=new Date(0);return c.setUTCFullYear(r,a,i),c.setUTCHours(o,s,l,u),c}n.exports=e.default})(xI,xI.exports);var XX=xI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=a(e7e),r=a(XX);function a(g){return g&&g.__esModule?g:{default:g}}var i=36e5,o=6e4,s={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function l(g,m,y){var b,_;if(!g||(b=s.timezoneZ.exec(g),b))return 0;var S;if(b=s.timezoneHH.exec(g),b)return S=parseInt(b[1],10),f(S)?-(S*i):NaN;if(b=s.timezoneHHMM.exec(g),b){S=parseInt(b[1],10);var C=parseInt(b[2],10);return f(S,C)?(_=Math.abs(S)*i+C*o,S>0?-_:_):NaN}if(p(g)){m=new Date(m||Date.now());var w=y?m:u(m),T=c(w,g),E=y?T:d(m,T,g);return-E}return NaN}function u(g){return(0,r.default)(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds(),g.getMilliseconds())}function c(g,m){var y=(0,t.default)(g,m),b=(0,r.default)(y[0],y[1]-1,y[2],y[3]%24,y[4],y[5],0).getTime(),_=g.getTime(),S=_%1e3;return _-=S>=0?S:1e3+S,b-_}function d(g,m,y){var b=g.getTime(),_=b-m,S=c(new Date(_),y);if(m===S)return m;_-=S-m;var C=c(new Date(_),y);return S===C?S:Math.max(S,C)}function f(g,m){return-23<=g&&g<=23&&(m==null||0<=m&&m<=59)}var h={};function p(g){if(h[g])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:g}),h[g]=!0,!0}catch{return!1}}n.exports=e.default})(CI,CI.exports);var o0=CI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(J6e),r=a(o0);function a(h){return h&&h.__esModule?h:{default:h}}var i=60*1e3,o={X:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);if(y===0)return"Z";switch(p){case"X":return c(y);case"XXXX":case"XX":return u(y);case"XXXXX":case"XXX":default:return u(y,":")}},x:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"x":return c(y);case"xxxx":case"xx":return u(y);case"xxxxx":case"xxx":default:return u(y,":")}},O:function(h,p,g,m){var y=s(m.timeZone,m._originalDate||h);switch(p){case"O":case"OO":case"OOO":return"GMT"+d(y,":");case"OOOO":default:return"GMT"+u(y,":")}},z:function(h,p,g,m){var y=m._originalDate||h;switch(p){case"z":case"zz":case"zzz":return(0,t.default)("short",y,m);case"zzzz":default:return(0,t.default)("long",y,m)}}};function s(h,p){var g=h?(0,r.default)(h,p,!0)/i:p.getTimezoneOffset();if(Number.isNaN(g))throw new RangeError("Invalid time zone specified: "+h);return g}function l(h,p){for(var g=h<0?"-":"",m=Math.abs(h).toString();m.length0?"-":"+",y=Math.abs(h),b=l(Math.floor(y/60),2),_=l(Math.floor(y%60),2);return m+b+g+_}function c(h,p){if(h%60===0){var g=h>0?"-":"+";return g+l(Math.abs(h)/60,2)}return u(h,p)}function d(h,p){var g=h>0?"-":"+",m=Math.abs(h),y=Math.floor(m/60),b=m%60;if(b===0)return g+String(y);var _=p||"";return g+String(y)+_+l(b,2)}var f=o;e.default=f,n.exports=e.default})(_I,_I.exports);var t7e=_I.exports,TI={exports:{}},EI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,r=t;e.default=r,n.exports=e.default})(EI,EI.exports);var qX=EI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var t=o(th),r=o(ZX),a=o(o0),i=o(qX);function o(E){return E&&E.__esModule?E:{default:E}}var s=36e5,l=6e4,u=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:i.default};function d(E,O){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(E===null)return new Date(NaN);var I=O||{},P=I.additionalDigits==null?u:(0,t.default)(I.additionalDigits);if(P!==2&&P!==1&&P!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(E instanceof Date||typeof E=="object"&&Object.prototype.toString.call(E)==="[object Date]")return new Date(E.getTime());if(typeof E=="number"||Object.prototype.toString.call(E)==="[object Number]")return new Date(E);if(!(typeof E=="string"||Object.prototype.toString.call(E)==="[object String]"))return new Date(NaN);var A=f(E),R=h(A.date,P),L=R.year,k=R.restDateString,N=p(k,L);if(isNaN(N))return new Date(NaN);if(N){var z=N.getTime(),F=0,j;if(A.time&&(F=g(A.time),isNaN(F)))return new Date(NaN);if(A.timeZone||I.timeZone){if(j=(0,a.default)(A.timeZone||I.timeZone,new Date(z+F)),isNaN(j))return new Date(NaN)}else j=(0,r.default)(new Date(z+F)),j=(0,r.default)(new Date(z+F+j));return new Date(z+F+j)}else return new Date(NaN)}function f(E){var O={},I=c.dateTimePattern.exec(E),P;if(I?(O.date=I[1],P=I[3]):(I=c.datePattern.exec(E),I?(O.date=I[1],P=I[2]):(O.date=null,P=E)),P){var A=c.timeZone.exec(P);A?(O.time=P.replace(A[1],""),O.timeZone=A[1].trim()):O.time=P}return O}function h(E,O){var I=c.YYY[O],P=c.YYYYY[O],A;if(A=c.YYYY.exec(E)||P.exec(E),A){var R=A[1];return{year:parseInt(R,10),restDateString:E.slice(R.length)}}if(A=c.YY.exec(E)||I.exec(E),A){var L=A[1];return{year:parseInt(L,10)*100,restDateString:E.slice(L.length)}}return{year:null}}function p(E,O){if(O===null)return null;var I,P,A,R;if(E.length===0)return P=new Date(0),P.setUTCFullYear(O),P;if(I=c.MM.exec(E),I)return P=new Date(0),A=parseInt(I[1],10)-1,S(O,A)?(P.setUTCFullYear(O,A),P):new Date(NaN);if(I=c.DDD.exec(E),I){P=new Date(0);var L=parseInt(I[1],10);return C(O,L)?(P.setUTCFullYear(O,0,L),P):new Date(NaN)}if(I=c.MMDD.exec(E),I){P=new Date(0),A=parseInt(I[1],10)-1;var k=parseInt(I[2],10);return S(O,A,k)?(P.setUTCFullYear(O,A,k),P):new Date(NaN)}if(I=c.Www.exec(E),I)return R=parseInt(I[1],10)-1,w(O,R)?m(O,R):new Date(NaN);if(I=c.WwwD.exec(E),I){R=parseInt(I[1],10)-1;var N=parseInt(I[2],10)-1;return w(O,R,N)?m(O,R,N):new Date(NaN)}return null}function g(E){var O,I,P;if(O=c.HH.exec(E),O)return I=parseFloat(O[1].replace(",",".")),T(I)?I%24*s:NaN;if(O=c.HHMM.exec(E),O)return I=parseInt(O[1],10),P=parseFloat(O[2].replace(",",".")),T(I,P)?I%24*s+P*l:NaN;if(O=c.HHMMSS.exec(E),O){I=parseInt(O[1],10),P=parseInt(O[2],10);var A=parseFloat(O[3].replace(",","."));return T(I,P,A)?I%24*s+P*l+A*1e3:NaN}return null}function m(E,O,I){O=O||0,I=I||0;var P=new Date(0);P.setUTCFullYear(E,0,4);var A=P.getUTCDay()||7,R=O*7+I+1-A;return P.setUTCDate(P.getUTCDate()+R),P}var y=[31,28,31,30,31,30,31,31,30,31,30,31],b=[31,29,31,30,31,30,31,31,30,31,30,31];function _(E){return E%400===0||E%4===0&&E%100!==0}function S(E,O,I){if(O<0||O>11)return!1;if(I!=null){if(I<1)return!1;var P=_(E);if(P&&I>b[O]||!P&&I>y[O])return!1}return!0}function C(E,O){if(O<1)return!1;var I=_(E);return!(I&&O>366||!I&&O>365)}function w(E,O,I){return!(O<0||O>52||I!=null&&(I<0||I>6))}function T(E,O,I){return!(E!=null&&(E<0||E>=25)||O!=null&&(O<0||O>=60)||I!=null&&(I<0||I>=60))}n.exports=e.default})(TI,TI.exports);var Zw=TI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=i(Q6e),r=i(t7e),a=i(Zw);function i(l){return l&&l.__esModule?l:{default:l}}var o=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(l,u,c){var d=String(u),f=c||{},h=d.match(o);if(h){var p=(0,a.default)(l,f);d=h.reduce(function(g,m){if(m[0]==="'")return g;var y=g.indexOf(m),b=g[y-1]==="'",_=g.replace(m,"'"+r.default[m[0]](p,m,null,f)+"'");return b?_.substring(0,y-1)+_.substring(y+1):_},d)}return(0,t.default)(l,d,f)}n.exports=e.default})(jO,jO.exports);var QX=jO.exports,OI={exports:{}},II={exports:{}},PI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);return r}n.exports=e.default})(PI,PI.exports);var n7e=PI.exports;(function(n,e){var t=Fn.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(n7e);function a(i){return(0,r.default)({},i)}n.exports=e.default})(II,II.exports);var JX=II.exports,DI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=a(o0),r=a(Zw);function a(o){return o&&o.__esModule?o:{default:o}}function i(o,s,l){var u=(0,r.default)(o,l),c=(0,t.default)(s,u,!0),d=new Date(u.getTime()-c),f=new Date(0);return f.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),f.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),f}n.exports=e.default})(DI,DI.exports);var eq=DI.exports;(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=i(JX),r=i(QX),a=i(eq);function i(s){return s&&s.__esModule?s:{default:s}}function o(s,l,u,c){var d=(0,t.default)(c);return d.timeZone=l,(0,r.default)((0,a.default)(s,l),u,d)}n.exports=e.default})(OI,OI.exports);var r7e=OI.exports,AI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(o0);function r(i){return i&&i.__esModule?i:{default:i}}function a(i,o){return-(0,t.default)(i,o)}n.exports=e.default})(AI,AI.exports);var a7e=AI.exports,MI={exports:{}};(function(n,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var t=s(JX),r=s(Zw),a=s(qX),i=s(o0),o=s(XX);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,d){if(typeof u=="string"&&!u.match(a.default)){var f=(0,t.default)(d);return f.timeZone=c,(0,r.default)(u,f)}var h=(0,r.default)(u,d),p=(0,o.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),g=(0,i.default)(c,new Date(p));return new Date(p+g)}n.exports=e.default})(MI,MI.exports);var i7e=MI.exports,tq={format:QX,formatInTimeZone:r7e,getTimezoneOffset:a7e,toDate:Zw,utcToZonedTime:eq,zonedTimeToUtc:i7e};const o7e=[[-11,["Pacific/Midway"]],[-10,["Pacific/Honolulu"]],[-9.5,["Pacific/Marquesas"]],[-9,["Pacific/Gambier"]],[-8,["Pacific/Pitcairn"]],[-7,["America/Phoenix"]],[-6,["America/Tegucigalpa"]],[-5,["America/Bogota"]],[-4,["America/Puerto_Rico"]],[-3.5,["America/St_Johns"]],[-3,["America/Montevideo"]],[-2,["Atlantic/South_Georgia"]],[-1,["Atlantic/Cape_Verde"]],[0,["Africa/Accra"]],[1,["Africa/Bangui"]],[2,["Africa/Cairo"]],[3,["Asia/Bahrain","Indian/Antananarivo"]],[3.5,["Asia/Tehran"]],[4,["Asia/Dubai","Asia/Muscat"]],[4.5,["Asia/Kabul"]],[5,["Asia/Samarkand","Asia/Karachi"]],[5.5,["Asia/Kolkata"]],[5.75,["Asia/Kathmandu"]],[6,["Asia/Dhaka"]],[6.5,["Asia/Rangoon","Asia/Rangoon"]],[7,["Asia/Jakarta","Asia/Phnom_Penh","Asia/Bangkok"]],[8,["Asia/Shanghai","Asia/Singapore"]],[8.75,["Australia/Eucla"]],[9,["Asia/Tokyo","Asia/Seoul","Asia/Pyongyang"]],[9.5,["Australia/Darwin"]],[10,["Pacific/Guam"]],[10.5,["Australia/Adelaide"]],[11,["Pacific/Guadalcanal"]],[12,["Pacific/Funafuti"]],[13,["Pacific/Enderbury"]],[13.75,["Pacific/Chatham"]],[14,["Pacific/Kiritimati"]]],yN={0:"Etc/GMT",1:"Etc/GMT-1",2:"Etc/GMT-2",3:"Etc/GMT-3",4:"Etc/GMT-4",5:"Etc/GMT-5",6:"Etc/GMT-6",7:"Etc/GMT-7",8:"Etc/GMT-8",9:"Etc/GMT-9",10:"Etc/GMT-10",11:"Etc/GMT-11",12:"Etc/GMT-12",13:"Etc/GMT-13",14:"Etc/GMT-14","-1":"Etc/GMT+1","-2":"Etc/GMT+2","-3":"Etc/GMT+3","-4":"Etc/GMT+4","-5":"Etc/GMT+5","-6":"Etc/GMT+6","-7":"Etc/GMT+7","-8":"Etc/GMT+8","-9":"Etc/GMT+9","-10":"Etc/GMT+10","-11":"Etc/GMT+11","-12":"Etc/GMT+12"},s7e=/([\-\+]{1})(\d{2})\:(\d{2})/,nq=n=>{let e=null;if(typeof n=="string"){if(e=n.match(s7e),!e)return n;const t=parseInt(e[1]+1,10),r=parseInt(e[2],10),a=parseInt(e[3],10);n=t*(r+a/60)}if(typeof n=="number"){if(n in yN){const r=yN[n];if(l7e(r))return r}const t=o7e.find(r=>r[0]===n);return t&&t[1][0]}},bN={};function l7e(n){if(bN[n])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:n}),bN[n]=!0,!0}catch{return!1}}const RI=(n,e,t)=>tq.utcToZonedTime(n,nq(e),t),zp=(n,e,t)=>tq.zonedTimeToUtc(n,nq(e),t);function Dn(n,e,t,r){let a=null;if(n){e&&(t=t||new Date,a=cZ(n,e,t,{locale:r})),uo(a)||(a=mo(n)),uo(a)||(a=new Date(Date.parse(n)));const i=uo(a)&&String(a.getFullYear()).length>4;(!uo(a)||i)&&(a=null)}return a}function a2(n){const{format:e,type:t}=n,r=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4})/i,a=/([yMd]{0,4}[^a-z\s]*[yMd]{0,4}[^a-z\s]*[yMd]{0,4}) (H{0,2}[^a-z\s]*m{0,2}[^a-z\s]*s{0,2})/i,i=Zu(t);let o;switch(t){case"dateTime":case"dateTimeRange":const s=a.exec(e);o=s&&s[1]&&s[2]?`${s[1]} ${s[2]}`:i;break;case"date":case"month":case"monthRange":case"dateRange":default:const l=r.exec(e);o=l&&l[1]||i;break}return o}function LI(n){const e=" ",{inputValue:t="",rangeSeparator:r,type:a}=n;let i,o,s,l;const u={monthLeft:{dateInput:"",timeInput:""},monthRight:{dateInput:"",timeInput:""}};switch(a){case"date":case"month":case"monthRange":u.monthLeft.dateInput=t;break;case"dateRange":[i="",s=""]=t.split(r),u.monthLeft.dateInput=i,u.monthRight.dateInput=s;break;case"dateTime":[i="",o=""]=t.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o;break;case"dateTimeRange":const[c="",d=""]=t.split(r);[i="",o=""]=c.split(e),[s="",l=""]=d.split(e),u.monthLeft.dateInput=i,u.monthLeft.timeInput=o,u.monthRight.dateInput=s,u.monthRight.timeInput=l;break}return u}function i2(n){return["string","number"].includes(typeof n)&&n!==""}class u7e extends ze{constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{const{type:t}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();t==="dateTimeRange"&&r&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{const t=this._adapter.getProp("type");return/range/i.test(t)},this._isRangeValueComplete=t=>{let r=!1;return Array.isArray(t)&&(r=!t.some(a=>ct(a))),r}}init(){const e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:r,prevTimeZone:a}=e;const i=(Array.isArray(t)?[...t]:(t||t===0)&&[t])||[],o=this.parseWithTimezone(i,r,a);this._adapter.updatePrevTimezone(a),this.clearInputValue(),this._adapter.updateValue(o),this.resetCachedSelectedValue(o),this.initRangeInputFocus(o),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(o)}initRangeInputFocus(e){const{triggerRender:t}=this.getProps();this._isRangeType()&&ke(t)&&e.length===0&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,r){const a=[];if(Array.isArray(e)&&e.length)for(const i of e){let o=(i||i===0)&&this._parseValue(i);o&&(i2(r)&&(o=zp(o,r)),a.push(i2(t)?RI(o,t):o))}return a}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){const t=this._adapter.getProp("dateFnsLocale");let r;if(!e&&e!==0)return new Date;if(yo(e))r=e;else if(Xe(e))r=Dn(e,this.getProp("format"),void 0,t);else if(VO(e))r=new Date(e);else throw new TypeError("defaultValue should be valid Date object/timestamp or string");return r}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){this.getProp("disabled")||(this._isControlledComponent("open")||this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){const{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){const{value:t,cachedSelectedValue:r}=this._adapter.getStates(),a=Array.isArray(e)?e:t;Ke(a,r)||this._adapter.updateCachedSelectedValue(a)}closePanel(e){let t=arguments.length>2?arguments[2]:void 0;const{value:r}=this._adapter.getStates(),a=ct(t)?r:t;this._isControlledComponent("open")?this.resetInnerSelectedStates(a):this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1,()=>this.resetInnerSelectedStates()),this._adapter.unregisterClickOutSide()}focus(e){if(this._isRangeType()){const t=e??"rangeStart";this._adapter.setRangeInputFocus(t)}else this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(e){const{value:t}=this._adapter.getStates();(!this.isCachedSelectedValueValid(e)||this._adapter.needConfirm()&&!this.clickConfirmButton)&&this.resetCachedSelectedValue(t),this.resetFocus(),this.clearInputValue(),this.clickConfirmButton=!1}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){const t=e||this._adapter.getState("cachedSelectedValue"),{type:r}=this._adapter.getProps();let a=!0;switch(!0){case r==="dateRange":case r==="dateTimeRange":this._isRangeValueComplete(t)||(a=!1);break;default:const i=t==null?void 0:t.filter(o=>o);Array.isArray(i)&&i.length||(a=!1);break}return a}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){const r=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:a}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),r&&r.length||e===""){if(H(t,Yc.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(r);return}this._updateValueAndInput(r,e==="",e);const i=this._getChangedDates(r);this._someDateDisabled(i,r)||Ke(r,a)||this._notifyChange(r)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){const{insetInputStr:t,format:r,insetInputValue:a}=e,i=this._isMultiple(),o=i?this.parseMultipleInput(t,r):this.parseInput(t,r),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),o&&o.length){const l=this._getChangedDates(o);if(!this._someDateDisabled(l,o)){Ke(o,s)||(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(o),this._notifyChange(o));const u=i?this.formatMultipleDates(o):this.formatDates(o);this._adapter.updateInputValue(u)}}this._adapter.updateInsetInputValue(a)}_updateCachedSelectedValueFromInput(e){const t=this.getLooseDateFromInput(e),r=this._getChangedDates(t);this._someDateDisabled(r,t)||this.resetCachedSelectedValue(t)}handleInputBlur(){}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){const r=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(r))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){const t=[],r="";this._isControlledComponent("value")||(this._updateValueAndInput(t,!0,r),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(t=t&&t.length?t:this.getState("value"),!t||!t.length){const i=new Date;this._isRangeType()?t=[i,i]:t=[i]}this._updateValueAndInput(t);const{value:r}=this.getStates(),a=this._getChangedDates(t);!this._someDateDisabled(a,t)&&!Ke(t,r)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=[];const{dateFnsLocale:a,rangeSeparator:i}=this.getProps();if(e&&e.length){const o=this.getProp("type"),s=t||this.getProp("format")||Zu(o);let l,u;const c=new Date;switch(o){case"date":case"dateTime":case"month":l=e?Dn(e,s,c,a):"",u=l&&uo(l)&&this.localeFormat(l,s),l&&u===e&&(r=[l]);break;case"dateRange":case"dateTimeRange":case"monthRange":const d=i,f=e.split(d);l=f&&f.reduce((h,p)=>{const g=p&&Dn(p,s,c,a);return g&&h.push(g),h},[]),u=l&&l.map(h=>h&&uo(h)&&this.localeFormat(h,s)).join(d),l&&u===e&&(l.sort((h,p)=>h.getTime()-p.getTime()),r=l);break}}return r}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=[];const{dateFnsLocale:r,rangeSeparator:a,type:i,format:o}=this.getProps();if(e&&e.length){const s=o||Zu(i);let l,u;const c=new Date;switch(i){case"date":case"dateTime":case"month":const d=Dn(e,s,c,r);yo(d)?(u=this.localeFormat(d,s),u===e&&(l=d)):l=null,t=[l];break;case"dateRange":case"dateTimeRange":const f=a,h=e.split(f);l=h&&h.reduce((p,g)=>{let m=null;const y=Dn(g,s,c,r);return yo(y)&&(u=this.localeFormat(y,s),u===g&&(m=y)),p.push(m),p},[]),Array.isArray(l)&&l.every(p=>uo(p))&&l.sort((p,g)=>p.getTime()-g.getTime()),t=l;break}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInputLoose(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Dk(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}parseMultipleInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const a=this.getProp("max"),i=e.split(t),o=[];for(const s of i){let l=s&&this.parseInput(s);if(l=Array.isArray(l)?l:l&&[l],l&&l.length)r?!o.filter(u=>!!l.find(c=>Dk(u,c)))&&o.push(...l):o.push(...l);else return[];if(a&&a>0&&o.length>a)return[]}return o}formatDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r="";const a=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){const i=this.getProp("type"),o=t||this.getProp("format")||Zu(i);switch(i){case"date":case"dateTime":case"month":r=this.localeFormat(e[0],o);break;case"dateRange":case"dateTimeRange":case"monthRange":const s=!ct(e[0]),l=!ct(e[1]);s&&l?r=`${this.localeFormat(e[0],o)}${a}${this.localeFormat(e[1],o)}`:s?r=`${this.localeFormat(e[0],o)}${a}`:l&&(r=`${a}${this.localeFormat(e[1],o)}`);break}}return r}formatMultipleDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.DEFAULT_SEPARATOR_MULTIPLE,r=arguments.length>2?arguments[2]:void 0;const a=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(o=>a.push(this.formatDates([o],r)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{};const{currentMonth:t,currentYear:r}=e,{type:a}=this.getProps();if(a==="month"){const i=new Date(r.left,t.left-1);this.handleSelectedChange([i])}else{const i=new Date(r.left,t.left-1),o=new Date(r.right,t.right-1);this.handleSelectedChange([i,o])}}handleConfirm(){this.clickConfirmButton=!0;const{cachedSelectedValue:e,value:t}=this._adapter.getStates(),r=this._isRangeValueComplete(e),a=r?e:t;if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(a),this.closePanel(void 0,void 0,a),r){const{notifyValue:i,notifyDate:o}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(o,i)}}handleCancel(){this.closePanel();const e=this.getState("value"),{notifyValue:t,notifyDate:r}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(r,t)}handlePresetClick(e,t){const{type:r,timeZone:a}=this.getProps(),i=this.getState("prevTimezone");let o;switch(r){case"month":case"dateTime":case"date":o=this.parseWithTimezone([e.start],a,i),this.handleSelectedChange(o);break;case"dateTimeRange":case"dateRange":o=this.parseWithTimezone([e.start,e.end],a,i),this.handleSelectedChange(o,{needCheckFocusRecord:!1});break}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":case"monthRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;const{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:r,notifyDate:a}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_getChangedDates(e){const t=this._adapter.getProp("type"),{cachedSelectedValue:r}=this._adapter.getStates(),a=[];switch(t){case"dateRange":case"dateTimeRange":const[i,o]=r,[s,l]=e;SS(s,i)||a.push(s),SS(l,o)||a.push(l);break;default:const u=new Set;r.forEach(c=>u.add(TO(c)&&c.valueOf()));for(const c of e)u.has(TO(c)&&c.valueOf())||a.push(c)}return a}_someDateDisabled(e,t){const{rangeInputFocus:r}=this.getStates(),a={rangeStart:"",rangeEnd:"",rangeInputFocus:r};if(this._isRangeType()&&Array.isArray(t)){if(uo(t[0])){const o=Lt(t[0],"yyyy-MM-dd");a.rangeStart=o}if(uo(t[1])){const o=Lt(t[1],"yyyy-MM-dd");a.rangeEnd=o}}let i=!1;for(const o of e)if(!ct(o)&&this.disabledDisposeDate(o,a)){i=!0;break}return i}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeDateFn(e,t){const{notifyDate:r}=this.disposeCallbackArgs(t),a=Array.isArray(t),i=Array.isArray(r);let o;a===i?o=r:o=a?[r]:r[0];for(var s=arguments.length,l=new Array(s>2?s-2:0),u=2;u1?r-1:0),i=1;i1?r-1:0),i=1;i{this.handleInputFocus(e,"rangeStart")},0):ke(r)&&this._adapter.setRangeInputFocus("rangeStart"),this.openPanel()):this.openPanel())}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}}function Eh(n,e){let{groupInnerSeparator:t=le.DEFAULT_SEPARATOR_RANGE,groupSize:r=1,groupSeparator:a=le.DEFAULT_SEPARATOR_MULTIPLE}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,o="";if((r<=0||typeof r!="number")&&(r=1),Array.isArray(n)&&n.length){const s=[],{length:l}=n;for(let u=0;uu.map(c=>c?Lt(c,e,{locale:i}):"").join(t)).join(a)}return o}function rq(n){const{defaultPickerValue:e,format:t,dateFnsLocale:r}=n;let a=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;switch(!0){case yo(a):break;case VO(a):a=new Date(a);break;case typeof a=="string":a=Dn(a,t,void 0,r);break;default:a=new Date;break}switch(!0){case yo(i):break;case VO(i):i=new Date(i);break;case typeof i=="string":i=Dn(i,t,void 0,r);break;default:i=Ku(a,1);break}return{nowDate:a,nextDate:i}}const _N="Enter",c7e="Tab";let d7e=class extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===_N&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===_N&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){e.key===c7e&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){const{type:r,dateFnsLocale:a,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||Zu(r);let l="";switch(r){case"date":l=Eh(e,s,void 0,a);break;case"dateRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"dateTime":l=Eh(e,s,void 0,a);break;case"dateTimeRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break;case"month":l=Eh(e,s,void 0,a);break;case"monthRange":l=Eh(e,s,{groupSize:2,groupInnerSeparator:o},a);break}return l}handleInsetInputChange(e){const{value:t,valuePath:r,insetInputValue:a}=e,{format:i,type:o,rangeSeparator:s}=this._adapter.getProps(),l=a2({type:o,format:i}),u=ai(Ii(a),r,t),c=this.concatInsetInputValue({insetInputValue:u}),d=LI({inputValue:c,type:o,rangeSeparator:s}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:r,format:l}),h=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:l,insetInputStr:h})}_autoFillTimeToInsetInputValue(e){const{valuePath:t,insetInputValue:r,format:a}=e,{type:i,defaultPickerValue:o,dateFnsLocale:s}=this._adapter.getProps(),l=Ii(r),{nowDate:u,nextDate:c}=rq({defaultPickerValue:o,format:a,dateFnsLocale:s});if(i.includes("Time")){let d="";const f=H(a.split(" "),"0",le.FORMAT_FULL_DATE),h=H(a.split(" "),"1",le.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":const p=l.monthLeft.dateInput;if(!l.monthLeft.timeInput&&p.length===f.length){const m=Dn(l.monthLeft.dateInput,f);yo(m)&&(d=Lt(u,h),l.monthLeft.timeInput=d)}break;case"monthRight.dateInput":const g=l.monthRight.dateInput;if(!l.monthRight.timeInput&&g.length===f.length){const m=Dn(g,f);yo(m)&&(d=Lt(c,h),l.monthRight.timeInput=d)}break}}return l}getInsetInputPlaceholder(){const{type:e,format:t,rangeSeparator:r}=this._adapter.getProps(),a=a2({type:e,format:t});let i,o;switch(e){case"date":case"month":case"dateRange":i=a;break;case"dateTime":case"dateTimeRange":[i,o]=a.split(" ");break;case"monthRange":i=a+r+a;break}return{datePlaceholder:i,timePlaceholder:o}}getInsetInputValue(e){let{value:t,insetInputValue:r}=e;const{type:a,rangeSeparator:i,format:o}=this._adapter.getProps();let s="";if(oa(r))s=this.concatInsetInputValue({insetInputValue:r});else{const u=a2({format:o,type:a});s=this.formatShowText(t,u)}return LI({inputValue:s,type:a,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:r}=e;return`${t} ${r}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:r}=e;const{rangeSeparator:a}=this._adapter.getProps();return`${t}${a}${r}`}concatInsetInputValue(e){let{insetInputValue:t}=e;const{type:r}=this._adapter.getProps();let a="";switch(r){case"date":case"month":case"monthRange":a=t.monthLeft.dateInput;break;case"dateRange":a=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":a=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":const i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});a=this.concatInsetDateRange({rangeStart:i,rangeEnd:o});break}return a}};function SN(n){const{insetInputValue:e,valuePath:t,onFocus:r,onChange:a,placeholder:i,forwardRef:o}=n,s=H(e,t);return x.createElement(Ri,{value:s,onChange:(l,u)=>{a({value:l,event:u,insetInputValue:e,valuePath:t})},onFocus:r,placeholder:i,ref:o})}function CN(n){const{insetInputValue:e,valuePath:t,type:r,onFocus:a,onChange:i,placeholder:o,disabled:s}=n;if(!r.includes("Time"))return null;const u=H(e,t);return x.createElement(Ri,{value:u,onChange:(c,d)=>{i({value:c,event:d,insetInputValue:e,valuePath:t})},onFocus:a,placeholder:o,disabled:s})}var f7e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleChange(t,r),this.handleEnterPress=t=>this.foundation.handleInputComplete(t),this.handleInputClear=t=>this.foundation.handleInputClear(t),this.handleRangeInputChange=(t,r,a)=>{const i=this.getRangeInputValue(t,r);this.foundation.handleChange(i,a)},this.handleRangeInputClear=t=>{this.foundation.handleRangeInputClear(t)},this.handleRangeInputEnterPress=(t,r,a)=>{const i=this.getRangeInputValue(r,a);this.foundation.handleRangeInputEnterPress(t,i)},this.handleRangeInputEndKeyPress=t=>{this.foundation.handleRangeInputEndKeyPress(t)},this.handleRangeInputFocus=(t,r)=>{this.foundation.handleRangeInputFocus(t,r)},this.handleRangeStartFocus=t=>{this.handleRangeInputFocus(t,"rangeStart")},this.handleInsetInputChange=t=>{this.foundation.handleInsetInputChange(t)},this.getRangeInputValue=(t,r)=>{const{rangeSeparator:a}=this.props;return`${t}${a}${r}`},this.foundation=new d7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{updateIsFocusing:t=>this.setState({isFocusing:t}),notifyClick:function(){return e.props.onClick(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyEnter:function(){return e.props.onEnterPress(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyRangeInputClear:function(){return e.props.onRangeClear(...arguments)},notifyRangeInputFocus:function(){return e.props.onFocus(...arguments)},notifyTabPress:function(){return e.props.onRangeEndTabPress(...arguments)},notifyInsetInputChange:t=>this.props.onInsetInputChange(t)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}formatText(e){return e&&e.length?this.foundation.formatShowText(e):""}renderRangePrefix(){const{prefix:e,insetLabel:t,prefixCls:r,disabled:a,rangeInputFocus:i}=this.props,o=e||t;return o?x.createElement("div",{className:`${r}-range-input-prefix`,onClick:s=>!a&&!i&&this.handleRangeStartFocus(s),"x-semi-prop":"prefix,insetLabel"},o):null}renderRangeSeparator(e,t){const{disabled:r,rangeSeparator:a}=this.props,i=$({[`${Ge.PREFIX}-range-input-separator`]:!0,[`${Ge.PREFIX}-range-input-separator-active`]:(e||t)&&!r});return x.createElement("span",{onClick:o=>!r&&this.handleRangeStartFocus(o),className:i},a)}renderRangeClearBtn(e,t){const{showClear:r,prefixCls:a,disabled:i,clearIcon:o,showClearIgnoreDisabled:s}=this.props;return(e||t)&&r&&!(i&&!s)?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear range input value",className:`${a}-range-input-clearbtn`,onMouseDown:c=>this.handleRangeInputClear(c)},o||x.createElement(Gc,{"aria-hidden":!0})):null}renderRangeSuffix(e){const{prefixCls:t,disabled:r,rangeInputFocus:a}=this.props;return e?x.createElement("div",{className:`${t}-range-input-suffix`,onClick:o=>!r&&!a&&this.handleRangeStartFocus(o)},e):null}renderRangeInput(e){const{placeholder:t,inputStyle:r,disabled:a,inputReadOnly:i,autofocus:o,size:s,text:l,suffix:u,inputCls:c,rangeInputStartRef:d,rangeInputEndRef:f,rangeInputFocus:h,prefixCls:p,rangeSeparator:g,borderless:m}=e,[y,b=""]=l.split(g)||[],_=s==="large"?"default":"small",S=Array.isArray(t)?t:[t,t],[C,w]=S,T=$(`${p}-range-input-wrapper-start`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeStart"&&!a,[`${p}-range-input-wrapper-start-with-prefix`]:this.props.prefix||this.props.insetLabel,[`${p}-borderless`]:m}),E=$(`${p}-range-input-wrapper-end`,`${p}-range-input-wrapper`,{[`${p}-range-input-wrapper-active`]:h==="rangeEnd"&&!a,[`${p}-borderless`]:m});return x.createElement(x.Fragment,null,this.renderRangePrefix(),x.createElement("div",{onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeStart"),className:`${c} ${T}`},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:C,value:y,onChange:(O,I)=>this.handleRangeInputChange(O,b,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeStart"),autoFocus:o,ref:d})),this.renderRangeSeparator(y,b),x.createElement("div",{className:`${c} ${E}`,onClick:O=>!a&&this.handleRangeInputFocus(O,"rangeEnd")},x.createElement(Ri,{borderless:m,size:_,style:r,disabled:a,readonly:i,placeholder:w,value:b,onChange:(O,I)=>this.handleRangeInputChange(y,O,I),onEnterPress:O=>this.handleRangeInputEnterPress(O,y,b),onFocus:O=>this.handleRangeInputFocus(O,"rangeEnd"),onKeyDown:this.handleRangeInputEndKeyPress,ref:f})),this.renderRangeClearBtn(y,b),this.renderRangeSuffix(u))}isRenderMultipleInputs(){const{type:e}=this.props;return e.includes("Range")&&e!=="monthRange"}renderInputInset(){const{type:e,handleInsetDateFocus:t,handleInsetTimeFocus:r,value:a,insetInputValue:i,prefixCls:o,rangeInputStartRef:s,rangeInputEndRef:l,density:u,insetInput:c}=this.props,d=this.foundation.getInsetInputValue({value:a,insetInputValue:i}),{dateStart:f,dateEnd:h,timeStart:p,timeEnd:g}=H(c,"placeholder",{}),{datePlaceholder:m,timePlaceholder:y}=this.foundation.getInsetInputPlaceholder(),b=`${o}-inset-input-wrapper`,_=`${o}-inset-input-separator`;return x.createElement("div",{className:b,"x-type":e},x.createElement(SN,{forwardRef:s,insetInputValue:d,placeholder:f??m,valuePath:"monthLeft.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeStart")}),x.createElement(CN,{disabled:!d.monthLeft.dateInput,insetInputValue:d,placeholder:p??y,type:e,valuePath:"monthLeft.timeInput",onChange:this.handleInsetInputChange,onFocus:r}),this.isRenderMultipleInputs()&&x.createElement(x.Fragment,null,x.createElement("div",{className:_},u==="compact"?null:"-"),x.createElement(SN,{forwardRef:l,insetInputValue:d,placeholder:h??m,valuePath:"monthRight.dateInput",onChange:this.handleInsetInputChange,onFocus:S=>t(S,"rangeEnd")}),x.createElement(CN,{disabled:!d.monthRight.dateInput,insetInputValue:d,placeholder:g??y,type:e,valuePath:"monthRight.timeInput",onChange:this.handleInsetInputChange,onFocus:r})))}renderTriggerInput(){const e=this.props,{placeholder:t,type:r,value:a,inputValue:i,inputStyle:o,disabled:s,showClear:l,inputReadOnly:u,insetLabel:c,validateStatus:d,block:f,prefixCls:h,multiple:p,dateFnsLocale:g,onBlur:m,onClear:y,onFocus:b,prefix:_,autofocus:S,size:C,inputRef:w,rangeInputStartRef:T,rangeInputEndRef:E,onRangeClear:O,onRangeBlur:I,onRangeEndTabPress:P,rangeInputFocus:A,rangeSeparator:R,insetInput:L,insetInputValue:k,defaultPickerValue:N,showClearIgnoreDisabled:z}=e,F=f7e(e,["placeholder","type","value","inputValue","inputStyle","disabled","showClear","inputReadOnly","insetLabel","validateStatus","block","prefixCls","multiple","dateFnsLocale","onBlur","onClear","onFocus","prefix","autofocus","size","inputRef","rangeInputStartRef","rangeInputEndRef","onRangeClear","onRangeBlur","onRangeEndTabPress","rangeInputFocus","rangeSeparator","insetInput","insetInputValue","defaultPickerValue","showClearIgnoreDisabled"]),j=x.createElement(gZ,{"aria-hidden":!0}),U=x.createElement(iTe,{"aria-hidden":!0}),G=r.includes("Time")?U:j;let Y="";ct(i)?a&&(Y=this.formatText(a)):Y=i;const Q=$({[`${h}-input-readonly`]:u,[`${h}-monthRange-input`]:r==="monthRange"}),Z=Object.assign(Object.assign({},this.props),{text:Y,suffix:G,inputCls:Q});return this.isRenderMultipleInputs()?this.renderRangeInput(Z):x.createElement(Ri,Object.assign({},F,{ref:w,insetLabel:c,disabled:s,showClearIgnoreDisabled:z,readonly:u,className:Q,style:o,hideSuffix:l,placeholder:r==="monthRange"&&Array.isArray(t)?t[0]+R+t[1]:t,onEnterPress:this.handleEnterPress,onChange:this.handleChange,onClear:this.handleInputClear,suffix:G,showClear:l,value:Y,validateStatus:d,prefix:_,autoFocus:S,size:C,onBlur:m,onFocus:b}))}render(){const{insetInput:e}=this.props;return e?this.renderInputInset():this.renderTriggerInput()}}LS.propTypes={borderless:v.bool,onClick:v.func,onChange:v.func,onEnterPress:v.func,onBlur:v.func,onClear:v.func,onFocus:v.func,value:v.array,disabled:v.bool,type:v.oneOf(le.TYPE_SET),showClear:v.bool,format:v.string,inputStyle:v.object,inputReadOnly:v.bool,insetLabel:v.node,validateStatus:v.string,prefix:v.node,prefixCls:v.string,dateFnsLocale:v.object.isRequired,placeholder:v.oneOfType([v.string,v.array]),rangeInputFocus:v.oneOfType([v.string,v.bool]),rangeInputStartRef:v.object,rangeInputEndRef:v.object,rangeSeparator:v.string,insetInput:v.oneOfType([v.bool,v.object]),insetInputValue:v.object,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array])};LS.defaultProps={borderless:!1,showClear:!0,onClick:Ht,onChange:Ht,onEnterPress:Ht,onBlur:Ht,onClear:Ht,onFocus:Ht,type:"date",inputStyle:{},inputReadOnly:!1,prefixCls:Ge.PREFIX,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE};function aq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",r="";const a=typeof e=="number"&&e<10?`0${e}`:e.toString(),i=typeof t=="number"&&t<10?`0${t}`:t.toString();return r=`${String(n)}-${a}-${i}`,r}function h7e(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const t={dayNumber:"",dateNumberFull:"",fullDate:""},r=rZ(n),a=Lt(n,"yyyy"),i=Lt(n,"MM"),o=ZCe(n),s=GSe(n),l=Number(Lt(s,"e",{weekStartsOn:e})),u=[];let c=[];for(let d=1;d{const t=h7e(n,e);return{monthText:Lt(n,"yyyy-MM"),weeks:t,month:n}},g7e=p7e,wN={month:Rd,year:WSe},v7e={prevMonth:cxe,nextMonth:Ku,prevYear:dxe,nextYear:bS};class m7e extends ze{constructor(e){super(Object.assign({},e)),this.newBiMonthPanelDate=[this.getState("monthLeft").pickerDate,this.getState("monthRight").pickerDate]}init(){const e=this.getProp("defaultValue");this.initDefaultPickerValue(),this.updateSelectedFromProps(e)}initDefaultPickerValue(){const e=Dn(this.getProp("defaultPickerValue"));e&&yo(e)&&(this._updatePanelDetail(le.PANEL_TYPE_LEFT,{pickerDate:e}),this._updatePanelDetail(le.PANEL_TYPE_RIGHT,{pickerDate:Ku(e,1)}))}updateSelectedFromProps(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=this.getProp("type"),{selected:a,rangeStart:i,rangeEnd:o}=this.getStates();if(e&&(e!=null&&e.length))switch(r){case"date":this._initDatePickerFromValue(e,t);break;case"dateRange":this._initDateRangePickerFromValue(e);break;case"dateTime":this._initDateTimePickerFromValue(e);break;case"dateTimeRange":this._initDateTimeRangePickerFormValue(e);break}else(Array.isArray(e)&&!e.length||!e)&&(Ps(a)&&a.size&&this._adapter.updateDaySelected(new Set),i&&this._adapter.setRangeStart(""),o&&this._adapter.setRangeEnd(""))}calcDisabledTime(e){const{disabledTime:t,type:r}=this.getProps();if(typeof t=="function"&&e&&["dateTime","dateTimeRange"].includes(r)){const{rangeStart:a,rangeEnd:i,monthLeft:o}=this.getStates(),s=[];r==="dateTimeRange"?(a&&s.push(a),a&&i&&s.push(i)):o&&o.showDate&&s.push(o.showDate);const l=s.map(c=>c instanceof Date?c:mo(c)),u=r==="dateTimeRange"?l:l[0];return t(u,e)}}_initDatePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const{monthLeft:r}=this._adapter.getStates(),a=Object.assign({},r);this._adapter.updateMonthOnLeft(a);const i=new Set,o=this._isMultiple();o?e.forEach(s=>{s&&i.add(Lt(s,le.FORMAT_FULL_DATE))}):e[0]&&i.add(Lt(e[0],le.FORMAT_FULL_DATE)),t?o?!(e!=null&&e.some(l=>l&&Rd(l,r.pickerDate)===0))&&this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,e[0]||a.pickerDate):this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,a.pickerDate),this._adapter.updateDaySelected(i)}_initDateRangePickerFromValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.getState("monthLeft"),a=this.getState("monthRight"),i=this._autoAdjustMonth(Object.assign(Object.assign({},r),{pickerDate:e[0]||r.pickerDate}),Object.assign(Object.assign({},a),{pickerDate:e[1]||a.pickerDate}));if(Array.isArray(e)&&e.filter(c=>c).length>1)this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate);else{const c=e.find(d=>d);if(c){const d=Math.abs(Rd(c,r.pickerDate))>0,f=Math.abs(Rd(c,a.pickerDate))>0;d&&f&&(this.handleShowDateAndTime(le.PANEL_TYPE_LEFT,i.monthLeft.pickerDate),this.handleShowDateAndTime(le.PANEL_TYPE_RIGHT,i.monthRight.pickerDate))}}const s=t?le.FORMAT_DATE_TIME:le.FORMAT_FULL_DATE;let l=e[0]&&Lt(e[0],s),u=e[1]&&Lt(e[1],s);this._isNeedSwap(l,u)&&([l,u]=[u,l]),this._adapter.setRangeStart(l),this._adapter.setRangeEnd(u),this._adapter.setHoverDay(u)}_initDateTimePickerFromValue(e){this._initDatePickerFromValue(e)}_initDateTimeRangePickerFormValue(e){this._initDateRangePickerFromValue(e,!0)}destroy(){}handleSyncChangeMonths(e){const{panelType:t,target:r}=e,{type:a}=this._adapter.getProps(),{monthLeft:i,monthRight:o}=this._adapter.getStates();this.isRangeType(a)&&(t==="right"&&Rd(r,i.pickerDate)===0?this.handleYearOrMonthChange("prevMonth","left",1,!0):t==="left"&&Rd(o.pickerDate,r)===0&&this.handleYearOrMonthChange("nextMonth","right",1,!0))}getTargetChangeDate(e){const{panelType:t,switchType:r}=e,{monthRight:a,monthLeft:i}=this._adapter.getStates(),o=t==="left"?i.pickerDate:a.pickerDate;let s;switch(r){case"prevMonth":s=Ku(o,-1);break;case"nextMonth":s=Ku(o,1);break;case"prevYear":s=bS(o,-1);break;case"nextYear":s=bS(o,1);break}return s}toMonth(e,t){const{type:r}=this._adapter.getProps(),a=this._getDiff("month",t,e);this.handleYearOrMonthChange(a<0?"prevMonth":"nextMonth",e,Math.abs(a),!1),this.isRangeType(r)&&this.handleSyncChangeMonths({panelType:e,target:t})}toYear(e,t){const r=this._getDiff("year",t,e);this.handleYearOrMonthChange(r<0?"prevYear":"nextYear",e,Math.abs(r),!1)}toYearMonth(e,t){this.toYear(e,t),this.toMonth(e,t)}isRangeType(e){const{type:t}=this.getProps(),r=e||t;return typeof r=="string"&&/range/i.test(r)}handleSwitchMonthOrYear(e,t){const{type:r,syncSwitchMonth:a}=this.getProps(),i=this.isRangeType(r);if(i&&a)this.handleYearOrMonthChange(e,"left",1,!0),this.handleYearOrMonthChange(e,"right",1,!0);else if(this.handleYearOrMonthChange(e,t),i){const o=this.getTargetChangeDate({panelType:t,switchType:e});this.handleSyncChangeMonths({panelType:t,target:o})}}prevMonth(e){this.handleSwitchMonthOrYear("prevMonth",e)}nextMonth(e){this.handleSwitchMonthOrYear("nextMonth",e)}prevYear(e){this.handleSwitchMonthOrYear("prevYear",e)}nextYear(e){this.handleSwitchMonthOrYear("nextYear",e)}_getDiff(e,t,r){const a=this._getPanelDetail(r);return wN[e]&&wN[e](t,a.pickerDate)}_getPanelDetail(e){return e===le.PANEL_TYPE_RIGHT?this.getState("monthRight"):this.getState("monthLeft")}localeFormat(e,t){const r=this._adapter.getProp("dateFnsLocale");return Lt(e,t,{locale:r})}disposeCallbackArgs(e){let t=Array.isArray(e)?e:e&&[e]||[];const r=this.getProp("timeZone");i2(r)&&(t=t.map(l=>zp(l,r)));const a=this.getProp("type"),i=this.getProp("format")||Zu(a);let o,s;switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t]):(o=t[0]&&this.localeFormat(t[0],i),[s]=t);break;case"dateRange":case"dateTimeRange":o=t.map(l=>l&&this.localeFormat(l,i)),s=[...t];break}return{notifyValue:o,notifyDate:s}}handleYearOrMonthChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le.PANEL_TYPE_LEFT,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{autoSwitchDate:i,type:o}=this.getProps(),{monthLeft:s,monthRight:l}=this.getStates(),u=this.isRangeType(o),c=u&&t===le.PANEL_TYPE_LEFT,d=this._getPanelDetail(t),{pickerDate:f}=d,h=v7e[e],p=h(f,r),g=t===le.PANEL_TYPE_LEFT&&!Ke(p,s.pickerDate)||t===le.PANEL_TYPE_RIGHT&&!Ke(p,l.pickerDate);if(this._updatePanelDetail(t,{pickerDate:p}),g)if(u){if(c?this.newBiMonthPanelDate[0]=p:this.newBiMonthPanelDate[1]=p,!(c&&a)){const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(this.newBiMonthPanelDate);this._adapter.notifyPanelChange(y,m)}}else{const{notifyValue:m,notifyDate:y}=this.disposeCallbackArgs(p);this._adapter.notifyPanelChange(y,m)}i&&this.updateDateAfterChangeYM(e,p)}updateDateAfterChangeYM(e,t){const{multiple:r,disabledDate:a,type:i}=this.getProps(),{selected:o,rangeStart:s,rangeEnd:l,monthLeft:u}=this.getStates(),c=["dateRange","dateTimeRange"].includes(e),d={closePanel:!1};if(!r&&!c&&o.size){const f=Array.from(o)[0],h=new Date(f),p=t.getFullYear(),g=t.getMonth();let m=fZ(h,{year:p,month:g});if(i==="dateTime"&&(m=this._mergeDateAndTime(m,u.pickerDate)),a(m,{rangeStart:s,rangeEnd:l}))return;this._adapter.notifySelectedChange([m],d)}}_isMultiple(){return!!this.getProp("multiple")&&this.getProp("type")==="date"}_isRange(){}handleDayClick(e,t){const r=this.getProp("type");switch(!0){case(r==="date"||r==="dateTime"):this.handleDateSelected(e,t);break;case(r==="dateRange"||r==="dateTimeRange"):this.handleRangeSelected(e);break}}handleDateSelected(e,t){const{max:r,type:a,isControlledComponent:i,dateFnsLocale:o}=this.getProps(),s=this._isMultiple(),{selected:l}=this.getStates(),u=this._getPanelDetail(t),c=new Set(s?[...l]:[]),{fullDate:d}=e,f=u.pickerDate,h=a==="dateTime"?this._mergeDateAndTime(d,f):d;s?c.has(h)?c.delete(h):r&&c.size===r?this._adapter.notifyMaxLimit():c.add(h):c.add(h);const p=this.getValidDateFormat(),g=[...c].map(m=>Dn(m,p,void 0,o));this.handleShowDateAndTime(t,f),i||this._adapter.updateDaySelected(c),this._adapter.notifySelectedChange(g)}handleShowDateAndTime(e,t,r){const a=r||t;this._updatePanelDetail(e,{showDate:a,pickerDate:t})}_mergeDateAndTime(e,t){const r=this._adapter.getProp("dateFnsLocale"),a=Lt(yo(e)?e:Dn(e,le.FORMAT_FULL_DATE,void 0,r),le.FORMAT_FULL_DATE),i=Lt(yo(t)?t:Dn(t,le.FORMAT_TIME_PICKER,void 0,r),le.FORMAT_TIME_PICKER),o=this.getValidTimeFormat();return Dn(`${a} ${i}`,o,void 0,r)}handleRangeSelected(e){let{rangeStart:t,rangeEnd:r}=this.getStates();const{startDateOffset:a,endDateOffset:i,type:o,dateFnsLocale:s,rangeInputFocus:l,triggerRender:u}=this._adapter.getProps(),{fullDate:c}=e;let d=!1,f=!1;const h=(a||i)&&o==="dateRange";h?(t=Cb(a,c),r=Cb(i,c)):l==="rangeEnd"?(r=c,t&&r&&_p(r,t.trim().split(/\s+/)[0])&&(t=null,d=!0)):(l==="rangeStart"||!l)&&(t=c,t&&r&&_p(r.trim().split(/\s+/)[0],t)&&(r=null,f=!0)),/range/i.test(o)&&(h?(this._adapter.setRangeStart(t),this._adapter.setRangeEnd(r)):l==="rangeEnd"?(this._adapter.setRangeEnd(r),d&&this._adapter.setRangeStart(t),(!this._adapter.isAnotherPanelHasOpened("rangeEnd")||!t)&&this._adapter.setRangeInputFocus("rangeStart")):(l==="rangeStart"||!l)&&(this._adapter.setRangeStart(t),f&&this._adapter.setRangeEnd(r),(!this._adapter.isAnotherPanelHasOpened("rangeStart")||!r)&&this._adapter.setRangeInputFocus("rangeEnd")));const g=this.getValidDateFormat();if(t||r){const[m,y]=[Dn(t,g,void 0,s),Dn(r,g,void 0,s)];let b=[m,y];if(o==="dateTimeRange"){const S=this.getState("monthLeft").pickerDate,C=this.getState("monthRight").pickerDate,w=t?this._mergeDateAndTime(t,S):null,T=r?this._mergeDateAndTime(r,C):null;D7(m,y)&&_p(T,w)?b=[w,w]:b=[w,T]}const _=!(o==="dateRange"&&h);this._adapter.notifySelectedChange(b,{needCheckFocusRecord:_})}}_isNeedSwap(e,t){return e&&t&&_p(t,e)}handleDayHover(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fullDate:""};const{fullDate:t}=e,{startDateOffset:r,endDateOffset:a,type:i}=this.getProps();if(this._adapter.setHoverDay(t),(r||a)&&i==="dateRange"){const o=Cb(r,t),s=Cb(a,t);this._adapter.setOffsetRangeStart(o),this._adapter.setOffsetRangeEnd(s)}}_autoAdjustMonth(e,t){let r=e,a=t;const i=Rd(e.pickerDate,t.pickerDate);return i>0?(r=Object.assign({},t),a=Object.assign({},e)):i===0&&(r=e,a=Object.assign(Object.assign({},t),{pickerDate:Ku(t.pickerDate,1)})),{monthLeft:r,monthRight:a}}getValidTimeFormat(){const e=this.getProp("format")||le.FORMAT_TIME_PICKER,t=[];return(Fs(e,"h")||Fs(e,"H"))&&t.push("HH"),Fs(e,"m")&&t.push("mm"),Fs(e,"s")&&t.push("ss"),t.join(":")}getValidDateFormat(){return this.getProp("format")||y6e(this.getProp("type"))}handleTimeChange(e,t){const{rangeEnd:r,rangeStart:a}=this.getStates(),i=this.getProp("dateFnsLocale"),o=e.timeStampValue,s=this.getProp("type"),l=this._getPanelDetail(t),{showDate:u}=l,c=new Date(o),d=this.getValidDateFormat(),f=t===le.PANEL_TYPE_RIGHT?r:a;let h,p,g;if(s==="dateTimeRange"&&f){const w=Dn(f,d,void 0,i);h=w.getFullYear(),p=w.getMonth(),g=w.getDate()}else h=u.getFullYear(),p=u.getMonth(),g=u.getDate();const m=c.getHours(),y=c.getMinutes(),b=c.getSeconds(),_=c.getMilliseconds(),S=[h,p,g,m,y,b,_],C=new Date(...S);if(s==="dateTimeRange")this.handleShowDateAndTime(t,C,u),this._updateTimeInDateRange(t,C);else{const w=aq(h,p+1,g);this.handleDateSelected({fullDate:w,fullValidDate:C},t),this.handleShowDateAndTime(t,C),this._adapter.notifySelectedChange([C])}}_updateTimeInDateRange(e,t){const{isControlledComponent:r,dateFnsLocale:a}=this.getProps();let i=this.getState("rangeStart"),o=this.getState("rangeEnd");const s=this.getValidDateFormat();if(i&&o){let l=Dn(i,s,void 0,a),u=Dn(o,s,void 0,a);e===le.PANEL_TYPE_RIGHT?(u=this._mergeDateAndTime(t,t),o=Lt(u,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeEnd(o)):(l=this._mergeDateAndTime(t,t),i=Lt(l,le.FORMAT_DATE_TIME),this._isNeedSwap(i,o)&&([i,o]=[o,i],[l,u]=[u,l]),r||this._adapter.setRangeStart(i)),this._adapter.notifySelectedChange([l,u])}}_updatePanelDetail(e,t){const{monthLeft:r,monthRight:a}=this.getStates();e===le.PANEL_TYPE_RIGHT?this._adapter.updateMonthOnRight(Object.assign(Object.assign({},a),t)):this._adapter.updateMonthOnLeft(Object.assign(Object.assign({},r),t))}showYearPicker(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!0})}showTimePicker(e,t){this.getProp("disabledTimePicker")||this._updatePanelDetail(e,{isTimePickerOpen:!0,isYearPickerOpen:!1})}showDatePanel(e){this._updatePanelDetail(e,{isTimePickerOpen:!1,isYearPickerOpen:!1})}getYAMOpenType(){const{monthLeft:e,monthRight:t}=this._adapter.getStates(),r=e.isYearPickerOpen,a=t.isYearPickerOpen;return r&&a?"both":r?"left":a?"right":"none"}}const xN=Ge.NAVIGATION;class gA extends D.PureComponent{constructor(e){super(e),this.navRef=x.createRef()}render(){const{forwardRef:e,monthText:t,onMonthClick:r,onNextMonth:a,onPrevMonth:i,onPrevYear:o,onNextYear:s,density:l,shouldBimonthSwitch:u,panelType:c}=this.props,d="borderless",f=l==="compact"?"default":"large",h=!0,p=l==="compact"?"small":"default",g=c===le.PANEL_TYPE_LEFT,m=c===le.PANEL_TYPE_RIGHT,y=u&&g,b=u&&m,_={},S={};b&&(_.visibility="hidden"),y&&(S.visibility="hidden");const C=e||this.navRef;return x.createElement("div",{className:xN,ref:C},x.createElement(Dl,{key:"double-chevron-left","aria-label":"Previous year",icon:x.createElement(mZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:o,style:_}),x.createElement(Dl,{key:"chevron-left","aria-label":"Previous month",icon:x.createElement(N7,{"aria-hidden":!0,size:f}),size:p,onClick:i,theme:d,noHorizontalPadding:h,style:_}),x.createElement("div",{className:`${xN}-month`},x.createElement(Jt,{onClick:r,theme:d,size:p},x.createElement("span",null,t))),x.createElement(Dl,{key:"chevron-right","aria-label":"Next month",icon:x.createElement(sg,{"aria-hidden":!0,size:f}),size:p,onClick:a,theme:d,noHorizontalPadding:h,style:S}),x.createElement(Dl,{key:"double-chevron-right","aria-label":"Next year",icon:x.createElement(yZ,{"aria-hidden":!0,size:f}),size:p,theme:d,noHorizontalPadding:h,onClick:s,style:S}))}}gA.propTypes={monthText:v.string,density:v.string,onMonthClick:v.func,onNextMonth:v.func,onPrevMonth:v.func,onNextYear:v.func,onPrevYear:v.func,navPrev:v.node,navNext:v.node,shouldBimonthSwitch:v.bool,panelType:v.oneOf([le.PANEL_TYPE_LEFT,le.PANEL_TYPE_RIGHT])};gA.defaultProps={monthText:"",onMonthClick:B,onNextMonth:B,onPrevMonth:B,onNextYear:B,onPrevYear:B};const y7e=n=>{let{weekStartsOn:e=0}=n;const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];for(let r=0;r{this._adapter.notifyWeeksRowNumChange(i.length)})}}updateWeekDays(){const e=this._adapter.getProp("weekStartsOn"),t=b7e({weekStartsOn:e});this._adapter.setWeekDays(t)}destroy(){}handleClick(e){this._adapter.notifyDayClick(e)}handleHover(e){this._adapter.notifyDayHover(e)}}const S7e=Ge.PREFIX;class vA extends Pe{constructor(e){super(e),this.state={weekdays:[],month:{weeks:[],monthText:""},todayText:"",weeksRowNum:e.weeksRowNum},this.monthRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToday:e=>this.setState({todayText:e}),setWeekDays:e=>this.setState({weekdays:e}),setWeeksRowNum:(e,t)=>this.setState({weeksRowNum:e},t),updateMonthTable:e=>this.setState({month:e}),notifyDayClick:e=>this.props.onDayClick(e),notifyDayHover:e=>this.props.onDayHover(e),notifyWeeksRowNumChange:e=>this.props.onWeeksRowNumChange(e)})}componentDidMount(){this.foundation=new _7e(this.adapter),this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){e.month!==this.props.month&&this.foundation.getMonthTable()}getSingleDayStatus(e){const{rangeInputFocus:t}=this.props,{fullDate:r,todayText:a,selected:i,disabledDate:o,rangeStart:s,rangeEnd:l}=e,u={rangeStart:s,rangeEnd:l,rangeInputFocus:t},c=r===a,d=i.has(r);let f=o&&o(mo(r),u);return!f&&this.props.rangeInputFocus==="rangeStart"&&l&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeEnd&&(f=mN(r,l.trim().split(/\s+/)[0])),!f&&this.props.rangeInputFocus==="rangeEnd"&&s&&this.props.focusRecordsRef&&this.props.focusRecordsRef.current.rangeStart&&(f=_p(r,s.trim().split(/\s+/)[0])),{isToday:c,isSelected:d,isDisabled:f}}getDateRangeStatus(e){const{rangeStart:t,rangeEnd:r,fullDate:a,hoverDay:i,offsetRangeStart:o,offsetRangeEnd:s,rangeInputFocus:l}=e,u=!!(t||r),c=!!(t&&r),d=o||s;if(!u)return{};const f=Cu(i,a);let h,p,g,m,y;t&&(g=Cu(a,t),l==="rangeEnd"&&(h=Th(a,{start:t,end:i}))),r&&(m=Cu(a,r),l==="rangeStart"&&(p=Th(a,{start:i,end:r}))),!c&&u&&(y=f);let b;d||(b=h||p||f);let _,S,C,w,T,E;return c&&(_=Th(a,{start:t,end:r}),d||(S=g&&mN(t,i),C=m&&_p(r,i),w=f&&l==="rangeStart",T=f&&l==="rangeEnd",E=f&&Th(i,{start:t,end:r}))),{isHoverDay:f,isSelectedStart:g,isSelectedEnd:m,isInRange:_,isHover:b,isSelectedStartAfterHover:S,isSelectedEndBeforeHover:C,isHoverDayInRange:E,isHoverDayInStartSelection:w,isHoverDayInEndSelection:T,isHoverDayAroundOneSelected:y}}getOffsetDateStatus(e){const{offsetRangeStart:t,offsetRangeEnd:r,rangeStart:a,rangeEnd:i,fullDate:o,hoverDay:s}=e;if(!(t||r))return{};const u=Th(o,{start:a,end:i}),c=Cu(s,o),d=a&&Cu(o,a),f=i&&Cu(o,i),h=!!(a&&i),p=Cu(o,t),g=Cu(o,r),m=c;let y,b;return h&&(y=u&&c),!!(t&&r)&&(b=d||Th(o,{start:t,end:r})||f),{isOffsetRangeStart:p,isOffsetRangeEnd:g,isHoverInOffsetRange:y,isHoverDayOffset:m,isInOffsetRange:b}}getDayStatus(e,t){const{fullDate:r}=e,{hoverDay:a,rangeStart:i,rangeEnd:o,todayText:s,offsetRangeStart:l,offsetRangeEnd:u,disabledDate:c,selected:d,rangeInputFocus:f}=t,h=this.getSingleDayStatus({fullDate:r,todayText:s,hoverDay:a,selected:d,disabledDate:c,rangeStart:i,rangeEnd:o}),p=this.getDateRangeStatus(Object.assign({fullDate:r,rangeStart:i,rangeEnd:o,hoverDay:a,offsetRangeStart:l,offsetRangeEnd:u,rangeInputFocus:f},h)),g=this.getOffsetDateStatus(Object.assign(Object.assign({offsetRangeStart:l,offsetRangeEnd:u,rangeStart:i,rangeEnd:o,fullDate:r,hoverDay:a},h),p));return Object.assign(Object.assign(Object.assign({},h),p),g)}renderDayOfWeek(){const{locale:e}=this.props,t=$(Ge.WEEKDAY),r=$(`${S7e}-weekday-item`),{weekdays:a}=this.state,i=a.map(o=>e.weeks[o]);return x.createElement("div",{role:"row",className:t},i.map((o,s)=>x.createElement("div",{role:"columnheader",key:o+s,className:r},o)))}renderWeeks(){const{month:e}=this.state,{weeks:t}=e,{weeksRowNum:r}=this.props;let a={};r&&(a={height:r*fg.WEEK_HEIGHT});const i=$(Ge.WEEKS);return x.createElement("div",{className:i,style:a},t.map((o,s)=>this.renderWeek(o,s)))}renderWeek(e,t){const r=Ge.WEEK;return x.createElement("div",{role:"row",className:r,key:t},e.map((a,i)=>this.renderDay(a,i)))}renderDay(e,t){const{todayText:r}=this.state,{renderFullDate:a,renderDate:i}=this.props,{fullDate:o,dayNumber:s}=e;if(!o)return x.createElement("div",{role:"gridcell",tabIndex:-1,key:s+t,className:Ge.DAY},x.createElement("span",null));const l=this.getDayStatus(e,Object.assign({todayText:r},this.props)),u=$(Ge.DAY,{[Ge.DAY_TODAY]:l.isToday,[Ge.DAY_IN_RANGE]:l.isInRange,[Ge.DAY_HOVER]:l.isHover,[Ge.DAY_SELECTED]:l.isSelected,[Ge.DAY_SELECTED_START]:l.isSelectedStart,[Ge.DAY_SELECTED_END]:l.isSelectedEnd,[Ge.DAY_DISABLED]:l.isDisabled,[Ge.DAY_HOVER_DAY]:l.isHoverDayOffset,[Ge.DAY_IN_OFFSET_RANGE]:l.isInOffsetRange,[Ge.DAY_SELECTED_RANGE_HOVER]:l.isHoverInOffsetRange,[Ge.DAY_OFFSET_RANGE_START]:l.isOffsetRangeStart,[Ge.DAY_OFFSET_RANGE_END]:l.isOffsetRangeEnd,[Ge.DAY_SELECTED_START_AFTER_HOVER]:l.isSelectedStartAfterHover,[Ge.DAY_SELECTED_END_BEFORE_HOVER]:l.isSelectedEndBeforeHover,[Ge.DAY_HOVER_DAY_BEFORE_RANGE]:l.isHoverDayInStartSelection,[Ge.DAY_HOVER_DAY_AFTER_RANGE]:l.isHoverDayInEndSelection,[Ge.DAY_HOVER_DAY_AROUND_SINGLE_SELECTED]:l.isHoverDayAroundOneSelected}),c=$({[`${Ge.DAY}-main`]:!0}),d=[s,o,l],f=ke(a);return x.createElement("div",{role:"gridcell",tabIndex:l.isDisabled?-1:0,"aria-disabled":l.isDisabled,"aria-selected":l.isSelected,"aria-label":o,className:f?Ge.DAY:u,title:o,key:s+t,onClick:h=>!l.isDisabled&&this.foundation.handleClick(e),onMouseEnter:()=>this.foundation.handleHover(e),onMouseLeave:()=>this.foundation.handleHover()},f?a(...d):x.createElement("div",{className:c},ke(i)?i(s,o):x.createElement("span",null,s)))}render(){const{forwardRef:e,multiple:t}=this.props,r=this.renderDayOfWeek(),a=this.renderWeeks(),i=$(Ge.MONTH),o=e||this.monthRef;return x.createElement("div",{role:"grid","aria-multiselectable":t,ref:o,className:i},r,a)}}vA.propTypes={month:v.object,selected:v.object,rangeStart:v.string,rangeEnd:v.string,offsetRangeStart:v.string,offsetRangeEnd:v.string,onDayClick:v.func,onDayHover:v.func,weekStartsOn:v.number,disabledDate:v.func,weeksRowNum:v.number,onWeeksRowNumChange:v.func,renderDate:v.func,renderFullDate:v.func,hoverDay:v.string,startDateOffset:v.func,endDateOffset:v.func,rangeInputFocus:v.oneOfType([v.string,v.bool]),focusRecordsRef:v.object,multiple:v.bool};vA.defaultProps={month:new Date,selected:new Set,rangeStart:"",rangeEnd:"",onDayClick:B,onDayHover:B,onWeeksRowNumChange:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,weeksRowNum:0};const wb="time",m5="timeRange",C7e=" ~ ",w7e=",",kI={PREFIX:`${q}-timepicker`,RANGE_PICKER:`${q}-timepicker-range-panel`,RANGE_PANEL_LISTS:`${q}-timepicker-lists`},Gn={TYPES:[wb,m5],TYPE_TIME_PICKER:wb,TYPE_TIME_RANGE_PICKER:m5,DEFAULT_TYPE:wb,DEFAULT_RANGE_SEPARATOR:C7e,DEFAULT_MULTIPLE_SEPARATOR:w7e,SIZE:Yc.SIZE,DEFAULT_FORMAT:"HH:mm:ss",DEFAULT_FORMAT_A:"a h:mm:ss",STATUS:kg,DEFAULT_POSITION:{[wb]:"bottomLeft",[m5]:"bottomLeft"}},Za={PREFIX:`${q}-scrolllist`,SELECTED:`${q}-scrolllist-item-selected`},x7e={MODE:["normal","wheel"]},xb={DEFAULT_ITEM_HEIGHT:36,DEFAULT_SCROLL_DURATION:120};var T7e=uK,E7e=NK,O7e=Qy,I7e=9007199254740991,y5=4294967295,P7e=Math.min;function D7e(n,e){if(n=O7e(n),n<1||n>I7e)return[];var t=y5,r=P7e(n,y5);e=E7e(e),n-=y5;for(var a=T7e(r,e);++t-1?a[i?e[o]:o]:void 0}}var BAe=zAe,HAe=BAe,UAe=lq,WAe=HAe(UAe),GAe=WAe;const qs=Ie(GAe);var YAe=S7,KAe=Cw,TN=Qy;function ZAe(n,e,t){var r=n==null?0:n.length;return r?(t&&typeof t!="number"&&KAe(n,e,t)?(e=0,t=r):(e=e==null?0:TN(e),t=t===void 0?r:TN(t)),YAe(n,e,t)):[]}var XAe=ZAe;const o2=Ie(XAe);let qAe=class extends ze{constructor(){super(...arguments),this._cachedSelectedNode=null}selectIndex(e,t){const{type:r,list:a}=this.getProps();if(e>-1&&Array.isArray(a)&&a.length&&It(t)){const i=e%a.length,o=a[i],s=t.children[e];this._adapter.setSelectedNode(s),this._adapter.notifySelectItem(Object.assign(Object.assign({},o),{value:o.value,type:r,index:i}))}}selectNode(e,t){const{type:r,list:a}=this.getProps();if(It(e)&&It(t)){const o=po(t.children,c=>c===e)%a.length,l=po(t.children,c=>c===this._cachedSelectedNode)%a.length,u=a[o];this._adapter.setSelectedNode(e),this._adapter.scrollToCenter(e),this._cachedSelectedNode!==e&&(this._cachedSelectedNode=e,l!==o&&this._adapter.notifySelectItem(Object.assign(Object.assign({},u),{value:u.value,type:r,index:o})))}}shouldAppend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(It(e)&&It(t)){const i=e.querySelectorAll(a),o=i[i.length-1],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d<=l.top+l.height*r;)f+=1,d+=c;return f}}return!1}shouldPrepend(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2;const a="li";if(It(e)&&It(t)){const o=e.querySelectorAll(a)[0],{list:s}=this.getProps();if(o){const l=t.getBoundingClientRect(),u=o.getBoundingClientRect(),c=u.height*s.length;let d=u.top,f=0;for(;d+u.height>=l.top-l.height*r;)f+=1,d-=c;return f}}return 0}initWheelList(e,t,r){const{list:a}=this.getProps();if(It(t)&&It(e)&&a&&a.length){const i=e.children;o2(i,0,a.length);const o=this.shouldPrepend(e,t),s=this.shouldAppend(e,t);this._adapter.setState({prependCount:o,appendCount:s},r)}}adjustInfiniteList(e,t,r){const{list:a}=this.getProps(),i="li";if(It(t)&&It(e)&&a&&a.length){const o=e.querySelectorAll(i),s=o.length,l=1,u=this.shouldPrepend(e,t,l),c=this.shouldAppend(e,t,l);if(u)for(let d=0;d{const f=u.getBoundingClientRect().top,h=Math.abs(f-a);h{if(f===a||f.contains(a))return l=h,s>0&&(u=h%s),!0});return u>-1&&(c=o[u]),{targetNode:d,targetIndex:l,indexInList:u,infoInList:c}}return null}};const QAe=(n,e,t)=>{const r=new VZ({from:{scrollTop:n.scrollTop},to:{scrollTop:e}},{duration:t});return r.on("frame",a=>{let{scrollTop:i}=a;n.scrollTop=i}),r},JAe=QAe,EN=1e3/60,ON=/^\s*$/,s2="wheel";class Al extends Pe{constructor(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(t),e=this,this._cacheNode=(r,a)=>r&&a&&Object.prototype.hasOwnProperty.call(this,r)&&(this[r]=a),this._cacheSelectedNode=r=>this._cacheNode("selectedNode",r),this._cacheWillSelectNode=r=>this._cacheNode("willSelectNode",r),this._cacheListNode=r=>this._cacheNode("list",r),this._cacheSelectorNode=r=>this._cacheNode("selector",r),this._cacheWrapperNode=r=>this._cacheNode("wrapper",r),this._isFirst=r=>{const{list:a}=this;if(It(r)&&It(a)){const i=a.children;return po(i,r)===0}return!1},this._isLast=r=>{const{list:a}=this;if(It(r)&&It(a)){const{children:i}=a;return po(i,r)===i.length-1}return!1},this.indexIsSame=(r,a)=>{const{list:i}=this.props;if(i.length)return r%i.length===a%i.length},this.isDisabledIndex=r=>{const{list:a}=this.props;if(Array.isArray(a)&&a.length&&r>-1){const i=a.length,o=r%i;return this.isDisabledData(a[o])}return!1},this.isDisabledNode=r=>{const a=this.list;if(It(r)&&It(a)){const i=po(a.children,o=>o===r);return this.isDisabledIndex(i)}return!1},this.isDisabledData=r=>r&&typeof r=="object"&&r.disabled,this.isWheelMode=()=>this.props.mode===s2,this.addClassToNode=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Za.SELECTED;const{list:i}=e;if(r=r||e.selectedNode,It(r)&&It(i)){const{children:o}=i,s=new RegExp(`\\s*${a}\\s*`,"g");K1(o,l=>{l.className=l.className&&l.className.replace(s," "),ON.test(l.className)&&(l.className="")}),r.className&&!ON.test(r.className)?r.className+=` ${a}`:r.className=a}},this.getIndexByNode=r=>po(this.list.children,r),this.getNodeByIndex=r=>r>-1?qs(this.list.children,(i,o)=>o===r):qs(this.list.children,i=>!this.isDisabledNode(i)),this.scrollToIndex=(r,a)=>{a=typeof a=="number"?a:xb.DEFAULT_SCROLL_DURATION,r=r??this.props.selectedIndex,this.scrollToNode(this.selectedNode,a)},this.scrollToNode=(r,a)=>{const{wrapper:i}=this,o=i.offsetHeight,s=this.getItmHeight(r),l=(r.offsetTop||this.list.children.length*s/2)-(o-s)/2;this.scrollToPos(l,a)},this.scrollToPos=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xb.DEFAULT_SCROLL_DURATION;const{wrapper:i}=e;if(a&&e.props.motion)if(e.scrollAnimation&&(e.scrollAnimation.destroy(),e.scrolling=!1),i.scrollTop===r){if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}else e.scrollAnimation=JAe(i,r,a),e.scrollAnimation.on("rest",()=>{if(e.isWheelMode()){const o=e.foundation.getNearestNodeInfo(e.list,e.selector);e.addClassToNode(o.nearestNode)}}),e.scrollAnimation.start();else i.scrollTop=r},this.scrollToSelectItem=r=>{const{nearestNode:a}=this.foundation.getNearestNodeInfo(this.list,this.selector);this.props.cycled&&this.throttledAdjustList(r,a),this.debouncedSelect(r,a)},this.scrollToCenter=(r,a,i)=>{if(r=r||this.selectedNode,a=a||this.wrapper,It(r)&&It(a)){const o=a.getBoundingClientRect(),s=r.getBoundingClientRect(),l=a.scrollTop+(s.top-(o.top+o.height/2-s.height/2));this.scrollToPos(l,typeof i=="number"?i:xb.DEFAULT_SCROLL_DURATION)}},this.clickToSelectItem=r=>{r&&r.nativeEvent&&r.nativeEvent.stopImmediatePropagation();const{targetNode:a,infoInList:i}=this.foundation.getTargetNode(r,this.list);a&&i&&!i.disabled&&this.debouncedSelect(null,a)},this.getItmHeight=r=>r&&r.offsetHeight||xb.DEFAULT_ITEM_HEIGHT,this.renderItemList=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{selectedIndex:a,mode:i,transform:o,list:s}=e.props;return s.map((l,u)=>{const{transform:c}=l,d=typeof c=="function"?c:o,f=a===u,h=$({[`${Za.PREFIX}-item-sel`]:f&&i!==s2,[`${Za.PREFIX}-item-disabled`]:!!l.disabled});let p="";f&&typeof d=="function"?p=d(l.value,l.text):p=l.text==null?l.value:l.text;const g={};return!e.isWheelMode()&&!l.disabled&&(g.onClick=()=>e.foundation.selectIndex(u,e.list)),x.createElement("li",Object.assign({key:r+u},g,{className:h,role:"option","aria-selected":f,"aria-disabled":l.disabled}),p)})},this.renderNormalList=()=>{const{list:r,className:a,style:i}=this.props,o=this.renderItemList(),s=$(`${Za.PREFIX}-item`,a);return x.createElement("div",{style:i,className:s,ref:this._cacheWrapperNode},x.createElement("ul",{role:"listbox","aria-multiselectable":!1,"aria-label":this.props["aria-label"],ref:this._cacheListNode},o))},this.renderInfiniteList=()=>{const{list:r,cycled:a,className:i,style:o}=this.props,{prependCount:s,appendCount:l}=this.state,u=kS(s).reduce((y,b)=>{const _=this.renderItemList(`pre_${b}_`);return y.unshift(..._),y},[]),c=kS(l).reduce((y,b)=>{const _=this.renderItemList(`app_${b}_`);return y.push(..._),y},[]),d=this.renderItemList(),f=$(`${Za.PREFIX}-list-outer`,{[`${Za.PREFIX}-list-outer-nocycle`]:!a}),h=$(`${Za.PREFIX}-item-wheel`,i),p=$(`${Za.PREFIX}-selector`),g=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-pre`),m=$(`${Za.PREFIX}-shade`,`${Za.PREFIX}-shade-post`);return x.createElement("div",{className:h,style:o},x.createElement("div",{className:g}),x.createElement("div",{className:p,ref:this._cacheSelectorNode}),x.createElement("div",{className:m}),x.createElement("div",{className:f,ref:this._cacheWrapperNode,onScroll:this.scrollToSelectItem},x.createElement("ul",{role:"listbox","aria-label":this.props["aria-label"],"aria-multiselectable":!1,ref:this._cacheListNode,onClick:this.clickToSelectItem},u,d,c)))},this.state={prependCount:0,appendCount:0},this.selectedNode=null,this.willSelectNode=null,this.list=null,this.wrapper=null,this.selector=null,this.scrollAnimation=null,this.foundation=new qAe(this.adapter),this.throttledAdjustList=yO((r,a)=>{this.foundation.adjustInfiniteList(this.list,this.wrapper,a)},EN),this.debouncedSelect=n7((r,a)=>{this._cacheSelectedNode(a),this.foundation.selectNode(a,this.list)},EN*2)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setState:(t,r)=>this.setState(Object.assign({},t),r),setPrependCount:t=>this.setState({prependCount:t}),setAppendCount:t=>this.setState({appendCount:t}),isDisabledIndex:this.isDisabledIndex,setSelectedNode:t=>this._cacheWillSelectNode(t),notifySelectItem:function(){return e.props.onSelect(...arguments)},scrollToCenter:this.scrollToCenter})}componentWillUnmount(){this.props.cycled&&(this.throttledAdjustList.cancel(),this.debouncedSelect.cancel())}componentDidMount(){this.foundation.init();const{mode:e,cycled:t,selectedIndex:r,list:a}=this.props,i=this.getNodeByIndex(typeof r=="number"&&r>-1?r:0);this._cacheSelectedNode(i),this._cacheWillSelectNode(i),e===s2&&t?this.foundation.initWheelList(this.list,this.wrapper,()=>{this.scrollToNode(i,0)}):this.scrollToNode(i,0)}componentDidUpdate(e){const{selectedIndex:t}=this.props;if(e.selectedIndex!==t){const r=this.getIndexByNode(this.willSelectNode);if(!this.indexIsSame(r,t)){const a=this.getNodeByOffset(this.selectedNode,t-e.selectedIndex,this.list);this._cacheWillSelectNode(a)}this._cacheSelectedNode(this.willSelectNode),this.scrollToIndex(t)}}getNodeByOffset(e,t,r){const{list:a}=this.props;if(It(e)&&It(r)&&typeof t=="number"&&Array.isArray(a)&&a.length){t=t%a.length;let o=this.getIndexByNode(e)+t;for(;o<0;)o+=a.length;if(t)return this.getNodeByIndex(o)}return e}render(){return this.isWheelMode()?this.renderInfiniteList():this.renderNormalList()}}Al.propTypes={mode:v.oneOf(x7e.MODE),cycled:v.bool,list:v.array,selectedIndex:v.number,onSelect:v.func,transform:v.func,className:v.string,style:v.object,motion:v.oneOfType([v.func,v.bool]),type:v.oneOfType([v.string,v.number])};Al.defaultProps={selectedIndex:0,motion:!0,list:[],onSelect:B,cycled:!1,mode:s2};class e9e extends ze{}var t9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let t=`${n}`;n<10&&(t=`0${n}`);let r=!1;return e&&e.indexOf(n)>=0&&(r=!0),{value:t,disabled:r}};function _5(n,e,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;const a=[];for(let i=0;ia<12).map(a=>a===0?12:a):r=r.map(a=>a===12?12:a-12)),r}getValidFormat(e){let t=ct(e)?this.getProp("format"):e;return t=this.getDefaultFormatIfNeed(),t=typeof t=="string"?t:Gn.DEFAULT_FORMAT,t}getDisplayDateFromTimeStamp(e){let t;return e&&(t=new Date(e)),!e||!yo(t)?this.createDateDefault():t}createDateDefault(){return new Date(parseInt(String(Date.now()/IN),10)*IN-8*cq)}}const r9e=n9e;class yA extends Pe{constructor(e){super(e),this.cacheRefCurrent=(t,r)=>{t&&typeof t=="string"&&this.adapter.setCache(t,r)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(r=>{const a=this.adapter.getCache(r);a&&a.scrollToIndex&&a.scrollToIndex()})},this.onItemChange=t=>{let{type:r,value:a,disabled:i}=t,{onChange:o,use12Hours:s,isAM:l,format:u,timeStampValue:c}=this.props;const d=this.foundation.getDisplayDateFromTimeStamp(c);if(r==="hour")s?l?d.setHours(Number(a)%12):d.setHours(Number(a)%12+12):d.setHours(Number(a));else if(r==="minute")d.setMinutes(Number(a));else if(r==="ampm"){const f=a.toUpperCase();s&&(f==="PM"&&(l=!1,d.getHours()<12&&d.setHours(d.getHours()%12+12)),f==="AM"&&(l=!0,d.getHours()>=12&&d.setHours(d.getHours()-12)))}else d.setSeconds(Number(a));o&&o({isAM:l,value:Lt(d,u&&u.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(d)})},this.onEnterSelectPanel=t=>{const{onCurrentSelectPanelChange:r}=this.props;r(t)},this.getDisplayDateFromTimeStamp=t=>this.foundation.getDisplayDateFromTimeStamp(t),this.foundation=new r9e(this.adapter),this.state=Object.assign({},this.foundation.initData())}componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){const{prefixCls:r,disabledHours:a,use12Hours:i,scrollItemProps:o}=this.props,{showHour:s,hourOptions:l}=this.state;if(!s)return null;const u=a();let c,d;i?(c=[12].concat(l.filter(p=>p<12&&p>0)),d=e%12||12):(c=l,d=e);const f=p=>p+t.hour,h=`${r}-list-hour`;return x.createElement(Al,Object.assign({ref:p=>this.cacheRefCurrent("hour",p),mode:"normal",transform:f,className:h,list:c.map(p=>b5(p,u)),selectedIndex:c.indexOf(d),type:"hour",onSelect:this.onItemChange},o))}renderMinuteSelect(e,t){const{prefixCls:r,disabledMinutes:a,timeStampValue:i,scrollItemProps:o}=this.props,{showMinute:s,minuteOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours()),d=`${r}-list-minute`,f=h=>h+t.minute;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("minute",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),type:"minute",onSelect:this.onItemChange,className:d},o))}renderSecondSelect(e,t){const{prefixCls:r,disabledSeconds:a,timeStampValue:i,scrollItemProps:o}=this.props,{showSecond:s,secondOptions:l}=this.state;if(!s)return null;const u=new Date(i),c=a&&a(u.getHours(),u.getMinutes()),d=`${r}-list-second`,f=h=>String(h)+t.second;return x.createElement(Al,Object.assign({ref:h=>this.cacheRefCurrent("second",h),mode:"normal",transform:f,list:l.map(h=>b5(h,c)),selectedIndex:l.indexOf(e),className:d,type:"second",onSelect:this.onItemChange},o))}renderAMPMSelect(e,t){const{prefixCls:r,use12Hours:a,isAM:i,scrollItemProps:o}=this.props;if(!a)return null;const s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],l=i?0:1,u=`${r}-list-ampm`;return x.createElement(Al,Object.assign({ref:c=>this.cacheRefCurrent("ampm",c),mode:"normal",className:u,list:s,selectedIndex:l,type:"ampm",onSelect:this.onItemChange},o))}render(){const{timeStampValue:e,panelHeader:t,panelFooter:r}=this.props,a=this.getDisplayDateFromTimeStamp(e);return x.createElement(hn,{componentName:"TimePicker"},(i,o)=>x.createElement(uq,{header:t,footer:r,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(i,o),this.renderHourSelect(a.getHours(),i),this.renderMinuteSelect(a.getMinutes(),i),this.renderSecondSelect(a.getSeconds(),i)))}}yA.propTypes={format:v.string,defaultOpenValue:v.object,prefixCls:v.string,onChange:v.func,showHour:v.bool,showMinute:v.bool,showSecond:v.bool,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,hideDisabledOptions:v.bool,onCurrentSelectPanelChange:v.func,use12Hours:v.bool,isAM:v.bool,timeStampValue:v.any,scrollItemProps:v.object};yA.defaultProps={disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const NI=yA;class a9e extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}selectYear(e,t){const{currentYear:r,currentMonth:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);if(l[t]=e.value,i==="monthRange"){const u=l[o]===l[s]&&a[o]>a[s];t===o&&e.value>l[s]||t===o&&u?l[s]=e.value+1:t===s&&u&&(l[o]=e.value-1)}this._adapter.setCurrentYear(l,()=>this.autoSelectMonth(e,t,l)),this._adapter.notifySelectYear(l)}selectMonth(e,t){const{currentMonth:r,currentYear:a}=this.getStates(),{type:i}=this.getProps(),o=le.PANEL_TYPE_LEFT,s=le.PANEL_TYPE_RIGHT,l=Ii(r);l[t]=e.month,i==="monthRange"&&t===o&&a[o]===a[s]&&e.value>l[s]&&(l[s]=e.month+1),this._adapter.setCurrentMonth(l),this._adapter.notifySelectMonth(l)}autoSelectMonth(e,t,r){const{disabledDate:a,locale:i}=this._adapter.getProps(),{months:o,currentMonth:s}=this._adapter.getStates(),l=hZ(Date.now(),e.year);if(a(Vp(l,s[t]-1))){const c=o.findIndex(f=>{let{month:h}=f;return h===s[t]});let d;if(d=o.slice(c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))}),d||(d=o.slice(0,c).find(f=>{let{month:h}=f;return!a(Vp(l,h-1))})),d){const f=Ii(s);f[t]=d.month,this._adapter.setCurrentYearAndMonth(r,f),this._adapter.notifySelectYearAndMonth(r,f)}}}backToMain(){this._adapter.notifyBackToMain()}}const PN=`${q}-datepicker`;class bA extends Pe{constructor(e){super(e),this.selectYear=(s,l)=>{this.foundation.selectYear(s,l)},this.selectMonth=(s,l)=>{this.foundation.selectMonth(s,l)},this.reselect=()=>{["yearRef","monthRef"].forEach(l=>{const u=this[l];u&&u.current&&u.current.scrollToIndex&&u.current.scrollToIndex()})},this.backToMain=s=>{s.nativeEvent.stopImmediatePropagation(),this.foundation.backToMain()};const t=new Date;let{currentYear:r,currentMonth:a}=e;const i=r.left||t.getFullYear(),o=a.left||t.getMonth()+1;r={left:i,right:i},a={left:o,right:a.right||o+1},this.state={years:_6e(e.startYear,e.endYear).map(s=>({value:s,year:s})),months:Array(12).fill(0).map((s,l)=>({value:l+1,month:l+1})),currentYear:r,currentMonth:a},this.yearRef=x.createRef(),this.monthRef=x.createRef(),this.foundation=new a9e(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setCurrentYear:(e,t)=>this.setState({currentYear:e},t),setCurrentMonth:e=>this.setState({currentMonth:e}),setCurrentYearAndMonth:(e,t)=>this.setState({currentYear:e,currentMonth:t}),notifySelectYear:e=>this.props.onSelect({currentMonth:this.state.currentMonth,currentYear:e}),notifySelectMonth:e=>this.props.onSelect({currentYear:this.state.currentYear,currentMonth:e}),notifySelectYearAndMonth:(e,t)=>this.props.onSelect({currentYear:e,currentMonth:t}),notifyBackToMain:()=>this.props.onBackToMain()})}static getDerivedStateFromProps(e,t){const r={};return!Ke(e.currentYear,t.currentYear)&&e.currentYear.left!==0&&(r.currentYear=e.currentYear),!Ke(e.currentMonth,t.currentMonth)&&e.currentMonth.left!==0&&(r.currentMonth=e.currentMonth),r}renderColYear(e){const{years:t,currentYear:r,currentMonth:a,months:i}=this.state,{disabledDate:o,localeCode:s,yearCycled:l,yearAndMonthOpts:u}=this.props,c=Vp(Date.now(),a[e]-1),d=le.PANEL_TYPE_LEFT,f=le.PANEL_TYPE_RIGHT,h=m=>e===f&&r[d]?a[d]<=a[f]?r[d]>m:r[d]>=m:!1,p=t.map(m=>{let{value:y,year:b}=m;const _=i.every(C=>{let{month:w}=C;return o(fZ(c,{year:b,month:w-1}))}),S=h(b);return{year:b,value:y,disabled:_||S}});let g=m=>m;return(s==="zh-CN"||s==="zh-TW")&&(g=m=>`${m}年`),x.createElement(Al,Object.assign({ref:this.yearRef,cycled:l,list:p,transform:g,selectedIndex:t.findIndex(m=>m.value===r[e]),type:"year",onSelect:m=>this.selectYear(m,e),mode:"normal"},u))}renderColMonth(e){const{months:t,currentMonth:r,currentYear:a}=this.state,{locale:i,localeCode:o,monthCycled:s,disabledDate:l,yearAndMonthOpts:u}=this.props;let c=m=>m;const d=hZ(Date.now(),a[e]),f=le.PANEL_TYPE_LEFT,h=le.PANEL_TYPE_RIGHT;(o==="zh-CN"||o==="zh-TW")&&(c=m=>`${m}月`);const p=t.map(m=>{let{value:y,month:b}=m;const _=e===h&&r[f]&&a[f]===a[h]&&r[f]>b;return{month:b,disabled:l(Vp(d,b-1))||_,value:i.fullMonths[y]}}),g=p.findIndex(m=>m.month===r[e]);return x.createElement(Al,Object.assign({ref:this.monthRef,cycled:s,list:p,transform:c,selectedIndex:g,type:"month",onSelect:m=>this.selectMonth(m,e),mode:"normal"},u))}renderPanel(e){return x.createElement(x.Fragment,null,x.createElement(uq,null,this.renderColYear(e),this.renderColMonth(e)))}render(){const{locale:e,noBackBtn:t,density:r,presetPosition:a,renderQuickControls:i,renderDateInput:o,type:s}=this.props,l=`${PN}-yearmonth-header`,u=`${PN}-yearmonth-body`,c=e.selectDate,d=r==="compact"?"default":"large",f=r==="compact"?"small":"default",h=le.PANEL_TYPE_LEFT,p=le.PANEL_TYPE_RIGHT;let g=null;return s==="month"?g=this.renderPanel(h):g=x.createElement("div",{className:u},this.renderPanel(h),this.renderPanel(p)),x.createElement(x.Fragment,null,t?null:x.createElement("div",{className:l},x.createElement(Dl,{noHorizontalPadding:!1,icon:x.createElement(N7,{"aria-hidden":!0,size:d}),size:f,onClick:this.backToMain},x.createElement("span",null,c))),a?x.createElement("div",{style:{display:"flex"}},a==="left"&&s!=="monthRange"&&i,x.createElement("div",null,o,g),a==="right"&&s!=="monthRange"&&i):x.createElement(x.Fragment,null,o,g))}}bA.propTypes={currentYear:v.object,currentMonth:v.object,onSelect:v.func,locale:v.object,localeCode:v.string,monthCycled:v.bool,yearCycled:v.bool,noBackBtn:v.bool,disabledDate:v.func,density:v.string,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node,type:v.oneOf(le.TYPE_SET),startYear:v.number,endYear:v.number};bA.defaultProps={disabledDate:V1,monthCycled:!1,yearCycled:!1,noBackBtn:!1,onSelect:B,type:"month"};const dq=bA,yi=Ge.PREFIX;class _A extends Pe{constructor(e){super(e),this.cacheRefCurrent=(s,l)=>{typeof s=="string"&&s.length&&this.adapter.setCache(s,l)},this.leftIsYearOrTime=s=>{const{monthLeft:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.rightIsYearOrTime=s=>{const{monthRight:l}=s||this.state;return!!(l&&(l.isTimePickerOpen||l.isYearPickerOpen))},this.calcScrollListHeight=()=>{const s=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),l=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),u=this.adapter.getCache(`switch-${le.PANEL_TYPE_LEFT}`),c=this.adapter.getCache(`switch-${le.PANEL_TYPE_RIGHT}`),d=s&&s.getBoundingClientRect(),f=l&&l.getBoundingClientRect();let h=d&&d.height||0,p=f&&f.height||0;return u&&(h+=u.getBoundingClientRect().height),c&&(p+=c.getBoundingClientRect().height),Math.max(h,p)},this.handleWeeksRowNumChange=(s,l)=>{const u=l===le.PANEL_TYPE_RIGHT,c=l===le.PANEL_TYPE_RIGHT,d=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!d){const f={weeksRowNum:s,currentPanelHeight:this.calcScrollListHeight()};this.setState(f,()=>{(this.leftIsYearOrTime()&&c||this.rightIsYearOrTime()&&u)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${le.PANEL_TYPE_LEFT}`,`timepicker-${le.PANEL_TYPE_RIGHT}`,`yam-${le.PANEL_TYPE_LEFT}`,`yam-${le.PANEL_TYPE_RIGHT}`].forEach(l=>{const u=this.adapter.getCache(l);u&&typeof u.reselect=="function"&&u.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();const t=e.format||Zu(e.type),{nowDate:r,nextDate:a}=rq({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:a,showDate:a,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new m7e(this.adapter)}get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){const{defaultValue:r,defaultPickerValue:a}=this.props;if(e.defaultValue!==r&&this.foundation.updateSelectedFromProps(r),e.defaultPickerValue!==a&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){const o=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),s=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),l=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),u=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();s&&l?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):o&&u&&this.reselect()}}renderPanel(e,t){let r=$(`${yi}-month-grid-${t}`);const{monthLeft:a,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:s}=this.props,l=t===le.PANEL_TYPE_RIGHT?i:a,{isTimePickerOpen:u,isYearPickerOpen:c}=l,d=this.renderMonth(e,t),f=c?x.createElement("div",{className:`${yi}-yam`},this.renderYearAndMonth(t,l)):null,h=u?x.createElement("div",{className:`${yi}-tpk`},this.renderTimePicker(t,l)):null,p={},g=this.adapter.getCache(`wrap-${le.PANEL_TYPE_LEFT}`),m=this.adapter.getCache(`wrap-${le.PANEL_TYPE_RIGHT}`),y=t===le.PANEL_TYPE_RIGHT?m:g;this.foundation.isRangeType()?((c||u)&&(p.minWidth=y.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!s&&(p.minHeight=o||this.calcScrollListHeight())):this.props.type!=="year"&&this.props.type!=="month"&&(u||c)&&(r=$(r,`${yi}-yam-showing`));const _=!(c||u)?"date":c?"year":"time";return x.createElement("div",{className:r,key:t,style:p,"x-open-type":_},f,h,this.foundation.isRangeType()?d:c||u?null:d,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){const{selected:r,rangeStart:a,rangeEnd:i,hoverDay:o,maxWeekNum:s,offsetRangeStart:l,offsetRangeEnd:u}=this.state,{weekStartsOn:c,disabledDate:d,locale:f,localeCode:h,renderDate:p,renderFullDate:g,startDateOffset:m,endDateOffset:y,density:b,rangeInputFocus:_,syncSwitchMonth:S,multiple:C}=this.props;let w="";if(e){const P=e?Lt(e,"yyyy"):"",A=e?Lt(e,"L"):"",R=f.months[A];w=f.monthText.replace("${year}",P).replace("${month}",R)}let T={};const E=t===le.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,O=this.foundation.isRangeType(),I=O&&S;return O&&E&&(E.isYearPickerOpen||E.isTimePickerOpen)&&(T={visibility:"hidden",position:"absolute",pointerEvents:"none"}),x.createElement("div",{ref:P=>this.cacheRefCurrent(`wrap-${t}`,P),style:T},x.createElement(gA,{forwardRef:P=>this.cacheRefCurrent(`nav-${t}`,P),monthText:w,density:b,onMonthClick:P=>this.showYearPicker(t,P),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:I,panelType:t}),x.createElement(vA,{locale:f,localeCode:h,forwardRef:P=>this.cacheRefCurrent(`month-${t}`,P),disabledDate:d,weekStartsOn:c,month:e,selected:r,rangeStart:a,rangeEnd:i,rangeInputFocus:_,offsetRangeStart:l,offsetRangeEnd:u,hoverDay:o,weeksRowNum:s,renderDate:p,renderFullDate:g,onDayClick:P=>this.foundation.handleDayClick(P,t),onDayHover:P=>this.foundation.handleDayHover(P,t),onWeeksRowNumChange:P=>this.handleWeeksRowNumChange(P,t),startDateOffset:m,endDateOffset:y,focusRecordsRef:this.props.focusRecordsRef,multiple:C}))}renderTimePicker(e,t){const{type:r,locale:a,format:i,hideDisabledOptions:o,timePickerOpts:s,dateFnsLocale:l}=this.props,{pickerDate:u}=t,c=$(`${yi}-time`),d=Object.assign(Object.assign({},s),{hideDisabledOptions:o}),f=this.foundation.calcDisabledTime(e);f&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(_=>{f[_]&&(d[_]=f[_])});const{rangeStart:h,rangeEnd:p}=this.state,g=this.foundation.getValidDateFormat();let m,y;r==="dateTimeRange"&&h&&p&&D7(m=Dn(h,g,void 0,l),y=Dn(p,g,void 0,l))&&(e===le.PANEL_TYPE_RIGHT?h&&(d.startDate=m):p&&(d.endDate=y));const b=a.selectTime;return x.createElement("div",{className:c},x.createElement(NI,Object.assign({ref:_=>this.cacheRefCurrent(`timepicker-${e}`,_),panelHeader:b,format:i||le.FORMAT_TIME_PICKER,timeStampValue:u,onChange:_=>this.foundation.handleTimeChange(_,e)},d)))}renderYearAndMonth(e,t){const{pickerDate:r}=t,{locale:a,localeCode:i,density:o,yearAndMonthOpts:s,startYear:l,endYear:u}=this.props,c=r.getFullYear(),d=r.getMonth()+1;return x.createElement(dq,{ref:f=>this.cacheRefCurrent(`yam-${e}`,f),locale:a,localeCode:i,currentYear:{left:c,right:0},currentMonth:{left:d,right:0},onSelect:f=>this.foundation.toYearMonth(e,new Date(f.currentYear.left,f.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);const f=this.adapter.getCache(`wrap-${e}`);f&&(f.style.height="auto")},density:o,yearAndMonthOpts:s,startYear:l,endYear:u})}renderSwitch(e){const{rangeStart:t,rangeEnd:r,monthLeft:a,monthRight:i}=this.state,{type:o,locale:s,disabledTimePicker:l,density:u,dateFnsLocale:c,insetInput:d}=this.props;if(!o.includes("Time")||d)return null;let f,h;const{FORMAT_SWITCH_DATE:p}=s.localeFormatToken,g=this.foundation.getValidTimeFormat(),m=this.foundation.getValidDateFormat();e===le.PANEL_TYPE_LEFT?(f=a,h=t?Lt(Dn(t,m,void 0,c),p):""):(f=i,h=r?Lt(Dn(r,m,void 0,c),p):"");const{isTimePickerOpen:y,showDate:b}=f,_=b?Lt(b,p):"",S=b?Lt(b,g):"",C=["default"].includes(u),w=$(`${yi}-switch`),T=$({[`${yi}-switch-date`]:!0,[`${yi}-switch-date-active`]:!y}),E=$({[`${yi}-switch-time`]:!0,[`${yi}-switch-time-disabled`]:l,[`${yi}-switch-date-active`]:y}),O=$(`${yi}-switch-text`);return x.createElement("div",{className:w,ref:I=>this.adapter.setCache(`switch-${e}`,I)},x.createElement("div",{role:"button","aria-label":"Switch to date panel",className:T,onClick:I=>this.foundation.showDatePanel(e)},C&&x.createElement(gZ,{"aria-hidden":!0}),x.createElement("span",{className:O},h||_)),x.createElement("div",{role:"button","aria-label":"Switch to time panel",className:E,onClick:I=>this.foundation.showTimePicker(e,!0)},C&&x.createElement(vZ,{"aria-hidden":!0}),x.createElement("span",{className:O},S)))}render(){const{monthLeft:e,monthRight:t}=this.state,{type:r,insetInput:a,presetPosition:i,renderQuickControls:o,renderDateInput:s}=this.props,l=$({[`${yi}-month-grid`]:!0}),u=le.PANEL_TYPE_LEFT,c=le.PANEL_TYPE_RIGHT;let d=null;r==="date"||r==="dateTime"?d=this.renderPanel(e.pickerDate,u):r==="dateRange"||r==="dateTimeRange"?d=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,c)]:(r==="year"||r==="month")&&(d="year month");const f=this.getYAMOpenType();return x.createElement("div",{style:{display:"flex"}},i==="left"&&o,x.createElement("div",null,s,x.createElement("div",{className:l,"x-type":r,"x-panel-yearandmonth-open-type":f,"x-insetinput":a?"true":"false","x-preset-position":o===null?"null":i,ref:h=>this.cacheRefCurrent("monthGrid",h)},d)),i==="right"&&o)}}_A.propTypes={type:v.oneOf(le.TYPE_SET),defaultValue:v.array,defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),multiple:v.bool,max:v.number,weekStartsOn:v.number,disabledDate:v.func,disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,navPrev:v.node,navNext:v.node,onMaxSelect:v.func,timePickerOpts:v.object,isControlledComponent:v.bool,rangeStart:v.oneOfType([v.string]),rangeInputFocus:v.oneOfType([v.bool,v.string]),locale:v.object,localeCode:v.string,format:v.string,renderDate:v.func,renderFullDate:v.func,startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,density:v.string,dateFnsLocale:v.object.isRequired,timeZone:v.oneOfType([v.string,v.number]),syncSwitchMonth:v.bool,onPanelChange:v.func,focusRecordsRef:v.object,triggerRender:v.func,presetPosition:v.oneOf(le.PRESET_POSITION_SET),renderQuickControls:v.node,renderDateInput:v.node};_A.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,onMaxSelect:B,locale:{}};const Ua=Ge.PREFIX,{Text:i9e}=Nf;class SA extends D.PureComponent{render(){const{presets:e,onPresetClick:t,type:r,presetPosition:a,insetInput:i,locale:o}=this.props,s=r==="dateRange"||r==="dateTimeRange",l=a==="top"||a==="bottom",u=r==="month",c=l&&s,d=l&&u,f=$(`${Ua}-quick-control`,{[`${Ua}-quick-control-${r}`]:r,[`${Ua}-quick-control-${a}`]:!0}),h=$({[`${Ua}-quick-control-header`]:!0}),p=$({[`${Ua}-quick-control-${a}-content-wrapper`]:!0}),g=$({[`${Ua}-quick-control-${a}-content`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content`]:c,[`${Ua}-quick-control-${a}-month-content`]:d}),m=$({[`${Ua}-quick-control-${a}-content-item`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item`]:c,[`${Ua}-quick-control-${a}-month-content-item`]:d}),y=$({[`${Ua}-quick-control-${a}-content-item-ellipsis`]:!c&&!d,[`${Ua}-quick-control-${a}-range-content-item-ellipsis`]:c,[`${Ua}-quick-control-${a}-month-content-item-ellipsis`]:d});return e.length?x.createElement("div",{className:f,"x-insetinput":i?"true":"false"},!l&&x.createElement("div",{className:h},o.presets),x.createElement("div",{className:p},x.createElement("div",{className:g},e.map((b,_)=>{const S=typeof b=="function"?b():b;return x.createElement(Jt,{size:"small",type:"primary",onClick:C=>t(S,C),key:_},x.createElement("div",{className:m},x.createElement(i9e,{ellipsis:{showTooltip:!0},className:y},S.text)))})))):null}}SA.propTypes={presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onPresetClick:v.func,type:v.string,insetInput:v.oneOfType([v.bool,v.object]),locale:v.object};SA.defaultProps={presets:[],presetPosition:"bottom",onPresetClick:Ht};const o9e=SA;function s9e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e,locale:t,onCancelClick:r,onConfirmClick:a}=n,i=$(`${e}-footer`);return x.createElement("div",{className:i},x.createElement(Jt,{theme:"borderless",onClick:r},H(t,"footer.cancel","")),x.createElement(Jt,{theme:"solid",onClick:a},H(t,"footer.confirm","")))}var l9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.triggerElRef.current=r,this.handleSelectedChange=(r,a)=>this.foundation.handleSelectedChange(r,a),this.handleYMSelectedChange=r=>this.foundation.handleYMSelectedChange(r),this.disabledDisposeDate=function(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;othis.foundation.openPanel(),this.handleInputChange=function(){return t.foundation.handleInputChange(...arguments)},this.handleInsetInputChange=r=>this.foundation.handleInsetInputChange(r),this.handleInputComplete=r=>this.foundation.handleInputComplete(r),this.handleInputBlur=r=>this.foundation.handleInputBlur(H(r,"nativeEvent.target.value"),r),this.handleInputFocus=function(){return t.foundation.handleInputFocus(...arguments)},this.handleInputClear=r=>this.foundation.handleInputClear(r),this.handleTriggerWrapperClick=r=>this.foundation.handleTriggerWrapperClick(r),this.handleSetRangeFocus=r=>this.foundation.handleSetRangeFocus(r),this.handleRangeInputBlur=(r,a)=>this.foundation.handleRangeInputBlur(r,a),this.handleRangeInputClear=r=>this.foundation.handleRangeInputClear(r),this.handleRangeEndTabPress=r=>this.foundation.handleRangeEndTabPress(r),this.isAnotherPanelHasOpened=r=>r==="rangeStart"?this.focusRecordsRef.current.rangeEnd:this.focusRecordsRef.current.rangeStart,this.handleInsetDateFocus=(r,a)=>{const i=H(this,"monthGrid.current.foundation");i&&(i.showDatePanel(le.PANEL_TYPE_LEFT),i.showDatePanel(le.PANEL_TYPE_RIGHT)),this.handleInputFocus(r,a)},this.handleInsetTimeFocus=()=>{const r=H(this,"monthGrid.current.foundation");r&&(r.showTimePicker(le.PANEL_TYPE_LEFT),r.showTimePicker(le.PANEL_TYPE_RIGHT))},this.handlePanelVisibleChange=r=>{this.foundation.handlePanelVisibleChange(r)},this.handleConfirm=r=>this.foundation.handleConfirm(),this.handleCancel=r=>this.foundation.handleCancel(),this.renderFooter=(r,a)=>this.adapter.needConfirm()?x.createElement(s9e,Object.assign({},this.props,{locale:r,localeCode:a,onConfirmClick:this.handleConfirm,onCancelClick:this.handleCancel})):null,this.renderPanel=(r,a,i)=>{const{dropdownClassName:o,dropdownStyle:s,density:l,topSlot:u,bottomSlot:c,presetPosition:d,type:f}=this.props,h=$(Ge.PREFIX,{[Ge.PANEL_YAM]:this.adapter.typeIsYearOrMonth(),[`${Ge.PREFIX}-compact`]:l==="compact"},o);return x.createElement("div",{ref:this.panelRef,className:h,style:s,"x-type":f},u&&x.createElement("div",{className:`${Ge.PREFIX}-topSlot`,"x-semi-prop":"topSlot"},u),d==="top"&&f!=="monthRange"&&this.renderQuickControls(),this.adapter.typeIsYearOrMonth()?this.renderYearMonthPanel(r,a):this.renderMonthGrid(r,a,i),d==="bottom"&&f!=="monthRange"&&this.renderQuickControls(),c&&x.createElement("div",{className:`${Ge.PREFIX}-bottomSlot`,"x-semi-prop":"bottomSlot"},c),this.renderFooter(r,a))},this.renderYearMonthPanel=(r,a)=>{const{density:i,presetPosition:o,yearAndMonthOpts:s,type:l,startYear:u,endYear:c}=this.props,d=this.state.value[0],f={left:0,right:0},h={left:0,right:0};if(vN(d)&&(f.left=d.getFullYear(),h.left=d.getMonth()+1),l==="monthRange"){const p=this.state.value[1];vN(p)&&(f.right=p.getFullYear(),h.right=p.getMonth()+1)}return x.createElement(dq,{locale:r,localeCode:a,disabledDate:this.disabledDisposeDate,noBackBtn:!0,monthCycled:!0,onSelect:this.handleYMSelectedChange,currentYear:f,currentMonth:h,density:i,presetPosition:o,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),type:l,yearAndMonthOpts:s,startYear:u,endYear:c})},this.wrapPopover=r=>{const{panelShow:a}=this.state,{direction:i}=this.context,o=i==="rtl"?"bottomRight":"bottomLeft",{motion:s,zIndex:l,position:u=o,getPopupContainer:c,locale:d,localeCode:f,dateFnsLocale:h,stopPropagation:p,autoAdjustOverflow:g,spacing:m,dropdownMargin:y}=this.props;return x.createElement(di,{getPopupContainer:c,autoAdjustOverflow:g,zIndex:l,motion:s,margin:y,content:this.renderPanel(d,f,h),trigger:"custom",position:u,visible:a,stopPropagation:p,spacing:m,onVisibleChange:this.handlePanelVisibleChange},r)},this.state={panelShow:e.open||e.defaultOpen,isRange:!1,inputValue:null,value:[],cachedSelectedValue:[],prevTimeZone:null,rangeInputFocus:void 0,autofocus:e.autoFocus||this.isRangeType(e.type,e.triggerRender)&&(e.open||e.defaultOpen),insetInputValue:null,triggerDisabled:void 0},this.triggerElRef=x.createRef(),this.panelRef=x.createRef(),this.monthGrid=x.createRef(),this.inputRef=x.createRef(),this.rangeInputStartRef=x.createRef(),this.rangeInputEndRef=x.createRef(),this.focusRecordsRef=x.createRef(),this.focusRecordsRef.current={rangeStart:!1,rangeEnd:!1},this.foundation=new u7e(this.adapter)}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:(t,r)=>{this.setState({panelShow:t},r),t||(this.focusRecordsRef.current.rangeEnd=!1,this.focusRecordsRef.current.rangeStart=!1)},registerClickOutSide:()=>{this.clickOutSideHandler&&(this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=null),this.clickOutSideHandler=t=>{const r=this.triggerElRef&&this.triggerElRef.current,a=this.panelRef&&this.panelRef.current,i=r&&r.contains(t.target),o=a&&a.contains(t.target),s=!i&&!o&&this._mounted;if(this.adapter.needConfirm()){s&&this.props.onClickOutSide();return}else s&&(this.props.onClickOutSide(),this.foundation.closePanel(t))},document.addEventListener("mousedown",this.clickOutSideHandler)},unregisterClickOutSide:()=>{document.removeEventListener("mousedown",this.clickOutSideHandler)},notifyBlur:function(){return e.props.onBlur(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyClear:function(){return e.props.onClear(...arguments)},notifyChange:function(){return e.props.onChange(...arguments)},notifyCancel:function(){return e.props.onCancel(...arguments)},notifyConfirm:function(){return e.props.onConfirm(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyPresetsClick:function(){return e.props.onPresetClick(...arguments)},updateValue:t=>this.setState({value:t}),updatePrevTimezone:t=>this.setState({prevTimeZone:t}),updateCachedSelectedValue:t=>{let r=t;t&&!Array.isArray(t)&&(r=[...t]),this.setState({cachedSelectedValue:r})},updateInputValue:t=>{this.setState({inputValue:t})},updateInsetInputValue:t=>{const{insetInput:r}=this.props;r&&!Ke(t,this.state.insetInputValue)&&this.setState({insetInputValue:t})},needConfirm:()=>["dateTime","dateTimeRange"].includes(this.props.type)&&this.props.needConfirm===!0,typeIsYearOrMonth:()=>["month","year","monthRange"].includes(this.props.type),setRangeInputFocus:t=>{const{preventScroll:r}=this.props;switch(t!==this.state.rangeInputFocus&&this.setState({rangeInputFocus:t}),t){case"rangeStart":const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeStart=!0},0);break;case"rangeEnd":const i=H(this,"rangeInputEndRef.current");i&&i.focus({preventScroll:r}),setTimeout(()=>{this.focusRecordsRef.current.rangeEnd=!0},0);break;default:return}},couldPanelClosed:()=>this.focusRecordsRef.current.rangeStart&&this.focusRecordsRef.current.rangeEnd,isEventTarget:t=>t&&t.target===t.currentTarget,setInsetInputFocus:()=>{const{preventScroll:t}=this.props,{rangeInputFocus:r}=this.state;switch(r){case"rangeEnd":if(document.activeElement!==this.rangeInputEndRef.current){const a=H(this,"rangeInputEndRef.current");a&&a.focus({preventScroll:t})}break;case"rangeStart":default:if(document.activeElement!==this.rangeInputStartRef.current){const a=H(this,"rangeInputStartRef.current");a&&a.focus({preventScroll:t})}break}},setInputFocus:()=>{const{preventScroll:t}=this.props,r=H(this,"inputRef.current");r&&r.focus({preventScroll:t})},setInputBlur:()=>{const t=H(this,"inputRef.current");t&&t.blur()},setRangeInputBlur:()=>{const{rangeInputFocus:t}=this.state;if(t==="rangeStart"){const r=H(this,"rangeInputStartRef.current");r&&r.blur()}else if(t==="rangeEnd"){const r=H(this,"rangeInputEndRef.current");r&&r.blur()}this.adapter.setRangeInputFocus(!1)},setTriggerDisabled:t=>{this.setState({triggerDisabled:t})}})}isRangeType(e,t){return/range/i.test(e)&&!ke(t)}componentDidUpdate(e){e.value!==this.props.value?this.foundation.initFromProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.initFromProps({value:this.state.value,timeZone:this.props.timeZone,prevTimeZone:e.timeZone}),e.open!==this.props.open&&(this.foundation.initPanelOpenStatus(),this.props.open||this.foundation.clearRangeInputFocus())}componentDidMount(){this._mounted=!0,super.componentDidMount()}componentWillUnmount(){this._mounted=!1,super.componentWillUnmount()}open(){this.foundation.open()}close(){this.foundation.close()}focus(e){this.foundation.focus(e)}blur(){this.foundation.blur()}renderMonthGrid(e,t,r){const{type:a,multiple:i,max:o,weekStartsOn:s,timePickerOpts:l,defaultPickerValue:u,format:c,hideDisabledOptions:d,disabledTimePicker:f,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,syncSwitchMonth:_,onPanelChange:S,timeZone:C,triggerRender:w,insetInput:T,presetPosition:E,yearAndMonthOpts:O,startYear:I,endYear:P}=this.props,{cachedSelectedValue:A,rangeInputFocus:R}=this.state,L=A;return x.createElement(_A,{ref:this.monthGrid,locale:e,localeCode:t,dateFnsLocale:r,weekStartsOn:s,type:a,multiple:i,max:o,format:c,disabledDate:this.disabledDisposeDate,hideDisabledOptions:d,disabledTimePicker:f,disabledTime:this.disabledDisposeTime,defaultValue:L,defaultPickerValue:u,timePickerOpts:l,isControlledComponent:!this.adapter.needConfirm()&&this.isControlled("value"),onChange:this.handleSelectedChange,renderDate:h,renderFullDate:p,startDateOffset:g,endDateOffset:m,autoSwitchDate:y,density:b,rangeInputFocus:R,setRangeInputFocus:this.handleSetRangeFocus,isAnotherPanelHasOpened:this.isAnotherPanelHasOpened,syncSwitchMonth:_,onPanelChange:S,timeZone:C,focusRecordsRef:this.focusRecordsRef,triggerRender:w,insetInput:T,presetPosition:E,renderQuickControls:this.renderQuickControls(),renderDateInput:this.renderDateInput(),yearAndMonthOpts:O,startYear:I,endYear:P})}renderQuickControls(){const{presets:e,type:t,presetPosition:r,insetInput:a,locale:i}=this.props;return x.createElement(o9e,{type:t,presets:e,insetInput:a,presetPosition:r,onPresetClick:(o,s)=>this.foundation.handlePresetClick(o,s),locale:i})}renderDateInput(){const{insetInput:e,dateFnsLocale:t,density:r,type:a,format:i,rangeSeparator:o,defaultPickerValue:s}=this.props,{insetInputValue:l,value:u}=this.state,c={dateFnsLocale:t,format:i,insetInputValue:l,rangeSeparator:o,type:a,value:u,handleInsetDateFocus:this.handleInsetDateFocus,handleInsetTimeFocus:this.handleInsetTimeFocus,onInsetInputChange:this.handleInsetInputChange,rangeInputStartRef:this.rangeInputStartRef,rangeInputEndRef:this.rangeInputEndRef,density:r,defaultPickerValue:s};return e?x.createElement(LS,Object.assign({},c,{insetInput:e})):null}renderInner(e){const{clearIcon:t,type:r,format:a,multiple:i,disabled:o,showClear:s,insetLabel:l,insetLabelId:u,placeholder:c,validateStatus:d,inputStyle:f,prefix:h,locale:p,dateFnsLocale:g,triggerRender:m,size:y,inputReadOnly:b,rangeSeparator:_,insetInput:S,defaultPickerValue:C,borderless:w}=this.props,{value:T,inputValue:E,rangeInputFocus:O,triggerDisabled:I}=this.state,P=this.isRangeType(r,m),A=o||S&&I,R=$(`${Ge.PREFIX}-input`,{[`${Ge.PREFIX}-range-input`]:P,[`${Ge.PREFIX}-range-input-${y}`]:P&&y,[`${Ge.PREFIX}-range-input-active`]:P&&O&&!A,[`${Ge.PREFIX}-range-input-disabled`]:P&&A,[`${Ge.PREFIX}-range-input-${d}`]:P&&d,[`${Ge.PREFIX}-borderless`]:w}),L=c||p.placeholder[r],k=Object.assign(Object.assign({},e),{showClearIgnoreDisabled:!!S,placeholder:L,clearIcon:t,disabled:A,inputValue:E,value:T,defaultPickerValue:C,onChange:this.handleInputChange,onEnterPress:this.handleInputComplete,block:!0,inputStyle:f,showClear:s,insetLabel:l,insetLabelId:u,type:r,format:a,multiple:i,validateStatus:d,inputReadOnly:b||!!S,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,onClear:this.handleInputClear,prefix:h,size:y,autofocus:this.state.autofocus,dateFnsLocale:g,rangeInputFocus:O,rangeSeparator:_,onRangeBlur:this.handleRangeInputBlur,onRangeClear:this.handleRangeInputClear,onRangeEndTabPress:this.handleRangeEndTabPress,rangeInputStartRef:S?null:this.rangeInputStartRef,rangeInputEndRef:S?null:this.rangeInputEndRef,inputRef:this.inputRef});return x.createElement("div",{role:"combobox","aria-label":Array.isArray(T)&&T.length?"Change date":"Choose date","aria-disabled":o,onClick:this.handleTriggerWrapperClick,className:R},typeof m=="function"?x.createElement(Wg,Object.assign({},k,{triggerRender:m,componentName:"DatePicker",componentProps:Object.assign({},this.props)})):x.createElement(LS,Object.assign({},k)))}render(){const e=this.props,{style:t,className:r,prefixCls:a,type:i}=e,o=l9e(e,["style","className","prefixCls","type"]),s=Object.assign({style:t,className:$(r,{[a]:!0}),ref:this.setTriggerRef,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(o)),l=[];i.toLowerCase().includes("range")||l.push("borderless");const u=this.renderInner(eu(this.props,l)),c=this.wrapPopover(u);return x.createElement("div",Object.assign({},s),c)}};Z1.contextType=Fr;Z1.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,type:v.oneOf(le.TYPE_SET),size:v.oneOf(le.SIZE_SET),clearIcon:v.node,density:v.oneOf(le.DENSITY_SET),defaultValue:v.oneOfType([v.string,v.number,v.object,v.array]),value:v.oneOfType([v.string,v.number,v.object,v.array]),defaultPickerValue:v.oneOfType([v.string,v.number,v.object,v.array]),disabledTime:v.func,disabledTimePicker:v.bool,hideDisabledOptions:v.bool,format:v.string,disabled:v.bool,multiple:v.bool,max:v.number,placeholder:v.oneOfType([v.string,v.array]),presets:v.array,presetPosition:v.oneOf(le.PRESET_POSITION_SET),onChange:v.func,onChangeWithDateFirst:v.bool,weekStartsOn:v.number,disabledDate:v.func,timePickerOpts:v.object,showClear:v.bool,onOpenChange:v.func,open:v.bool,defaultOpen:v.bool,motion:v.oneOfType([v.bool,v.func,v.object]),className:v.string,prefixCls:v.string,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,position:v.oneOf(gf.POSITION_SET),getPopupContainer:v.func,onCancel:v.func,onConfirm:v.func,needConfirm:v.bool,inputStyle:v.object,timeZone:v.oneOfType([v.string,v.number]),triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),autoAdjustOverflow:v.bool,onBlur:v.func,onFocus:v.func,onClear:v.func,style:v.object,autoFocus:v.bool,inputReadOnly:v.bool,validateStatus:v.oneOf(le.STATUS),renderDate:v.func,renderFullDate:v.func,spacing:v.oneOfType([v.number,v.object]),startDateOffset:v.func,endDateOffset:v.func,autoSwitchDate:v.bool,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),topSlot:v.node,bottomSlot:v.node,dateFnsLocale:v.object,syncSwitchMonth:v.bool,onPanelChange:v.func,rangeSeparator:v.string,preventScroll:v.bool,yearAndMonthOpts:v.object,onClickOutSide:v.func};Z1.defaultProps={onChangeWithDateFirst:!0,borderless:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,prefixCls:Ge.PREFIX,presetPosition:"bottom",zIndex:ci.DEFAULT_Z_INDEX,type:"date",size:"default",density:"default",multiple:!1,defaultOpen:!1,disabledHours:B,disabledMinutes:B,disabledSeconds:B,hideDisabledOptions:!1,onBlur:B,onFocus:B,onClear:B,onCancel:B,onConfirm:B,onChange:B,onOpenChange:B,onPanelChange:B,onPresetClick:B,weekStartsOn:fg.WEEK_START_ON,disabledDate:V1,disabledTime:V1,inputReadOnly:!1,spacing:fg.SPACING,autoSwitchDate:!0,syncSwitchMonth:!1,rangeSeparator:le.DEFAULT_SEPARATOR_RANGE,insetInput:!1,onClickOutSide:B};const u9e=jX(x.forwardRef((n,e)=>{const t=Object.assign({},n),{type:r,format:a,rangeSeparator:i}=t;return typeof a=="string"&&a&&(/[Hhms]+/.test(a)||(r==="dateTime"?t.type="date":r==="dateTimeRange"&&(t.type="dateRange"))),i&&typeof i=="string"&&(t.rangeSeparator=` ${i.trim()} `),t.insetInput&&(t.position||(t.position=le.POSITION_INLINE_INPUT),t.position.includes("Over")&&!t.spacing&&(t.spacing=fg.SPACING_INSET_INPUT)),x.createElement(Fr.Consumer,null,o=>{let{timeZone:s}=o;return x.createElement(hn,{componentName:"DatePicker"},(l,u,c)=>x.createElement(Z1,Object.assign({timeZone:s,localeCode:u,locale:l,dateFnsLocale:c},t,{ref:e})))})}),Z1),fq={PREFIX:`${q}-descriptions`},DN={ALIGN_SET:["left","justify","plain","center"],SIZE_SET:["small","medium","large"]},c9e=x.createContext(null),CA=c9e;var d9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);am7(f)?x.createElement(Xw,Object.assign({itemKey:f.key},f,{key:h}),f.value):null):s;return x.createElement("div",Object.assign({className:c,style:o},Ic(u)),x.createElement("table",null,x.createElement("tbody",null,x.createElement(CA.Provider,{value:{align:t}},d))))}}s0.Item=Xw;s0.contextType=CA;s0.propTypes={align:v.oneOf(DN.ALIGN_SET),row:v.bool,size:v.oneOf(DN.SIZE_SET),style:v.object,className:v.string,data:v.arrayOf(v.shape({key:v.node,value:v.oneOfType([v.node,v.func]),hidden:v.bool,className:v.string,style:v.object}))};s0.defaultProps={align:"center",row:!1,size:"medium",data:[]};const h9e=s0,p9e={PREFIX:`${q}-empty`};var g9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{for(const r of t)r.type==="attributes"&&r.attributeName==="theme-mode"&&this.updateMode()},this.updateMode=()=>{const t=this.body.getAttribute("theme-mode");t!==this.state.mode&&this.setState({mode:t})},this.state={mode:null}}componentDidMount(){if(this.props.darkModeImage){this.body=window.document.body,this.updateMode();const e={attributes:!0,childList:!1,subtree:!1};this.observer=new MutationObserver(this.observe),this.observer.observe(this.body,e)}}componentWillUnmount(){this.observer&&this.observer.disconnect()}render(){const e=this.props,{className:t,image:r,description:a,style:i,title:o,imageStyle:s,children:l,layout:u,darkModeImage:c}=e,d=g9e(e,["className","image","description","style","title","imageStyle","children","layout","darkModeImage"]),f=typeof a=="string"?a:"empty",h=this.state.mode==="dark"&&c?c:r;let p=null;typeof h=="string"?p=x.createElement("img",{alt:f,src:h}):h&&"id"in h?p=x.createElement("svg",{"aria-hidden":"true"},x.createElement("use",{xlinkHref:`#${h.id}`})):p=h;const g=$(t,nd,{[`${nd}-${u}`]:u}),m=p?{heading:4}:{heading:6,style:{fontWeight:400}};return x.createElement("div",Object.assign({className:g,style:i},this.getDataAttr(d)),x.createElement("div",{className:`${nd}-image`,style:s,"x-semi-prop":"image,darkModeImage"},p),x.createElement("div",{className:`${nd}-content`},o?x.createElement(Nf.Title,Object.assign({},m,{className:`${nd}-title`,"x-semi-prop":"title"}),o):null,a?x.createElement("div",{className:`${nd}-description`,"x-semi-prop":"description"},a):null,l?x.createElement("div",{className:`${nd}-footer`,"x-semi-prop":"children"},l):null))}}hq.defaultProps={layout:"vertical"};const Bt={DIALOG:`${q}-modal`},RN={cancelKey:"cancel",confirmKey:"confirm",SIZE:["small","medium","large","full-width"],directions:["ltr","rtl"]};function v9e(n){return n!==null&&typeof n=="object"}function $f(n){return v9e(n)&&typeof n.then=="function"}class m9e extends ze{constructor(e){super(Object.assign({},e)),this.toggleDisplayNone=(t,r)=>{this._adapter.toggleDisplayNone(t,r)}}destroy(){this.afterHide()}handleCancel(e){var t;const r=this._adapter.notifyCancel(e);$f(r)&&(this._adapter.setState({onCancelReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onCancelReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onCancelReturnPromiseStatus:"rejected"}),a}))}handleOk(e){var t;const r=this._adapter.notifyOk(e);$f(r)&&(this._adapter.setState({onOKReturnPromiseStatus:"pending"}),(t=r==null?void 0:r.then(()=>{this._adapter.setState({onOKReturnPromiseStatus:"fulfilled"})}))===null||t===void 0||t.catch(a=>{throw this._adapter.setState({onOKReturnPromiseStatus:"rejected"}),a}))}beforeShow(){this._adapter.disabledBodyScroll()}afterHide(){this._adapter.enabledBodyScroll(),this._adapter.notifyClose()}}class wA extends ze{constructor(e){super(Object.assign(Object.assign({},wA.defaultAdapter),e)),this.handleKeyDown=t=>{const{closeOnEsc:r}=this.getProps();if(r&&t.keyCode===Rr.ESC){t.stopPropagation(),this.close(t);return}}}destroy(){this.handleKeyDownEventListenerUnmount(),this.modalDialogBlur(),this.prevFocusElementReFocus()}handleDialogMouseDown(){this._adapter.notifyDialogMouseDown()}handleMaskMouseUp(){this._adapter.notifyDialogMouseUp()}handleKeyDownEventListenerMount(){this._adapter.addKeyDownEventListener()}handleKeyDownEventListenerUnmount(){this._adapter.removeKeyDownEventListener()}getMouseState(){this._adapter.getMouseState()}handleMaskClick(e){const{dialogMouseDown:t}=this.getStates();e.target===e.currentTarget&&!t&&this.close(e)}close(e){this._adapter.notifyClose(e)}modalDialogFocus(){this._adapter.modalDialogFocus()}modalDialogBlur(){this._adapter.modalDialogBlur()}prevFocusElementReFocus(){this._adapter.prevFocusElementReFocus()}}var y9e=YZ,b9e=Sw,_9e=g7,S9e=b9e(function(n,e){return _9e(n)?y9e(n,e):[]}),C9e=S9e;const w9e=Ie(C9e);class Jm{constructor(e,t){var r;this.addFocusRedirectListener=a=>(this.focusRedirectListenerList.push(a),()=>this.removeFocusRedirectListener(a)),this.removeFocusRedirectListener=a=>{this.focusRedirectListenerList=w9e(this.focusRedirectListenerList,a)},this.destroy=()=>{var a;(a=this.container)===null||a===void 0||a.removeEventListener("keydown",this.onKeyPress)},this.shouldFocusRedirect=a=>{if(!this.enable)return!1;for(const i of this.focusRedirectListenerList)if(!i(a))return!1;return!0},this.focusElement=(a,i)=>{const{preventScroll:o}=this.options;a==null||a.focus({preventScroll:o}),i.preventDefault()},this.onKeyPress=a=>{if(a&&a.key==="Tab"){const i=Jm.getFocusableElements(this.container);i.length&&(a.shiftKey?this.handleContainerShiftTabKeyDown(i,a):this.handleContainerTabKeyDown(i,a))}},this.handleContainerTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[a.length-1]===o,l=a[0];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},this.handleContainerShiftTabKeyDown=(a,i)=>{const o=Jm.getActiveElement(),s=a[0]===o,l=a[a.length-1];s&&this.shouldFocusRedirect(l)&&this.focusElement(l,i)},Object.freeze(t),this.container=e,this.options=t,this.enable=(r=t==null?void 0:t.enable)!==null&&r!==void 0?r:!0,this.focusRedirectListenerList=t!=null&&t.onFocusRedirectListener?Array.isArray(t.onFocusRedirectListener)?[...t.onFocusRedirectListener]:[t.onFocusRedirectListener]:[],this.container.addEventListener("keydown",this.onKeyPress)}get enable(){return this._enable}set enable(e){this._enable=e}static getFocusableElements(e){if(!It(e))return[];const r=["input:not([disabled]):not([tabindex='-1'])","textarea:not([disabled]):not([tabindex='-1'])","button:not([disabled]):not([tabindex='-1'])","a[href]:not([tabindex='-1'])","select:not([disabled]):not([tabindex='-1'])","area[href]:not([tabindex='-1'])","iframe:not([tabindex='-1'])","object:not([tabindex='-1'])","*[tabindex]:not([tabindex='-1'])","*[contenteditable]:not([tabindex='-1'])"].join(",");return Array.from(e.querySelectorAll(r))}static getActiveElement(){return document?document.activeElement:null}}const Eb=Jm;var S5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleKeyDown(t)},this.onDialogMouseDown=()=>{this.foundation.handleDialogMouseDown()},this.onMaskMouseUp=()=>{this.foundation.handleMaskMouseUp()},this.onMaskClick=t=>{this.foundation.handleMaskClick(t)},this.close=t=>{this.foundation.close(t)},this.getMaskElement=()=>{const t=S5(this.props,[]),{mask:r,maskClassName:a}=t;if(r){const i=$(`${Bt.DIALOG}-mask`,{});return x.createElement("div",Object.assign({key:"mask"},this.props.maskExtraProps,{className:$(i,a),style:t.maskStyle}))}return null},this.renderCloseBtn=()=>{const{closable:t,closeIcon:r}=this.props;let a;if(t){const i=r||x.createElement(Ky,{"x-semi-prop":"closeIcon"});a=x.createElement(Dl,{"aria-label":"close",className:`${Bt.DIALOG}-close`,key:"close-btn",onClick:this.close,type:"tertiary",icon:i,theme:"borderless",size:"small"})}return a},this.renderIcon=()=>{const{icon:t}=this.props;return t?x.createElement("span",{className:`${Bt.DIALOG}-icon-wrapper`,"x-semi-prop":"icon"},t):null},this.renderHeader=()=>{if("header"in this.props)return this.props.header;const{title:t}=this.props,r=this.renderCloseBtn(),a=this.renderIcon();return t==null?null:x.createElement("div",{className:`${Bt.DIALOG}-header`},a,x.createElement(Nf.Title,{heading:5,className:`${Bt.DIALOG}-title`,id:`${Bt.DIALOG}-title`,"x-semi-prop":"title"},t),r)},this.renderBody=()=>{const{bodyStyle:t,children:r,title:a}=this.props,i=$(`${Bt.DIALOG}-body`,{[`${Bt.DIALOG}-withIcon`]:this.props.icon}),o=this.renderCloseBtn(),s=this.renderIcon();return a!=null||"header"in this.props?x.createElement("div",{className:i,id:`${Bt.DIALOG}-body`,style:t,"x-semi-prop":"children"},r):x.createElement("div",{className:`${Bt.DIALOG}-body-wrapper`},s,x.createElement("div",{className:i,style:t,"x-semi-prop":"children"},r),o)},this.getDialogElement=()=>{const t=S5(this.props,[]),r={},a=$(`${Bt.DIALOG}`,{[`${Bt.DIALOG}-centered`]:t.centered,[`${Bt.DIALOG}-${t.size}`]:t.size});t.width&&(r.width=t.width),t.height&&(r.height=t.height),t.isFullScreen&&(r.width="100%",r.height="100%",r.margin="unset");const i=this.renderBody(),o=this.renderHeader(),s=t.footer?x.createElement("div",{className:`${Bt.DIALOG}-footer`,"x-semi-prop":"footer"},t.footer):null;return x.createElement("div",{key:"dialog-element",className:a,onMouseDown:this.onDialogMouseDown,style:Object.assign(Object.assign({},t.style),r),id:this.dialogId},x.createElement("div",{role:"dialog",ref:this.modalDialogRef,"aria-modal":"true","aria-labelledby":`${Bt.DIALOG}-title`,"aria-describedby":`${Bt.DIALOG}-body`,onAnimationEnd:t.onAnimationEnd,className:$([`${Bt.DIALOG}-content`,t.contentClassName,{[`${Bt.DIALOG}-content-fullScreen`]:t.isFullScreen}])},o,i,s))},this.state={dialogMouseDown:!1,prevFocusElement:Eb.getActiveElement()},this.foundation=new wA(this.adapter),this.dialogId=`dialog-${x9e++}`,this.modalDialogRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyClose:e=>{this.props.onClose(e)},notifyDialogMouseDown:()=>{this.setState({dialogMouseDown:!0})},notifyDialogMouseUp:()=>{this.state.dialogMouseDown&&(this.timeoutId=setTimeout(()=>{this.setState({dialogMouseDown:!1})},0))},addKeyDownEventListener:()=>{this.props.closeOnEsc&&document.addEventListener("keydown",this.foundation.handleKeyDown)},removeKeyDownEventListener:()=>{this.props.closeOnEsc&&document.removeEventListener("keydown",this.foundation.handleKeyDown)},getMouseState:()=>this.state.dialogMouseDown,modalDialogFocus:()=>{var e,t,r;const{preventScroll:a}=this.props;let i;if(this.modalDialogRef){const o=Eb.getActiveElement();i=this.modalDialogRef.current.contains(o),(e=this.focusTrapHandle)===null||e===void 0||e.destroy(),this.focusTrapHandle=new Eb(this.modalDialogRef.current,{preventScroll:a})}i||(r=(t=this.modalDialogRef)===null||t===void 0?void 0:t.current)===null||r===void 0||r.focus({preventScroll:a})},modalDialogBlur:()=>{var e,t;(e=this.modalDialogRef)===null||e===void 0||e.current.blur(),(t=this.focusTrapHandle)===null||t===void 0||t.destroy()},prevFocusElementReFocus:()=>{const{prevFocusElement:e}=this.state,{preventScroll:t}=this.props,r=H(e,"focus");ke(r)&&e.focus({preventScroll:t})}})}componentDidMount(){var e;this.foundation.handleKeyDownEventListenerMount(),this.foundation.modalDialogFocus();const t=Eb.getFocusableElements(this.modalDialogRef.current);this.modalDialogRef.current.contains(document.activeElement)||(e=t[0])===null||e===void 0||e.focus()}componentWillUnmount(){clearTimeout(this.timeoutId),this.foundation.destroy()}render(){const e=this.props,{maskClosable:t,className:r,getPopupContainer:a,maskFixed:i,getContainerContext:o}=e,s=S5(e,["maskClosable","className","getPopupContainer","maskFixed","getContainerContext"]),{direction:l}=this.context,u=$(r,{[`${Bt.DIALOG}-popup`]:a&&!i,[`${Bt.DIALOG}-fixed`]:i,[`${Bt.DIALOG}-rtl`]:l==="rtl"}),c=o(),d=this.getDataAttr(s),f=x.createElement("div",Object.assign({className:u},d),this.getMaskElement(),x.createElement("div",Object.assign({role:"none",className:$({[`${Bt.DIALOG}-wrap`]:!0,[`${Bt.DIALOG}-wrap-center`]:this.props.centered}),onClick:t?this.onMaskClick:null,onMouseUp:t?this.onMaskMouseUp:null},this.props.contentExtraProps),this.getDialogElement()));return c&&c.Provider?x.createElement(c.Provider,{value:c.value},f):f}}qw.contextType=Fr;qw.propTypes={close:v.func,getContainerContext:v.func,contentClassName:v.string,maskClassName:v.string,onAnimationEnd:v.func,preventScroll:v.bool};qw.defaultProps={close:B,getContainerContext:B,contentClassName:"",maskClassName:""};var T9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const[e,t]=D.useState(!0),[r,a]=D.useState(),[i,o]=D.useState(),{direction:s}=n,{title:l,content:u,icon:c,type:d,onCancel:f,onOk:h,className:p}=n,g=T9e(n,["title","content","icon","type","onCancel","onOk","className"]),m=D.useCallback(E=>{const O=h&&h(E);O&&O.then?(a(!0),O.then(function(){t(!1),a(!1)},I=>{a(!1)})):t(!1)},[h]),y=D.useCallback(E=>{const O=f&&f(E);O&&O.then?(o(!0),O.then(function(){t(!1),o(!1)},I=>{o(!1)})):t(!1)},[f]),b=`${Bt.DIALOG}-confirm`,_=$(p,b,{[`${b}-rtl`]:s==="rtl"}),S=$(`${Bt.DIALOG}-${d}`),C=Hr(c)?x.cloneElement(c,{className:`${b}-icon ${S}-icon`,size:"extra-large"}):c,w=l==null?null:x.createElement("span",{className:`${b}-title-text`},l),T=$(`${b}-content`,{[`${b}-content-withIcon`]:n.icon});return x.createElement(u0,Object.assign({className:_,title:w,confirmLoading:r,cancelLoading:i,onOk:m,onCancel:y,icon:C,visible:e},g),x.createElement("div",{className:T,"x-semi-prop":"content"},u))},pq=E9e;function l0(n){const e=document.createElement("div");document.body.appendChild(e);let t=Object.assign({},n);const r=()=>{ui.unmountComponentAtNode(e)&&e.parentNode&&e.parentNode.removeChild(e);for(let l=0;l{var{afterClose:t,config:r}=n;O9e(n,["afterClose","config"]);const[a,i]=x.useState(r);x.useImperativeHandle(e,()=>({destroy:()=>{i(s=>Object.assign(Object.assign({},s),{visible:!1}))},update:s=>{i(l=>Object.assign(Object.assign({},l),s))}}));const o=()=>{var s;(s=r==null?void 0:r.afterClose)===null||s===void 0||s.call(r),t()};return x.createElement(pq,Object.assign({},a,{afterClose:o}))},P9e=x.forwardRef(I9e);let LN=0;function D9e(){const[n,e]=x.useState([]);function t(r){return e(a=>[...a,r]),()=>{e(a=>a.filter(i=>i!==r))}}return[n,t]}function A9e(){const[n,e]=D9e();function t(r){return function(i){LN+=1;const o=x.createRef();let s;const l=x.createElement(P9e,{key:`semi-modal-${LN}`,config:r(i),ref:o,afterClose:()=>{s()}});return s=e(l),{destroy:()=>{o.current&&o.current.destroy()},update:u=>{o.current&&o.current.update(u)}}}}return[{info:t(gq),success:t(vq),error:t(yq),warning:t(mq),confirm:t(bq)},x.createElement(x.Fragment,null,n)]}var M9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleCancel(t)},this.handleOk=t=>{this.foundation.handleOk(t)},this.updateState=()=>{const{visible:t}=this.props;this.foundation.toggleDisplayNone(!t)},this.renderFooter=()=>{const{okText:t,okType:r,cancelText:a,confirmLoading:i,cancelLoading:o,hasCancel:s}=this.props,l=u=>s?x.createElement(Jt,Object.assign({"aria-label":"cancel",onClick:this.handleCancel,loading:o===void 0?this.state.onCancelReturnPromiseStatus==="pending":o,type:"tertiary",autoFocus:!0},this.props.cancelButtonProps,{"x-semi-children-alias":"cancelText"}),a||u.cancel):null;return x.createElement(hn,{componentName:"Modal"},(u,c)=>x.createElement("div",null,l(u),x.createElement(Jt,Object.assign({"aria-label":"confirm",type:r,theme:"solid",loading:i===void 0?this.state.onOKReturnPromiseStatus==="pending":i,onClick:this.handleOk},this.props.okButtonProps,{"x-semi-children-alias":"okText"}),t||u.confirm)))},this.renderDialog=()=>{let t=this.props,{footer:r,className:a,motion:i,maskStyle:o,keepDOM:s,style:l,zIndex:u,getPopupContainer:c,visible:d}=t,f=M9e(t,["footer","className","motion","maskStyle","keepDOM","style","zIndex","getPopupContainer","visible"]),h=l;const p=o,g="footer"in this.props?r:this.renderFooter();let m={zIndex:u};c&&(m={zIndex:u,position:"static"});const y=$(a,{[`${Bt.DIALOG}-displayNone`]:s&&this.state.displayNone}),b=this.props.visible||this.props.keepDOM&&(!this.props.lazyRender||this._haveRendered)||this.props.motion&&!this.state.displayNone;return b&&(this._haveRendered=!0),x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-content-animate-show`:`${Bt.DIALOG}-content-animate-hide`,onAnimationEnd:()=>{this.updateState()}},_=>{let{animationClassName:S,animationEventsNeedBind:C}=_;return x.createElement(ig,{motion:this.props.motion,animationState:d?"enter":"leave",startClassName:d?`${Bt.DIALOG}-mask-animate-show`:`${Bt.DIALOG}-mask-animate-hide`,onAnimationEnd:()=>{this.updateState()}},w=>{let{animationClassName:T,animationEventsNeedBind:E}=w;return b?x.createElement(UK,{style:m,getPopupContainer:c}," ",x.createElement(qw,Object.assign({},f,{contentExtraProps:C,maskExtraProps:E,isFullScreen:this.state.isFullScreen,contentClassName:S,maskClassName:T,className:y,getPopupContainer:c,maskStyle:p,style:h,ref:this.modalRef,footer:g,onClose:this.handleCancel}))):x.createElement(x.Fragment,null)})})},this.state={displayNone:!e.visible,isFullScreen:e.fullScreen},this.foundation=new m9e(this.adapter),this.modalRef=x.createRef(),this.bodyOverflow="",this.scrollBarWidth=0,this.originBodyWidth="100%"}get adapter(){return Object.assign(Object.assign({},super.adapter),{getProps:()=>this.props,disabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;this.bodyOverflow=document.body.style.overflow||"",!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow="hidden",document.body.style.width=`calc(${this.originBodyWidth||"100%"} - ${this.scrollBarWidth}px)`)},enabledBodyScroll:()=>{const{getPopupContainer:e}=this.props;!e&&this.bodyOverflow!=="hidden"&&(document.body.style.overflow=this.bodyOverflow,document.body.style.width=this.originBodyWidth)},notifyCancel:e=>this.props.onCancel(e),notifyOk:e=>this.props.onOk(e),notifyClose:()=>{this.props.afterClose()},toggleDisplayNone:(e,t)=>{e!==this.state.displayNone&&this.setState({displayNone:e},t||B)},notifyFullScreen:e=>{e!==this.state.isFullScreen&&this.setState({isFullScreen:e})}})}static getDerivedStateFromProps(e,t){const r={};return e.fullScreen!==t.isFullScreen&&(r.isFullScreen=e.fullScreen),e.visible&&t.displayNone&&(r.displayNone=!1),r}componentDidMount(){this.scrollBarWidth=wSe(),this.originBodyWidth=document.body.style.width,this.props.visible&&this.foundation.beforeShow()}componentDidUpdate(e,t,r){!e.visible&&this.props.visible&&this.foundation.beforeShow(),!t.displayNone&&this.state.displayNone&&this.foundation.afterHide()}componentWillUnmount(){this.props.visible&&this.foundation.destroy()}render(){return this.props,this.renderDialog()}}ol.propTypes={mask:v.bool,closable:v.bool,centered:v.bool,visible:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),confirmLoading:v.bool,cancelLoading:v.bool,okText:v.string,okType:v.string,cancelText:v.string,maskClosable:v.bool,onCancel:v.func,onOk:v.func,afterClose:v.func,okButtonProps:v.object,cancelButtonProps:v.object,style:v.object,className:v.string,maskStyle:v.object,bodyStyle:v.object,zIndex:v.number,title:v.node,icon:v.node,header:v.node,footer:v.node,hasCancel:v.bool,motion:v.bool,children:v.node,getPopupContainer:v.func,getContainerContext:v.func,maskFixed:v.bool,closeIcon:v.oneOfType([v.string,v.node]),closeOnEsc:v.bool,size:v.oneOf(RN.SIZE),keepDOM:v.bool,lazyRender:v.bool,direction:v.oneOf(RN.directions),fullScreen:v.bool};ol.defaultProps={zIndex:1e3,motion:!0,mask:!0,centered:!1,closable:!0,visible:!1,okType:"primary",maskClosable:!0,hasCancel:!0,onCancel:B,onOk:B,afterClose:B,maskFixed:!1,closeOnEsc:!0,size:"small",keepDOM:!1,lazyRender:!0,fullScreen:!1};ol.useModal=A9e;ol.info=function(n){return l0(gq(n))};ol.success=function(n){return l0(vq(n))};ol.error=function(n){return l0(yq(n))};ol.warning=function(n){return l0(mq(n))};ol.confirm=function(n){return l0(bq(n))};ol.destroyAll=function(){for(;Sp.length;){const e=Sp.pop();e&&e()}};const u0=ol,c0={PREFIX:`${q}-dropdown`,SELECTED:`${q}-dropdown-item-selected`,DISABLED:`${q}-dropdown-item-disabled`},Qw={POSITION_SET:mc.POSITION_SET,TRIGGER_SET:["hover","focus","click","custom","contextMenu"],DEFAULT_LEAVE_DELAY:100,ITEM_TYPE:["primary","secondary","tertiary","warning","danger"]},kN={SPACING:4,NESTED_SPACING:2};class R9e extends ze{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);const{trigger:t}=this.getProps();if(e&&t==="click"){const r=this._adapter.getPopupId();this.setFocusToFirstMenuItem(r)}}getMenuItemNodes(e){const t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(r=>r.ariaDisabled==="false"):null}setFocusToFirstMenuItem(e){const t=this.getMenuItemNodes(e);t&&X2e(t)}setFocusToLastMenuItem(e){const t=this.getMenuItemNodes(e);t&&q2e(t)}handleKeyDown(e){var t,r;const a=(r=(t=e.target)===null||t===void 0?void 0:t.attributes["data-popupid"])===null||r===void 0?void 0:r.value,{visible:i}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(a),i&&Ra(e);break;case"ArrowUp":this.setFocusToLastMenuItem(a),i&&Ra(e);break}}}class L9e extends ze{constructor(){super(...arguments),this.menuItemNodes=null,this.firstChars=[]}handleEscape(e){this._adapter.getContext("trigger")==="custom"&&(e&&nSe(document.querySelectorAll("[data-popupid]"),e.id)).focus()}setFocusByFirstCharacter(e,t){const r=eSe(this.menuItemNodes,e,this.firstChars,t);r>=0&&Yy(this.menuItemNodes,this.menuItemNodes[r])}onMenuKeydown(e){const t=tSe(e.target,"tooltip");this.menuItemNodes||(this.menuItemNodes=[...e.target.parentNode.getElementsByTagName("li")].filter(a=>a.ariaDisabled!=="true")),this.firstChars.length===0&&this.menuItemNodes.forEach(a=>{var i;this.firstChars.push((i=a.textContent.trim()[0])===null||i===void 0?void 0:i.toLowerCase())});const r=this.menuItemNodes.find(a=>a.tabIndex===0);switch(e.key){case" ":case"Enter":e.target.click();break;case"Escape":this.handleEscape(t);break;case"ArrowUp":Q2e(this.menuItemNodes,r),Ra(e);break;case"ArrowDown":J2e(this.menuItemNodes,r),Ra(e);break;default:Z2e(e.key)&&this.setFocusByFirstCharacter(r,e.key);break}}}const k9e=x.createContext({level:0}),hg=k9e;var N9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.onMenuKeydown(o)}),t)}}xA.propTypes={children:v.node,className:v.string,style:v.object};xA.contextType=hg;const $9e=xA,rd=c0.PREFIX;class d0 extends Pe{render(){const{children:e,disabled:t,className:r,forwardRef:a,style:i,type:o,active:s,icon:l,onKeyDown:u,showTick:c,hover:d}=this.props,{showTick:f}=this.context,h=f??c,p=$(r,{[`${rd}-item`]:!0,[`${rd}-item-disabled`]:t,[`${rd}-item-hover`]:d,[`${rd}-item-withTick`]:h,[`${rd}-item-${o}`]:o,[`${rd}-item-active`]:s}),g={};t||["onClick","onMouseEnter","onMouseLeave","onContextMenu"].forEach(b=>{b==="onClick"?g.onMouseDown=_=>{var S,C;_.button===0&&((C=(S=this.props)[b])===null||C===void 0||C.call(S,_))}:g[b]=this.props[b]});let m=null;switch(!0){case(h&&s):m=x.createElement(lg,null);break;case(h&&!s):m=x.createElement(lg,{style:{color:"transparent"}});break;default:m=null;break}let y=null;return l&&(y=x.createElement("div",{className:`${rd}-item-icon`},l)),x.createElement("li",Object.assign({role:"menuitem",tabIndex:-1,"aria-disabled":t},g,{onKeyDown:u,ref:b=>a(b),className:p,style:i}),m,y,e)}}d0.propTypes={children:v.oneOfType([v.string,v.node]),name:v.string,disabled:v.bool,selected:v.bool,onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,onContextMenu:v.func,className:v.string,style:v.object,forwardRef:v.func,type:v.oneOf(Qw.ITEM_TYPE),active:v.bool,icon:v.node};d0.contextType=hg;d0.defaultProps={disabled:!1,divided:!1,selected:!1,onMouseEnter:B,onMouseLeave:B,forwardRef:B};d0.elementType="Dropdown.Item";const V9e=d0,j9e=c0.PREFIX,_q=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{style:e,className:t}=n;return x.createElement("div",{className:$(`${j9e}-divider`,t),style:e})};_q.propTypes={style:v.object,className:v.string};const z9e=_q,NN=c0.PREFIX;class TA extends D.PureComponent{render(){const{className:e,style:t,children:r}=this.props,{showTick:a}=this.context,i=$({[`${NN}-title`]:!0,[`${NN}-title-withTick`]:a},e);return x.createElement("div",{className:i,style:t},r)}}TA.propTypes={children:v.node,className:v.string,style:v.object};TA.contextType=hg;const B9e=TA;var C5=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleVisibleChange(t),this.state={popVisible:e.visible},this.foundation=new R9e(this.adapter),this.tooltipRef=x.createRef()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPopVisible:e=>this.setState({popVisible:e}),notifyVisibleChange:e=>this.props.onVisibleChange(e),getPopupId:()=>this.tooltipRef.current.getPopupId()})}renderContent(){const{render:e,menu:t,contentClassName:r,style:a,showTick:i,prefixCls:o,trigger:s}=this.props,l=$(o,r),{level:u=0}=this.context,c={showTick:i,level:u+1,trigger:s};let d=null;return x.isValidElement(e)?d=e:Array.isArray(t)&&(d=this.renderMenu()),x.createElement(hg.Provider,{value:c},x.createElement("div",{className:l,style:a},x.createElement("div",{className:`${o}-content`,"x-semi-prop":"render"},d)))}renderMenu(){const{menu:e}=this.props,t=e.map((r,a)=>{switch(r.node){case"title":{const{name:i,node:o}=r,s=C5(r,["name","node"]);return x.createElement(Di.Title,Object.assign({},s,{key:o+i+a}),i)}case"item":{const{node:i,name:o}=r,s=C5(r,["node","name"]);return x.createElement(Di.Item,Object.assign({},s,{key:i+o+a}),o)}case"divider":return x.createElement(Di.Divider,{key:r.node+a});default:return null}});return x.createElement(Di.Menu,null,t)}renderPopCard(){const{render:e,contentClassName:t,style:r,showTick:a,prefixCls:i}=this.props,o=$(i,t),{level:s=0}=this.context,l={showTick:a,level:s+1};return x.createElement(hg.Provider,{value:l},x.createElement("div",{className:o,style:r},x.createElement("div",{className:`${i}-content`},e)))}render(){const e=this.props,{children:t,position:r,trigger:a,onVisibleChange:i,zIndex:o,className:s,motion:l,margin:u,style:c,prefixCls:d}=e,f=C5(e,["children","position","trigger","onVisibleChange","zIndex","className","motion","margin","style","prefixCls"]);let{spacing:h}=this.props;const{level:p}=this.context,{popVisible:g}=this.state,m=this.renderContent();return p>0?h=typeof h=="number"?h:kN.NESTED_SPACING:(h===null||typeof h>"u")&&(h=kN.SPACING),x.createElement(Sr,Object.assign({zIndex:o,motion:l,margin:u,content:m,className:s,prefixCls:d,spacing:h,position:r,trigger:a,onVisibleChange:this.handleVisibleChange,showArrow:!1,returnFocusOnClose:!0,ref:this.tooltipRef},f),x.isValidElement(t)?x.cloneElement(t,{className:$(H(t,"props.className"),{[`${d}-showing`]:g}),"aria-haspopup":!0,"aria-expanded":g,onKeyDown:y=>{this.foundation.handleKeyDown(y);const b=H(t,"props.onKeyDown");b&&b(y)}}):t)}}Di.Menu=$9e;Di.Item=V9e;Di.Divider=z9e;Di.Title=B9e;Di.contextType=hg;Di.propTypes={children:v.node,contentClassName:v.oneOfType([v.string,v.array]),className:v.string,getPopupContainer:v.func,margin:v.oneOfType([v.number,v.object]),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,menu:v.array,motion:v.oneOfType([v.bool,v.func,v.object]),onVisibleChange:v.func,prefixCls:v.string,position:v.oneOf(H9e),rePosKey:v.oneOfType([v.string,v.number]),render:v.node,spacing:v.oneOfType([v.number,v.object]),showTick:v.bool,style:v.object,trigger:v.oneOf(U9e),visible:v.bool,zIndex:v.number};Di.defaultProps={onVisibleChange:B,prefixCls:c0.PREFIX,zIndex:Vu.DEFAULT_Z_INDEX,motion:!0,trigger:"hover",position:"bottom",mouseLeaveDelay:Qw.DEFAULT_LEAVE_DELAY,showTick:!1,closeOnEsc:!0,onEscKeyDown:B};const Vs=Di,Sq={PREFIX:`${q}`};var W9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);azK($N[e],{match:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!0})}))},unmatch:()=>{typeof this.props.gutter=="object"&&this.setState(t=>({screens:Object.assign(Object.assign({},t.screens),{[e]:!1})}))}}))}componentWillUnmount(){this.unRegisters.forEach(e=>e())}getGutter(){const{gutter:e=0}=this.props,t=[0,0];return(Array.isArray(e)?e.slice(0,2):[e,0]).forEach((a,i)=>{if(typeof a=="object")for(let o=0;o0?{marginLeft:c[0]/-2,marginRight:c[0]/-2}:{}),c[1]>0?{marginTop:c[1]/-2,marginBottom:c[1]/-2}:{}),s),p=Object.assign({},u);return delete p.gutter,x.createElement(Cq.Provider,{value:{gutters:c}},x.createElement("div",Object.assign({},p,{className:f,style:h,"x-semi-prop":"children"}),l))}}Jw.propTypes={type:v.oneOf(["flex"]),align:v.oneOf(["top","middle","bottom"]),justify:v.oneOf(["start","end","center","space-around","space-between"]),className:v.string,style:v.object,children:v.node,gutter:v.oneOfType([v.object,v.number,v.array]),prefixCls:v.string};Jw.defaultProps={prefixCls:Sq.PREFIX};Jw.RowContext={gutters:v.any};const FI=Jw;var G9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let y={};typeof e[m]=="number"?y.span=e[m]:typeof e[m]=="object"&&(y=e[m]||{}),delete c[m],d=Object.assign(Object.assign({},d),{[`${f}-${m}-${y.span}`]:y.span!==void 0,[`${f}-${m}-order-${y.order}`]:y.order||y.order===0,[`${f}-${m}-offset-${y.offset}`]:y.offset||y.offset===0,[`${f}-${m}-push-${y.push}`]:y.push||y.push===0,[`${f}-${m}-pull-${y.pull}`]:y.pull||y.pull===0})});const h=$(f,{[`${f}-${r}`]:r!==void 0,[`${f}-order-${a}`]:a,[`${f}-offset-${i}`]:i,[`${f}-push-${o}`]:o,[`${f}-pull-${s}`]:s},l,d);let{style:p}=c,g;try{g=this.context.gutters}catch{throw new Error("please make sure inside ")}return p=Object.assign(Object.assign(Object.assign({},g[0]>0?{paddingLeft:g[0]/2,paddingRight:g[0]/2}:{}),g[1]>0?{paddingTop:g[1]/2,paddingBottom:g[1]/2}:{}),p),x.createElement("div",Object.assign({},c,{style:p,className:h,"x-semi-prop":"children"}),u)}}ex.contextType=Cq;ex.propTypes={span:v.number,order:v.number,offset:v.number,push:v.number,pull:v.number,className:v.string,children:v.node,xs:Oh,sm:Oh,md:Oh,lg:Oh,xl:Oh,xxl:Oh,prefixCls:v.string};ex.defaultProps={prefixCls:Sq.PREFIX};const ii=ex,tx={PREFIX:`${q}-layout`},Y9e={BREAKPOINT:["xs","sm","md","lg","xl","xxl"]},K9e=x.createContext({siderHook:{addSider:Ht,removeSider:Ht}}),wq=K9e;var Z9e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let n=0;return()=>(n+=1,`${tx.PREFIX}-sider-${n}`)})(),q9e=Y9e.BREAKPOINT;class f0 extends x.PureComponent{constructor(e){super(e),this.unRegisters=[],this.uniqueId="",this.uniqueId=X9e()}componentDidMount(){const{breakpoint:e}=this.props,r=Object.keys(VN).filter(a=>e&&e.indexOf(a)!==-1).map(a=>zK(VN[a],{match:()=>{this.responsiveHandler(a,!0)},unmatch:()=>{this.responsiveHandler(a,!1)}}));this.unRegisters=r,this.context.siderHook&&this.context.siderHook.addSider(this.uniqueId)}componentWillUnmount(){this.unRegisters.forEach(e=>e()),this.context.siderHook&&this.context.siderHook.removeSider(this.uniqueId)}responsiveHandler(e,t){const{onBreakpoint:r}=this.props;r&&r(e,t)}render(){const e=this.props,{prefixCls:t,className:r,children:a,style:i}=e,o=Z9e(e,["prefixCls","className","children","style"]),s=$(r,{[`${t}-sider`]:!0});return x.createElement("aside",Object.assign({className:s,"aria-label":this.props["aria-label"],style:i},Ic(o)),x.createElement("div",{className:`${t}-sider-children`},a))}}f0.propTypes={prefixCls:v.string,style:v.object,className:v.string,breakpoint:v.arrayOf(v.oneOf(q9e)),onBreakpoint:v.func,"aria-label":v.string,role:v.string};f0.defaultProps={prefixCls:tx.PREFIX};f0.contextType=wq;f0.elementType="Layout.Sider";const Q9e=f0;var xq=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);aclass extends x.PureComponent{render(){return x.createElement(r,Object.assign({role:this.props.role,"aria-label":this.props["aria-label"],type:t,tagName:e},this.props))}}}class h0 extends x.PureComponent{render(){const e=this.props,{prefixCls:t,type:r,className:a,children:i,tagName:o}=e,s=xq(e,["prefixCls","type","className","children","tagName"]),l=$(a,`${t}-${r}`);return x.createElement(o,Object.assign({className:l},s),i)}}h0.propTypes={prefixCls:v.string,style:v.object,className:v.string};h0.defaultProps={prefixCls:tx.PREFIX};const e8e=EA("Header")(h0),t8e=EA("Footer")(h0),n8e=EA("Content")(h0);class jl extends x.Component{constructor(e){super(e),this.state={siders:[]}}getSiderHook(){return{addSider:e=>{this.setState(t=>({siders:[...t.siders,e]}))},removeSider:e=>{this.setState(t=>({siders:t.siders.filter(r=>r!==e)}))}}}render(){const e=this.props,{prefixCls:t,className:r,children:a,hasSider:i,tagName:o}=e,s=xq(e,["prefixCls","className","children","hasSider","tagName"]),{siders:l}=this.state,u=$(r,t,{[`${t}-has-sider`]:typeof i=="boolean"&&i||l.length>0||x.Children.toArray(a).some(d=>x.isValidElement(d)&&d.type&&d.type.elementType==="Layout.Sider")}),c=o;return x.createElement(wq.Provider,{value:{siderHook:this.getSiderHook()}},x.createElement(c,Object.assign({className:u},s),a))}}jl.propTypes={prefixCls:v.string,style:v.object,className:v.string};jl.defaultProps={prefixCls:tx.PREFIX,tagName:"section"};jl.Header=e8e;jl.Footer=t8e;jl.Content=n8e;jl.Sider=Q9e;const tu={PREFIX:`${q}-form`},Om={LAYOUT:["horizontal","vertical"],LABEL_POS:["left","top","inset"],LABEL_ALIGN:["left","right"],EXTRA_POS:["middle","bottom"],DEFAULT_TRIGGER:"change"},yl=tu.PREFIX;class Ys extends D.PureComponent{render(){const{children:e,required:t,text:r,disabled:a,name:i,width:o,align:s,style:l,className:u,extra:c,id:d,optional:f}=this.props,h=$(u,{[`${yl}-field-label`]:!0,[`${yl}-field-label-left`]:s==="left",[`${yl}-field-label-right`]:s==="right",[`${yl}-field-label-required`]:t,[`${yl}-field-label-disabled`]:a,[`${yl}-field-label-with-extra`]:c}),p=l||{};o&&(p.width=o);const g=x.createElement(hn,{componentName:"Form"},b=>x.createElement("span",{className:`${yl}-field-label-optional-text`},b.optional)),m=x.createElement("div",{className:`${yl}-field-label-text`,"x-semi-prop":"label"},typeof r<"u"?r:e,f?g:null),y=x.createElement(x.Fragment,null,m,x.createElement("div",{className:`${yl}-field-label-extra`},c));return x.createElement("label",{className:h,htmlFor:i,style:p,id:d},c?y:m)}}Ys.defaultProps={required:!1,name:"",align:"left",className:"",optional:!1};Ys.propTypes={id:v.string,children:v.node,required:v.bool,text:v.node,disabled:v.bool,name:v.string,align:v.string,width:v.oneOfType([v.number,v.string]),style:v.object,className:v.string,extra:v.node,optional:v.bool};var jN=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(h){const{onBlur:g,onFocus:m,disabled:y}=h.props,b=ke(g)&&H(g,"name")!=="noop"?g:s,_=ke(m)&&H(m,"name")!=="noop"?m:l,S=typeof y=="boolean"?y:u;return x.cloneElement(h,Object.assign(Object.assign({key:p},c),{size:t,onBlur:b,onFocus:_,disabled:S}))}return null})),o&&o.text?this.renderGroupWithLabel(f):x.createElement("span",{role:"group","aria-label":"Input group","aria-disabled":this.props.disabled,className:d,style:r,onFocus:this.props.onFocus,onBlur:this.props.onBlur},f)}}OA.propTypes={className:v.string,children:v.node,size:v.oneOf(r8e),style:v.object,onBlur:v.func,onFocus:v.func,label:v.object,labelPosition:v.string};OA.defaultProps={size:"default",className:"",onBlur:Ht,onFocus:Ht};let bi=null;const zN={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},BN=n=>{Object.keys(zN).forEach(e=>{n.style.setProperty(e,zN[e],"important")})},HN=(n,e)=>{const t=n.scrollHeight;return e.sizingStyle.boxSizing==="border-box"?t+e.borderSize:t-e.paddingSize};function a8e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/0;bi||(bi=document.createElement("textarea"),bi.setAttribute("tab-index","-1"),bi.setAttribute("aria-hidden","true"),BN(bi)),bi.parentNode===null&&document.body.appendChild(bi);const{paddingSize:a,borderSize:i,sizingStyle:o}=n,{boxSizing:s}=o;Object.keys(o).forEach(f=>{bi.style[f]=o[f]}),BN(bi),bi.value=e;let l=HN(bi,n);bi.value="x";const u=HN(bi,n)-a-i;let c=u*t;s==="border-box"&&(c=c+a+i),l=Math.max(c,l);let d=u*r;return s==="border-box"&&(d=d+a+i),l=Math.min(d,l),l}const i8e=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width"],o8e=n=>{const e=window.getComputedStyle(n);if(e===null)return null;const t=eu(e,i8e),{boxSizing:r}=t;if(r==="")return null;const a=parseFloat(t.paddingBottom)+parseFloat(t.paddingTop),i=parseFloat(t.borderBottomWidth)+parseFloat(t.borderTopWidth);return{sizingStyle:t,paddingSize:a,borderSize:i}},s8e=o8e;class IA extends ze{static get textAreaDefaultAdapter(){return{notifyChange:B,setValue:B,toggleFocusing:B,toggleHovering:B,notifyFocus:B,notifyBlur:B,notifyKeyDown:B,notifyEnterPress:B}}constructor(e){super(Object.assign(Object.assign({},IA.textAreaDefaultAdapter),e)),this.resizeTextarea=t=>{var r;const{height:a}=this.getStates(),{rows:i,autosize:o}=this.getProps(),s=this._adapter.getRef(),l=s8e(s);if(!l){t&&t();return}const[u,c]=o!==null&&typeof o=="object"?[(r=o==null?void 0:o.minRows)!==null&&r!==void 0?r:i,o==null?void 0:o.maxRows]:[i],d=a8e(l,s.value||s.placeholder||"x",u,c);if(a!==d){this._adapter.notifyHeightUpdate(d),s.style.height=`${d}px`;return}t&&t()}}init(){this.setInitValue()}destroy(){}setInitValue(){const{defaultValue:e,value:t}=this.getProps();let r=e;this._isControlledComponent()&&(r=t),this._adapter.setValue(r)}handleValueChange(e){this._adapter.setValue(e)}handleChange(e,t){const{maxLength:r,minLength:a,getValueLength:i}=this._adapter.getProps();let o=e;r&&ke(i)&&(o=this.handleVisibleMaxLength(e)),a&&ke(i)&&this.handleVisibleMinLength(o),this._isControlledComponent()?this._adapter.notifyChange(o,t):(this._adapter.setValue(o),this._adapter.notifyChange(o,t))}handleVisibleMinLength(e){const{minLength:t,getValueLength:r}=this._adapter.getProps(),{minLength:a}=this._adapter.getStates();if(Rn(t)&&t>=0&&ke(r)&&Xe(e)){const i=r(e);if(i=0&&ke(r)&&Xe(e))return r(e)>t?(console.warn("[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit"),this.handleTruncateValue(e,t)):e}handleTruncateValue(e,t){const{getValueLength:r}=this._adapter.getProps();if(ke(r)){let a="";for(let i=1,o=e.length;i<=o;i++){const s=e.slice(0,i);if(r(s)>t)return a;a=s}return a}else return e.slice(0,t)}handleFocus(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!0),this._adapter.notifyFocus(t,e)}handleBlur(e){const{value:t}=this.getStates();this._adapter.toggleFocusing(!1),this._adapter.notifyBlur(t,e)}handleKeyDown(e){this._adapter.notifyKeyDown(e),e.keyCode===13&&this._adapter.notifyPressEnter(e)}handleMouseEnter(e){this._adapter.toggleHovering(!0)}handleMouseLeave(e){this._adapter.toggleHovering(!1)}isAllowClear(){const{value:e,isFocus:t,isHover:r}=this._adapter.getStates(),{showClear:a,disabled:i,readonly:o}=this._adapter.getProps();return e&&a&&!i&&(t||r)&&!o}handleClear(e){const{isFocus:t}=this.getStates();this._isControlledComponent("value")?this._adapter.setState({isFocus:!1}):this._adapter.setState({value:"",isFocus:!1}),t&&this._adapter.notifyBlur("",e),this._adapter.notifyChange("",e),this._adapter.notifyClear(e),this.stopPropagation(e)}}var l8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleClear(t)},this.setRef=t=>{this.libRef.current=t;const{forwardRef:r}=this.props;typeof r=="function"?r(t):r&&typeof r=="object"&&(r.current=t)},this.state={value:"",isFocus:!1,isHover:!1,height:0,minLength:e.minLength},this.focusing=!1,this.foundation=new IA(this.adapter),this.libRef=x.createRef(),this._resizeLock=!1}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>this.setState({value:e},()=>{this.props.autosize&&this.foundation.resizeTextarea()}),getRef:()=>this.libRef.current,toggleFocusing:e=>this.setState({isFocus:e}),toggleHovering:e=>this.setState({isHover:e}),notifyChange:(e,t)=>{this.props.onChange(e,t)},notifyClear:e=>this.props.onClear(e),notifyBlur:(e,t)=>this.props.onBlur(t),notifyFocus:(e,t)=>this.props.onFocus(t),notifyKeyDown:e=>{this.props.onKeyDown(e)},notifyHeightUpdate:e=>{this.setState({height:e}),this.props.onResize({height:e})},notifyPressEnter:e=>{this.props.onEnterPress&&this.props.onEnterPress(e)},setMinLength:e=>this.setState({minLength:e})})}static getDerivedStateFromProps(e,t){const r={};return e.value!==t.cachedValue&&(r.value=e.value,r.cachedValue=e.value),r}componentDidMount(){this.foundation.init(),this._resizeListener=null,this.props.autosize&&(this._resizeListener=()=>{this._resizeLock||(this._resizeLock=!0,this.foundation.resizeTextarea(()=>{this._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener))}componentWillUnmount(){this.foundation.destroy(),this._resizeListener&&window.removeEventListener("resize",this._resizeListener)}componentDidUpdate(e,t){(this.props.value!==e.value||this.props.placeholder!==e.placeholder)&&this.props.autosize&&this.foundation.resizeTextarea()}renderClearBtn(){const{showClear:e}=this.props,t=this.foundation.isAllowClear(),r=$(`${_a}-clearbtn`,{[`${_a}-clearbtn-hidden`]:!t});return e?x.createElement("div",{className:r,onClick:this.handleClear},x.createElement(Gc,null)):null}renderCounter(){let e,t,r,a;const{showCounter:i,maxCount:o,getValueLength:s}=this.props;if(i||o){const{value:l}=this.state;t=l?ke(s)?s(l):l.length:0,r=o||null,a=$(`${_a}-textarea-counter`,{[`${_a}-textarea-counter-exceed`]:t>r}),e=x.createElement("div",{className:a},t,r?"/":null,r)}else e=null;return e}render(){const e=this.props,{autosize:t,placeholder:r,onEnterPress:a,onResize:i,disabled:o,readonly:s,className:l,showCounter:u,validateStatus:c,maxCount:d,defaultValue:f,style:h,forwardRef:p,getValueLength:g,maxLength:m,minLength:y,showClear:b,borderless:_,autoFocus:S}=e,C=l8e(e,["autosize","placeholder","onEnterPress","onResize","disabled","readonly","className","showCounter","validateStatus","maxCount","defaultValue","style","forwardRef","getValueLength","maxLength","minLength","showClear","borderless","autoFocus"]),{isFocus:w,value:T,minLength:E}=this.state,O=$(l,`${_a}-textarea-wrapper`,{[`${_a}-textarea-borderless`]:_,[`${_a}-textarea-wrapper-disabled`]:o,[`${_a}-textarea-wrapper-readonly`]:s,[`${_a}-textarea-wrapper-${c}`]:!!c,[`${_a}-textarea-wrapper-focus`]:w}),I=$(`${_a}-textarea`,{[`${_a}-textarea-disabled`]:o,[`${_a}-textarea-readonly`]:s,[`${_a}-textarea-autosize`]:oa(t)?Vt(t==null?void 0:t.maxRows):t,[`${_a}-textarea-showClear`]:b}),P=Object.assign(Object.assign({},fr(C,"insetLabel","insetLabelId","getValueLength","onClear","showClear")),{autoFocus:S||this.props.autofocus,className:I,disabled:o,readOnly:s,placeholder:r||null,onChange:A=>this.foundation.handleChange(A.target.value,A),onFocus:A=>this.foundation.handleFocus(A),onBlur:A=>this.foundation.handleBlur(A.nativeEvent),onKeyDown:A=>this.foundation.handleKeyDown(A),value:T??""});return ke(g)||(P.maxLength=m),E&&(P.minLength=E),x.createElement("div",{className:O,style:h,onMouseEnter:A=>this.foundation.handleMouseEnter(A),onMouseLeave:A=>this.foundation.handleMouseLeave(A)},x.createElement("textarea",Object.assign({},P,{ref:this.setRef})),this.renderClearBtn(),this.renderCounter())}}PA.propTypes={autosize:v.oneOfType([v.bool,v.object]),borderless:v.bool,placeholder:v.string,value:v.string,rows:v.number,cols:v.number,maxCount:v.number,onEnterPress:v.func,validateStatus:v.string,className:v.string,style:v.object,showClear:v.bool,onClear:v.func,onResize:v.func,getValueLength:v.func};PA.defaultProps={autosize:!1,borderless:!1,rows:4,cols:20,showCounter:!1,showClear:!1,onEnterPress:B,onChange:B,onBlur:B,onFocus:B,onKeyDown:B,onResize:B,onClear:B};const u8e=x.forwardRef((n,e)=>x.createElement(PA,Object.assign({},n,{forwardRef:e}))),c8e=u8e;var d8e=DZ;function f8e(n){return d8e(n)&&n!=+n}var h8e=f8e;const p8e=Ie(h8e),g8e=(n,e)=>{const{isNaN:t}=Number;return t(n)&&t(e)},v8e=g8e,m8e=Object.assign({},Mw),ef=Object.assign(Object.assign({},U4e),{DEFAULT_STEP:1,DEFAULT_SHIFT_STEP:10,DEFAULT_PRESS_TIMEOUT:250,DEFAULT_PRESS_INTERVAL:0,MOUSE_BUTTON_LEFT:0}),y8e=Object.assign({},Yc);function b8e(n,e){const t=(n.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=Math.pow(10,Math.max(t,r));return(n*a+e*a)/a}function UN(n,e){return b8e(n,-e)}class _8e extends ze{init(){this._setInitValue()}destroy(){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}isControlled(){return this._isControlledComponent("value")}_doInput(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=e,i=e,o=!0;const s=this.isControlled();typeof e!="number"&&(i=this.doParse(e,!1),o=!isNaN(i)),o&&(a=i,s||this._adapter.setNumber(i)),s||this._adapter.setValue(e,r),this.getProp("keepFocus")&&this._adapter.setFocusing(!0,()=>{this._adapter.setClickUpOrDown(!0)}),this.notifyChange(a,t)}_registerInterval(e){const t=this.getProp("pressInterval")||ef.DEFAULT_PRESS_INTERVAL;this._intervalHasRegistered=!0,this._interval=setInterval(()=>{typeof e=="function"&&this._intervalHasRegistered&&e()},t)}_unregisterInterval(){this._interval&&(this._intervalHasRegistered=!1,clearInterval(this._interval),this._interval=null)}_registerTimer(e){const t=this.getProp("pressTimeout")||ef.DEFAULT_PRESS_TIMEOUT;this._timerHasRegistered=!0,this._timer=setTimeout(()=>{this._timerHasRegistered&&typeof e=="function"&&e()},t)}_unregisterTimer(){this._timer&&(this._timerHasRegistered=!1,clearTimeout(this._timer),this._timer=null)}handleInputFocus(e){this.getState("value"),this._adapter.recordCursorPosition(),this._adapter.setFocusing(!0,null),this._adapter.setClickUpOrDown(!1),this._adapter.notifyFocus(e)}handleInputChange(e,t){const r=this.doParse(e,!0,!0,!0),a=this.doParse(e,!1,!1,!1),i=this.afterParser(e);this._adapter.recordCursorPosition();let o,s=a,l=e;if(e==="")this.isControlled()||(s=null);else if(this.isValidNumber(a)&&this.isValidNumber(r))o=a,l=this.doFormat(a,!1);else{if(typeof a=="number"&&!isNaN(a)){l=this.doFormat(a,!1);const u=i.lastIndexOf("."),c=i.length-1-u,d=this._getPrecLen(a);if(d){if(d-1?i.slice(u):"";l+=f}s=a}else l=this.doFormat(i,!1);o=i}!this.isControlled()&&(s===null||typeof s=="number"&&!isNaN(s))&&this._adapter.setNumber(s),this._adapter.setValue(this.isControlled()?l:this.doFormat(i,!1),()=>{this._adapter.restoreCursor()}),this.notifyChange(o,t)}handleInputKeyDown(e){const t=e.keyCode;if(t===Rr.UP||t===Rr.DOWN){this._adapter.setClickUpOrDown(!0),this._adapter.recordCursorPosition();const r=t===Rr.UP?this.add(null,e):this.minus(null,e);this._doInput(r,e,()=>{this._adapter.restoreCursor()}),e.preventDefault()}this._adapter.notifyKeyDown(e)}handleInputBlur(e){const t=$u(this.getState("value"));let r=this.getState("number");if(r!=null||t!=null&&t!==""){const a=this.doParse(t,!1,!0,!0);let i=!1,o=!1,s,l;this.isValidNumber(a)&&r!==a&&(s=a,this.isControlled()||(r=s),i=!0);const u=this.doFormat(r,!0);if(u!==t&&(l=u,o=!0),o||i){const c=l??s;l!=null&&this._adapter.setValue(l),s!=null&&(this._isControlledComponent("value")||this._adapter.setNumber(s)),this.notifyChange(c,e)}}this._adapter.setFocusing(!1),this._adapter.notifyBlur(e)}handleInputMouseEnter(e){this._adapter.setHovering(!0)}handleInputMouseLeave(e){this._adapter.setHovering(!1)}handleInputMouseMove(e){this._adapter.setHovering(!0)}handleMouseUp(e){this._unregisterInterval(),this._unregisterTimer(),this._adapter.unregisterGlobalEvent("mouseup")}handleUpClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.upClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.upClick(e)})}))}handleDownClick(e){const{readonly:t}=this.getProps();!this._isMouseButtonLeft(e)||t||(this._adapter.setClickUpOrDown(!0),e&&(this._persistEvent(e),e.stopPropagation(),this._preventDefault(e)),this.downClick(e),this._registerTimer(()=>{this._registerInterval(()=>{this.downClick(e)})}))}_isMouseButtonLeft(e){return H(e,"button")===ef.MOUSE_BUTTON_LEFT}_preventDefault(e){const t=this._adapter.getProp("keepFocus"),r=this._adapter.getProp("innerButtons");(t||r)&&e.preventDefault()}handleMouseLeave(e){this._adapter.registerGlobalEvent("mouseup",()=>{this.handleMouseUp(e)})}upClick(e){const t=this.add(null,e);this._doInput(t,e),this._adapter.notifyUpClick(t,e)}downClick(e){const t=this.minus(null,e);this._doInput(t,e),this._adapter.notifyDownClick(t,e)}_setInitValue(){const{defaultValue:e,value:t}=this.getProps(),r=this._isControlledComponent("value")?t:e,a=this.doParse($u(r),!1,!0,!0);let i=null;typeof a=="number"&&!isNaN(a)&&(i=a);const o=typeof i=="number"?this.doFormat(i,!0):"";this._adapter.setNumber(i),this._adapter.setValue(o),Xe(o)&&o!==String(r??"")&&this.notifyChange(o,null)}add(e,t){const a=t&&t.shiftKey?this.getProp("shiftStep"):this.getProp("step");e=e==null?a:Number(e);const i=Math.abs(lo(e)),o=this.getState("number");let s=this.toNumber(o)||0;const l=this.getProp("min"),u=this.getProp("max"),c=this._getPrecLen(l),d=this._getPrecLen(u),f=this._getPrecLen(s),h=this._getPrecLen(e),p=Math.pow(10,Math.max(c,d,f,h));return e<0?Math.abs(UN(l,s))>=i&&(s=(s*p+e*p)/p):e>0&&Math.abs(UN(u,s))>=i&&(s=(s*p+e*p)/p),typeof l=="number"&&l>s&&(s=l),typeof u=="number"&&u0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r;const a=this.getProp("formatter");return t?r=this._adjustPrec(e):r=$u(e),typeof a=="function"&&(r=a(r)),r}fetchMinOrMax(e){const{min:t,max:r}=this.getProps();return er?r:e}doParse(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(typeof e=="number")return a&&(e=this.fetchMinOrMax(e)),r&&(e=this._adjustPrec(e)),lo(e);const i=this.getProp("parser");if(typeof i=="function"&&(e=i(e)),t&&typeof e=="string"){const o=e.indexOf(".")===-1||e.indexOf(".")>-1&&(e==="0"||e.lastIndexOf("0")l===".").length<2;if(!o||!s)return NaN}return r&&(e=this._adjustPrec(e)),typeof e=="string"&&e.length?a?this.fetchMinOrMax(lo(e)):lo(e):NaN}afterParser(e){const t=this.getProp("parser");return $u(typeof e=="string"&&typeof t=="function"?t(e):e)}toNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number")return e;if(typeof e=="string"){const r=this.getProp("parser");typeof r=="function"&&(e=r(e)),t&&(e=this._adjustPrec(e))}return lo(e)}isValidNumber(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(typeof e=="number"&&!isNaN(e)){const{min:r,max:a,precision:i}=this.getProps(),o=this._getPrecLen(e),s=t?typeof i=="number"&&o<=i||typeof i!="number":!0;if(e>=r&&e<=a&&s)return!0}return!1}isValidString(e){if(typeof e=="string"&&e.length){const t=this.doParse(e);return this.isValidNumber(t)}return!1}notifyChange(e,t){if(e==null||e==="")this._adapter.notifyChange("",t);else{const r=this.toNumber(e,!0);typeof r=="number"&&!isNaN(r)?(this._adapter.notifyChange(r,t),this.notifyNumberChange(r,t)):this._adapter.notifyChange(this.afterParser(e),t)}}notifyNumberChange(e,t){const{number:r}=this.getStates();this.isValidNumber(e)&&e!==r&&this._adapter.notifyNumberChange(e,t)}updateStates(e,t){this._adapter.updateStates(e,t)}}const S8e=_8e;var C8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.setState({value:t},r),setNumber:(t,r)=>this.setState({number:t},r),setFocusing:(t,r)=>this.setState({focusing:t},r),setHovering:t=>this.setState({hovering:t}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:t=>this.props.onBlur(t),notifyFocus:t=>this.props.onFocus(t),notifyUpClick:(t,r)=>this.props.onUpClick(t,r),notifyDownClick:(t,r)=>this.props.onDownClick(t,r),notifyKeyDown:t=>this.props.onKeyDown(t),registerGlobalEvent:(t,r)=>{t&&typeof r=="function"&&(this.adapter.unregisterGlobalEvent(t),this.adapter.setCache(t,r),document.addEventListener(t,r))},unregisterGlobalEvent:t=>{if(t){const r=this.adapter.getCache(t);document.removeEventListener(t,r),this.adapter.setCache(t,null)}},recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(t){console.warn(t)}},restoreByAfter:t=>{if(ct(t))return!1;const r=this.inputNode.value,a=r.lastIndexOf(t);return a===-1?!1:a+t.length===r.length?(this.adapter.fixCaret(a,a),!0):!1},restoreCursor:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.cursorAfter;return ct(t)?!1:Array.prototype.some.call(t,(r,a)=>{const i=t.substring(a);return e.adapter.restoreByAfter(i)})},fixCaret:(t,r)=>{if(!(t===void 0||r===void 0||!this.inputNode||!this.inputNode.value))try{const a=this.inputNode.selectionStart,i=this.inputNode.selectionEnd;(t!==a||r!==i)&&this.inputNode.setSelectionRange(t,r)}catch{}},setClickUpOrDown:t=>{this.clickUpOrDown=t},updateStates:(t,r)=>{this.setState(t,r)}})}constructor(e){super(e),this.setInputRef=t=>{const{forwardedRef:r}=this.props;this.inputNode=t,r&&typeof r=="object"?r.current=t:typeof r=="function"&&r(t)},this.handleInputFocus=t=>this.foundation.handleInputFocus(t),this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.handleInputBlur=t=>this.foundation.handleInputBlur(t),this.handleInputKeyDown=t=>this.foundation.handleInputKeyDown(t),this.handleInputMouseEnter=t=>this.foundation.handleInputMouseEnter(t),this.handleInputMouseLeave=t=>this.foundation.handleInputMouseLeave(t),this.handleInputMouseMove=t=>this.foundation.handleInputMouseMove(t),this.handleUpClick=t=>this.foundation.handleUpClick(t),this.handleDownClick=t=>this.foundation.handleDownClick(t),this.handleMouseUp=t=>this.foundation.handleMouseUp(t),this.handleMouseLeave=t=>this.foundation.handleMouseLeave(t),this.renderButtons=()=>{const{prefixCls:t,disabled:r,innerButtons:a,max:i,min:o}=this.props,{hovering:s,focusing:l,number:u}=this.state,c=r||u===i,d=r||u===o,f=$(`${t}-number-suffix-btns`,{[`${t}-number-suffix-btns-inner`]:a,[`${t}-number-suffix-btns-inner-hover`]:a&&s&&!l}),h=$(`${t}-number-button`,`${t}-number-button-up`,{[`${t}-number-button-up-disabled`]:r,[`${t}-number-button-up-not-allowed`]:c}),p=$(`${t}-number-button`,`${t}-number-button-down`,{[`${t}-number-button-down-disabled`]:r,[`${t}-number-button-down-not-allowed`]:d});return x.createElement("div",{className:f},x.createElement("span",{className:h,onMouseDown:c?B:this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(ETe,{size:"extra-small"})),x.createElement("span",{className:p,onMouseDown:d?B:this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},x.createElement(kf,{size:"extra-small"})))},this.renderSuffix=()=>{const{innerButtons:t,suffix:r}=this.props,{hovering:a,focusing:i}=this.state;return t&&(a||i)?this.renderButtons():r},this.state={value:"",number:null,focusing:!!e.autofocus||!1,hovering:!1},this.inputNode=null,this.foundation=new S8e(this.adapter),this.clickUpOrDown=!1}componentDidUpdate(e){const{value:t,preventScroll:r}=this.props,{focusing:a}=this.state;let i;if(t!==e.value&&!v8e(t,e.value)){if(ct(t)||t==="")i="",this.foundation.updateStates({value:i,number:null});else{let o=t;typeof t=="number"&&(o=this.foundation.doFormat(t));const s=this.foundation.doParse(o,!1,!0,!0),l=typeof t=="number"?t:this.foundation.doParse(o,!1,!1,!1);if(a)if(this.foundation.isValidNumber(s)&&s!==this.state.number){const u={number:s};this.clickUpOrDown&&(u.value=this.foundation.doFormat(u.number,!0),i=u.value),this.foundation.updateStates(u,()=>this.adapter.restoreCursor())}else p8e(l)?this.foundation.updateStates({value:o}):(i=this.foundation.doFormat(l,!1),this.foundation.updateStates({value:i}));else this.foundation.isValidNumber(s)?(i=this.foundation.doFormat(s),this.foundation.updateStates({number:s,value:i})):(i="",this.foundation.updateStates({number:null,value:i}))}i&&Xe(i)&&i!==String(this.props.value)&&this.foundation.notifyChange(i,null)}this.clickUpOrDown&&this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){const e=this.props,{disabled:t,className:r,prefixCls:a,min:i,max:o,step:s,shiftStep:l,precision:u,formatter:c,parser:d,forwardedRef:f,onUpClick:h,onDownClick:p,pressInterval:g,pressTimeout:m,suffix:y,size:b,hideButtons:_,innerButtons:S,style:C,onNumberChange:w,keepFocus:T,defaultValue:E}=e,O=C8e(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:I,number:P}=this.state,A=$(r,`${a}-number`,{[`${a}-number-size-${b}`]:b}),R=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),x.createElement("div",{className:A,style:C,onMouseMove:N=>this.handleInputMouseMove(N),onMouseEnter:N=>this.handleInputMouseEnter(N),onMouseLeave:N=>this.handleInputMouseLeave(N)},x.createElement(Ri,Object.assign({role:"spinbutton"},L,O,{size:b,disabled:t,ref:this.setInputRef,value:I,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),_||S?null:R)}}NS.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,autofocus:v.bool,clearIcon:v.node,className:v.string,defaultValue:v.oneOfType([v.number,v.string]),disabled:v.bool,formatter:v.func,forwardedRef:v.any,hideButtons:v.bool,innerButtons:v.bool,insetLabel:v.node,insetLabelId:v.string,keepFocus:v.bool,max:v.number,min:v.number,parser:v.func,precision:v.number,prefixCls:v.string,pressInterval:v.number,pressTimeout:v.number,preventScroll:v.bool,shiftStep:v.number,step:v.number,style:v.object,suffix:v.any,value:v.oneOfType([v.number,v.string]),onBlur:v.func,onChange:v.func,onDownClick:v.func,onKeyDown:v.func,onNumberChange:v.func,onUpClick:v.func};NS.defaultProps={forwardedRef:B,innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:m8e.PREFIX,pressInterval:ef.DEFAULT_PRESS_TIMEOUT,pressTimeout:ef.DEFAULT_PRESS_TIMEOUT,shiftStep:ef.DEFAULT_SHIFT_STEP,size:y8e.DEFAULT_SIZE,step:ef.DEFAULT_STEP,onBlur:B,onChange:B,onDownClick:B,onFocus:B,onKeyDown:B,onNumberChange:B,onUpClick:B};const Tq=jX(x.forwardRef(function(e,t){return x.createElement(NS,Object.assign({},e,{forwardedRef:t}))}),NS),WN="horizontal",GN="vertical",Wo={PREFIX:`${q}-navigation`},Yt={MODE:[GN,WN],MODE_VERTICAL:GN,MODE_HORIZONTAL:WN,ICON_POS_LEFT:"left",ICON_POS_RIGHT:"right",DEFAULT_LOGO_ICON_SIZE:"extra-large",TOGGLE_ICON_LEFT:"left",TOGGLE_ICON_RIGHT:"right"},Cp={DEFAULT_SUBNAV_MAX_HEIGHT:999,DEFAULT_TOOLTIP_SHOW_DELAY:0,DEFAULT_TOOLTIP_HIDE_DELAY:100,DEFAULT_SUBNAV_OPEN_DELAY:0,DEFAULT_SUBNAV_CLOSE_DELAY:100},YN={open:"chevron_up",closed:"chevron_down"};let w8e=class $I{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(e==null||typeof e!="object")&&(e={text:e,itemKey:e,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,link:null,items:null,icon:"",indent:!1});for(const t of Object.keys(e))this[t]=e[t];e.items&&Array.isArray(e.items)&&e.items.length?(this.items=e.items.map(t=>new $I(t)),"toggleIcon"in e?this.toggleIcon=$I.isValidToggleIcon(e.toggleIcon)?Object.assign({},e.toggleIcon):Object.assign({},YN):this.toggleIcon=Object.assign({},YN)):this.items=null}static isValidToggleIcon(e){return!!(e&&typeof e=="object"&&typeof e.open=="string"&&e.open.length&&typeof e.closed=="string"&&e.closed.length)}};class wp extends ze{constructor(e){super(Object.assign({},e))}static getZeroParentKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=[];for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"itemKey";if(Array.isArray(e)&&e.length)for(const i of e)if(Array.isArray(i))wp.buildItemKeysMap(i,t,[...r],a);else{let o;if(i&&typeof i=="object"&&(o=i[a]||i.props&&i.props[a]),o){if(t[o]=[...r],Array.isArray(i.items)&&i.items.length)wp.buildItemKeysMap(i.items,t,[...r,o],a);else if(i.props&&i.props.children){const s=Array.isArray(i.props.children)?i.props.children:[i.props.children];wp.buildItemKeysMap(s,t,[...r,o],a)}}}return t}init(e){const{defaultSelectedKeys:t,selectedKeys:r}=this.getProps();let a=r||t||[];const{itemKeysMap:i,willOpenKeys:o,formattedItems:s}=this.getCalcState(),l=this.selectLevelZeroParentKeys(i,a);if(a=a.concat(l),e==="constructor")return{selectedKeys:a,itemKeysMap:i,openKeys:o,items:s};this._adapter.updateSelectedKeys(a),this._adapter.setItemKeysMap(i),this._adapter.updateOpenKeys(o),this._adapter.updateItems(s),this._adapter.setItemsChanged(!0)}getCalcState(){const{itemKeysMap:e,formattedItems:t}=this.getFormattedItems(),r=this.getWillOpenKeys(e);return{itemKeysMap:e,willOpenKeys:r,formattedItems:t}}getFormattedItems(){const{items:e,children:t}=this.getProps(),r=this.formatItems(e),a=Array.isArray(e)&&e.length?r:t;return{itemKeysMap:wp.buildItemKeysMap(a),formattedItems:r}}getWillOpenKeys(e){const{defaultOpenKeys:t,openKeys:r,defaultSelectedKeys:a,selectedKeys:i,mode:o}=this.getProps();let s=r||t||[];if(!(Array.isArray(t)||Array.isArray(r))&&o===Yt.MODE_VERTICAL&&(Array.isArray(a)||Array.isArray(i))){const l=Array.isArray(i)?i:a;s=this.getShouldOpenKeys(e,l)}return[...s]}getShouldOpenKeys(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=new Set;return Array.isArray(t)&&t.length&&t.forEach(a=>{if(a){const i=H(e,a);Array.isArray(i)&&i.forEach(o=>r.add(o))}}),[...r]}destroy(){}selectLevelZeroParentKeys(e){const t=ct(e)?this.getState("itemKeysMap"):e,r=[];for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o0&&arguments[0]!==void 0?arguments[0]:[];const t=[];for(const r of e)t.push(new w8e(r));return t}handleSelect(e){this._adapter.notifySelect(e)}judgeIfOpen(e,t){let r=!1;const a=Array.isArray(e)?e:e&&[e];if(a&&Array.isArray(t)&&t.length){for(const i of t)if(r=a.includes(i.itemKey)||this.judgeIfOpen(a,i.items),r)break}return r}handleCollapseChange(){const e=!this.getState("isCollapsed");this._isControlledComponent("isCollapsed")||this._adapter.setIsCollapsed(e),this._adapter.notifyCollapseChange(e)}handleItemsChange(e){this._adapter.setItemsChanged(e)}}const KN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.add(o)),Array.from(t)},ZN=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=new Set(e);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;io&&t.delete(o)),Array.from(t)};class x8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null}destroy(){this.clearDelayTimer()}clearDelayTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}isValidKey(e){return e!=null&&(typeof e=="number"||typeof e=="string")}handleDropdownVisibleChange(e){const t=this.getProp("itemKey"),r=this._adapter.getOpenKeysIsControlled(),a=this._adapter.getCanUpdateOpenKeys(),i=this._adapter.getOpenKeys(),o=e?KN(i,t):ZN(i,t);this.clearDelayTimer(),r||a&&this._adapter.updateOpen(e),this._adapter.notifyGlobalOpenChange({itemKey:t,openKeys:o,isOpen:e})}handleClick(e,t){const{itemKey:r,disabled:a}=this.getProps();if(a)return;const i=t&&t.contains(e.target);let o=!!this._adapter.getIsOpen();i?o=!o:o=!1;const s=o?KN(this._adapter.getOpenKeys(),r):ZN(this._adapter.getOpenKeys(),r),l={itemKey:r,openKeys:s,isOpen:o,domEvent:e},u=this._adapter.getOpenKeysIsControlled(),c=this._adapter.getCanUpdateOpenKeys();!u&&c&&this._adapter.updateOpen(o),this._adapter.notifyGlobalOpenChange(l),this._adapter.notifyGlobalOnClick(l)}handleKeyPress(e,t){ha(e)&&this.handleClick(e,t)}}class T8e extends ze{constructor(e){super(Object.assign({},e))}init(){this._timer=null,this._mounted=!0}destroy(){this._mounted=!1}isValidKey(e){return e!=null&&(typeof e=="string"||typeof e=="number")}handleClick(e){const{isSubNav:t,itemKey:r,text:a,disabled:i}=this.getProps();if(i)return;!t&&this.isValidKey(r)&&!this._adapter.getSelectedKeysIsControlled()&&!this._adapter.getSelected()&&this._adapter.updateSelected(!0);const o=[r];if(!t){if(!this._adapter.getSelected()){const s=[this._adapter.cloneDeep(this.getProps())];this._adapter.notifyGlobalOnSelect({itemKey:r,selectedKeys:o,selectedItems:s,domEvent:e})}this._adapter.notifyGlobalOnClick({itemKey:r,text:a,domEvent:e})}this._adapter.notifyClick({itemKey:r,text:a,domEvent:e})}handleKeyPress(e){if(ha(e)){const{link:t,linkOptions:r}=this.getProps(),a=H(r,"target","_self");this.handleClick(e),typeof t=="string"&&(a==="_blank"?window.open(t):window.location.href=t)}}}const E8e=x.createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]}),Jg=E8e,Sa=`${Wo.PREFIX}-item`;class ev extends Pe{constructor(e){super(e),this.setItemRef=t=>{this.props.forwardRef&&this.props.forwardRef(t)},this.wrapTooltip=t=>{const{text:r,tooltipHideDelay:a,tooltipShowDelay:i}=this.props,o=a??this.context.tooltipHideDelay,s=i??this.context.tooltipShowDelay;return x.createElement(Sr,{content:r,position:"right",trigger:"hover",mouseEnterDelay:s,mouseLeaveDelay:o},t)},this.handleClick=t=>this.foundation.handleClick(t),this.handleKeyPress=t=>this.foundation.handleKeyPress(t),this.state={tooltipShow:!1},this.foundation=new T8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({tooltipShow:t}),updateSelected:t=>this._invokeContextFunc("updateSelectedKeys",[this.props.itemKey]),updateGlobalSelectedKeys:t=>this._invokeContextFunc("updateSelectedKeys",[...t]),getSelectedKeys:()=>this.context&&this.context.selectedKeys,getSelectedKeysIsControlled:()=>this.context&&this.context.selectedKeysIsControlled,notifyGlobalOnSelect:function(){for(var t=arguments.length,r=new Array(t),a=0;athis.props.isCollapsed||!!(this.context&&this.context.isCollapsed)||!1,getSelected:()=>!!(this.context&&this.context.selectedKeys&&this.context.selectedKeys.includes(this.props.itemKey)),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(this.props.itemKey))})}renderIcon(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(this.props.isSubNav||!e&&this.context.mode===Yt.MODE_HORIZONTAL)return null;let i="large";t===Yt.ICON_POS_RIGHT&&(i="default");const o=$(`${Sa}-icon`,{[`${Sa}-icon-toggle-${this.context.toggleIconPosition}`]:r,[`${Sa}-icon-info`]:!r});return x.createElement("i",{className:o,key:a},Hr(e)?x.cloneElement(e,{size:e.props.size||i}):e)}render(){const{text:e,children:t,icon:r,toggleIcon:a,className:i,isSubNav:o,style:s,indent:l,onMouseEnter:u,onMouseLeave:c,link:d,linkOptions:f,disabled:h,level:p=0,tabIndex:g}=this.props,{mode:m,isInSubNav:y,prefixCls:b,limitIndent:_}=this.context,S=this.adapter.getIsCollapsed(),C=this.adapter.getSelected();let w=null;if(!ct(t))w=t;else{let E=null;if(m===Yt.MODE_VERTICAL&&!_&&!S){const O=r&&!l?p:p-1;E=kS(O,I=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,I))}w=x.createElement(x.Fragment,null,E,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"),r||l||y?this.renderIcon(r,Yt.ICON_POS_LEFT,!1,"key-position-left"):null,ct(e)?"":x.createElement("span",{className:`${Wo.PREFIX}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(a,Yt.ICON_POS_RIGHT,!0,"key-toggle-pos-right"))}typeof d=="string"&&(w=x.createElement("a",Object.assign({className:`${b}-item-link`,href:d,tabIndex:-1},f),w));let T="";if(y&&(S||m===Yt.MODE_HORIZONTAL)){const E=$({[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h});T=x.createElement(Vs.Item,{selected:C,active:C,forwardRef:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,disabled:h,onKeyDown:this.handleKeyPress},w)}else{const E=$(`${i||`${Sa}-normal`}`,{[Sa]:!0,[`${Sa}-sub`]:o,[`${Sa}-selected`]:C&&!o,[`${Sa}-collapsed`]:S,[`${Sa}-disabled`]:h,[`${Sa}-has-link`]:typeof d=="string"}),O={"aria-disabled":h};if(o){const I=this.adapter.getIsOpen();O["aria-expanded"]=I}T=x.createElement("li",Object.assign({role:o?null:"menuitem",tabIndex:o?-1:g},O,{style:s,ref:this.setItemRef,className:E,onClick:this.handleClick,onMouseEnter:u,onMouseLeave:c,onKeyPress:this.handleKeyPress}),w)}return(S&&!y&&!o||S&&o&&h)&&(T=this.wrapTooltip(T)),typeof this.context.renderWrapper=="function"?this.context.renderWrapper({itemElement:T,isSubNav:o,isInSubNav:y,props:this.props}):T}}ev.contextType=Jg;ev.propTypes={text:v.oneOfType([v.string,v.node]),itemKey:v.oneOfType([v.string,v.number]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,children:v.node,icon:v.oneOfType([v.node]),className:v.string,toggleIcon:v.string,style:v.object,forwardRef:v.func,indent:v.oneOfType([v.bool,v.number]),isCollapsed:v.bool,isSubNav:v.bool,link:v.string,linkOptions:v.object,disabled:v.bool,tabIndex:v.number};ev.defaultProps={isSubNav:!1,indent:!1,forwardRef:B,isCollapsed:!1,onClick:B,onMouseEnter:B,onMouseLeave:B,disabled:!1,tabIndex:0};class p0 extends Pe{constructor(e){super(e),this.setItemRef=t=>{t&&t.current?this.itemRef=t:this.itemRef={current:t}},this.setTitleRef=t=>{t&&t.current?this.titleRef=t:this.titleRef={current:t}},this.handleClick=t=>{this.foundation.handleClick(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleKeyPress=t=>{this.foundation.handleKeyPress(t&&t.nativeEvent,this.titleRef&&this.titleRef.current)},this.handleDropdownVisible=t=>this.foundation.handleDropdownVisibleChange(t),this.state={isHovered:!1},this.adapter.setCache("firstMounted",!0),this.titleRef=x.createRef(),this.itemRef=x.createRef(),this.foundation=new x8e(this.adapter)}_invokeContextFunc(e){if(e&&this.context&&typeof this.context[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;athis.setState({isHovered:t}),getOpenKeys:()=>this.context&&this.context.openKeys,getOpenKeysIsControlled:()=>this.context&&this.context.openKeysIsControlled,getCanUpdateOpenKeys:()=>this.context&&this.context.canUpdateOpenKeys,updateOpen:t=>this._invokeContextFunc(t?"addOpenKeys":"removeOpenKeys",this.props.itemKey),notifyGlobalOpenChange:function(){for(var t=arguments.length,r=new Array(t),a=0;a!!(!ct(t)&&H(this.context,"selectedKeys",[]).includes(String(t))),getIsOpen:()=>!!(this.context&&this.context.openKeys&&this.context.openKeys.includes(String(this.props.itemKey)))})}renderIcon(e,t,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const{prefixCls:o}=this.context;let s="large";t===Yt.ICON_POS_RIGHT&&(s="default");const l=$(`${o}-item-icon`,{[`${o}-item-icon-toggle-${this.context.toggleIconPosition}`]:a,[`${o}-item-icon-info`]:!a}),u=this.adapter.getIsOpen(),c=x.isValidElement(e)?r?x.createElement(ig,{animationState:u?"enter":"leave",startClassName:`${Wo.PREFIX}-icon-rotate-${u?"180":"0"}`},d=>{let{animationClassName:f}=d;return x.cloneElement(e,{size:s,className:f})}):x.cloneElement(e,{size:s}):null;return x.createElement("i",{key:i,className:l},c)}renderTitleDiv(){const{text:e,icon:t,itemKey:r,indent:a,disabled:i,level:o,expandIcon:s}=this.props,{mode:l,isInSubNav:u,isCollapsed:c,prefixCls:d,subNavMotion:f,limitIndent:h}=this.context,p=this.adapter.getIsOpen(),g=$(`${d}-sub-title`,{[`${d}-sub-title-selected`]:this.adapter.getIsSelected(r),[`${d}-sub-title-disabled`]:i});let m=!1,y="";c?u?y=x.createElement(sg,null):y=null:l===Yt.MODE_HORIZONTAL?u?y=x.createElement(sg,{"aria-hidden":!0}):y=s||x.createElement(kf,{"aria-hidden":!0}):(f&&(m=!0),y=s||x.createElement(kf,{"aria-hidden":!0}));let b=null;if(l===Yt.MODE_VERTICAL&&!h&&!c){const C=t&&!a?o:o-1;b=kS(C,w=>this.renderIcon(null,Yt.ICON_POS_RIGHT,!1,!1,w))}const _=!c&&u&&l===Yt.MODE_HORIZONTAL||c&&u;return x.createElement("div",{role:"menuitem",tabIndex:_?-1:0,ref:this.setTitleRef,className:g,onClick:this.handleClick,onKeyPress:this.handleKeyPress,"aria-expanded":p?"true":"false"},x.createElement("div",{className:`${d}-item-inner`},b,this.context.toggleIconPosition===Yt.TOGGLE_ICON_LEFT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-left"),t||a||u&&l!==Yt.MODE_HORIZONTAL?this.renderIcon(t,Yt.ICON_POS_LEFT,!1,!1,"key-inSubNav-position-left"):null,x.createElement("span",{className:`${d}-item-text`},e),this.context.toggleIconPosition===Yt.TOGGLE_ICON_RIGHT&&this.renderIcon(y,Yt.ICON_POS_RIGHT,m,!0,"key-toggle-position-right")))}renderSubUl(){const{children:e,maxHeight:t}=this.props,{isCollapsed:r,mode:a,subNavMotion:i,prefixCls:o}=this.context,s=this.adapter.getIsOpen(),l=a===Yt.MODE_HORIZONTAL,u=$(`${o}-sub`,{[`${o}-sub-open`]:s,[`${o}-sub-popover`]:r||l});return l?null:i?x.createElement(VX,{motion:i,isOpen:s,keepDOM:!1,fade:!0},r?null:x.createElement("ul",{className:u},e)):s&&!r?x.createElement("ul",{className:u},e):null}wrapDropdown(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const{children:r,dropdownStyle:a,disabled:i}=this.props,{mode:o,isInSubNav:s,isCollapsed:l,subNavCloseDelay:u,subNavOpenDelay:c,prefixCls:d,getPopupContainer:f}=this.context,h=this.adapter.getIsOpen(),p=this.adapter.getOpenKeysIsControlled(),g=$({[`${d}-popover`]:l}),m={trigger:"hover",style:a};return p&&(m.trigger="custom",m.visible=h),f&&(m.getPopupContainer=f),(l||o===Yt.MODE_HORIZONTAL)&&(t=i?t:x.createElement(Vs,Object.assign({className:g,render:x.createElement(Vs.Menu,null,r),position:o===Yt.MODE_HORIZONTAL&&!s?"bottomLeft":"rightTop",mouseEnterDelay:c,mouseLeaveDelay:u,onVisibleChange:this.handleDropdownVisible},m),t)),t}render(){const{itemKey:e,style:t,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o}=this.props,{mode:s,isCollapsed:l,prefixCls:u}=this.context;let c=this.renderTitleDiv();const d=this.renderSubUl();return(l||s===Yt.MODE_HORIZONTAL)&&(c=this.wrapDropdown(c)),x.createElement(ev,{style:t,isSubNav:!0,itemKey:e,forwardRef:this.setItemRef,isCollapsed:l,className:`${u}-sub-wrap`,onMouseEnter:r,onMouseLeave:a,disabled:i,text:o},x.createElement(Jg.Provider,{value:Object.assign(Object.assign({},this.context),{isInSubNav:!0})},c,d))}}p0.contextType=Jg;p0.propTypes={itemKey:v.oneOfType([v.string,v.number]),text:v.oneOfType([v.string,v.node]),isOpen:v.bool,isCollapsed:v.bool,indent:v.oneOfType([v.bool,v.number]),children:v.node,style:v.object,icon:v.oneOfType([v.string,v.node]),maxHeight:v.number,onMouseEnter:v.func,onMouseLeave:v.func,disabled:v.bool,level:v.number};p0.defaultProps={level:0,indent:!1,isCollapsed:!1,isOpen:!1,maxHeight:Cp.DEFAULT_SUBNAV_MAX_HEIGHT,disabled:!1};function O8e(n){let{prefixCls:e,locale:t,collapseText:r,isCollapsed:a,onClick:i=B}=n;const o=()=>{typeof i=="function"&&i(!a)},s={icon:x.createElement(R5e,null),type:"tertiary",theme:"borderless",onClick:o};let l=a?t==null?void 0:t.expandText:t==null?void 0:t.collapseText;return typeof r=="function"&&(l=r(a)),x.createElement("div",{className:`${e}-collapse-btn`},a?x.createElement(Sr,{content:l,position:"right"},x.createElement(Jt,Object.assign({},s))):x.createElement(Jt,Object.assign({},s),l))}class yc extends D.PureComponent{constructor(){super(...arguments),this.renderCollapseButton=()=>{const{collapseButton:e,collapseText:t}=this.props;if(x.isValidElement(e))return e;const{onCollapseChange:r,prefixCls:a,locale:i,isCollapsed:o}=this.context;return x.createElement(O8e,{prefixCls:a,isCollapsed:o,locale:i,onClick:r,collapseText:t})}}render(){const{style:e,className:t,collapseButton:r,onClick:a}=this.props;let{children:i}=this.props;const{isCollapsed:o,mode:s}=this.context;!x.isValidElement(i)&&r&&s!==Yt.MODE_HORIZONTAL&&(i=this.renderCollapseButton());const l=$(t,`${Wo.PREFIX}-footer`,{[`${Wo.PREFIX}-footer-collapsed`]:o});return x.createElement("div",{className:l,style:e,onClick:a},i)}}yc.contextType=Jg;yc.propTypes={children:v.node,style:v.object,className:v.string,collapseButton:v.oneOfType([v.node,v.bool]),collapseText:v.func,onClick:v.func};yc.defaultProps={collapseButton:!1,onClick:B};yc.elementType="NavFooter";class bc extends D.PureComponent{renderLogo(e){return x.isValidElement(e)?e:null}render(){const{children:e,style:t,className:r,logo:a,text:i,link:o,linkOptions:s,prefixCls:l}=this.props,{isCollapsed:u}=this.context,c=$(r,`${Wo.PREFIX}-header`,{[`${Wo.PREFIX}-header-collapsed`]:u});let d=x.createElement(x.Fragment,null,a?x.createElement("i",{className:`${Wo.PREFIX}-header-logo`},this.renderLogo(a)):null,!ct(i)&&!u?x.createElement("span",{className:`${Wo.PREFIX}-header-text`},i):null,e);return typeof o=="string"&&(d=x.createElement("a",Object.assign({className:`${l}-header-link`,href:o},s),d)),x.createElement("div",{className:c,style:t},d)}}bc.contextType=Jg;bc.propTypes={prefixCls:v.string,logo:v.oneOfType([v.string,v.object,v.node]),text:v.oneOfType([v.string,v.node]),children:v.node,style:v.object,className:v.string,link:v.string,linkOptions:v.object};bc.defaultProps={prefixCls:Wo.PREFIX};bc.elementType="NavHeader";var I8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);as&&r.add(s)),n.setState({[e]:Array.from(r)})}}function qN(n,e){return function(){const r=new Set(n.state[e]);for(var a=arguments.length,i=new Array(a),o=0;os&&r.delete(s)),n.setState({[e]:Array.from(r)})}}const{hasOwnProperty:P8e}=Object.prototype;class rh extends Pe{constructor(e){super(e),this.onCollapseChange=()=>{this.foundation.handleCollapseChange()},this.foundation=new wp(this.adapter),this.itemsChanged=!0;const{isCollapsed:t,defaultIsCollapsed:r,items:a,children:i}=e,o={isCollapsed:!!(this.isControlled("isCollapsed")?t:r),openKeys:[],items:[],itemKeysMap:{},selectedKeys:[]};if(this.state=Object.assign({},o),a&&a.length||i){const s=this.foundation.init("constructor");this.state=Object.assign(Object.assign({},o),s)}}static getDerivedStateFromProps(e,t){const r={};return P8e.call(e,"isCollapsed")&&e.isCollapsed!==t.isCollapsed&&(r.isCollapsed=e.isCollapsed),r}componentDidMount(){}componentDidUpdate(e,t){if(e.items!==this.props.items||e.children!==this.props.children)this.foundation.init();else{this.foundation.handleItemsChange(!1);const{selectedKeys:r}=this.state;if(this.props.selectedKeys&&!Ke(e.selectedKeys,this.props.selectedKeys)&&this.adapter.updateSelectedKeys(this.props.selectedKeys),this.props.openKeys&&!Ke(e.openKeys,this.props.openKeys)&&this.adapter.updateOpenKeys(this.props.openKeys),!Ke(r,t.selectedKeys)){const a=this.foundation.selectLevelZeroParentKeys(null,...r);this.adapter.addSelectedKeys(...a)}}}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifySelect:function(){return e.props.onSelect(...arguments)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},setIsCollapsed:t=>this.setState({isCollapsed:t}),notifyCollapseChange:function(){return e.props.onCollapseChange(...arguments)},updateItems:t=>this.setState({items:[...t]}),setItemKeysMap:t=>this.setState({itemKeysMap:Object.assign({},t)}),addSelectedKeys:XN(this,"selectedKeys"),removeSelectedKeys:qN(this,"selectedKeys"),updateSelectedKeys:t=>this.setState({selectedKeys:[...t]}),updateOpenKeys:t=>this.setState({openKeys:[...t]}),addOpenKeys:XN(this,"openKeys"),removeOpenKeys:qN(this,"openKeys"),setItemsChanged:t=>{this.itemsChanged=t}})}renderItems(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const{expandIcon:r}=this.props;return x.createElement(x.Fragment,null,e.map((i,o)=>Array.isArray(i.items)&&i.items.length?x.createElement(p0,Object.assign({key:i.itemKey||String(t)+o},i,{level:t,expandIcon:r}),this.renderItems(i.items,t+1)):x.createElement(ev,Object.assign({key:i.itemKey||String(t)+o},i,{level:t}))))}render(){const e=this.props,{children:t,mode:r,onOpenChange:a,onSelect:i,onClick:o,style:s,className:l,subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,prefixCls:p,bodyStyle:g,footer:m,header:y,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}=e,w=I8e(e,["children","mode","onOpenChange","onSelect","onClick","style","className","subNavCloseDelay","subNavOpenDelay","subNavMotion","tooltipShowDelay","tooltipHideDelay","prefixCls","bodyStyle","footer","header","toggleIconPosition","limitIndent","renderWrapper","getPopupContainer"]),{selectedKeys:T,openKeys:E,items:O,isCollapsed:I}=this.state,{updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N}=this.adapter,z=Object.assign({},s);let F=D.Children.toArray(t);const j=[],U=[];if(x.isValidElement(m)?j.push(x.createElement(yc,{key:0},m)):m&&typeof m=="object"&&j.push(x.createElement(yc,Object.assign({key:0},m))),x.isValidElement(y)?U.push(x.createElement(bc,{key:0},y)):y&&typeof y=="object"&&U.push(x.createElement(bc,Object.assign({key:0},y))),Array.isArray(F)&&F.length){F=[...F];let Q=F.length;for(let Z=0;Zx.createElement(Jg.Provider,{value:{subNavCloseDelay:u,subNavOpenDelay:c,subNavMotion:d,tooltipShowDelay:f,tooltipHideDelay:h,openKeys:E,openKeysIsControlled:this.isControlled("openKeys")&&r==="vertical"&&!I,canUpdateOpenKeys:!0,selectedKeys:T,selectedKeysIsControlled:this.isControlled("selectedKeys"),isCollapsed:I,onCollapseChange:this.onCollapseChange,mode:r,onSelect:i,onOpenChange:a,updateOpenKeys:P,addOpenKeys:A,removeOpenKeys:R,updateSelectedKeys:L,addSelectedKeys:k,removeSelectedKeys:N,onClick:o,locale:Q,prefixCls:p,toggleIconPosition:b,limitIndent:_,renderWrapper:S,getPopupContainer:C}},x.createElement("div",Object.assign({className:G,style:z},this.getDataAttr(w)),x.createElement("div",{className:`${p}-inner`},x.createElement("div",{className:Y},U,x.createElement("div",{style:g,className:`${p}-list-wrapper`},x.createElement("ul",{role:"menu","aria-orientation":r,className:`${p}-list`},this.adapter.getCache("itemElems"),F))),j))))}}rh.Sub=p0;rh.Item=ev;rh.Header=bc;rh.Footer=yc;rh.propTypes={collapseIcon:v.node,defaultOpenKeys:v.arrayOf(v.oneOfType([v.string,v.number])),openKeys:v.arrayOf(v.oneOfType([v.string,v.number])),defaultSelectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),expandIcon:v.node,selectedKeys:v.arrayOf(v.oneOfType([v.string,v.number])),mode:v.oneOf([...Yt.MODE]),onSelect:v.func,onClick:v.func,onOpenChange:v.func,items:v.array,isCollapsed:v.bool,defaultIsCollapsed:v.bool,onCollapseChange:v.func,multiple:v.bool,onDeselect:v.func,subNavMotion:v.oneOfType([v.bool,v.object,v.func]),subNavCloseDelay:v.number,subNavOpenDelay:v.number,tooltipShowDelay:v.number,tooltipHideDelay:v.number,children:v.node,style:v.object,bodyStyle:v.object,className:v.string,toggleIconPosition:v.string,prefixCls:v.string,header:v.oneOfType([v.node,v.object]),footer:v.oneOfType([v.node,v.object]),limitIndent:v.bool,getPopupContainer:v.func};rh.defaultProps={subNavCloseDelay:Cp.DEFAULT_SUBNAV_CLOSE_DELAY,subNavOpenDelay:Cp.DEFAULT_SUBNAV_OPEN_DELAY,tooltipHideDelay:Cp.DEFAULT_TOOLTIP_HIDE_DELAY,tooltipShowDelay:Cp.DEFAULT_TOOLTIP_SHOW_DELAY,onCollapseChange:B,onSelect:B,onClick:B,onOpenChange:B,toggleIconPosition:"right",limitIndent:!0,prefixCls:Wo.PREFIX,subNavMotion:!0,mode:Yt.MODE_VERTICAL};const w5=rh,D8e={PREFIX:q+"-overflow-list"},QN={COLLAPSE:"collapse",SCROLL:"scroll"},JN={START:"start",END:"end"},A8e={NONE:0,GROW:1,SHRINK:2},mf={BOUNDARY_SET:Object.values(JN),POSITION_SET:["vertical","horizontal"],MODE_SET:Object.values(QN),MODE_MAP:QN,BOUNDARY_MAP:JN,OVERFLOW_DIR:A8e},eF={MINIMUM_HTML_ELEMENT_WIDTH:4};class DA extends x.PureComponent{componentDidMount(){const{items:e}=this.props;this.cachedKeys=Object.keys(e);const{root:t,threshold:r,rootMargin:a,option:i,onIntersect:o}=this.props;this.observer=new IntersectionObserver(o,Object.assign({root:t,threshold:r,rootMargin:a},i)),this.observeElement()}componentDidUpdate(){const{items:e}=this.props,t=Object.keys(e);Ke(this.cachedKeys,t)||(this.observeElement(!0),this.cachedKeys=t)}componentWillUnmount(){this.observer&&(this.observer.disconnect(),this.observer=null)}observeElement(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const{items:t}=this.props;if(vt(t)){this.observer.disconnect();return}e&&this.observer.disconnect(),Object.keys(t).forEach(r=>{const a=t[r];a&&It(a)&&this.observer.observe(a)})}render(){const{children:e}=this.props;return e}}DA.propTypes={onIntersect:v.func,option:v.object,root:v.any,threshold:v.number,rootMargin:v.string,items:v.object};DA.defaultProps={onIntersect:()=>{},threshold:.75,rootMargin:"0px",option:{},items:{}};const M8e=mf.BOUNDARY_MAP;class R8e extends ze{constructor(e){super(Object.assign({},e)),this.previousY=void 0,this.isScrollMode=()=>{const{renderMode:t}=this.getProps();return t==="scroll"},this.getReversedItems=()=>{const{items:t}=this.getProps();return Ii(t).reverse()}}getOverflowItem(){const{items:e}=this.getProps(),{visibleState:t,overflow:r}=this.getStates();if(!this.isScrollMode())return r;const a=e.map(l=>{let{key:u}=l;return!!t.get(u)}),i=a.indexOf(!0),o=a.lastIndexOf(!0),s=[];return s[0]=i>=0?e.slice(0,i):[],s[1]=o>=0?e.slice(o+1,e.length):e,s}handleIntersect(e){const t=Ii(this.getState("visibleState")),r={};e.forEach(l=>{const u=H(l,"target.dataset.scrollkey"),c=l.isIntersecting;r[u]=l,t.set(u,c)});let a=!1;for(const l of t.values())if(l){a=!0;break}const i=a,[o]=e,s=o.boundingClientRect.y;if(!i&&this.previousY!==void 0&&s!==this.previousY){this.previousY=s;return}this.previousY=s,this._adapter.updateVisibleState(t),this._adapter.notifyIntersect(r)}handleCollapseOverflow(){const{minVisibleItems:e,collapseFrom:t}=this.getProps(),{overflowWidth:r,containerWidth:a,pivot:i,overflowStatus:o}=this.getStates(),{items:s,onOverflow:l}=this.getProps();let u=r,c=0,d=!1;for(const f of this._adapter.getItemSizeMap().values()){if(u+=f,u>a){d=!0;break}if(c===s.length-1){this._adapter.updateStates({overflowStatus:"normal",pivot:s.length-1,visible:s,overflow:[]});break}c++}if(d){const f=Math.max(e,c),h=t===M8e.START,p=h?this.getReversedItems().slice(0,f).reverse():s.slice(0,f),g=h?this.getReversedItems().slice(f).reverse():s.slice(f);this._adapter.updateStates({overflowStatus:"overflowed",pivot:f,visible:p,overflow:g}),i!==f&&l(g);return}}}const L8e=R8e,Fv=D8e.PREFIX,x5=mf.BOUNDARY_MAP,tF=mf.OVERFLOW_DIR,$v=mf.MODE_MAP;class AA extends Pe{constructor(e){var t;super(e),t=this,this.scroller=null,this.spacer=null,this.isScrollMode=()=>{const{renderMode:r}=this.props;return r===$v.SCROLL},this.resize=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var a;const i=(a=r[0])===null||a===void 0?void 0:a.target.clientWidth;t.setState({containerWidth:i,overflowStatus:"calculating"})},this.reintersect=r=>{this.foundation.handleIntersect(r)},this.mergeRef=(r,a,i)=>{this.itemRefs[i]=a,typeof r=="function"?r(a):typeof r=="object"&&r&&"current"in r&&(r.current=a)},this.renderOverflow=()=>{const r=this.foundation.getOverflowItem();return this.props.overflowRenderer(r)},this.getItemKey=(r,a)=>{const{itemKey:i}=this.props;return ke(i)?i(r):H(r,i||"key",a)},this.renderItemList=()=>{const{className:r,wrapperClassName:a,wrapperStyle:i,style:o,visibleItemRenderer:s,renderMode:l,collapseFrom:u}=this.props,{visible:c,overflowStatus:d}=this.state;let f=this.renderOverflow();if(!this.isScrollMode()&&(Array.isArray(f)&&(f=x.createElement(x.Fragment,null,f)),x.isValidElement(f))){const g=x.cloneElement(f);f=x.createElement(vf,{onResize:m=>{let[y]=m;this.setState({overflowWidth:y.target.clientWidth,overflowStatus:"calculating"})}},x.createElement("div",{className:`${Fv}-overflow`},g))}const h=l===$v.SCROLL?[f[0],x.createElement("div",{className:$(a,`${Fv}-scroll-wrapper`),ref:g=>{this.scroller=g},style:Object.assign({},i),key:`${Fv}-scroll-wrapper`},c.map(s).map(g=>{const{forwardRef:m,key:y}=g;return x.cloneElement(g,{ref:b=>this.mergeRef(m,b,y),"data-scrollkey":`${y}`,key:y})})),f[1]]:[u===x5.START?f:null,c.map((g,m)=>{const{key:y}=g,b=s(g,m),_=x.cloneElement(b);return x.createElement(vf,{key:y??m,onResize:S=>{let[C]=S;return this.onItemResize(C,g,m)}},x.createElement("div",{key:y??m,className:`${Fv}-item`},_))}),u===x5.END?f:null];return x.createElement("div",{className:$(`${Fv}`,r),style:Object.assign(Object.assign({},o),l===$v.COLLAPSE?{maxWidth:"100%",visibility:d==="calculating"?"hidden":"visible"}:null)},...h)},this.onItemResize=(r,a,i)=>{const o=this.getItemKey(a,i),s=this.itemSizeMap.get(o);s?s!==r.target.clientWidth&&(this.itemSizeMap.set(o,r.target.clientWidth),this.setState({overflowStatus:"calculating"})):this.itemSizeMap.set(o,r.target.clientWidth);const{maxCount:l}=this.state;this.itemSizeMap.size===l&&this.setState({overflowStatus:"calculating"})},this.state={direction:tF.GROW,lastOverflowCount:0,overflow:[],visible:[],containerWidth:0,visibleState:new Map,itemSizeMap:new Map,overflowStatus:"calculating",pivot:-1,overflowWidth:0,maxCount:0},this.foundation=new L8e(this.adapter),this.previousWidths=new Map,this.itemRefs={},this.itemSizeMap=new Map}static getDerivedStateFromProps(e,t){const{prevProps:r}=t,a={};a.prevProps=e;const i=o=>!r&&o in e||r&&!Ke(r[o],e[o]);if(i("items")||i("style")){if(a.direction=tF.GROW,a.lastOverflowCount=0,a.maxCount=0,e.renderMode===$v.SCROLL)a.visible=e.items,a.overflow=[];else{let o=e.items.length;Math.floor(t.containerWidth/eF.MINIMUM_HTML_ELEMENT_WIDTH)!==0&&(o=Math.min(o,Math.floor(t.containerWidth/eF.MINIMUM_HTML_ELEMENT_WIDTH)));const s=e.collapseFrom===x5.START,l=s?ti(e.items).reverse().slice(0,o):e.items.slice(0,o),u=s?ti(e.items).reverse().slice(o):e.items.slice(o);a.visible=l,a.overflow=u,a.maxCount=o}a.pivot=-1,a.overflowStatus="calculating"}return a}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateVisibleState:e=>{this.setState({visibleState:e})},updateStates:e=>{this.setState(Object.assign({},e))},notifyIntersect:e=>{this.props.onIntersect&&this.props.onIntersect(e)},getItemSizeMap:()=>this.itemSizeMap})}componentDidUpdate(e,t){const r=e.items.map(u=>u.key),a=this.props.items.map(u=>u.key);Ke(r,a)||(this.itemRefs={},this.setState({visibleState:new Map}));const{overflow:i,containerWidth:o,visible:s,overflowStatus:l}=this.state;this.isScrollMode()||l!=="calculating"||this.foundation.handleCollapseOverflow()}render(){const e=this.renderItemList(),{renderMode:t}=this.props;return t===$v.SCROLL?x.createElement(DA,{onIntersect:this.reintersect,root:this.scroller,threshold:this.props.threshold,items:this.itemRefs},e):x.createElement(vf,{onResize:this.resize},e)}}AA.defaultProps={collapseFrom:"end",minVisibleItems:0,overflowRenderer:()=>null,renderMode:"collapse",threshold:.75,visibleItemRenderer:()=>null,onOverflow:()=>null};AA.propTypes={className:v.string,collapseFrom:v.oneOf(mf.BOUNDARY_SET),direction:v.oneOf(mf.POSITION_SET),items:v.array,minVisibleItems:v.number,onIntersect:v.func,onOverflow:v.func,overflowRenderer:v.func,renderMode:v.oneOf(mf.MODE_SET),style:v.object,threshold:v.number,visibleItemRenderer:v.func,wrapperClassName:v.string,wrapperStyle:v.object};const k8e=AA,N8e={PREFIX:`${q}-page`},MA={PAGE_SHOW_MAX:7,REST_PAGE_SHOW_MAX:5,DEFAULT_PAGE_SIZE:10,PAGE_SIZE_OPTION:[10,20,40,100],REST_PAGE_MAX_SIZE:1e6};class F8e extends ze{constructor(e){super(Object.assign({},e))}init(){const{currentPage:e,total:t,pageSize:r}=this.getStates();this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._registerEventHandler()}destroy(){this._unregisterEventHandler()}_registerEventHandler(){this._adapter.registerKeyDownHandler(this.handleKeyDown)}_unregisterEventHandler(){this._adapter.unregisterKeyDownHandler(this.handleKeyDown)}_updateDisabled(e){const{currentPage:t,total:r,pageSize:a}=e,i=this._getTotalPageNumber(r,a);let o=!1,s=!1;t===1?(o=!0,s=i<2):t===i&&(o=!1,s=!0),this._adapter.setDisabled(o,s)}goPage(e){if(e==="...")return;const{pageSize:t,currentPage:r}=this.getStates(),a=this._isInProps("currentPage");e!==r&&(a?(this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)):(this.updatePage(e),this._adapter.notifyPageChange(e),this._adapter.notifyChange(e,t)))}updatePage(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;(t===null||typeof t>"u")&&(t=this.getState("total")),(r===null||typeof r>"u")&&(r=this.getState("pageSize")),this._updateDisabled({currentPage:e,total:t,pageSize:r}),this._updatePageList({currentPage:e,total:t,pageSize:r}),this._adapter.updateTotal(t),this._adapter.setCurrentPage(e),this._adapter.updatePageSize(r)}updateAllPageNumbers(e,t){const{size:r,hoverShowPageSelect:a,disabled:i}=this.getProps();if(!(r!=="small"||!a||i)){const o=Array.from({length:Math.ceil(e/t)},(s,l)=>l+1);this._adapter.updateAllPageNumbers(o)}}goPrev(){const{currentPage:e}=this.getStates();e>1&&this.goPage(e-1)}goNext(){const{currentPage:e,total:t,pageSize:r}=this.getStates(),a=this._getTotalPageNumber(t,r);e<=a-1&&this.goPage(e+1)}_updatePageList(e){const{currentPage:t,total:r,pageSize:a}=e;let i=[],o=[],s=[];const l=this._getTotalPageNumber(r,a),{PAGE_SHOW_MAX:u,REST_PAGE_MAX_SIZE:c}=MA;if(l<=u)i=Array.from({length:l},(d,f)=>f+1),o=[],s=[];else switch(!0){case t<4:i=[1,2,3,4,"...",l-1,l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+5),o=[];break;case t===4:i=[1,2,3,4,5,"...",l],s=Array.from({length:Math.min(l-6,c)},(h,p)=>p+6),o=[];break;case(4t+(p-1));i=[1].concat("...",d,"...",l),s=Array.from({length:Math.min(l-t-2,c)},(h,p)=>t+p+2),o=Array.from({length:Math.min(t-3,c)},(h,p)=>p+2);break;case(t-3<=t&&t<=l):const f=Array.from({length:5},(h,p)=>l-(4-p));i=[1,"..."].concat(f),s=[],o=Array.from({length:Math.min(f[0]-2,c)},(h,p)=>p+2);break}this._adapter.setPageList({pageList:i,restLeftPageList:o,restRightPageList:s})}changePageSize(e){const{pageSize:t}=this.getStates();this._adapter.updatePageSize(e),this._adapter.notifyPageSizeChange(e);const{total:r,currentPage:a}=this.getStates(),i=(a-1)*t+1,o=Math.ceil(i/e);this.updatePage(o,r,e),a!==o&&this._adapter.notifyPageChange(o),this._adapter.notifyChange(o,e)}handleKeyDown(){}pageSizeInOpts(){const{pageSizeOpts:e}=this.getProps(),{pageSize:t}=this.getStates(),r=[...e];if(r.indexOf(t)===-1){const a=r.findIndex(i=>i>t);r.splice(a,0,t)}return r}handleQuickJumpNumberChange(e){this._adapter.updateQuickJumpPage(e)}_handleQuickJump(e){let t=Number(e);const{pageSize:r,total:a}=this.getStates(),i=this._getTotalPageNumber(a,r);Number.isNaN(t)||(t>i&&(t=i),t<=0&&(t=1),this._adapter.updateQuickJumpPage(""),this.goPage(t))}handleQuickJumpBlur(){const{quickJumpPage:e}=this.getStates();(typeof e=="string"&&e||typeof e=="number")&&this._handleQuickJump(e)}handleQuickJumpEnterPress(e){this._handleQuickJump(e)}_getTotalPageNumber(e,t){return Math.ceil(e/t)}}const $8e=F8e;var nF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar?o[1]:o[1].value)}catch{t=[]}break;case(a&&!e.size):t=[];break;case(!a&&!!e.size):try{t=r?[...e][0][1]:[...e][0][1].value}catch{}break;case(!a&&!e.size):break}const i=this._adapter.getOptionsFromChildren();this._update(t,i)}handleValueChange(e){const{allowCreate:t,autoClearSearchValue:r,remote:a}=this.getProps(),{inputValue:i}=this.getStates();let o;t&&this._isControlledComponent()?(o=this.getState("options"),o.forEach(s=>s._show=!0)):o=this._adapter.getOptionsFromChildren(),this._adapter.rePositionDropdown(),this._isFilterable()&&!r&&i&&!a&&(o=this._filterOption(o,i)),this._update(e,o)}_update(e,t){let r;this._isMultiple()?(r=this._updateMultiple(e,t),this.updateOverflowItemCount(r.size)):r=this._updateSingle(e,t),this._adapter.updateSelection(r),this.updateOptionsActiveStatus(r,t)}_updateSingle(e,t){const r=new Map,{onChangeWithObject:a}=this.getProps(),i=a&&typeof e<"u"?e.value:e,o=t.filter(l=>l.value===i),s=!o.length&&typeof i<"u"&&i!==null;if(o.length){const l=o[0],u=Object.assign({},l);r.set(u.label,u)}else if(s){let l={value:e,label:e,_notExist:!0,_scrollIndex:-1};a&&(l=Object.assign(Object.assign({},e),{_notExist:!0,_scrollIndex:-1})),r.set(l.label,l)}return r}_updateMultiple(e,t){const r=this.getState("selections");let a=[];const i=Array.isArray(e);this.checkMultipleProps(),r.size&&(a=[...r].map(u=>u[1]));const o=new Map;let s=e;const{onChangeWithObject:l}=this.getProps();return l&&i&&(s=e.map(u=>u.value)),i&&s.length&&s.forEach((u,c)=>{const d=t.findIndex(f=>f.value===u);if(d!==-1)o.set(t[d].label,t[d]);else{const f=a.findIndex(h=>h.value===u);if(f!==-1){const h=a[f];o.set(h.label,h)}else{let h={value:u,label:u,_notExist:!0};l&&(h=Object.assign(Object.assign({},e[c]),{_notExist:!0})),o.set(h.label,Object.assign(Object.assign({},h),{_scrollIndex:-1}))}}}),o}_isMultiple(){return this.getProp("multiple")}_isDisabled(){return this.getProp("disabled")}_isFilterable(){return!!this.getProp("filter")}handleClick(e){const{clickToHide:t}=this.getProps(),{isOpen:r}=this.getStates();this._isDisabled()||(r?r&&t?this.close(e):r&&!t&&this.focusInput():(this.open(),this._notifyFocus(e)))}open(e,t){const r=this._isFilterable(),a=t||this.getState("options");if(r){const i="",o=this._filterOption(a,i).filter(s=>!s._inputCreateOnly);this._adapter.updateOptions(o),this.toggle2SearchInput(!0)}this._adapter.openMenu(),this._setDropdownWidth(),this._adapter.notifyDropdownVisibleChange(!0),this.bindKeyBoardEvent(),this._adapter.registerClickOutsideHandler(i=>{this.close(i),this._notifyBlur(i),this._adapter.updateFocusState(!1)})}toggle2SearchInput(e){e?this._adapter.toggleInputShow(e,()=>this.focusInput()):this._adapter.toggleInputShow(e,()=>{})}close(e,t){this._adapter.closeMenu(),this._adapter.notifyDropdownVisibleChange(!1),this._adapter.setIsFocusInContainer(!1),this._adapter.unregisterClickOutsideHandler();const r=this._isFilterable();r&&this.toggle2SearchInput(!1),this._adapter.once("popoverClose",()=>{r&&this.clearInput(e),t&&t()})}onSelect(e,t,r){if(this._isDisabled())return;e._inputCreateOnly&&this._adapter.notifyCreate(e),this._isMultiple()?this._handleMultipleSelect(e,r):(this._handleSingleSelect(e,r),this._focusTrigger()),this._adapter.updateFocusIndex(t)}_handleSingleSelect(e,t){var{value:r,label:a}=e,i=nF(e,["value","label"]);const o=new Map().set(a,Object.assign({value:r,label:a},i));this._notifySelect(r,Object.assign({value:r,label:a},i)),this._isControlledComponent()?this.close(t,()=>{this._notifyChange(o)}):(this._adapter.updateSelection(o),this._notifyChange(o),this.close(t,()=>{this.updateOptionsActiveStatus(o)}))}_handleMultipleSelect(e,t){var{value:r,label:a}=e,i=nF(e,["value","label"]);const o=this._adapter.getMaxLimit(),s=this._adapter.getSelections(),{autoClearSearchValue:l}=this.getProps();if(s.has(a))this._notifyDeselect(r,Object.assign({value:r,label:a},i)),s.delete(a);else if(o&&s.size===o){this._adapter.notifyMaxLimit(Object.assign({value:r,label:a},fr(i,"_scrollIndex")));return}else this._notifySelect(r,Object.assign({value:r,label:a},i)),s.set(a,Object.assign({value:r,label:a},i));if(this._isControlledComponent())this._notifyChange(s),this._isFilterable()&&(l&&this.clearInput(t),this.focusInput());else{this._adapter.updateSelection(s),this.updateOverflowItemCount(s.size),this._adapter.rePositionDropdown();let{options:u}=this.getStates();if(this._isFilterable()){if(l){this.clearInput(t);const c="";u=this._filterOption(u,c)}this.focusInput()}this.updateOptionsActiveStatus(s,u),this._notifyChange(s)}}clearSelected(){const e=new Map;this._isControlledComponent()?(this._notifyChange(e),this._adapter.notifyClear()):(this._adapter.updateSelection(e),this.updateOptionsActiveStatus(e),this._notifyChange(e),this._adapter.notifyClear());const{isOpen:t}=this.getStates();t&&this._adapter.rePositionDropdown()}updateOptionsActiveStatus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getState("options");const{allowCreate:r}=this.getProps(),a=t.map(i=>(e.has(i.label)?(i._selected=!0,r&&delete i._inputCreateOnly):(i._inputCreateOnly&&(i._show=!1),i._selected=!1),i));this._adapter.updateOptions(a)}removeTag(e){const t=this._adapter.getSelections();t.delete(e.label),this._isControlledComponent()?(this._notifyDeselect(e.value,e),this._notifyChange(t)):(this._notifyDeselect(e.value,e),this._adapter.updateSelection(t),this.updateOverflowItemCount(t.size),this.updateOptionsActiveStatus(t),this._adapter.rePositionDropdown(),this._notifyChange(t))}clearInput(e){const{inputValue:t}=this.getStates();if(t!==""){this._adapter.updateInputValue(""),this._adapter.notifySearch("",e);const{options:r}=this.getStates(),{remote:a}=this.getProps();let i=r;a||(i=this._filterOption(r,"")),this._adapter.updateOptions(i)}}focusInput(){this._adapter.focusInput(),this._adapter.updateFocusState(!0),this._adapter.setIsFocusInContainer(!1)}handleInputChange(e,t){this._adapter.updateInputValue(e);const{options:r,isOpen:a}=this.getStates(),{allowCreate:i,remote:o}=this.getProps();let s=r;o||(s=this._filterOption(r,e)),s=this._createOptionByInput(i,s,e),this._adapter.updateOptions(s),this._adapter.notifySearch(e,t),this._isMultiple()&&this._adapter.rePositionDropdown()}_filterOption(e,t){const r=this.getProp("filter");if(r){if(typeof r=="boolean"&&r){const a=t.toLowerCase();return e.map(i=>{const o=i.label.toString().toLowerCase(),s=i._parentGroup&&i._parentGroup.label,l=o.includes(a),u=Xe(s)&&s.toLowerCase().includes(a);return l||u?i._show=!0:i._show=!1,i})}else if(typeof r=="function")return e.map(a=>(r(t,a)?a._show=!0:a._show=!1,a))}else return e}_createOptionByInput(e,t,r){if(e)if(r){const a={_show:!0,_selected:!1,value:r,label:r,_inputCreateOnly:!0};let i=-1,o=-1;t.forEach((s,l)=>{!s._show&&!s._inputCreateOnly||(s.label===r&&(o=l),s._inputCreateOnly&&(i=l,s.value=r,s.label=r,s._show=!0))}),i===-1&&o===-1&&t.push(a),o!==-1&&(t=t.filter(s=>!s._inputCreateOnly))}else t=t.filter(a=>!a._inputCreateOnly);return t}bindKeyBoardEvent(){this._keydownHandler=e=>{this._handleKeyDown(e)},this._adapter.registerKeyDown(this._keydownHandler)}unBindKeyBoardEvent(){this._keydownHandler&&this._adapter.unregisterKeyDown()}_handleKeyDown(e){const t=e.keyCode,{loading:r,filter:a,multiple:i,disabled:o}=this.getProps(),{isOpen:s}=this.getStates();if(!(r||o))switch(t){case Rr.UP:e.preventDefault(),this._handleArrowKeyDown(-1);break;case Rr.DOWN:e.preventDefault(),this._handleArrowKeyDown(1);break;case Rr.BACKSPACE:this._handleBackspaceKeyDown();break;case Rr.ENTER:Ra(e),this._handleEnterKeyDown(e);break;case Rr.ESC:s&&this.close(e),a&&!i&&this._focusTrigger();break;case Rr.TAB:this._handleTabKeyDown(e);break}}handleContainerKeyDown(e){const t=e.keyCode,{isOpen:r}=this.getStates();switch(t){case Rr.TAB:r&&this._handleTabKeyDown(e);break}}_getEnableFocusIndex(e){const{focusIndex:t,options:r}=this.getStates(),a=r.filter(s=>s._show),i=a.length;let o=t+e;if(o<0&&(o=i-1),o>=i&&(o=0),e>0){let s=-1;for(let l=0;l=o));l++);o=s}else{let s=a.length;for(let l=i-1;l>=0&&(!a[l].disabled&&(s=l),!(s<=o));l--);o=s}this._adapter.updateFocusIndex(o),this._adapter.updateScrollTop(o)}_handleArrowKeyDown(e){const{isOpen:t}=this.getStates();t?this._getEnableFocusIndex(e):this.open()}_handleTabKeyDown(e){const{isOpen:t}=this.getStates();if(this._adapter.updateFocusState(!1),t){const r=this._adapter.getContainer(),a=this._adapter.getFocusableElements(r);a.length>0?e.shiftKey?this._handlePanelOpenShiftTabKeyDown(a,e):this._handlePanelOpenTabKeyDown(a,e):(this.close(e),this._notifyBlur(e))}else this._notifyBlur(e)}_handlePanelOpenTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[e.length-1]&&(this._focusTrigger(),this.close(t),Ra(t)):(e[0].focus(),this._adapter.setIsFocusInContainer(!0),Ra(t))}_handlePanelOpenShiftTabKeyDown(e,t){const r=this._adapter.getActiveElement();this._adapter.getIsFocusInContainer()?r===e[0]&&(this._focusTrigger(),this._adapter.setIsFocusInContainer(!1),Ra(t)):(this.close(t),this._notifyBlur(t))}_handleEnterKeyDown(e){const{isOpen:t,options:r,focusIndex:a}=this.getStates();if(!t)this.open();else if(a!==-1){const i=r.filter(s=>s._show),{length:o}=i;if(o<=a)return;if(i&&o){const s=i[a];if(s.disabled)return;this.onSelect(s,a,e)}}else this.close(e)}_handleBackspaceKeyDown(){if(this._isMultiple()){const e=this._adapter.getSelections(),{inputValue:t}=this.getStates(),r=e.size;if(r&&!t){const a=[...e.keys()];let i=r-1,o=a[i],s=e.get(o),l=!1;if(s.disabled&&i===0)return;for(;s.disabled&&i!==0;)i=i-1,o=a[i],s=e.get(o),i==0&&s.disabled&&(l=!0);l||this.removeTag(s)}}}_notifyChange(e){const{onChangeWithObject:t}=this.getProps(),r=this.getState("selections");let a;const i=[...e.values()],o=this._isMultiple();if(this._diffSelections(e,r,o))switch(!0){case t:this._notifyChangeWithObject(e);break;case(!t&&!o):a=i.length?i[0].value:void 0,this._adapter.notifyChange(a);break;case(!t&&o):a=i.length?i.map(l=>l.value):[],this._adapter.notifyChange(a);break}}_removeInternalKey(e){let t=Object.assign({},e);return delete t._parentGroup,delete t._show,delete t._selected,delete t._scrollIndex,delete t._keyInJsx,"_keyInOptionList"in t&&(t.key=t._keyInOptionList,delete t._keyInOptionList),t}_notifySelect(e,t){const r=this._removeInternalKey(t);this._adapter.notifySelect(e,r)}_notifyDeselect(e,t){const r=this._removeInternalKey(t);this._adapter.notifyDeselect(e,r)}_diffSelections(e,t,r){let a=!0;if(!r){const i=[...e.values()],o=[...t.values()],s=i[0]?i[0].label:i[0],l=o[0]?o[0].label:o[0];a=!Ke(s,l)}return a}_notifyChangeWithObject(e){this.getState("selections");const t=[];for(const r of e.entries()){let a=Object.assign({label:r[0]},r[1]);a=this._removeInternalKey(a),t.push(a)}this._isMultiple()?this._adapter.notifyChange(t):this._adapter.notifyChange(t[0])}_notifyBlur(e){this._adapter.notifyBlur(e)}_notifyFocus(e){this._adapter.notifyFocus(e)}handleMouseEnter(e){this._adapter.updateHovering(!0),this._adapter.notifyMouseEnter(e)}handleMouseLeave(e){this._adapter.updateHovering(!1),this._adapter.notifyMouseLeave(e)}handleClearClick(e){const{filter:t}=this.getProps();t&&this.clearInput(e),this.clearSelected(),e.stopPropagation()}handleKeyPress(e){e&&e.key===F7&&this.handleClick(e)}handleClearBtnEnterPress(e){ha(e)&&this.handleClearClick(e)}handleOptionMouseEnter(e){this._adapter.updateFocusIndex(e)}handleListScroll(e){this._adapter.notifyListScroll(e)}handleTriggerFocus(e){this.bindKeyBoardEvent(),this._adapter.setIsFocusInContainer(!1)}handleTriggerBlur(e){this._adapter.updateFocusState(!1),this.getProps();const{isOpen:t,isFocus:r}=this.getStates();r&&!t&&this._notifyBlur(e)}handleInputBlur(e){const{filter:t,autoFocus:r}=this.getProps(),a=this._isMultiple();r&&t&&!a&&this.toggle2SearchInput(!1)}selectAll(){const{options:e}=this.getStates(),{onChangeWithObject:t}=this.getProps();let r=[];if(!this._isMultiple()){console.warn(`[Semi Select]: It seems that you have called the selectAll method in the single-selection Select. - Please note that this is not a legal way to use it`);return}t?r=e:r=e.map(i=>i.value),this.handleValueChange(r),this._adapter.notifyChange(r)}checkMultipleProps(e){if(this._isMultiple()){const t=e||this.getProps(),{defaultValue:r,value:a}=t,i=a||r;!ct(i)&&!Array.isArray(i)&&_n(!0,"[Semi Select] defaultValue/value should be array type in multiple mode")}}updateScrollTop(){this._adapter.updateScrollTop()}updateOverflowItemCount(e,t){const{maxTagCount:r,ellipsisTrigger:a}=this.getProps();a&&(t?this._adapter.updateOverflowItemCount(t):typeof r=="number"&&(e-r>0?this._adapter.updateOverflowItemCount(e-r):this._adapter.updateOverflowItemCount(0)))}updateIsFullTags(){const{isFullTags:e}=this.getStates();e||this._adapter.setState({isFullTags:!0})}handlePopoverClose(){this._adapter.emit("popoverClose")}handleSlotMouseEnter(){this._adapter.updateFocusIndex(-1)}}const RA={PREFIX:`${q}-select`,PREFIX_OPTION:`${q}-select-option`,PREFIX_GROUP:`${q}-select-group`},T5={SIZE_SET:["small","large","default"],POSITION_SET:mc.POSITION_SET,MODE_SELECT:"select",MODE_AUTOCOMPLETE:"autoComplete",STATUS:kg},Eq={LIST_HEIGHT:270},Vv=iX.PREFIX,Oq=Yg.TAG_SIZE,j8e=Yg.AVATAR_SHAPE;class X1 extends D.PureComponent{renderNTag(e,t){const{size:r,showPopover:a,popoverProps:i,onPlusNMouseEnter:o}=this.props;let s=x.createElement(ca,{closable:!1,size:r,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:o},"+",e);return a&&(s=x.createElement(di,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${Vv}-rest-group-popover`},i,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){const{maxTagCount:t,tagList:r,restCount:a}=this.props,i=a||r.length-t;let o=e;const s=e.slice(0,t),l=e.slice(t);let u=null;return i>0&&(u=this.renderNTag(i,l),s.push(u),o=s),o}renderAllTags(){const{tagList:e,size:t,mode:r,avatarShape:a,onTagClose:i}=this.props;return e.map(s=>{if(r==="custom")return s;const l=Object.assign({},s);return l.size||(l.size=t),l.avatarShape||(l.avatarShape=a),l.tagKey||(typeof l.children=="string"||typeof l.children=="number"?l.tagKey=l.children:l.tagKey=Math.random()),x.createElement(ca,Object.assign({},l,{key:l.tagKey,onClose:(u,c,d)=>{l.onClose&&l.onClose(u,c,d),i&&i(u,c,d)}}))})}render(){const{style:e,className:t,maxTagCount:r,size:a}=this.props,i=$({[`${Vv}-group`]:!0,[`${Vv}-group-max`]:r,[`${Vv}-group-small`]:a==="small",[`${Vv}-group-large`]:a==="large"},t),o=this.renderAllTags(),s=typeof r>"u"?o:this.renderMergeTags(o);return x.createElement("div",{style:e,className:i},s)}}X1.defaultProps={style:{},className:"",size:Oq[0],avatarShape:"square",onTagClose:()=>{},onPlusNMouseEnter:()=>{}};X1.propTypes={children:v.node,style:v.object,className:v.string,maxTagCount:v.number,restCount:v.number,tagList:v.array,size:v.oneOf(Oq),mode:v.string,onTagClose:v.func,showPopover:v.bool,popoverProps:v.object,avatarShape:v.oneOf(j8e)};var z8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const a=n.props;if(!n||!a)return null;const i=Object.assign(Object.assign({value:a.value,label:a.label||a.children||a.value,_show:!0,_selected:!1,_scrollIndex:t},a),{_parentGroup:e});return i._keyInJsx=r||n.key,i},B8e=n=>{let e=[],t=[];const r={label:"",children:[],_show:!1};let a=x.Children.toArray(n);a=a.filter(s=>s&&s.props);let i="",o=-1;return a.forEach(s=>{if(s.type.isSelectOption){i="option",o++;const l=rF(s,void 0,o);r.children.push(l),t.push(l)}else if(s.type.isSelectOptionGroup){i="group";let l=s.props,{children:u}=l,c=z8e(l,["children"]),d=[];Array.isArray(u)?d=u.map(p=>p.key):d.push(u.key),u=x.Children.toArray(u);const f=u.map((p,g)=>{let m=p.key;return d[g]===null&&(m=s.key+""+p.key),o++,rF(p,c,o,m)}),h=Object.assign(Object.assign({},s.props),{children:f,key:s.key});e.push(h),t=t.concat(f)}else _n(!0,"[Semi Select] The children of `Select` should be `Select.Option` or `Select.OptionGroup`")}),i==="option"&&(e=[r]),{optionGroups:e,options:t}},H8e=n=>{let{index:e,data:t,style:r}=n;const{visibleOptions:a,renderOption:i}=t,o=a[e];return i(o,e,r)},Iq=H8e;var aF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ax.createElement("div",{className:S,"x-semi-prop":"emptyContent"},l||T.emptyText));if(typeof m=="function")return m(Object.assign({disabled:r,focused:c,selected:i,style:h,label:o,value:a,inputValue:y,onMouseEnter:T=>p(T),onClick:T=>this.onClick(Object.assign({value:a,label:o,children:t},_),T)},_));const w={searchWords:y,sourceString:t,option:{highlightClassName:`${g}-keyword`}};return x.createElement("div",{className:S,onClick:T=>{this.onClick(Object.assign({value:a,label:o,children:t},_),T)},onMouseEnter:T=>p&&p(T),role:"option",id:b,"aria-selected":i?"true":"false","aria-disabled":r?"true":"false",style:h},d?x.createElement("div",{className:C},x.createElement(lg,null)):null,Xe(t)?x.createElement("div",{className:`${g}-text`},this.renderOptionContent({children:t,config:w,inputValue:y,prefixCls:g})):t)}};nx.isSelectOption=!0;nx.propTypes={children:v.node,disabled:v.bool,value:v.oneOfType([v.string,v.number]),selected:v.bool,label:v.node,empty:v.bool,emptyContent:v.node,onSelect:v.func,focused:v.bool,showTick:v.bool,className:v.string,style:v.object,onMouseEnter:v.func,prefixCls:v.string,renderOptionItem:v.func,inputValue:v.string};nx.defaultProps={prefixCls:RA.PREFIX_OPTION};const l2=nx,U8e=RA.PREFIX_GROUP;class LA extends Pe{render(){const{label:e,className:t,style:r}=this.props,a=$(t,{[U8e]:!0});return!e&&typeof e!="number"?null:x.createElement("div",{className:a,style:r},e)}}LA.isSelectOptionGroup=!0;LA.propTypes={children:v.oneOfType([v.array,v.node]),label:v.node,className:v.string,style:v.object};const Pq=LA;var W8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.optionContainerEl={current:t},this.handleInputChange=(t,r)=>this.foundation.handleInputChange(t,r),this.getTagItem=(t,r,a)=>{const{size:i,disabled:o}=this.props,s=t[0],{value:l}=t[1],u=t[1].disabled||o,c=(p,g)=>{g&&typeof g.preventDefault=="function"&&g.preventDefault(),this.foundation.removeTag({label:s,value:l})},{content:d,isRenderInTag:f}=a(t[1],{index:r,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c};return f?x.createElement(ca,Object.assign({},h,{color:"white",size:i||"large",key:l,tabIndex:-1}),d):x.createElement(D.Fragment,{key:l},d)},this.state={isOpen:!1,isFocus:!1,options:[],selections:new Map,dropdownMinWidth:null,optionKey:G8e,inputValue:"",showInput:!1,focusIndex:e.defaultActiveFirstOption?0:-1,keyboardEventSet:{},optionGroups:[],isHovering:!1,isFocusInContainer:!1,isFullTags:!1,overflowItemCount:0},this.selectOptionListID="",this.selectID="",this.virtualizeListRef=x.createRef(),this.inputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.optionContainerEl=x.createRef(),this.clickOutsideHandler=null,this.onSelect=this.onSelect.bind(this),this.onClear=this.onClear.bind(this),this.onMouseEnter=this.onMouseEnter.bind(this),this.onMouseLeave=this.onMouseLeave.bind(this),this.renderOption=this.renderOption.bind(this),this.onKeyPress=this.onKeyPress.bind(this),this.eventManager=new FK,this.foundation=new V8e(this.adapter)}get adapter(){var e=this;const t={registerKeyDown:i=>{const o={onKeyDown:i};this.setState({keyboardEventSet:o})},unregisterKeyDown:()=>{this.setState({keyboardEventSet:{}})},updateFocusIndex:i=>{this.setState({focusIndex:i})},scrollToFocusOption:()=>{}},r={updateInputValue:i=>{this.setState({inputValue:i})},toggleInputShow:(i,o)=>{this.setState({showInput:i},()=>{o()})},focusInput:()=>{const{preventScroll:i}=this.props;this.inputRef&&this.inputRef.current&&this.inputRef.current.focus({preventScroll:i})}},a={notifyMaxLimit:i=>this.props.onExceed(i),getMaxLimit:()=>this.props.max,registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l);c&&!c.contains(s.target)&&u&&!u.contains(s.target)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{this.clickOutsideHandler&&(document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null)},rePositionDropdown:()=>{let{optionKey:i}=this.state;i=i+1,this.setState({optionKey:i})},notifyDeselect:(i,o)=>{delete o._parentGroup,this.props.onDeselect(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{on:(i,o)=>this.eventManager.on(i,o),off:i=>this.eventManager.off(i),once:(i,o)=>this.eventManager.once(i,o),emit:i=>this.eventManager.emit(i),getOptionsFromChildren:function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.props.children,o=[],s=[];const{optionList:l}=e.props;if(l&&l.length)s=l.map((u,c)=>Object.assign({_show:!0,_selected:!1,_scrollIndex:c},u)),o[0]={children:s,label:""};else{const u=B8e(i);o=u.optionGroups,s=u.options}return e.setState({optionGroups:o}),s},updateOptions:i=>{this.setState({options:i})},openMenu:()=>{this.setState({isOpen:!0})},closeMenu:()=>{this.setState({isOpen:!1})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},updateSelection:i=>{this.setState({selections:i})},getSelections:()=>new Map(this.state.selections),notifyChange:i=>{this.props.onChange(i)},notifySelect:(i,o)=>{delete o._parentGroup,this.props.onSelect(i,o)},notifyDropdownVisibleChange:i=>{this.props.onDropdownVisibleChange(i)},notifySearch:(i,o)=>{this.props.onSearch(i,o)},notifyCreate:i=>{this.props.onCreate(i)},notifyMouseEnter:i=>{this.props.onMouseEnter(i)},notifyMouseLeave:i=>{this.props.onMouseLeave(i)},notifyFocus:i=>{this.props.onFocus(i)},notifyBlur:i=>{this.props.onBlur(i)},notifyClear:()=>{this.props.onClear()},notifyListScroll:i=>{this.props.onListScroll(i)},updateHovering:i=>{this.setState({isHovering:i})},updateFocusState:i=>{this.setState({isFocus:i})},updateOverflowItemCount:i=>{this.setState({overflowItemCount:i})},focusTrigger:()=>{try{const{preventScroll:i}=this.props;this.triggerRef.current.focus({preventScroll:i})}catch{}},getContainer:()=>this.optionContainerEl&&this.optionContainerEl.current,getFocusableElements:i=>HK(i),getActiveElement:()=>BK(),setIsFocusInContainer:i=>{this.setState({isFocusInContainer:i})},getIsFocusInContainer:()=>this.state.isFocusInContainer,updateScrollTop:i=>{let o=`.${Me}-option-selected`;i!==void 0&&(o=`.${Me}-option:nth-child(${i})`);let s=document.querySelector(`#${Me}-${this.selectOptionListID} ${o}`);if(Array.isArray(s)&&(s=s[0]),s){const l=s.parentNode;l.scrollTop=s.offsetTop-l.offsetTop-l.clientHeight/2+s.clientHeight/2}}})}componentDidMount(){this.foundation.init(),this.selectOptionListID=Lf(),this.selectID=this.props.id||Lf()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e,t){const r=x.Children.toArray(e.children).map(o=>o.key),a=x.Children.toArray(this.props.children).map(o=>o.key);let i=!1;(!Ke(r,a)||!Ke(e.optionList,this.props.optionList))&&(i=!0,this.foundation.handleOptionListChange()),(!Ke(this.props.value,e.value)||i)&&("value"in this.props?this.foundation.handleValueChange(this.props.value):this.foundation.handleOptionListChangeHadDefaultValue())}renderInput(){const{size:e,multiple:t,disabled:r,inputProps:a,filter:i}=this.props,o=H(a,"className"),s=$(`${Me}-input`,{[`${Me}-input-single`]:!t,[`${Me}-input-multiple`]:t},o),{inputValue:l,focusIndex:u}=this.state,c=Object.assign({value:l,disabled:r,className:s,onChange:this.handleInputChange},a);let d={};return t&&(d={width:l?`${l.length*16}px`:"2px"},c.style=d),x.createElement(Ri,Object.assign({ref:this.inputRef,size:e,"aria-activedescendant":u!==-1?`${this.selectID}-option-${u}`:"",onFocus:f=>{t&&i&&this.setState({isFocus:!0}),f.stopPropagation()},onBlur:f=>this.foundation.handleInputBlur(f)},c))}close(){this.foundation.close()}open(){this.foundation.open()}clearInput(){this.foundation.clearInput()}selectAll(){this.foundation.selectAll()}deselectAll(){this.foundation.clearSelected()}focus(){this.foundation.focus()}onSelect(e,t,r){this.foundation.onSelect(e,t,r)}onClear(e){e.nativeEvent.stopImmediatePropagation(),this.foundation.handleClearClick(e)}search(e,t){this.handleInputChange(e,t)}renderEmpty(){return x.createElement(l2,{empty:!0,emptyContent:this.props.emptyContent})}renderLoading(){const e=`${Me}-loading-wrapper`;return x.createElement("div",{className:e},x.createElement(Jl,null))}renderOption(e,t,r){const{focusIndex:a,inputValue:i}=this.state,{renderOptionItem:o}=this.props;let s;const l=t===a;let u=r||{};return e.style&&(u=Object.assign(Object.assign({},u),e.style)),e._inputCreateOnly?s=this.renderCreateOption(e,l,t,r):("key"in e&&(e._keyInOptionList=e.key),s=x.createElement(l2,Object.assign({showTick:!0},e,{selected:e._selected,onSelect:(c,d)=>this.onSelect(c,t,d),focused:l,onMouseEnter:()=>this.onOptionHover(t),style:u,key:e._keyInOptionList||e._keyInJsx||e.label+e.value+t,renderOptionItem:o,inputValue:i,semiOptionId:`${this.selectID}-option-${t}`}),e.label)),s}renderCreateOption(e,t,r,a){const{renderCreateItem:i}=this.props;if(typeof i>"u")return x.createElement(l2,Object.assign({key:e.key||e.label+e.value,onSelect:(l,u)=>this.onSelect(l,r,u),onMouseEnter:()=>this.onOptionHover(r),showTick:!0},e,{focused:t,style:a}),x.createElement(hn,{componentName:"Select"},l=>x.createElement(x.Fragment,null,x.createElement("span",{className:`${Me}-create-tips`},l.createText),e.value)));const o=i(e.value,t,a);return x.createElement("div",{role:"button","aria-label":"Use the input box to create an optional item",onClick:s=>this.onSelect(e,r,s),key:e.key||e.label},o)}onOptionHover(e){this.foundation.handleOptionMouseEnter(e)}renderWithGroup(e){const t=[],r=new Map;return e.forEach((a,i)=>{const o=a._parentGroup,s=this.renderOption(a,i);if(o&&!r.has(o.label)){const l=x.createElement(Pq,Object.assign({},o,{key:o.label}));r.set(o.label,!0),t.push(l)}t.push(s)}),t}renderVirtualizeList(e){const{virtualize:t}=this.props,{direction:r}=this.context,{height:a,width:i,itemSize:o}=t;return x.createElement(jw,{ref:this.virtualizeListRef,height:a||Eq.LIST_HEIGHT,itemCount:e.length,itemSize:o,itemData:{visibleOptions:e,renderOption:this.renderOption},width:i||"100%",style:{direction:r}},Iq)}renderOptions(e){const{dropdownMinWidth:t,options:r,selections:a}=this.state,{maxHeight:i,dropdownClassName:o,dropdownStyle:s,outerTopSlot:l,innerTopSlot:u,outerBottomSlot:c,innerBottomSlot:d,loading:f,virtualize:h,multiple:p,emptyContent:g}=this.props,m=r.filter(C=>C._show);let y=this.renderWithGroup(m);h&&(y=this.renderVirtualizeList(m));const b=Object.assign({minWidth:t},s),_=$({[`${Me}-option-list`]:!0,[`${Me}-option-list-chosen`]:a.size}),S=!r.length||!r.some(C=>C._show);return x.createElement("div",{id:`${Me}-${this.selectOptionListID}`,className:$({[`${Me}-option-list-wrapper`]:!(S&&g===null)},o),style:b,ref:this.setOptionContainerEl,onKeyDown:C=>this.foundation.handleContainerKeyDown(C)},l?x.createElement("div",{className:`${Me}-option-list-outer-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},l):null,x.createElement("div",{style:{maxHeight:`${i}px`},className:_,role:"listbox","aria-multiselectable":p,onScroll:C=>this.foundation.handleListScroll(C)},u?x.createElement("div",{className:`${Me}-option-list-inner-top-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},u):null,f?this.renderLoading():S?this.renderEmpty():y,d?x.createElement("div",{className:`${Me}-option-list-inner-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},d):null),c?x.createElement("div",{className:`${Me}-option-list-outer-bottom-slot`,onMouseEnter:()=>this.foundation.handleSlotMouseEnter()},c):null)}renderSingleSelection(e,t){let{renderSelectedItem:r}=this.props;const{placeholder:a}=this.props,{showInput:i,inputValue:o}=this.state;let s="";const l=[...e];if(typeof r>"u"&&(r=d=>d.label),l.length){const d=l[0][1];s=r(d)}const u=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!s&&s!==0,[`${Me}-selection-text-hide`]:o&&i,[`${Me}-selection-text-inactive`]:!o&&i}),c=`${Me}-content-wrapper`;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},x.createElement("span",{className:u,"x-semi-prop":"placeholder"},s||s===0?s:a),t&&i?this.renderInput():null))}renderTag(e,t,r){const{size:a,disabled:i}=this.props;let{renderSelectedItem:o}=this.props;const s=e[0],{value:l}=e[1],u=e[1].disabled||i,c=(g,m)=>{m&&typeof m.preventDefault=="function"&&m.preventDefault(),this.foundation.removeTag({label:s,value:l})};typeof o>"u"&&(o=g=>({isRenderInTag:!0,content:g.label}));const{content:d,isRenderInTag:f}=o(e[1],{index:t,disabled:u,onClose:c}),h={disabled:u,closable:!u,onClose:c},p=r&&!ke(this.props.renderSelectedItem)?x.createElement(Dw,{size:"small",ellipsis:{rows:1,showTooltip:{type:"popover",opts:{style:{width:"auto",fontSize:12}}}}},d):d;return f?x.createElement(ca,Object.assign({},h,{color:"white",size:a||"large",key:l,style:{maxWidth:"100%"}}),p):x.createElement(D.Fragment,{key:l},p)}renderNTag(e,t){const{size:r,showRestTagsPopover:a,restTagsPopoverProps:i}=this.props;let o=x.createElement(ca,{closable:!1,size:r||"large",color:"grey",className:`${Me}-content-wrapper-collapse-tag`,key:`_+${e}`,style:{marginRight:0,flexShrink:0}},"+",e);return a&&(o=x.createElement(di,Object.assign({showArrow:!0,content:x.createElement(BZ,{spacing:2,wrap:!0,style:{maxWidth:"400px"}},t.map((s,l)=>this.renderTag(s,l))),trigger:"hover",position:"top",autoAdjustOverflow:!0},i,{key:`_+${e}_Popover`}),o)),o}renderOverflow(e,t){return e.length&&e[0]?this.renderTag(e[0],t,!0):null}handleOverflow(e){const{overflowItemCount:t,selections:r}=this.state,{maxTagCount:a}=this.props,i=r.size-a>0?r.size-a+e.length-1:e.length-1;t!==i&&this.foundation.updateOverflowItemCount(r.size,i)}renderCollapsedTags(e,t){const{overflowItemCount:r}=this.state,a=typeof t=="number"?e.slice(0,t):e;return x.createElement("div",{className:`${Me}-content-wrapper-collapse`},x.createElement(k8e,{items:a,key:String(e.length),overflowRenderer:i=>this.renderOverflow(i,t-1),onOverflow:i=>this.handleOverflow(i),visibleItemRenderer:(i,o)=>this.renderTag(i,o)}),r>0&&this.renderNTag(r,e.slice(e.length-r)))}renderOneLineTags(e,t){let{renderSelectedItem:r}=this.props;const{showRestTagsPopover:a,restTagsPopoverProps:i,maxTagCount:o}=this.props,{isFullTags:s}=this.state;let l;if(typeof r>"u"&&(r=u=>({isRenderInTag:!0,content:u.label})),a){const c=(s?e:e.slice(0,o)).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:s?void 0:e.length-o,size:"large",mode:"custom",showPopover:a,popoverProps:i,onPlusNMouseEnter:()=>{this.foundation.updateIsFullTags()}})}else{const c=e.slice(0,o).map((d,f)=>this.getTagItem(d,f,r));l=x.createElement(X1,{tagList:c,maxTagCount:t,restCount:e.length-o,size:"large",mode:"custom"})}return l}renderMultipleSelection(e,t){this.props;const{placeholder:r,maxTagCount:a,expandRestTagsOnClick:i,ellipsisTrigger:o}=this.props,{inputValue:s,isOpen:l}=this.state,u=[...e],c=$({[`${Me}-content-wrapper`]:!0,[`${Me}-content-wrapper-one-line`]:a&&!l,[`${Me}-content-wrapper-empty`]:!u.length}),d=$({[`${Me}-selection-text`]:!0,[`${Me}-selection-placeholder`]:!u.length,[`${Me}-selection-text-hide`]:u&&u.length}),f=r&&!s?x.createElement("span",{className:d},r):null,h=u.length>a?a:void 0,p=!a,g=o?this.renderCollapsedTags(u,h):this.renderOneLineTags(u,h),m=p||i&&l?u.map((y,b)=>this.renderTag(y,b)):g;return x.createElement(x.Fragment,null,x.createElement("div",{className:c},u&&u.length?m:f,t?this.renderInput():null))}onMouseEnter(e){this.foundation.handleMouseEnter(e)}onMouseLeave(e){this.foundation.handleMouseLeave(e)}onKeyPress(e){this.foundation.handleKeyPress(e)}handlePopoverVisibleChange(e){const{virtualize:t}=this.props,{selections:r}=this.state;if(e)if(t){let a=-1;if(r.forEach(i=>{const o=H(i,"_scrollIndex");Rn(o)&&o>=0&&(a=a!==-1&&athis.foundation.removeTag(U),onClear:this.onClear,disabled:t,triggerRender:g,placeholder:p,componentName:"Select",componentProps:Object.assign({},this.props)}):[x.createElement(D.Fragment,{key:"prefix"},f||h?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:$(`${Me}-selection`)},r?this.renderMultipleSelection(S,R):this.renderSingleSelection(S,R))),x.createElement(D.Fragment,{key:"clearicon"},k?x.createElement("div",{className:$(`${Me}-clear`),onClick:this.onClear},z):N),x.createElement(D.Fragment,{key:"suffix"},d?this.renderSuffix():null)],j=t||R&&I||R&&r?-1:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":t,"aria-expanded":C,"aria-controls":`${Me}-${this.selectOptionListID}`,"aria-haspopup":"listbox","aria-label":S.size?"selected":"","aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"],className:L,ref:U=>this.triggerRef.current=U,onClick:U=>this.foundation.handleClick(U),style:i,id:this.selectID,tabIndex:j,"aria-activedescendant":P!==-1?`${this.selectID}-option-${P}`:"",onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onFocus:U=>this.foundation.handleTriggerFocus(U),onBlur:U=>this.foundation.handleTriggerBlur(U),onKeyPress:this.onKeyPress},w,this.getDataAttr(_)),F)}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",{children:r,position:a=t,zIndex:i,getPopupContainer:o,motion:s,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,spacing:d,stopPropagation:f,dropdownMargin:h}=this.props,{isOpen:p,optionKey:g}=this.state,m=this.renderOptions(r),y=this.renderSelection();return x.createElement(di,{getPopupContainer:o,motion:s,margin:h,autoAdjustOverflow:l,mouseLeaveDelay:u,mouseEnterDelay:c,zIndex:i,ref:this.optionsRef,content:m,visible:p,trigger:"custom",rePosKey:g,position:a,spacing:d,stopPropagation:f,disableArrowKeyDown:!0,onVisibleChange:b=>this.handlePopoverVisibleChange(b),afterClose:()=>this.foundation.handlePopoverClose()},y)}}tv.contextType=Fr;tv.Option=l2;tv.OptGroup=Pq;tv.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,autoFocus:v.bool,autoClearSearchValue:v.bool,borderless:v.bool,children:v.node,clearIcon:v.node,defaultValue:v.oneOfType([v.string,v.number,v.array,v.object]),ellipsisTrigger:v.bool,value:v.oneOfType([v.string,v.number,v.array,v.object]),placeholder:v.node,onChange:v.func,multiple:v.bool,filter:v.oneOfType([v.func,v.bool]),max:v.number,maxTagCount:v.number,maxHeight:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,size:v.oneOf(T5.SIZE_SET),disabled:v.bool,emptyContent:v.node,expandRestTagsOnClick:v.bool,onDropdownVisibleChange:v.func,zIndex:v.number,position:v.oneOf(T5.POSITION_SET),onSearch:v.func,getPopupContainer:v.func,dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),outerTopSlot:v.node,innerTopSlot:v.node,inputProps:v.object,outerBottomSlot:v.node,innerBottomSlot:v.node,optionList:v.array,dropdownMatchSelectWidth:v.bool,loading:v.bool,defaultOpen:v.bool,validateStatus:v.oneOf(T5.STATUS),defaultActiveFirstOption:v.bool,triggerRender:v.func,stopPropagation:v.bool,motion:v.bool,onChangeWithObject:v.bool,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,showClear:v.bool,showArrow:v.bool,renderSelectedItem:v.func,allowCreate:v.bool,renderCreateItem:v.func,onMouseEnter:v.func,onMouseLeave:v.func,clickToHide:v.bool,onExceed:v.func,onCreate:v.func,remote:v.bool,onDeselect:v.func,onSelect:v.func,autoAdjustOverflow:v.bool,mouseEnterDelay:v.number,mouseLeaveDelay:v.number,spacing:v.oneOfType([v.number,v.object]),onBlur:v.func,onFocus:v.func,onClear:v.func,virtualize:v.object,renderOptionItem:v.func,onListScroll:v.func,arrowIcon:v.node,preventScroll:v.bool};tv.defaultProps={stopPropagation:!0,motion:!0,borderless:!1,zIndex:ci.DEFAULT_Z_INDEX,filter:!1,multiple:!1,disabled:!1,defaultOpen:!1,allowCreate:!1,placeholder:"",onDropdownVisibleChange:B,onChangeWithObject:!1,onChange:B,onSearch:B,onMouseEnter:B,onMouseLeave:B,onDeselect:B,onSelect:B,onCreate:B,onExceed:B,onFocus:B,onBlur:B,onClear:B,onListScroll:B,maxHeight:Eq.LIST_HEIGHT,dropdownMatchSelectWidth:!0,defaultActiveFirstOption:!0,showArrow:!0,showClear:!1,remote:!1,autoAdjustOverflow:!0,autoClearSearchValue:!0,arrowIcon:x.createElement(kf,{"aria-label":""}),showRestTagsPopover:!1,restTagsPopoverProps:{},expandRestTagsOnClick:!1,ellipsisTrigger:!1};const g0=tv;var iF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ao+1):[]},this.foundation=new $8e(this.adapter),this.renderDefaultPage=this.renderDefaultPage.bind(this),this.renderSmallPage=this.renderSmallPage.bind(this),_n(!!(e.showSizeChanger&&e.hideOnSinglePage),"[Semi Pagination] You should not use showSizeChanger and hideOnSinglePage in ths same time. At this time, hideOnSinglePage no longer takes effect, otherwise there may be a problem that the switch entry disappears")}get adapter(){return Object.assign(Object.assign({},super.adapter),{setPageList:e=>{const{pageList:t,restLeftPageList:r,restRightPageList:a}=e;this.setState({pageList:t,restLeftPageList:r,restRightPageList:a})},setDisabled:(e,t)=>{this.setState({prevDisabled:e,nextDisabled:t})},updateTotal:e=>this.setState({total:e}),updatePageSize:e=>this.setState({pageSize:e}),updateQuickJumpPage:e=>this.setState({quickJumpPage:e}),updateAllPageNumbers:e=>this.setState({allPageNumbers:e}),setCurrentPage:e=>{this.setState({currentPage:e})},registerKeyDownHandler:e=>{document.addEventListener("keydown",e)},unregisterKeyDownHandler:e=>{document.removeEventListener("keydown",e)},notifyPageChange:e=>{this.props.onPageChange(e)},notifyPageSizeChange:e=>{this.props.onPageSizeChange(e)},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}componentDidUpdate(e){const t={currentPage:this.props.currentPage,total:this.props.total,pageSize:this.props.pageSize};let r=!1,a=!1;e.currentPage!==this.props.currentPage&&(r=!0),e.total!==this.props.total&&(r=!0,a=!0),e.pageSize!==this.props.pageSize&&(r=!0,a=!0),r&&this.foundation.updatePage(t.currentPage,t.total,t.pageSize),a&&this.foundation.updateAllPageNumbers(t.total,t.pageSize)}renderPrevBtn(){const{prevText:e,disabled:t}=this.props,{prevDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-prev`]:!0,[`${ln}-item-disabled`]:a});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Previous",onClick:o=>!a&&this.foundation.goPrev(o),className:i,"x-semi-prop":"prevText"},e||x.createElement(N7,{size:"large"}))}renderNextBtn(){const{nextText:e,disabled:t}=this.props,{nextDisabled:r}=this.state,a=r||t,i=$({[`${ln}-item`]:!0,[`${ln}-item-disabled`]:a,[`${ln}-next`]:!0});return x.createElement("li",{role:"button","aria-disabled":!!a,"aria-label":"Next",onClick:o=>!a&&this.foundation.goNext(o),className:i,"x-semi-prop":"nextText"},e||x.createElement(sg,{size:"large"}))}renderPageSizeSwitch(e){const{direction:t}=this.context,r=t==="rtl"?"bottomRight":"bottomLeft",{showSizeChanger:a,popoverPosition:i=r,disabled:o,popoverZIndex:s}=this.props,{pageSize:l}=this.state,u=$(`${ln}-switch`);if(!a)return null;const c=this.foundation.pageSizeInOpts(),d=e.pageSize,f=c.map(h=>x.createElement(Y8e,{value:h,key:h},x.createElement("span",null,d.replace("${pageSize}",h.toString()))));return x.createElement("div",{className:u},x.createElement(g0,{"aria-label":"Page size selector",disabled:o,onChange:h=>this.foundation.changePageSize(h),value:l,key:l,position:i||"bottomRight",clickToHide:!0,zIndex:s,dropdownClassName:`${ln}-select-dropdown`},f))}renderQuickJump(e){const{showQuickJumper:t,disabled:r}=this.props,{quickJumpPage:a,total:i,pageSize:o}=this.state;if(!t)return null;const l=this.foundation._getTotalPageNumber(i,o)===1||r,u=$({[`${ln}-quickjump`]:!0,[`${ln}-quickjump-disabled`]:l});return x.createElement("div",{className:u},x.createElement("span",null,e.jumpTo),x.createElement(Tq,{value:a,className:`${ln}-quickjump-input-number`,hideButtons:!0,disabled:l,onBlur:c=>this.foundation.handleQuickJumpBlur(),onEnterPress:c=>this.foundation.handleQuickJumpEnterPress(c.target.value),onChange:c=>this.foundation.handleQuickJumpNumberChange(c)}),x.createElement("span",null,e.page))}renderPageList(){const{pageList:e,currentPage:t,restLeftPageList:r,restRightPageList:a}=this.state,{popoverPosition:i,popoverZIndex:o,disabled:s}=this.props;return e.map((l,u)=>{const c=$(`${ln}-item`,{[`${ln}-item-active`]:t===l,[`${ln}-item-all-disabled`]:s,[`${ln}-item-all-disabled-active`]:t===l&&s}),d=x.createElement("li",{key:`${l}${u}`,onClick:()=>!s&&this.foundation.goPage(l,u),className:c,"aria-label":l==="..."?"More":`Page ${l}`,"aria-current":t===l?"page":!1},l);if(l==="..."&&!s){let f;return u<3?f=r:f=a,x.createElement(di,{trigger:"hover",content:this.renderRestPageList(f),key:`${l}${u}`,position:i,zIndex:o},d)}return d})}renderRestPageList(e){const{direction:t}=this.context,r=$(`${ln}-rest-item`),a=e.length,i=l=>{const{index:u,style:c}=l,d=e[u];return x.createElement("div",{role:"listitem",key:`${d}${u}`,className:r,onClick:()=>this.foundation.goPage(d,u),style:c,"aria-label":`${d}`},d)},o=32,s=a>=5?o*5:o*a;return x.createElement(jw,{className:`${ln}-rest-list`,itemData:e,itemSize:o,width:78,itemCount:a,height:s,style:{direction:t}},i)}renderSmallPageSelect(e){const t=this.state.allPageNumbers,r=this.renderRestPageList(t);return x.createElement(di,{content:r},e)}renderSmallPage(e){const t=this.props,{className:r,style:a,hideOnSinglePage:i,hoverShowPageSelect:o,showSizeChanger:s,disabled:l}=t,u=iF(t,["className","style","hideOnSinglePage","hoverShowPageSelect","showSizeChanger","disabled"]),c=$(`${ln}-small`,ln,r,{[`${ln}-disabled`]:l}),{currentPage:d,total:f,pageSize:h}=this.state,p=Math.ceil(f/h);if(p<2&&i&&!s)return null;const g=$({[`${ln}-item`]:!0,[`${ln}-item-small`]:!0,[`${ln}-item-all-disabled`]:l}),m=x.createElement("div",{className:g},d,"/",p," ");return x.createElement("div",Object.assign({className:c,style:a},this.getDataAttr(u)),this.renderPrevBtn(),o&&!l?this.renderSmallPageSelect(m):m,this.renderNextBtn(),this.renderQuickJump(e))}renderDefaultPage(e){const{total:t,pageSize:r}=this.state,a=this.props,{showTotal:i,className:o,style:s,hideOnSinglePage:l,showSizeChanger:u,disabled:c}=a,d=iF(a,["showTotal","className","style","hideOnSinglePage","showSizeChanger","disabled"]),f=$(o,`${ln}`,{[`${ln}-disabled`]:c}),h=`${ln}-total`;if(Math.ceil(t/r)<2&&l&&!u)return null;const g=Math.ceil(t/r),m=e.total.replace("${total}",g.toString());return x.createElement("ul",Object.assign({className:f,style:s},this.getDataAttr(d)),i?x.createElement("span",{className:h},m):null,this.renderPrevBtn(),this.renderPageList(),this.renderNextBtn(),this.renderPageSizeSwitch(e),this.renderQuickJump(e))}render(){const{size:e}=this.props;return x.createElement(hn,{componentName:"Pagination"},t=>e==="small"?this.renderSmallPage(t):this.renderDefaultPage(t))}}rx.contextType=Fr;rx.propTypes={total:v.number,showTotal:v.bool,pageSize:v.number,pageSizeOpts:v.array,size:v.string,currentPage:v.number,defaultCurrentPage:v.number,onPageChange:v.func,onPageSizeChange:v.func,onChange:v.func,prevText:v.node,nextText:v.node,showSizeChanger:v.bool,popoverZIndex:v.number,popoverPosition:v.string,style:v.object,className:v.string,hideOnSinglePage:v.bool,hoverShowPageSelect:v.bool,showQuickJumper:v.bool,disabled:v.bool};rx.defaultProps={total:1,popoverZIndex:ci.DEFAULT_Z_INDEX,showTotal:!1,pageSize:null,pageSizeOpts:MA.PAGE_SIZE_OPTION,defaultCurrentPage:1,size:"default",onPageChange:B,onPageSizeChange:B,onChange:B,showSizeChanger:!1,className:"",hideOnSinglePage:!1,showQuickJumper:!1,disabled:!1};const Dq={PREFIX:`${q}-popconfirm`,POPOVER:`${q}-popconfirm-popover`},K8e={SPACING:4,DEFAULT_Z_INDEX:1030};class Z8e extends ze{init(){}destroy(){}handleCancel(e){const t=this._adapter.notifyCancel(e);$f(t)?(this._adapter.updateCancelLoading(!0),t.then(r=>{this.handleVisibleChange(!1),this._adapter.updateCancelLoading(!1)},r=>{this._adapter.updateCancelLoading(!1)})):this.handleVisibleChange(!1)}handleConfirm(e){const t=this._adapter.notifyConfirm(e);$f(t)?(this._adapter.updateConfirmLoading(!0),t.then(r=>{this._adapter.updateConfirmLoading(!1),this.handleVisibleChange(!1)},r=>{this._adapter.updateConfirmLoading(!1)})):this.handleVisibleChange(!1)}handleClickOutSide(e){this._adapter.notifyClickOutSide(e)}handleVisibleChange(e){this._isControlledComponent("visible")||this._adapter.setVisible(e),e?this.handleFocusOperateButton():this._adapter.focusPrevFocusElement(),this._adapter.notifyVisibleChange(e)}handleFocusOperateButton(){const{cancelButtonProps:e,okButtonProps:t}=this._adapter.getProps();H(e,"autoFocus")&&!H(e,"disabled")?this._adapter.focusCancelButton():H(t,"autoFocus")&&!H(t,"disabled")&&this._adapter.focusOkButton()}}var X8e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:r}=t;const{content:a,title:i,className:o,style:s,cancelType:l,icon:u,prefixCls:c,showCloseIcon:d}=this.props,{direction:f}=this.context,h=$(c,o,{[`${c}-rtl`]:f==="rtl"}),p=i!==null&&typeof i<"u",g=!(a===null||typeof a>"u"),m=x.isValidElement(u),y=$({[`${c}-body`]:!0,[`${c}-body-withIcon`]:m});return x.createElement("div",{className:h,onClick:this.stopImmediatePropagation,style:s},x.createElement("div",{className:`${c}-inner`},x.createElement("div",{className:`${c}-header`},m?x.createElement("i",{className:`${c}-header-icon`,"x-semi-prop":"icon"},u):null,x.createElement("div",{className:`${c}-header-body`},p?x.createElement("div",{className:`${c}-header-title`,"x-semi-prop":"title"},i):null),d?x.createElement(Jt,{className:`${c}-btn-close`,icon:x.createElement(Ky,null),size:"small",theme:"borderless",type:l,onClick:this.handleCancel}):null),g?x.createElement("div",{className:y,"x-semi-prop":"content"},ke(a)?a({initialFocusRef:r}):a):null,x.createElement("div",{className:`${c}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:e.defaultVisible||!1},this.foundation=new Z8e(this.adapter),this.footerRef=x.createRef(),this.popoverRef=x.createRef()}static getDerivedStateFromProps(e,t){const r={},{hasOwnProperty:a}=Object.prototype;return a.call(e,"visible")&&(r.visible=e.visible),r}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:e=>this.setState({visible:e}),updateConfirmLoading:e=>this.setState({confirmLoading:e}),updateCancelLoading:e=>this.setState({cancelLoading:e}),notifyConfirm:e=>this.props.onConfirm(e),notifyCancel:e=>this.props.onCancel(e),notifyVisibleChange:e=>this.props.onVisibleChange(e),notifyClickOutSide:e=>this.props.onClickOutSide(e),focusCancelButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=cancel]");r==null||r.focus({preventScroll:!0})},focusOkButton:()=>{var e,t;const r=(t=(e=this.footerRef)===null||e===void 0?void 0:e.current)===null||t===void 0?void 0:t.querySelector("[data-type=ok]");r==null||r.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var e;(e=this.popoverRef.current)===null||e===void 0||e.focusTrigger()}})}renderControls(){const{okText:e,cancelText:t,okType:r,cancelType:a,cancelButtonProps:i,okButtonProps:o}=this.props,{cancelLoading:s,confirmLoading:l}=this.state;return x.createElement(hn,{componentName:"Popconfirm"},(u,c)=>x.createElement(x.Fragment,null,x.createElement(Jt,Object.assign({"data-type":"cancel",type:a,onClick:this.handleCancel,loading:s},fr(i,"autoFocus")),t||H(u,"cancel")),x.createElement(Jt,Object.assign({"data-type":"ok",type:r,theme:"solid",onClick:this.handleConfirm,loading:l},fr(o,"autoFocus")),e||H(u,"confirm"))))}render(){const{direction:e}=this.context,t=e==="rtl"?"bottomRight":"bottomLeft",r=this.props,{className:a,prefixCls:i,disabled:o,children:s,style:l,position:u=t}=r,c=X8e(r,["className","prefixCls","disabled","children","style","position"]);if(o)return s;const{visible:d}=this.state,f={onVisibleChange:this.handleVisibleChange,className:Dq.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(f.trigger="custom"),x.createElement(di,Object.assign({ref:this.popoverRef},c,{content:h=>{let{initialFocusRef:p}=h;return this.renderConfirmPopCard({initialFocusRef:p})},visible:d,position:u},f),s)}}nv.contextType=Fr;nv.propTypes={motion:v.oneOfType([v.bool,v.func,v.object]),disabled:v.bool,content:v.oneOfType([v.node,v.func]),title:v.any,prefixCls:v.string,className:v.string,style:v.object,icon:v.oneOfType([v.string,v.node]),okText:v.string,okType:v.string,cancelText:v.string,cancelType:v.string,onCancel:v.func,onConfirm:v.func,onClickOutSide:v.func,onVisibleChange:v.func,visible:v.bool,defaultVisible:v.bool,okButtonProps:v.object,cancelButtonProps:v.object,stopPropagation:v.oneOfType([v.bool,v.string]),showCloseIcon:v.bool,zIndex:v.number,trigger:v.string,position:v.string};nv.defaultProps={stopPropagation:!0,trigger:"click",onVisibleChange:B,disabled:!1,icon:x.createElement(Ow,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:Dq.PREFIX,zIndex:K8e.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:B,onConfirm:B,onClickOutSide:B};const q8e={PREFIX:`${q}-progress`},Ma={types:["line","circle"],DEFAULT_TYPE:"line",STROKE_DEFAULT:"var(--semi-color-success)",strokeLineCap:["square","round"],DEFAULT_LINECAP:"round",sizes:["default","small","large"],DEFAULT_SIZE:"default",directions:["vertical","horizontal"],DEFAULT_DIRECTION:"horizontal"};function Q8e(n,e,t){try{const r=J8e(n,e,t);if(r.length!==0)return r}catch{return}}function J8e(n,e,t){if(n.sort((a,i)=>a.percent-i.percent),n[0].percent>e)return Ma.STROKE_DEFAULT;const r=n[n.length-1];if(r.percenti.percent)continue;const o=n[a-1];return t?eMe({startColor:jv(o.color),endColor:jv(i.color),size:i.percent-o.percent-1},e-o.percent-1):jv(o.color)}}function eMe(n,e){const{startColor:t,endColor:r,size:a}=n,i=t.split(""),o=r.split(""),s=[parseInt(`${i[1]}${i[2]}`,16),parseInt(`${o[1]}${o[2]}`,16)],l=[parseInt(`${i[3]}${i[4]}`,16),parseInt(`${o[3]}${o[4]}`,16)],u=[parseInt(`${i[5]}${i[6]}`,16),parseInt(`${o[5]}${o[6]}`,16)],c=[parseInt(`${i[7]}${i[8]}`,16),parseInt(`${o[7]}${o[8]}`,16)],d=(s[0]-s[1])/(a+1),f=(l[0]-l[1])/(a+1),h=(u[0]-u[1])/(a+1),p=(c[0]-c[1])/(a+1);function g(y){const b=Math.round(s[0]-d*(y+1)).toString(16),_=Math.round(l[0]-f*(y+1)).toString(16),S=Math.round(u[0]-h*(y+1)).toString(16),C=`${m(b)}${m(_)}${m(S)}`,w=Math.floor(p*(y+1)+c[1]).toString(16);return Ji.Hex(`#${C}`,w)}function m(y){return y.length===1?`0${y}`:y.length===0?"00":y}if(typeof e>"u"){const y=[t];for(let b=0;bt+t).join("")),`#${n}${e||"ff"}`)},SemiDesignToken(n){if(typeof window>"u")return;const e=getComputedStyle(document.body).getPropertyValue(`--semi-${n}`);if(e==="")return;const t=`rgba(${e}, 1)`;return Ji.RgbA(t)},HslA(n){const e=xp.hslA.exec(n),t=parseInt(e[2]),r=parseInt(e[3])/100,a=parseInt(e[4])/100,i=e[5],o=(1-Math.abs(2*a-1))*r,s=o*(1-Math.abs(t/60%2-1)),l=a-o/2;let u=0,c=0,d=0;return 0<=t&&t<60?(u=o,c=s,d=0):60<=t&&t<120?(u=s,c=o,d=0):120<=t&&t<180?(u=0,c=o,d=s):180<=t&&t<240?(u=0,c=s,d=o):240<=t&&t<300?(u=s,c=0,d=o):300<=t&&t<360&&(u=o,c=0,d=s),u=Math.round((u+l)*255).toString(16),c=Math.round((c+l)*255).toString(16),d=Math.round((d+l)*255).toString(16),Ji.utils.pAL(u,c,d,i)},RgbA(n){const e=xp.rgbA.exec(n),t=parseInt(e[2],10).toString(16),r=parseInt(e[3],10).toString(16),a=parseInt(e[4],10).toString(16),i=e[5];return Ji.utils.pAL(t,r,a,i)},utils:{pAL(n,e,t,r){return n.length==1&&(n="0"+n),e.length==1&&(e="0"+e),t.length==1&&(t="0"+t),typeof r<"u"?(r=Math.round(parseInt(r)*255).toString(16),r.length==1&&(r="0"+r),"#"+n+e+t+r):"#"+n+e+t}}},xp={hex:/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,hslA:/(hsl)a?\(\s*?(\d+),?\s*?(\d+)%,?\s*?(\d+)%,?\s*?\/?(\s*?[\d.]+)?\s*?\)/,rgbA:/(rgb)a?\(\s*?(\d+),?\s*?(\d+),?\s*?(\d+),?\s*?\/?(\s*?[\d.]+)?\s*?\)/,semiDesignTokens:/(\w+)?-?(\w+)-?(\d)?/},oF={ALONG:["black","white"],SEQUENCE:["amber","blue","cyan","green","grey","indigo","light-blue","light-green","lime","orange","pink","purple","red","teal","violet","yellow"]};var sF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this._mounted===!1)return;const r=parseInt(t.value);this.setState({percentNumber:r})}),this.animation.on("rest",()=>{this._mounted!==!1&&this.setState({percentNumber:this.props.percent})}),this.animation.start()}}componentWillUnmount(){this.animation&&this.animation.destroy(),this._mounted=!1}renderCircleProgress(){const e=this.props,{strokeLinecap:t,style:r,className:a,strokeWidth:i,format:o,size:s,stroke:l,strokeGradient:u,showInfo:c,percent:d,orbitStroke:f,id:h}=e,p=sF(e,["strokeLinecap","style","className","strokeWidth","format","size","stroke","strokeGradient","showInfo","percent","orbitStroke","id"]),g=this.props["aria-label"],m=this.props["aria-labelledby"],y=this.props["aria-valuetext"],{percentNumber:b}=this.state,_={wrapper:$(`${Ro}-circle`,a),svg:$(`${Ro}-circle-ring`),circle:$(`${Ro}-circle-ring-inner`)},S=this.calcPercent(d),C=this.calcPercent(b);let w;this.props.width?w=this.props.width:s===Ma.DEFAULT_SIZE?w=72:w=24;const T=this.selectStroke(l,d,u),E=w/2,O=w/2,I=(w-i)/2,P=I*2*Math.PI,A=(1-S/100)*P,R=`${P} ${P}`,L=o(C);return x.createElement("div",Object.assign({id:h,className:_.wrapper,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":m,"aria-label":g,"aria-valuetext":y},Ic(p)),x.createElement("svg",{key:s,className:_.svg,height:w,width:w,"aria-hidden":!0},x.createElement("circle",{strokeDashoffset:0,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:f,r:I,cx:O,cy:E,"aria-hidden":!0}),x.createElement("circle",{className:_.circle,strokeDashoffset:A,strokeWidth:i,strokeDasharray:R,strokeLinecap:t,fill:"transparent",stroke:T,r:I,cx:O,cy:E,"aria-hidden":!0})),c&&s!=="small"?x.createElement("span",{className:`${Ro}-circle-text`},L):null)}calcPercent(e){let t;return e>100?t=100:e<0?t=0:t=e,t}selectStroke(e,t,r){if(typeof e=="string")return e;const a=Q8e(e,t,r);return typeof a<"u"?a:Ma.STROKE_DEFAULT}renderLineProgress(){const e=this.props,{className:t,style:r,stroke:a,strokeGradient:i,direction:o,format:s,showInfo:l,size:u,percent:c,orbitStroke:d,id:f}=e,h=sF(e,["className","style","stroke","strokeGradient","direction","format","showInfo","size","percent","orbitStroke","id"]),p=this.props["aria-label"],g=this.props["aria-labelledby"],m=this.props["aria-valuetext"],{percentNumber:y}=this.state,b=$(Ro,t,{[`${Ro}-horizontal`]:o===Ma.DEFAULT_DIRECTION,[`${Ro}-vertical`]:o!==Ma.DEFAULT_DIRECTION,[`${Ro}-large`]:u==="large"}),_=$({[`${Ro}-track`]:!0}),S=$(`${Ro}-track-inner`),C=this.calcPercent(c),w=this.calcPercent(y),E={background:this.selectStroke(a,c,i)};o===Ma.DEFAULT_DIRECTION?E.width=`${C}%`:E.height=`${C}%`;const O=s(w);return x.createElement("div",Object.assign({id:f,className:b,style:r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":C,"aria-labelledby":g,"aria-label":p,"aria-valuetext":m},Ic(h)),x.createElement("div",{className:_,style:d?{backgroundColor:d}:{},"aria-hidden":!0},x.createElement("div",{className:S,style:E,"aria-hidden":!0})),l?x.createElement("div",{className:`${Ro}-line-text`},O):null)}render(){const{type:e}=this.props;return e==="line"?this.renderLineProgress():this.renderCircleProgress()}}kA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-valuetext":v.string,className:v.string,direction:v.oneOf(Ma.directions),format:v.oneOfType([v.func,v.node]),id:v.string,motion:v.oneOfType([v.bool,v.func,v.object]),orbitStroke:v.string,percent:v.number,scale:v.number,showInfo:v.bool,size:v.oneOf(Ma.sizes),stroke:v.oneOfType([v.string,v.arrayOf(v.shape({percent:v.number,color:v.string}))]),strokeGradient:v.bool,strokeLinecap:v.oneOf(Ma.strokeLineCap),strokeWidth:v.number,style:v.object,type:v.oneOf(Ma.types),width:v.number};kA.defaultProps={className:"",direction:Ma.DEFAULT_DIRECTION,format:n=>`${n}%`,motion:!0,orbitStroke:"var(--semi-color-fill-0)",percent:0,showInfo:!1,size:Ma.DEFAULT_SIZE,stroke:Ma.STROKE_DEFAULT,strokeGradient:!1,strokeLinecap:Ma.DEFAULT_LINECAP,strokeWidth:4,style:{},type:Ma.DEFAULT_TYPE};const lF=kA,Aq={PREFIX:`${q}-radio`,INNER:`${q}-radio-inner`,TEXT:`${q}-radio-text`,INPUT:`${q}-radio-input`,CHECKED:`${q}-radio-checked`,DISABLED:`${q}-radio-disabled`,BUTTON:`${q}-radio-button`},tMe={PREFIX:`${q}-radioGroup`,INNER:`${q}-radioGroup-inner`,TEXT:`${q}-radioGroup-text`,INPUT:`${q}-radioGroup-input`,CHECKED:`${q}-radioGroup-checked`,DISABLED:`${q}-radioGroup-disabled`},Jn={DIRECTION_SET:["horizontal","vertical"],DEFAULT_DIRECTION:"horizontal",MODE:["advanced",""],TYPE_DEFAULT:"default",TYPE_BUTTON:"button",TYPE_CARD:"card",TYPE_PURECARD:"pureCard",BUTTON_SIZE:["middle","small","large"]};class nMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._getDisplayValue();this._setValue(e)}_getDisplayValue(){const{value:e,defaultValue:t}=this.getProps();let r;return"value"in this.getProps()?r=e:"defaultValue"in this.getProps()&&(r=t),r}handleChange(e){const t=this.getProp("mode"),r=this.getState("value"),{checked:a,value:i}=e.target,o=this._adapter.isInProps("value"),s=Object.assign(Object.assign({},e),{target:Object.assign(Object.assign({},e.target),{value:i})});t==="advanced"&&!a&&(s.target.value=void 0),o||(t==="advanced"&&!a?this._setValue(void 0):this._setValue(i)),(t==="advanced"||r!==i)&&this._adapter.notifyChange(s)}handlePropValueChange(e){this._setValue(e)}_setValue(e){this._adapter.setValue(e)}destroy(){}}class rMe extends ze{constructor(){super(...arguments),this.handleFocusVisible=e=>{const{target:t}=e;try{t.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Radio] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{children:e,extra:t,extraId:r,addonId:a}=this._adapter.getProps();e&&!a&&this._adapter.setAddonId(),t&&!r&&this._adapter.setExtraId()}setHover(e){this._adapter.setHover(e)}setChecked(e){this._adapter.setChecked(e)}}class aMe extends ze{constructor(e){super(Object.assign({},e))}init(){const e=this._adapter.getProp("checked"),t=this._adapter.getProp("defaultChecked");this.setChecked(e||t)}setChecked(e){this._adapter.setNativeControlChecked(e)}getChecked(){return this._adapter.getProp("checked")}handleChange(e){const t="checked"in this.getProps(),{checked:r}=e.target,a=()=>{e.stopPropagation()},i=()=>{e.preventDefault()},o={target:Object.assign(Object.assign({},this.getProps()),{checked:r}),stopPropagation:a,preventDefault:i};t?this._adapter.notifyChange(o):(this.setChecked(r),this._adapter.notifyChange(o))}destroy(){}}const iMe=x.createContext(null),NA=iMe;class ax extends Pe{constructor(e){super(e),this.state={checked:!1},this.foundation=new aMe(this.adapter),this.onChange=this.onChange.bind(this)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({checked:e})},notifyChange:e=>{this.props.onChange(e)}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e){e.checked!==this.props.checked&&this.foundation.setChecked(this.props.checked)}componentWillUnmount(){this.foundation.destroy()}blur(){this.inputEntity.blur()}focus(){const{preventScroll:e}=this.props;this.inputEntity.focus({preventScroll:e})}onChange(e){this.foundation.handleChange(e)}render(){const{disabled:e,mode:t,autoFocus:r,name:a,isButtonRadio:i,isPureCardRadioGroup:o,addonId:s,extraId:l,"aria-label":u,focusInner:c,onInputFocus:d,onInputBlur:f}=this.props,{checked:h}=this.state,p=this.props.prefixCls||Aq.PREFIX,g=$({[`${p}-inner`]:!0,[`${p}-inner-checked`]:!!h,[`${p}-inner-buttonRadio`]:i,[`${p}-inner-pureCardRadio`]:o}),m=$({[`${p}-focus`]:c,[`${p}-focus-border`]:c&&!h,[`${p}-inner-display`]:!i});return x.createElement("span",{className:g},x.createElement("input",{ref:y=>{this.inputEntity=y},autoFocus:r,type:t==="advanced"?"checkbox":"radio",checked:!!h,disabled:e,onChange:this.onChange,name:a,"aria-label":u,"aria-labelledby":s,"aria-describedby":l,onFocus:d,onBlur:f}),x.createElement("span",{className:m},h?x.createElement(x5e,null):null))}}ax.contextType=NA;ax.propTypes={checked:v.bool,disabled:v.bool,isButtonRadio:v.bool,onChange:v.func,mode:v.oneOf(["advanced",""]),"aria-label":v.string,focusInner:v.bool,onInputFocus:v.func,onInputBlur:v.func,preventScroll:v.bool};ax.defaultProps={onChange:B,isButtonRadio:!1};const oMe=ax;var sMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onChange:r}=this.props;if(this.isInGroup()){const{radioGroup:a}=this.context;a.onChange&&a.onChange(t)}!("checked"in this.props)&&this.foundation.setChecked(t.target.checked),r&&r(t)},this.handleMouseEnter=t=>{this.props.onMouseEnter(t),this.foundation.setHover(!0)},this.handleMouseLeave=t=>{this.props.onMouseLeave(t),this.foundation.setHover(!1)},this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={hover:!1,addonId:e.addonId,extraId:e.extraId,checked:e.checked||e.defaultChecked||!1},this.foundation=new rMe(this.adapter),this.radioEntity=null}componentDidUpdate(e){this.props.checked!==e.checked&&(Vt(this.props.checked)?this.foundation.setChecked(!1):nX(this.props.checked)&&this.foundation.setChecked(this.props.checked))}get adapter(){return Object.assign(Object.assign({},super.adapter),{setHover:e=>{this.setState({hover:e})},setAddonId:()=>{this.setState({addonId:Lf({prefix:"addon"})})},setChecked:e=>{this.setState({checked:e})},setExtraId:()=>{this.setState({extraId:Lf({prefix:"extra"})})},setFocusVisible:e=>{this.setState({focusVisible:e})}})}isInGroup(){return this.context&&this.context.radioGroup}focus(){this.radioEntity.focus()}blur(){this.radioEntity.blur()}render(){const e=this.props,{addonClassName:t,addonStyle:r,disabled:a,style:i,className:o,prefixCls:s,displayMode:l,children:u,extra:c,mode:d,type:f,value:h,name:p}=e,g=sMe(e,["addonClassName","addonStyle","disabled","style","className","prefixCls","displayMode","children","extra","mode","type","value","name"]);let m,y,b,_,S,C,w,T,E;const{hover:O,addonId:I,extraId:P,focusVisible:A,checked:R}=this.state,L={checked:R,disabled:a};this.isInGroup()?(m=this.context.radioGroup.value===h,y=a||this.context.radioGroup.disabled,b=this.context.mode,_=this.context.radioGroup.isButtonRadio,S=this.context.radioGroup.isCardRadio,C=this.context.radioGroup.isPureCardRadio,T=this.context.radioGroup.buttonSize,E=s||this.context.radioGroup.prefixCls,L.checked=m,L.disabled=y):(m=R,y=a,b=d,w=f==="button",E=s,_=f===Jn.TYPE_BUTTON,C=f===Jn.TYPE_PURECARD,S=f===Jn.TYPE_CARD||C);const k=typeof _>"u"?w:_,N=E||Aq.PREFIX,z=S||C||k,F=$(N,{[`${N}-disabled`]:y,[`${N}-checked`]:m,[`${N}-${l}`]:!!l,[`${N}-buttonRadioComponent`]:w,[`${N}-buttonRadioGroup`]:_,[`${N}-buttonRadioGroup-${T}`]:_&&T,[`${N}-cardRadioGroup`]:S,[`${N}-cardRadioGroup_disabled`]:y&&S,[`${N}-cardRadioGroup_checked`]:S&&m&&!y,[`${N}-cardRadioGroup_checked_disabled`]:S&&m&&y,[`${N}-cardRadioGroup_hover`]:S&&!m&&O&&!y,[o]:!!o,[`${N}-focus`]:A&&(S||C)}),j=this.isInGroup()&&this.context.radioGroup.name,U=$({[`${N}-addon`]:!k,[`${N}-addon-buttonRadio`]:k,[`${N}-addon-buttonRadio-checked`]:k&&m,[`${N}-addon-buttonRadio-disabled`]:k&&y,[`${N}-addon-buttonRadio-hover`]:k&&!m&&!y&&O,[`${N}-addon-buttonRadio-${T}`]:k&&T,[`${N}-focus`]:A&&k},t),G=()=>!u&&!c?null:x.createElement("div",{className:$([`${N}-content`,{[`${N}-isCardRadioGroup_content`]:S}])},u?x.createElement("span",{className:U,style:r,id:I,"x-semi-prop":"children"},u):null,c&&!k?x.createElement("div",{className:`${N}-extra`,id:P,"x-semi-prop":"extra"},c):null);return x.createElement("label",Object.assign({style:i,className:F,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},this.getDataAttr(g)),x.createElement(oMe,Object.assign({},this.props,L,{mode:b,name:p??j,isButtonRadio:k,isPureCardRadioGroup:C,onChange:this.onChange,ref:Y=>{this.radioEntity=Y},addonId:u&&I,extraId:c&&P,focusInner:A&&!z,onInputFocus:this.handleFocusVisible,onInputBlur:this.handleBlur})),G())}}v0.contextType=NA;v0.propTypes={autoFocus:v.bool,checked:v.bool,defaultChecked:v.bool,value:v.any,style:v.object,className:v.string,disabled:v.bool,prefixCls:v.string,displayMode:v.oneOf(["vertical",""]),onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,mode:v.oneOf(Jn.MODE),extra:v.node,addonStyle:v.object,addonClassName:v.string,type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),"aria-label":v.string,preventScroll:v.bool};v0.defaultProps={autoFocus:!1,defaultChecked:!1,value:void 0,style:void 0,onMouseEnter:B,onMouseLeave:B,mode:"",type:"default"};v0.elementType="Radio";const q1=v0;var lMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:e.value||e.defaultValue},this.foundation=new nMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){typeof e.value=="number"&&isNaN(e.value)&&typeof this.props.value=="number"&&isNaN(this.props.value)||e.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:e=>{this.setState({value:e})},getProps:()=>this.props,isInProps:e=>e in this.props,notifyChange:e=>{this.props.onChange&&this.props.onChange(e)}})}render(){const e=this.props,{children:t,options:r,mode:a,prefixCls:i,className:o,style:s,direction:l,type:u,buttonSize:c,id:d}=e,f=lMe(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),h=u===Jn.TYPE_BUTTON,p=u===Jn.TYPE_PURECARD,g=u===Jn.TYPE_CARD||p,m=u===Jn.TYPE_DEFAULT,y=i||tMe.PREFIX,b=$(o,{[y]:!0,[`${y}-wrapper`]:!0,[`${y}-${l}`]:l&&!h,[`${y}-${l}-default`]:l&&m,[`${y}-${l}-card`]:l&&g,[`${y}-buttonRadio`]:h}),_=this.state.value;let S;return r?S=(r||[]).map((C,w)=>typeof C=="string"?x.createElement(q1,{key:w,disabled:this.props.disabled,value:C},C):x.createElement(q1,{key:w,disabled:C.disabled||this.props.disabled,value:C.value,extra:C.extra,className:C.className,style:C.style},C.label)):t&&(S=x.Children.map(t,(C,w)=>x.isValidElement(C)?x.cloneElement(C,{key:w}):null)),x.createElement("div",Object.assign({className:b,style:s,id:d,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(f)),x.createElement(NA.Provider,{value:{radioGroup:{onChange:this.onChange,value:_,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:h,isCardRadio:g,isPureCardRadio:p,buttonSize:c,prefixCls:i},mode:a}},S))}}FA.propTypes={defaultValue:v.any,disabled:v.bool,name:v.string,options:v.array,buttonSize:v.oneOf(Jn.BUTTON_SIZE),type:v.oneOf([Jn.TYPE_DEFAULT,Jn.TYPE_BUTTON,Jn.TYPE_CARD,Jn.TYPE_PURECARD]),value:v.any,onChange:v.func,children:v.node,prefixCls:v.string,className:v.string,style:v.object,direction:v.oneOf(Jn.DIRECTION_SET),mode:v.oneOf(Jn.MODE),"aria-label":v.string,"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,id:v.string};FA.defaultProps={disabled:!1,onChange:B,direction:Jn.DEFAULT_DIRECTION,mode:"",type:Jn.TYPE_DEFAULT,buttonSize:"middle"};const Mq=FA;class uMe extends q1{}uMe.Group=Mq;const u2={PREFIX:`${q}-rating`},Rq={SIZE_SET:["default","small"]};class $A extends ze{constructor(e){super(Object.assign(Object.assign({},$A.defaultAdapter),e)),this.handleStarFocusVisible=t=>{const{target:r}=t;this.getProps();try{r.matches(":focus-visible")&&this._adapter.setEmptyStarFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleStarBlur=t=>{const{emptyStarFocusVisible:r}=this.getStates();r&&this._adapter.setEmptyStarFocusVisible(!1)}}init(){const{autoFocus:e,disabled:t}=this.getProps();e&&!t&&this._adapter.focus()}_getScroll(e,t){let r=t?e.pageYOffset:e.pageXOffset;const a=t?"scrollTop":"scrollLeft";if(typeof r!="number"){const i=e.document;r=i.documentElement[a],typeof r!="number"&&(r=i.body[a])}return r}_getClientPosition(e){let t,r;const a=e.ownerDocument,{body:i}=a,o=a&&a.documentElement,s=e.getBoundingClientRect();return t=s.left,r=s.top,t-=o.clientLeft||i.clientLeft||0,r-=o.clientTop||i.clientTop||0,{left:t,top:r}}_getOffsetLeft(e){const t=this._getClientPosition(e),r=e.ownerDocument,a=r.defaultView||r.parentWindow;return t.left+=this._getScroll(a),t.left}getStarValue(e,t){const{allowHalf:r}=this.getProps(),i=this._adapter.getContext("direction")==="rtl";let o=e+1;if(r){const s=this._adapter.getStarDOM(e),l=this._getOffsetLeft(s),u=s.clientWidth;(i&&t-l>u/2||!i&&t-la?c=0:u<0?c=a:c=u,["ArrowRight","ArrowUp","ArrowLeft","ArrowDown"].includes(r)&&(this._adapter.notifyKeyDown(e),this._adapter.updateValue(c),this.changeFocusStar(c,e),e.preventDefault(),this._adapter.notifyHoverChange(void 0,null))}changeFocusStar(e,t){const{count:r,allowHalf:a,preventScroll:i}=this.getProps(),o=Math.ceil(e)-1,s=[...t.currentTarget.childNodes].map(l=>l.childNodes[0].childNodes);o<0?s[r][0].focus({preventScroll:i}):s[o][a?e*10%10===5?0:1:0].focus({preventScroll:i})}}class VA extends ze{constructor(e){super(Object.assign(Object.assign({},VA.defaultAdapter),e)),this.handleFocusVisible=(t,r)=>{const{target:a}=t;try{a.matches(":focus-visible")&&(r==="first"?this._adapter.setFirstStarFocus(!0):this._adapter.setSecondStarFocus(!0))}catch{_n(!0,"Warning: [Semi Rating] The current browser does not support the focus-visible")}},this.handleBlur=(t,r)=>{const{firstStarFocus:a,secondStarFocus:i}=this.getStates();r==="first"?a&&this._adapter.setFirstStarFocus(!1):i&&this._adapter.setSecondStarFocus(!1)}}}class Lq extends Pe{constructor(e){super(e),this.firstStar=null,this.secondStar=null,this.onHover=t=>{const{onHover:r,index:a}=this.props;r(t,a)},this.onClick=t=>{const{onClick:r,index:a}=this.props;r(t,a)},this.onFocus=(t,r)=>{const{onFocus:a}=this.props;a&&a(t),this.foundation.handleFocusVisible(t,r)},this.onBlur=(t,r)=>{const{onBlur:a}=this.props;a&&a(t),this.foundation.handleBlur(t,r)},this.onKeyDown=t=>{const{onClick:r,index:a}=this.props;t.keyCode===13&&r(t,a)},this.starFocus=()=>{const{value:t,index:r,preventScroll:a}=this.props;t-r===.5?this.firstStar.focus({preventScroll:a}):this.secondStar.focus({preventScroll:a})},this.saveFirstStar=t=>{this.firstStar=t},this.saveSecondStar=t=>{this.secondStar=t},this.state={firstStarFocus:!1,secondStarFocus:!1},this.foundation=new VA(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{setFirstStarFocus:e=>{this.setState({firstStarFocus:e})},setSecondStarFocus:e=>{this.setState({secondStarFocus:e})}})}render(){const{index:e,prefixCls:t,character:r,count:a,value:i,disabled:o,allowHalf:s,focused:l,size:u,ariaLabelPrefix:c}=this.props,{firstStarFocus:d,secondStarFocus:f}=this.state,h=e+1,p=h-i,g=s&&p<1&&p>0,m=1-p,y=h<=i,b=typeof u=="number",_=$(t,{[`${t}-half`]:g,[`${t}-full`]:y,[`${t}-${u}`]:!b}),S=b?{width:u,height:u,fontSize:u}:{},C=b?"inherit":u==="small"?"default":"extra-large",w=r||x.createElement(N5e,{size:C,style:{display:"block"}}),T=e===a,E=$(`${t}-wrapper`,{[`${t}-disabled`]:o,[`${u2.PREFIX}-focus`]:(d||f)&&i!==0}),O={onClick:o?null:this.onClick,onKeyDown:o?null:this.onKeyDown,onMouseMove:o?null:this.onHover,className:E},I=s?a*2+1:a+1,P={ref:this.saveFirstStar,role:"radio","aria-checked":i===e+.5,"aria-posinset":2*e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${e+.5} ${c}s`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-first`,`${u2.PREFIX}-no-focus`),tabIndex:!o&&i===e+.5?0:-1,onFocus:L=>{this.onFocus(L,"first")},onBlur:L=>{this.onBlur(L,"first")}},A=!o&&(i===e+1||T&&i===0)?0:-1,R={ref:this.saveSecondStar,role:"radio","aria-checked":T?i===0:i===e+1,"aria-posinset":s?2*(e+1):e+1,"aria-setsize":I,"aria-disabled":o,"aria-label":`${T?0:e+1} ${c}${e===0?"":"s"}`,"aria-labelledby":this.props["aria-describedby"],"aria-describedby":this.props["aria-describedby"],className:$(`${t}-second`,`${u2.PREFIX}-no-focus`),tabIndex:A,onFocus:L=>{this.onFocus(L,"second")},onBlur:L=>{this.onBlur(L,"second")}};return x.createElement("li",{className:_,style:Object.assign({},S),key:e},x.createElement("div",Object.assign({},O),s&&!T&&x.createElement("div",Object.assign({},P,{style:{width:`${m*100}%`}}),w),x.createElement("div",Object.assign({},R,{"x-semi-prop":"character"}),w)))}}Lq.propTypes={value:v.number,index:v.number,prefixCls:v.string,allowHalf:v.bool,onHover:v.func,onClick:v.func,character:v.node,focused:v.bool,disabled:v.bool,count:v.number,ariaLabelPrefix:v.string,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),"aria-describedby":v.string,onFocus:v.func,onBlur:v.func,preventScroll:v.bool};var cMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleHover(r,a)},this.onMouseLeave=()=>{this.foundation.handleMouseLeave()},this.onClick=(r,a)=>{this.foundation.handleClick(r,a)},this.onFocus=r=>{this.foundation.handleFocus(r)},this.onBlur=r=>{this.foundation.handleBlur(r)},this.onKeyDown=r=>{const{value:a}=this.state;this.foundation.handleKeyDown(r,a)},this.focus=()=>{const{disabled:r,preventScroll:a}=this.props;r||this.rate.focus({preventScroll:a})},this.blur=()=>{const{disabled:r}=this.props;r||this.rate.blur()},this.saveRef=r=>a=>{this.stars[r]=a},this.saveRate=r=>{this.rate=r},this.handleStarFocusVisible=r=>{this.foundation.handleStarFocusVisible(r)},this.handleStarBlur=r=>{this.foundation.handleStarBlur(r)},this.getAriaLabelPrefix=()=>{if(this.props["aria-label"])return this.props["aria-label"];let r="star";const{character:a}=this.props;return typeof a=="string"&&(r=a),r},this.getItemList=r=>{const{count:a,allowHalf:i,prefixCls:o,disabled:s,character:l,size:u,tooltips:c}=this.props,{value:d,hoverValue:f,focused:h}=this.state;return[...Array(a+1).keys()].map(g=>{const m=x.createElement(Lq,{ref:this.saveRef(g),index:g,count:a,prefixCls:`${o}-star`,allowHalf:i,value:f===void 0?d:f,onClick:s?Ht:this.onClick,onHover:s?Ht:this.onHover,key:g,disabled:s,character:l,focused:h,size:g===a?0:u,ariaLabelPrefix:r,onFocus:s||a!==g?Ht:this.handleStarFocusVisible,onBlur:s||a!==g?Ht:this.handleStarBlur});if(c){const y=c[g]?c[g]:"",b=f-1===g;return x.createElement(Sr,{visible:b,trigger:"custom",content:y,key:`${g}-${b}`},m)}return m})};const t=e.value===void 0?e.defaultValue:e.value;this.stars={},this.state={value:t,focused:!1,hoverValue:void 0,clearedValue:null,emptyStarFocusVisible:!1},this.foundation=new $A(this.adapter)}static getDerivedStateFromProps(e,t){return"value"in e&&e.value!==void 0?Object.assign(Object.assign({},t),{value:e.value}):t}get adapter(){return Object.assign(Object.assign({},super.adapter),{focus:()=>{const{disabled:e,count:t}=this.props,{value:r}=this.state;if(!e){const a=Math.ceil(r)-1;this.stars[a<0?t:a].starFocus()}},getStarDOM:e=>{const t=this.stars&&this.stars[e];return ui.findDOMNode(t)},notifyHoverChange:(e,t)=>{const{onHoverChange:r}=this.props;this.setState({hoverValue:e,clearedValue:t}),r(e)},updateValue:e=>{const{onChange:t}=this.props;"value"in this.props||this.setState({value:e}),t(e)},clearValue:e=>{this.setState({clearedValue:e})},notifyFocus:e=>{const{onFocus:t}=this.props;this.setState({focused:!0}),t&&t(e)},notifyBlur:e=>{const{onBlur:t}=this.props;this.setState({focused:!1}),t&&t(e)},notifyKeyDown:e=>{const{onKeyDown:t}=this.props;this.setState({focused:!1}),t&&t(e)},setEmptyStarFocusVisible:e=>{this.setState({emptyStarFocusVisible:e})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,prefixCls:r,disabled:a,className:i,id:o,count:s,tabIndex:l}=e,u=cMe(e,["style","prefixCls","disabled","className","id","count","tabIndex"]),{value:c,emptyStarFocusVisible:d}=this.state,f=this.getAriaLabelPrefix(),h=`Rating: ${c} of ${s} ${f}${c===1?"":"s"},`,p=this.getItemList(f),g=$(r,{[`${r}-disabled`]:a,[`${r}-focus`]:d},i);return x.createElement("ul",Object.assign({"aria-label":h,"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],className:g,style:t,onMouseLeave:a?Ht:this.onMouseLeave,tabIndex:a?-1:l,onFocus:a?Ht:this.onFocus,onBlur:a?Ht:this.onBlur,onKeyDown:a?Ht:this.onKeyDown,ref:this.saveRate,id:o},this.getDataAttr(u)),p)}}ix.contextType=Fr;ix.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-label":v.string,"aria-labelledby":v.string,"aria-required":v.bool,disabled:v.bool,value:v.number,defaultValue:v.number,count:v.number,allowHalf:v.bool,allowClear:v.bool,style:v.object,prefixCls:v.string,onChange:v.func,onHoverChange:v.func,className:v.string,character:v.node,tabIndex:v.number,onFocus:v.func,onBlur:v.func,onKeyDown:v.func,autoFocus:v.bool,size:v.oneOfType([v.oneOf(Rq.SIZE_SET),v.number]),tooltips:v.arrayOf(v.string),id:v.string,preventScroll:v.bool};ix.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:u2.PREFIX,onChange:Ht,onHoverChange:Ht,tabIndex:-1,size:"default"};const Si={PREFIX:`${q}-slider`,DISABLED:`${q}-slider-disabled`,VERTICAL:`${q}-slider-vertical`,TRACK:`${q}-slider-track`,DOTS:`${q}-slider-dots`,MARKS:`${q}-slider-marks`,HANDLE:`${q}-slider-handle`},dMe=(n,e)=>(!globalThis.Touch||!(n instanceof Touch)||["stopPropagation","preventDefault"].forEach(r=>{let a=e[r];a&&(typeof a=="function"&&(a=function(){return e[r](...arguments)}),n[r]?_n(!0,`"The key ${r}" exist in Touch.`):n[r]=a)}),n),uF=dMe;class jA extends ze{constructor(e){var t;super(Object.assign(Object.assign({},jA.defaultAdapter),e)),t=this,this.getMinAndMaxPercent=r=>{const{range:a,min:i,max:o}=this._adapter.getProps(),s=a?(r[0]-i)/(o-i):(r-i)/(o-i),l=a?(r[1]-i)/(o-i):1;return{min:this._checkValidity(s),max:this._checkValidity(l)}},this._checkValidity=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return r>i?i:r{const{focusPos:o,currentValue:s}=this._adapter.getStates(),l={min:!1,max:!1};let u;return a?u={min:a(i?this.outPutValue(s[0]):this.outPutValue(s)),max:i?a(this.outPutValue(s[1])):null}:u={min:i?this.outPutValue(s[0]):this.outPutValue(s),max:i?this.outPutValue(s[1]):null},r?(l.min=!0,l.max=!0):typeof r>"u"&&a&&(o==="min"?l.min=!0:o==="max"&&(l.max=!0)),{tipVisible:l,tipChildren:u}},this.valueFormatIsCorrect=r=>Array.isArray(r)?typeof r[0]=="number"&&typeof r[0]=="number":typeof r=="number",this.handleMousePos=(r,a)=>{const i=this._adapter.getParentRect(),o=this._adapter.getScrollParentVal(),s=i?i.left:0,l=i?i.top:0;return{x:r-s+o.scrollLeft,y:a-l+o.scrollTop}},this.getScrollParent=r=>{const a=r,i=/(auto|scroll)/,o=(u,c)=>window.getComputedStyle(u,null).getPropertyValue(c),s=u=>i.test(o(u,"overflow")+o(u,"overflow-y")+o(u,"overflow-x")),l=u=>!u||u===document.body||!(u instanceof Element)?document.body:s(u)?u:l(u.parentNode);return l(a)},this.checkMeetMinMax=r=>{const{vertical:a,verticalReverse:i,range:o}=this._adapter.getProps(),s=this._adapter.getState("currentValue");this.transValueToPos(s);const{sliderX:l,sliderY:u,sliderWidth:c,sliderHeight:d}=this._adapter.getSliderLengths();this._adapter.getStates();const f=a?d:c;let h;a&&i?h=u+f:h=a?u:l;let p;return a&&i?p=u:p=a?u+d:l+c,a&&i?r>=h?r=h:r<=p&&(r=p):r<=h?r=h:r>=p&&(r=p),r},this.transPosToValue=(r,a)=>{const i=this.checkMeetMinMax(r),{min:o,max:s,currentValue:l}=this._adapter.getStates(),{range:u,vertical:c,step:d,verticalReverse:f}=this._adapter.getProps(),{sliderX:h,sliderY:p,sliderWidth:g,sliderHeight:m}=this._adapter.getSliderLengths(),y=c?p:h,b=c?m:g;let _;c&&f?_=(y+b-i)/b*(s-o)+o:_=(i-y)/b*(s-o)+o;let S;return u?S=a?l[0]:l[1]:S=l,d!==1&&(_=Math.round(_/d)*d),u&&_!==S?a?[_,l[1]]:[l[0],_]:!u&&_!==S?_:!1},this.transValueToPos=r=>{const{min:a,max:i}=this._adapter.getStates(),{vertical:o,range:s,verticalReverse:l}=this._adapter.getProps(),{sliderX:u,sliderY:c,sliderWidth:d,sliderHeight:f}=this._adapter.getSliderLengths(),h=o?c:u,p=o?f:d;return s?[(r[0]-a)*p/(i-a)+h,(r[1]-a)*p/(i-a)+h]:(r-a)*p/(i-a)+h},this.isMarkActive=r=>{const{min:a,max:i,range:o,included:s}=this._adapter.getProps(),l=this._adapter.getState("currentValue");return typeof(r/1)=="number"&&r>=a&&r<=i?o?(r>l[1]||r{const a=s=>{var l,u;return/^\d+(\.\d+)?$/.test(String(s))&&(u=(l=s.toString().split(".")[1])===null||l===void 0?void 0:l.length)!==null&&u!==void 0?u:0},i=this._adapter.getProp("step"),o=(()=>{const s=a(i),l=Math.pow(10,s);return u=>Math.round(u*l)/l})();return Array.isArray(r)?[o(r[0]),o(r[1])]:o(r)},this.handleDisabledChange=r=>{this._adapter.updateDisabled(r)},this.checkAndUpdateIsInRenderTreeState=()=>this._adapter.checkAndUpdateIsInRenderTreeState(),this.calculateOutputValue=(r,a)=>{const i=this.transPosToValue(r,a);if(i!==!1)return this.outPutValue(i)},this.handleValueChange=(r,a)=>{const{min:i,max:o}=this._adapter.getStates();let s=null;const l={};this.valueFormatIsCorrect(a)?(Array.isArray(r)&&Array.isArray(a)&&(a=[a[0]o?o:a[1]],s=Object.assign(l,{currentValue:a})),typeof r=="number"&&typeof a=="number"&&(a>o?a=o:a=a{this._adapter.onHandleDown(r);const i=this._adapter.getState("disabled"),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(i)return!1;this._adapter.setStateVal("isDrag",!0),this._adapter.setStateVal("chooseMovePos",a),a==="min"?this._adapter.setDragging([!0,s[1]]):this._adapter.setDragging([s[0],!0]);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(!this._adapter.isEventFromHandle(r))this._dragOffset=0;else{const c=this._getHandleCenterPosition(o,r.target);this._dragOffset=u-c,u=c}return!0},this.onHandleMove=r=>{this._adapter.setEventDefault(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{vertical:o}=this._adapter.getProps(),{dragging:s}=this._adapter.getOverallVars();if(a)return!1;this.onHandleEnter(i);const l=this.handleMousePos(r.clientX,r.clientY);let u=o?l.y:l.x;if(u=u-this._dragOffset,i==="min"&&s[0]||i==="max"&&s[1]){const c=this.calculateOutputValue(u,i==="min");if(c===void 0)return!1;this._adapter.notifyChange(c),this._adapter.onHandleMove(u,i==="min",void 0,!1,c)}return!0},this.onHandleTouchStart=(r,a)=>{const i=this._adapter.getMinHandleEl(),o=this._adapter.getMaxHandleEl();if(r.target===i||r.target===o){Ra(r);const s=uF(r.touches[0],r);this.onHandleDown(s,a)}},this.onHandleTouchMove=r=>{const a=this._adapter.getMinHandleEl(),i=this._adapter.getMaxHandleEl();if(r.target===a||r.target===i){const o=uF(r.touches[0],r);this.onHandleMove(o)}},this.onHandleEnter=r=>{const{disabled:a,focusPos:i}=this._adapter.getStates();a||!i&&r!==i&&this._adapter.onHandleEnter(r)},this.onHandleLeave=()=>{this._adapter.getState("disabled")||this._adapter.onHandleLeave()},this.onHandleUp=r=>{this._adapter.onHandleUpBefore(r);const{disabled:a,chooseMovePos:i}=this._adapter.getStates(),{dragging:o}=this._adapter.getOverallVars();return a?!1:(i==="min"?this._adapter.setDragging([!1,o[1]]):this._adapter.setDragging([o[0],!1]),this._adapter.setStateVal("isDrag",!1),this._adapter.onHandleLeave(),this._adapter.onHandleUpAfter(),!0)},this._handleValueDecreaseWithKeyBoard=(r,a)=>{const{min:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]-r;return l=l{const{max:i,currentValue:o}=this.getStates(),{range:s}=this.getProps();if(a==="min")if(s){let l=o[0]+r;return l=l>o[1]?o[1]:l,[l,o[1]]}else{let l=o+r;return l=l>i?i:l,l}else{let l=o[1]+r;return l=l>i?i:l,[o[0],l]}},this._handleHomeKey=r=>{const{min:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[a,i[1]]:a:[i[0],i[0]]},this._handleEndKey=r=>{const{max:a,currentValue:i}=this.getStates(),{range:o}=this.getProps();return r==="min"?o?[i[1],i[1]]:a:[i[0],a]},this.handleKeyDown=(r,a)=>{const{min:i,max:o,currentValue:s}=this.getStates(),{step:l,range:u}=this.getProps();let c;switch(r.key){case"ArrowLeft":case"ArrowDown":c=this._handleValueDecreaseWithKeyBoard(l,a);break;case"ArrowRight":case"ArrowUp":c=this._handleValueIncreaseWithKeyBoard(l,a);break;case"PageUp":c=this._handleValueIncreaseWithKeyBoard(10*l,a);break;case"PageDown":c=this._handleValueDecreaseWithKeyBoard(10*l,a);break;case"Home":c=this._handleHomeKey(a);break;case"End":c=this._handleEndKey(a);break}if(["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","PageUp","PageDown","Home","End"].includes(r.key)){let d=!0;Array.isArray(s)?d=!(s[0]===c[0]&&s[1]===c[1]):d=s!==c,d&&(this._adapter.updateCurrentValue(c),this._adapter.notifyChange(c)),Ra(r)}},this.onFocus=(r,a)=>{Ra(r);const{target:i}=r;try{i.matches(":focus-visible")&&(a==="min"?this._adapter.setStateVal("firstDotFocusVisible",!0):this._adapter.setStateVal("secondDotFocusVisible",!0))}catch{_n(!0,"Warning: [Semi Slider] The current browser does not support the focus-visible")}},this.onBlur=(r,a)=>{const{firstDotFocusVisible:i,secondDotFocusVisible:o}=this.getStates();a==="min"?i&&this._adapter.setStateVal("firstDotFocusVisible",!1):o&&this._adapter.setStateVal("secondDotFocusVisible",!1)},this.handleWrapClick=r=>{const{disabled:a,isDrag:i}=this._adapter.getStates();if(i||a||this._adapter.isEventFromHandle(r))return;const{vertical:o}=this.getProps(),s=this.handleMousePos(r.clientX,r.clientY),l=o?s.y:s.x,u=this.checkWhichHandle(l),c=this.calculateOutputValue(l,u);c!==void 0&&(this._adapter.notifyChange(c),!this._isControlledComponent()&&this.setHandlePos(l,u,!0,c))},this.setHandlePos=function(r,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3?arguments[3]:void 0;t._adapter.onHandleMove(r,a,()=>t._adapter.onHandleUpAfter(),i,o)},this.checkWhichHandle=r=>{const{vertical:a,verticalReverse:i}=this.getProps(),{currentValue:o}=this._adapter.getStates(),s=this.transValueToPos(o);let l=!0;return Array.isArray(s)&&(r>s[1]||Math.abs(r-s[0])>Math.abs(r-s[1]))&&(l=!1),a&&i&&(l=!l),l},this.handleWrapperEnter=()=>{this._adapter.setStateVal("showBoundary",!0)},this.handleWrapperLeave=()=>{this._adapter.setStateVal("showBoundary",!1)}}init(){this._checkCurrentValue(),this._dragOffset=0}_checkCurrentValue(){const{currentValue:e,min:t,max:r}=this.getStates();let a;Array.isArray(e)?(a=[],a[0]=this._checkValidity(e[0],t,r),a[1]=this._checkValidity(e[1],t,r)):a=this._checkValidity(e,t,r),this._adapter.updateCurrentValue(a)}destroy(){this._adapter.unSubscribeEventListener()}_getHandleCenterPosition(e,t){const r=t.getBoundingClientRect(),{x:a,y:i}=this.handleMousePos(r.left+r.width*.5,r.top+r.height*.5);return e?i:a}}var fMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{vertical:r,range:a,tooltipVisible:i,tipFormatter:o,"aria-label":s,"aria-labelledby":l,"aria-valuetext":u,getAriaValueText:c,disabled:d}=this.props,{chooseMovePos:f,isDrag:h,isInRenderTree:p,firstDotFocusVisible:g,secondDotFocusVisible:m}=this.state,y=r?"top":"left",b=this.foundation.getMinAndMaxPercent(this.state.currentValue),_=b.min,S=b.max,{tipVisible:C,tipChildren:w}=this.foundation.computeHandleVisibleVal(i&&p,o,a),T=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="min"&&h}),E=$(Si.HANDLE,{[`${Si.HANDLE}-clicked`]:f==="max"&&h}),{min:O,max:I,currentValue:P}=this.state,A={"aria-label":s??(d?"Disabled Slider":void 0),"aria-labelledby":l,"aria-disabled":d};return r&&Object.assign(A,{"aria-orientation":"vertical"}),a?x.createElement(x.Fragment,null,x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[0],0):u,"aria-valuenow":P[0],"aria-valuemax":P[1],"aria-valuemin":O}))),x.createElement(Sr,{content:w.max,position:"top",trigger:"custom",rePosKey:S,visible:p&&(C.max||m),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({ref:this.maxHanleEl,className:E,style:{[y]:`${S*100}%`,zIndex:f==="max"?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"max")},onMouseEnter:()=>{this.foundation.onHandleEnter("max")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"max")},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"max")},onFocus:L=>{this.foundation.onFocus(L,"max")},onBlur:L=>{this.foundation.onBlur(L,"max")},role:"slider",tabIndex:d?-1:0},A,{"aria-valuetext":c?c(P[1],1):u,"aria-valuenow":P[1],"aria-valuemax":I,"aria-valuemin":P[0]})))):x.createElement(Sr,{content:w.min,position:"top",trigger:"custom",rePosKey:_,visible:p&&(C.min||g),className:`${Si.HANDLE}-tooltip`},x.createElement("span",Object.assign({onMouseOver:this.foundation.checkAndUpdateIsInRenderTreeState,ref:this.minHanleEl,className:T,style:{[y]:`${_*100}%`,zIndex:f==="min"&&h?2:1},onMouseDown:L=>{this.foundation.onHandleDown(L,"min")},onMouseEnter:()=>{this.foundation.onHandleEnter("min")},onTouchStart:L=>{this.foundation.onHandleTouchStart(L,"min")},onMouseLeave:()=>{this.foundation.onHandleLeave()},onMouseUp:L=>{this.foundation.onHandleUp(L)},onKeyUp:L=>{this.foundation.onHandleUp(L)},onTouchEnd:L=>{this.foundation.onHandleUp(L)},onKeyDown:L=>{this.foundation.handleKeyDown(L,"min")},onFocus:L=>{this.foundation.onFocus(L,"min")},onBlur:L=>{this.foundation.onBlur(L,"min")},role:"slider","aria-valuetext":c?c(P,0):u,tabIndex:d?-1:0},A,{"aria-valuenow":P,"aria-valuemax":I,"aria-valuemin":O})))},this.renderTrack=()=>{const{range:r,included:a,vertical:i}=this.props,o=this.foundation.getMinAndMaxPercent(this.state.currentValue),s=o.min,l=o.max;let u=i?{height:r?`${(l-s)*100}%`:`${s*100}%`,top:r?`${s*100}%`:0}:{width:r?`${(l-s)*100}%`:`${s*100}%`,left:r?`${s*100}%`:0};return u=a?u:{},x.createElement("div",{className:Si.TRACK,style:u,onClick:this.foundation.handleWrapClick})},this.renderStepDot=()=>{const{min:r,max:a,vertical:i,marks:o}=this.props,s=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.DOTS},Object.keys(o).map(u=>{const c=this.foundation.isMarkActive(Number(u)),d=$(`${Ui}-dot`,{[`${Ui}-dot-active`]:this.foundation.isMarkActive(Number(u))==="active"}),f=(Number(u)-r)/(a-r);return c?x.createElement("span",{key:u,onClick:this.foundation.handleWrapClick,className:d,style:{[s]:`calc(${f*100}% - 2px)`}}):null})):null},this.renderLabel=()=>{const{min:r,max:a,vertical:i,marks:o,verticalReverse:s}=this.props,l=i?"top":"left";return o&&Object.keys(o).length>0?x.createElement("div",{className:Si.MARKS+(i&&s?"-reverse":"")},Object.keys(o).map(c=>{const d=this.foundation.isMarkActive(Number(c)),f=(Number(c)-r)/(a-r);return d?x.createElement("span",{key:c,className:$(`${Ui}-mark${i&&s?"-reverse":""}`),style:{[l]:`${f*100}%`},onClick:this.foundation.handleWrapClick},o[c]):null})):null},this._getAriaValueText=(r,a)=>{const{getAriaValueText:i}=this.props;return i?i(r,a):r};let{value:t}=this.props;t||(t=this.props.defaultValue),this.state={currentValue:t||(this.props.range?[0,0]:0),min:this.props.min||0,max:this.props.max||0,focusPos:"",onChange:this.props.onChange,disabled:this.props.disabled||!1,chooseMovePos:"",isDrag:!1,clickValue:0,showBoundary:!1,isInRenderTree:!0,firstDotFocusVisible:!1,secondDotFocusVisible:!1},this.sliderEl=x.createRef(),this.minHanleEl=x.createRef(),this.maxHanleEl=x.createRef(),this.dragging=[!1,!1],this.foundation=new jA(this.adapter),this.eventListenerSet=new Set}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{getSliderLengths:()=>{if(this.sliderEl&&this.sliderEl.current){const t=this.sliderEl.current.getBoundingClientRect(),r={x:this.sliderEl.current.offsetLeft,y:this.sliderEl.current.offsetTop};return{sliderX:r.x,sliderY:r.y,sliderWidth:t.width,sliderHeight:t.height}}return{sliderX:0,sliderY:0,sliderWidth:0,sliderHeight:0}},getParentRect:()=>{const t=this.sliderEl&&this.sliderEl.current&&this.sliderEl.current.offsetParent;if(t)return t.getBoundingClientRect()},getScrollParentVal:()=>{const t=this.foundation.getScrollParent(this.sliderEl.current);return{scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}},isEventFromHandle:t=>{const r=[this.minHanleEl,this.maxHanleEl];let a=!1;return r.forEach(i=>{if(!i)return;const o=i&&i.current,s=ui.findDOMNode(o);s&&s.contains(t.target)&&(a=!0)}),a},getOverallVars:()=>({dragging:this.dragging}),updateDisabled:t=>{this.setState({disabled:t})},transNewPropsToState(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:B;this.setState(t,r)},notifyChange:t=>this.props.onChange(t),setDragging:t=>{this.dragging=t},updateCurrentValue:t=>{const{currentValue:r}=this.state;t!==r&&this.setState({currentValue:t})},setOverallVars:(t,r)=>{this[t]=r},getMinHandleEl:()=>this.minHanleEl.current,getMaxHandleEl:()=>this.maxHanleEl.current,onHandleDown:t=>{this._addEventListener(document.body,"mousemove",this.foundation.onHandleMove,!1),this._addEventListener(window,"mouseup",this.foundation.onHandleUp,!1),this._addEventListener(document.body,"touchmove",this.foundation.onHandleTouchMove,!1)},onHandleMove:function(t,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:B,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4?arguments[4]:void 0;if(!e.foundation.checkAndUpdateIsInRenderTreeState())return;const{value:l}=e.props;let u=o;if(u===void 0){const d=e.foundation.transPosToValue(t,r);if(d===!1)return;u=e.foundation.outPutValue(d)}const{currentValue:c}=e.state;if(!Ke(e.foundation.outPutValue(c),u)){if(!i&&e.foundation.valueFormatIsCorrect(l))return!1;e.setState({currentValue:u},a)}},setEventDefault:t=>{t.stopPropagation(),t.preventDefault()},setStateVal:(t,r)=>{this.setState({[t]:r})},checkAndUpdateIsInRenderTreeState:()=>{const t=hMe(this.sliderEl.current);return t!==this.state.isInRenderTree&&this.setState({isInRenderTree:t}),t},onHandleEnter:t=>{this.setState({focusPos:t})},onHandleLeave:()=>{this.setState({focusPos:""})},onHandleUpBefore:t=>{var r,a;(a=(r=this.props).onMouseUp)===null||a===void 0||a.call(r,t),t.stopPropagation(),t.preventDefault(),document.body.removeEventListener("mousemove",this.foundation.onHandleMove,!1),document.body.removeEventListener("mouseup",this.foundation.onHandleUp,!1)},onHandleUpAfter:()=>{const{currentValue:t}=this.state,r=this.foundation.outPutValue(t);this.props.onAfterChange(r)},unSubscribeEventListener:()=>{Array.from(this.eventListenerSet).forEach(t=>t())}})}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t){const r=!Ke(this.props.value,e.value);if(this.props.disabled!==e.disabled&&this.foundation.handleDisabledChange(this.props.disabled),r){const i=this.props.value,o=this.state.currentValue;this.foundation.handleValueChange(o,i),this.props.onAfterChange(this.props.value)}}componentWillUnmount(){this.foundation.destroy()}render(){const{disabled:e,currentValue:t,min:r,max:a}=this.state,i=this.props,{vertical:o,verticalReverse:s,style:l,railStyle:u,range:c,className:d}=i,f=fMe(i,["vertical","verticalReverse","style","railStyle","range","className"]),h=$(`${Ui}-wrapper`,{[`${Ui}-disabled`]:e,[`${Si.VERTICAL}-wrapper`]:o,[`${Ui}-reverse`]:o&&s},d),p=$(`${Ui}-boundary`,{[`${Ui}-boundary-show`]:this.props.showBoundary&&this.state.showBoundary}),g=$({[`${Ui}`]:!o,[Si.VERTICAL]:o}),m=c?`Range: ${this._getAriaValueText(t[0],0)} to ${this._getAriaValueText(t[1],1)}`:void 0,y=x.createElement("div",Object.assign({className:h,style:l,ref:this.sliderEl,"aria-label":m,onMouseEnter:()=>this.foundation.handleWrapperEnter(),onMouseLeave:()=>this.foundation.handleWrapperLeave()},this.getDataAttr(f)),x.createElement("div",{className:`${Ui}-rail`,onClick:this.foundation.handleWrapClick,style:u}),this.renderTrack(),this.renderStepDot(),x.createElement("div",null,this.renderHandle()),this.renderLabel(),x.createElement("div",{className:p},x.createElement("span",{className:`${Ui}-boundary-min`},r),x.createElement("span",{className:`${Ui}-boundary-max`},a)));return o?y:x.createElement("div",{className:g},y)}_addEventListener(e,t,r){if(e.addEventListener){for(var a=arguments.length,i=new Array(a>3?a-3:0),o=3;o{e==null||e.removeEventListener(t,r),Promise.resolve().then(()=>{this.eventListenerSet.delete(s)})};return this.eventListenerSet.add(s),s}else return B}}zA.propTypes={defaultValue:v.oneOfType([v.number,v.array]),disabled:v.bool,included:v.bool,marks:v.object,max:v.number,min:v.number,range:v.bool,step:v.number,tipFormatter:v.func,value:v.oneOfType([v.number,v.array]),vertical:v.bool,onAfterChange:v.func,onChange:v.func,onMouseUp:v.func,tooltipVisible:v.bool,style:v.object,className:v.string,showBoundary:v.bool,railStyle:v.object,verticalReverse:v.bool,getAriaValueText:v.func};zA.defaultProps={disabled:!1,included:!0,max:100,min:0,range:!1,step:1,tipFormatter:n=>n,vertical:!1,showBoundary:!1,onAfterChange:n=>{},onChange:n=>{},verticalReverse:!1};class pMe extends ze{constructor(e){super(Object.assign({},e)),this.handleFocusVisible=t=>{const{target:r}=t;try{r.matches(":focus-visible")&&this._adapter.setFocusVisible(!0)}catch{_n(!0,"Warning: [Semi Switch] The current browser does not support the focus-visible")}},this.handleBlur=()=>{this._adapter.setFocusVisible(!1)}}init(){const{disabled:e}=this.getProps();this.setDisabled(e)}setChecked(e){this._adapter.setNativeControlChecked(e)}setDisabled(e){this._adapter.setNativeControlDisabled(e)}handleChange(e,t){typeof this.getProps().checked<"u"?this._adapter.notifyChange(e,t):(this._adapter.setNativeControlChecked(e),this._adapter.notifyChange(e,t))}destroy(){}}const Wi={PREFIX:`${q}-switch`,FOCUS:`${q}-switch-focus`,LARGE:`${q}-switch-large`,SMALL:`${q}-switch-small`,CHECKED:`${q}-switch-checked`,DISABLED:`${q}-switch-disabled`,ACTIVE:`${q}-switch-active`,KNOB:`${q}-switch-knob`,NATIVE_CONTROL:`${q}-switch-native-control`,CHECKED_TEXT:`${q}-switch-checked-text`,UNCHECKED_TEXT:`${q}-switch-unchecked-text`,LOADING_SPIN:`${q}-switch-loading-spin`,LOADING:`${q}-switch-loading`},gMe={SIZE_MAP:["default","small","large"]};var vMe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:e.defaultChecked||e.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=x.createRef(),this.foundation=new pMe(this.adapter)}componentDidMount(){this.foundation.init()}componentDidUpdate(e){this.props.checked!==e.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==e.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:e=>{this.setState({nativeControlChecked:e})},setNativeControlDisabled:e=>{this.setState({nativeControlDisabled:e})},setFocusVisible:e=>{this.setState({focusVisible:e})},notifyChange:(e,t)=>{this.props.onChange(e,t)}})}render(){const{nativeControlChecked:e,nativeControlDisabled:t,focusVisible:r}=this.state,a=this.props,{className:i,style:o,onMouseEnter:s,onMouseLeave:l,size:u,checkedText:c,uncheckedText:d,loading:f,id:h}=a,p=vMe(a,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),g=$(i,{[Wi.PREFIX]:!0,[Wi.CHECKED]:e,[Wi.DISABLED]:t,[Wi.LARGE]:u==="large",[Wi.SMALL]:u==="small",[Wi.LOADING]:f,[Wi.FOCUS]:r}),m={type:"checkbox",className:Wi.NATIVE_CONTROL,disabled:t||f,checked:e||!1},y=c&&e&&u!=="small",b=d&&!e&&u!=="small";return x.createElement("div",Object.assign({className:g,style:o,onMouseEnter:s,onMouseLeave:l},this.getDataAttr(p)),f?x.createElement(Jl,{wrapperClassName:Wi.LOADING_SPIN,size:u==="default"?"middle":u}):x.createElement("div",{className:Wi.KNOB,"aria-hidden":!0}),y?x.createElement("div",{className:Wi.CHECKED_TEXT,"x-semi-prop":"checkedText"},c):null,b?x.createElement("div",{className:Wi.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},d):null,x.createElement("input",Object.assign({},m,{ref:this.switchRef,id:h,role:"switch","aria-checked":e,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:_=>this.foundation.handleChange(_.target.checked,_),onFocus:_=>this.handleFocusVisible(_),onBlur:_=>this.handleBlur(_)})))}}BA.propTypes={"aria-label":v.string,"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,className:v.string,checked:v.bool,checkedText:v.node,defaultChecked:v.bool,disabled:v.bool,loading:v.bool,onChange:v.func,onMouseEnter:v.func,onMouseLeave:v.func,style:v.object,size:v.oneOf(gMe.SIZE_MAP),uncheckedText:v.node,id:v.string};BA.defaultProps={disabled:!1,className:"",onChange:B,loading:!1,onMouseEnter:B,onMouseLeave:B,size:"default"};const kq=BA;var mMe=C7,yMe=1/0;function bMe(n){var e=n==null?0:n.length;return e?mMe(n,yMe):[]}var _Me=bMe;const SMe=Ie(_Me);var CMe=Tw;function wMe(n,e){var t;return CMe(n,function(r,a,i){return t=e(r,a,i),!t}),!!t}var xMe=wMe,TMe=RK,EMe=Qg,OMe=xMe,IMe=Tr,PMe=Cw;function DMe(n,e,t){var r=IMe(n)?TMe:OMe;return t&&PMe(n,e,t)&&(e=void 0),r(n,EMe(e))}var AMe=DMe;const c2=Ie(AMe);var MMe=Tw;function RMe(n,e){var t=[];return MMe(n,function(r,a,i){e(r,a,i)&&t.push(r)}),t}var LMe=RMe,kMe=vK,NMe=LMe,FMe=Qg,$Me=Tr;function VMe(n,e){var t=$Me(n)?kMe:NMe;return t(n,FMe(e))}var jMe=VMe;const pg=Ie(jMe);var zMe=xw;function BMe(n,e,t){t=typeof t=="function"?t:void 0;var r=t?t(n,e):void 0;return r===void 0?zMe(n,e,void 0,t):!!r}var HMe=BMe;const UMe=Ie(HMe),pa={PREFIX:`${q}-table`,TABLE:`${q}-table`,WRAP:`${q}-table-wrapper`,THEAD:`${q}-table-thead`,TR:`${q}-table-row`,TH:`${q}-table-row-head`,TD:`${q}-table-row-cell`},je={SIZE_SMALL:"small",SIZE_MIDDLE:"middle",SIZES:["small","default","middle"],LAYOUTS:["","auto","fixed"],PAGINATION_POSITIONS:["bottom","top","both"],FOOTER_POSITIONS:[!1,!0,"left","right"],SORT_DIRECTIONS:["ascend","descend"],FIXED_SET:[!1,!0,"left","right"],ALIGNS:["left","right","center"],SCROLL_HORIZONTAL_POSITIONS:["left","middle","right"],DEFAULT_KEY_COLUMN_SELECTION:"column-selection",DEFAULT_KEY_COLUMN_EXPAND:"column-expand",DEFAULT_KEY_COLUMN_TITLE:"column-title",DEFAULT_KEY_COLUMN_SORTER:"column-sorter",DEFAULT_KEY_COLUMN_FILTER:"column-filter",DEFAULT_KEY_COLUMN_SCROLLBAR:"column-scrollbar",DEFAULT_COMPONENTS:{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:{outer:"table",wrapper:"tbody",row:"tr",cell:"td"},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},EXPAND_RELATED_PROPS:["expandedRowRender","dataSource","hideExpandedColumn","childrenRecordName","rowExpandable"]},ah=1,HA=0,UA=16,WA=16,GA=12,YA=12,KA=8,ZA=8,ox=20,cF=ox+ah+HA+UA+WA,WMe=UA+WA+ah,dF=ox+ah+HA+GA+YA,GMe=GA+YA+ah,fF=ox+ah+HA+ZA+KA,YMe=KA+ZA+ah,lr={DEFAULT_PAGE_SIZE:10,DEFAULT_WIDTH_COLUMN_EXPAND:60,DEFAULT_WIDTH_COLUMN_SELECTION:60,DEFAULT_INDENT_WIDTH:20,DEFAULT_CELL_PADDING_LEFT:16,DEFAULT_CELL_PADDING_RIGHT:16,DEFAULT_CELL_PADDING_TOP:UA,DEFAULT_CELL_PADDING_BOTTOM:WA,DEFAULT_CELL_MIDDLE_PADDING_TOP:GA,DEFAULT_CELL_MIDDLE_PADDING_BOTTOM:YA,DEFAULT_CELL_SMALL_PADDING_TOP:KA,DEFAULT_CELL_SMALL_PADDING_BOTTOM:ZA,DEFAULT_CELL_BORDER_WIDTH_LEFT:1,DEFAULT_CELL_BORDER_WIDTH_RIGHT:1,DEFAULT_CELL_BORDER_WITH_BOTTOM:ah,DEFAULT_CELL_LINE_HEIGHT:ox,DEFAULT_VIRTUALIZED_BODY_HEIGHT:600,DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_HEIGHT:cF,DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT:WMe,DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT:dF,DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT:GMe,DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT:fF,DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT:YMe};class KMe{constructor(e){this._prefix=e}_isEmpty(e){return e==null||e===""}_baseLog(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"log";if(typeof console[e]=="function"){for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a2?i-2:0),s=2;s{if(t=H(n,r),t!=null)return!1}),t}function gg(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0;e=e<0||typeof e!="number"?0:e,t=t>n.length||typeof t!="number"?n.length:t;let r=0;return Br(n,(a,i)=>{i>=e&&i2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed===!0||i.fixed==="left"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===r.length-1}function jI(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["key"];const r=pg(n,i=>i.fixed==="right"),a=po(r,i=>t.every(o=>i[o]!=null&&i[o]===e[o]));return r.length>0&&a===0}function d2(n){return["left",!0].includes(H(n,"fixed"))}function f2(n){return["right"].includes(H(n,"fixed"))}function XMe(n){return[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SCROLLBAR,je.DEFAULT_KEY_COLUMN_SELECTION].includes(n)}function Fq(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_EXPAND}function qMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SCROLLBAR}function QMe(n){return H(n,"key")===je.DEFAULT_KEY_COLUMN_SELECTION}function XA(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[je.DEFAULT_KEY_COLUMN_SCROLLBAR];return pg(n,t=>!e.includes(t.key))}function Xu(n,e){return e===void 0&&(e="key"),typeof e=="function"?e(n):H(n,e)}function E5(n,e){return e!=null&&Fs(n,e)}function JMe(n,e){return e!==null&&n.has(e)}function eRe(n,e){return e!==null&&n.has(e)}function pF(n,e,t){return t===void 0&&(t="key"),qs(n,r=>e!=null&&e!==""&&Xu(r,t)===e)}function tRe(n,e){return e===void 0&&(e="children"),H(n,e)}function $q(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;return e===void 0&&(e="__expanded_row"),n+e}function nRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const t={};return n==="small"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_SMALL_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_SMALL_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_SMALL_MIN_HEIGHT):n==="middle"?(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_MIDDLE_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIDDLE_MIN_HEIGHT):(t.height=e?lr.DEFAULT_VIRTUALIZED_SECTION_ROW_HEIGHT:lr.DEFAULT_VIRTUALIZED_ROW_HEIGHT,t.minHeight=lr.DEFAULT_VIRTUALIZED_ROW_MIN_HEIGHT),t}function Bp(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children";const t=[];if(Array.isArray(n)&&n.length)for(const r of n)Array.isArray(r[e])&&r[e].length?t.push(...Bp(r[e],e)):(iRe(r),t.push(r));return t}function FS(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"children",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const r=[];return Br(n,(a,i)=>{if(a.key==null){const o=a.dataIndex||i;a.key=`${t}-${o}`}Array.isArray(a[e])&&a[e].length&&r.push(...a[e])}),r.length&&FS(r,e,t+1),n}function Vq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"children",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;const a=[];return Array.isArray(n)&&n.length&&r<=e&&n.forEach(i=>{const o=i[t];Array.isArray(o)&&o.length&&r2&&arguments[2]!==void 0?arguments[2]:"children",r;return Br(n,a=>{if(a&&a.key!=null&&!r&&a.key===e.key&&(r=a),a&&Array.isArray(a[t])&&!r&&(r=h2(a[t],e,t)),r)return!1}),r}function rRe(n){const{expandedRowRender:e,dataSource:t,hideExpandedColumn:r,childrenRecordName:a,rowExpandable:i}=n,o=typeof e=="function";return r&&o||!o&&t.some(s=>{const l=H(s,a);return!!(Array.isArray(l)&&l.length||i(s))})}function jq(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t;const r=e.findIndex(a=>n.dataIndex===a.dataIndex?(t=Object.assign(Object.assign({},a),n),!0):!1);return r>-1?e.splice(r,1,t):e.push(t),[...e]}function aRe(n,e){const t=[...e];for(const r of n)if(!ct(r.width)){const a=r.key,i=po(t,o=>o.key===a);i!==-1&&(t[i].width=H(r,"width"))}return t}function zq(n){let{dataSource:e,getCheckboxProps:t,childrenRecordName:r,rowKey:a}=n;const i=[];if(Array.isArray(e)&&e.length&&typeof t=="function")for(const o of e){const s=t(o),l=typeof a=="function"?a(o):H(o,a);s&&s.disabled&&i.push(l);const u=H(o,r);if(Array.isArray(u)&&u.length){const c=zq({dataSource:u,getCheckboxProps:t});i.push(...c)}}return i}function iRe(n){if(typeof n=="object"&&n!==null){const{filters:e,sorter:t,dataIndex:r,onFilter:a}=n,i=new Nq("[@douyinfe/semi-ui Table]");(Array.isArray(e)||ke(a)||ke(t))&&ct(r)&&i.warn("The column with sorter or filter must pass the 'dataIndex' prop")}}function oRe(n){let{dataSource:e,childrenRecordName:t="children"}=n,r=!1;if(Array.isArray(e))for(const a of e){const i=H(a,t);if(Array.isArray(i)&&i.length){r=!0;break}}return r}function Bq(n,e){if(e==="rtl")switch(n){case"left":return"right";case"right":return"left";default:return n}return n}function qA(n){return n===!0||H(n,"showTitle",!0)}class sRe{constructor(e){this._state=Object.assign({},e),this._listeners=[]}subscribe(e){return this._listeners.push(e),()=>{const r=this._listeners.indexOf(e);r>-1&&this._listeners.splice(r,1)}}setState(e){Object.assign(this._state,Object.assign({},e));for(const t of this._listeners)typeof t=="function"&&t(this._state)}getState(){return this._state}}const lRe=sRe;function uRe(n,e,t,r){for(var a=t-1,i=n.length;++a-1;)s!==n&&gF.call(s,l,1),gF.call(n,l,1);return n}var yRe=mRe,bRe=yRe;function _Re(n,e){return n&&n.length&&e&&e.length?bRe(n,e):n}var SRe=_Re,CRe=Sw,wRe=SRe,xRe=CRe(wRe),TRe=xRe;const ERe=Ie(TRe);function ORe(n){return new Set(n)}function IRe(n,e){if(n===e&&(e=ORe(e)),Ps(n)&&n.size&&Ps(e)&&e.size){for(const t of e)n.has(t)&&n.delete(t);return n}return n}function vF(n,e){if(n!==null&&n.length&&e!==null&&e.length){const t=new Set(n),r=new Set(e),a=IRe(t,r);return Array.from(a)}return n}function PRe(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ascend";switch(e){case"descend":return(t,r)=>{const a=Number(n(t,r,e));return a!==0?-a:a};case"ascend":default:return(t,r)=>n(t,r,e)}}class $S extends ze{static initColumnsFilteredValueAndSorterOrder(e){return e.forEach(t=>{$S.initFilteredValue(t),$S.initSorterOrder(t)}),e}static initFilteredValue(e){const{defaultFilteredValue:t,filteredValue:r}=e;Vt(r)&&(Array.isArray(t)&&t.length?e.filteredValue=t:e.filteredValue=[])}static initSorterOrder(e){const{defaultSortOrder:t,sortOrder:r,sorter:a}=e;a&&Vt(r)&&(Vt(t)?e.sortOrder=!1:e.sortOrder=t)}constructor(e){super(Object.assign({},e)),this.setPage=(a,i)=>{a=a||this._adapter.getCurrentPage();const o=this.getState("pagination"),{dataSource:s,pagination:l,disabledRowKeys:u,allRowKeys:c}=this.getCurrentPageData(null,Object.assign(Object.assign({},o),{currentPage:a,pageSize:i}));!this._pagerIsControlled()&&a>0&&(this._adapter.setDisabledRowKeys(u),this._adapter.setAllRowKeys(c),this._adapter.setPagination(l),this._adapter.setDataSource(s)),this._notifyChange(l)},this.setCachedFilteredSortedDataSource=a=>{this._adapter.setCachedFilteredSortedDataSource(a);const i=this.getAllRowKeys(a);this._adapter.setCachedFilteredSortedRowKeys(i)},this.isSortOrderValid=a=>je.SORT_DIRECTIONS.includes(a)||a===!1;const t=this._adapter.getHandleColumns(),r=this._adapter.getMergePagination();this.memoizedWithFnsColumns=Jd(t,Ke),this.memoizedFilterColumns=Jd(XA),this.memoizedFlattenFnsColumns=Jd(Bp),this.memoizedPagination=Jd(r,Ke)}init(){const e=[...this.getProp("dataSource")],{queries:t}=this._adapter.getStates(),r=this.getFilteredSortedDataSource(e,t),a=this.getAllDisabledRowKeys(r),i=this.getCurrentPageData(r);this.setAdapterPageData(i),this.initExpandedRowKeys(i),this.initSelectedRowKeys(i),this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a)}initExpandedRowKeys(){let{groups:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{defaultExpandAllRows:t,defaultExpandedRowKeys:r=[],expandedRowKeys:a=[],dataSource:i=[],expandAllRows:o,defaultExpandAllGroupRows:s,expandAllGroupRows:l}=this.getProps(),u=[];t||o?this._addNoDuplicatedItemsToArr(u,this.getAllRowKeys(i),e&&j1(e)&&e.size?Array.from(e.keys()):[]):s||l?this._addNoDuplicatedItemsToArr(u,e&&j1(e)&&e.size?Array.from(e.keys()):[]):Array.isArray(r)&&r.length?this._addNoDuplicatedItemsToArr(u,r):Array.isArray(a)&&a.length&&this._addNoDuplicatedItemsToArr(u,a),this._adapter.setExpandedRowKeys(u)}initSelectedRowKeys(e){let{disabledRowKeys:t}=e;const r=this.getProp("rowSelection"),a=[];if(r){const i=H(r,"selectedRowKeys"),o=H(r,"defaultSelectedRowKeys");Array.isArray(i)?this._addNoDuplicatedItemsToArr(a,i):Array.isArray(o)&&this._addNoDuplicatedItemsToArr(a,o),Array.isArray(t)&&t.length&&ERe(a,...t),this._adapter.setSelectedRowKeys(a)}}getFilteredSortedDataSource(e,t){const r=this.filterDataSource(e,t.filter(i=>{const o=i.filteredValue?i.filteredValue:i.defaultFilteredValue;return ke(i.onFilter)&&Array.isArray(o)&&o.length}));return this.sortDataSource(r,t.filter(i=>i&&ke(i.sorter)))}getCurrentPageData(e,t,r){const a=this._adapter.getCachedFilteredSortedDataSource();e=e??[...a],t=t??(this.getState("pagination")&&Object.assign({},this.getState("pagination"))),r=r??[...this.getState("queries")];let i;if(this.getProp("groupBy")!=null){const{groups:u,dataSource:c}=this.groupDataSource(e);e=c,i=u}t=this.normalizePagination(t,e),e=this.limitPageDataSource(e,t);const o=this.getAllDisabledRowKeys(e),s=this.getAllRowKeys(e);return{dataSource:e,groups:i,pagination:t,disabledRowKeys:o,allRowKeys:s,queries:r}}groupDataSource(e,t){t=t??this.getProp("groupBy");const r=new Map,a=[];return t!=null&&Br(e,(i,o)=>{const s=typeof t=="function"?t(i):H(i,t);if(s!=null&&s!==""){const l=this.getRecordKey(i);let u=r.get(s);Ps(u)?u.add(l):(u=new Set([l]),r.set(s,u))}}),r&&r.size?r.forEach((i,o)=>{Ps(i)&&i.forEach(s=>{a.push(this._getRecord(s))})}):a.push(...e),{groups:r,dataSource:a}}sortDataSource(e,t){return Br(t,r=>{const{sorter:a,sortOrder:i,defaultSortOrder:o,sortChildrenRecord:s}=r,l=this.isSortOrderValid(i)?i:o;if(ke(a)&&l&&je.SORT_DIRECTIONS.includes(l)){if(s){const u=this.getProp("childrenRecordName");e=e&&e.map(c=>{const d=this._getRecordChildren(c);return Array.isArray(d)&&d.length?Object.assign(Object.assign({},c),{[u]:this.sortDataSource(d,[r])}):c})}return e.sort(PRe(a,l)),!1}}),e}filterDataSource(e,t){let r=null,a=!1;const i=this.getProp("childrenRecordName");return Br(t,o=>{const{onFilter:s,filteredValue:l,filterChildrenRecord:u,defaultFilteredValue:c}=o,d=Array.isArray(l)?l:c;typeof s=="function"&&Array.isArray(d)&&d.length&&(a=!0,r===null?r=new Map:(e=Array.from(r&&r.values()),r=new Map),Br(e,f=>{Br(d,h=>{const p=H(f,i),g=this.getRecordKey(f);let m;if(Array.isArray(p)&&p.length&&u&&(m=this.filterDataSource(p,[o])),Array.isArray(m)&&m.length){if(g!=null){const y=H(r.get(g),i,[]);r.set(g,Object.assign(Object.assign({},f),{[i]:m.reduce((b,_)=>(b.find(S=>this.getRecordKey(S)===this.getRecordKey(_))==null&&b.push(_),b),[...y])}))}}else s(h,f)&&r.set(g,f)})}))}),a&&(e=Array.from(r&&r.values())),e}limitPageDataSource(e,t){e=e??this.getProp("dataSource"),t=t??this.getState("pagination");let r=e;const a=H(t,"currentPage");if(this.getProp("pagination")!==!1&&a&&e&&t&&!this._pagerIsControlled()){const{pageSize:i=lr.DEFAULT_PAGE_SIZE}=t,o=(a-1)*i,s=a*i;r=o2(e,o,s)}return r}normalizePagination(e,t){e=e??this._getPagination(),t=t??this._getDataSource();const r=this.getProp("pagination");if(e&&(e=typeof e=="object"?Object.assign({},e):{},e=Gy({total:t&&t.length||0,pageSize:lr.DEFAULT_PAGE_SIZE,currentPage:H(r,"defaultCurrentPage",1),position:je.PAGINATION_POSITIONS[0]},e),!this._pagerIsControlled())){const a=H(r,"total",t.length),{currentPage:i,pageSize:o}=e,s=Math.ceil(a/o);e.total=a,i>s&&(e.currentPage=1)}return e}setAdapterPageData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{pagination:t,dataSource:r,disabledRowKeys:a,allRowKeys:i,groups:o}=e;this._adapter.setDisabledRowKeys(a),this._adapter.setAllRowKeys(i),this._adapter.setPagination(t),this._adapter.setGroups(o),this._adapter.setDataSource(r)}destroy(){}setAllDisabledRowKeys(e){this._adapter.setAllDisabledRowKeys(e)}handleClick(e){}handleMouseEnter(e){}handleMouseLeave(e){}stopPropagation(e){this._adapter.stopPropagation(e)}_addNoDuplicatedItemsToArr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;ae!=null&&e!==""&&this.getRecordKey(t)===e)}_getRecordChildren(e){return H(e,this.getProp("childrenRecordName"))}_getPagination(){return this.getState("pagination")||{}}_getAllFilters(e){e=e||this.getState("queries");const t=[];return Br(e,r=>{Array.isArray(r.filteredValue)&&(r.filteredValue.length||this._filterIsControlled(r.dataIndex))&&t.push(r)}),t}_getAllSorters(e){return e=e||this.getState("queries"),pg(e,t=>t.sorter&&t.sortOrder)}_filterQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries");const a=[],i=[];return Br(t,(o,s)=>{c2(r,u=>u&&e[u]!=null&&e[u]===o[u])&&(a.push(o),i.push(s))}),{filteredQueries:a,filteredIndexes:i}}_mergeToQueries(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:["dataIndex"];t=t??this.getState("queries"),t=[...t],e=Object.assign({},e);const{filteredQueries:a,filteredIndexes:i}=this._filterQueries(e,t,r);return Br(a,(o,s)=>{t[i[s]]=Object.assign({},e)}),t}getRecordKey(e){if(!e)return;const t=this.getProp("rowKey");return typeof t=="function"?t(e):H(e,t)}isEmpty(e){return e=e??this.getProp("dataSource"),!(Array.isArray(e)&&e.length>0)}handleSelectRow(e,t,r){if(this.stopPropagation(r),typeof t=="boolean"&&e!=null){const a=this._getSelectedRowKeys();let i=-1;const o=this.getSelectedRows(null,[e])[0];let s;(i=a.indexOf(e))>-1&&t===!1?(a.splice(i,1),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s)):a.indexOf(e)===-1&&t===!0&&(a.push(e),s=this.getSelectedRows(null,a),this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelect(o,t,s,r),this._adapter.notifySelectionChange(a,s))}}handleSelectAllRow(e,t){if(this.stopPropagation(t),typeof e=="boolean"){const r=this._getSelectedRowKeys();let a=[...r];const i=this._getSelectedRowKeysSet();let o=[...this._adapter.getCachedFilteredSortedRowKeys()];const s=this._adapter.getAllDisabledRowKeys(),l=this._adapter.getAllDisabledRowKeysSet();let u;if(e){for(const f of o)!l.has(f)&&!i.has(f)&&a.push(f);o=vF(o,[...s,...r]),u=[...o]}else a=vF(a,o),u=[...r];const c=this.getSelectedRows(null,u||[]),d=this.getSelectedRows(null,a||[]);this._selectionIsControlled()||this._adapter.setSelectedRowKeys(a),this._adapter.notifySelectAll(e,d,c,t),this._adapter.notifySelectionChange(a,d)}}getSelectedRows(e,t,r){e=e??this._getDataSource(),t=t??this._getSelectedRowKeys(),Ps(r)||(r=new Set(t));const a=this.getProp("childrenRecordName"),i=[];if(Ps(r)&&r.size&&Array.isArray(e)&&e.length&&(i.push(...e.filter(o=>r.has(this.getRecordKey(o)))),i.lengtht.has(r)).length)}handleRowExpanded(e,t,r){this.stopPropagation(r);const a=[...this.getState("expandedRowKeys")],i=a.indexOf(t),o=typeof t=="string"||typeof t=="number";o&&e&&i===-1?a.push(t):o&&!e&&i>-1&&a.splice(i,1),this._rowExpansionIsControlled()||this._adapter.setExpandedRowKeys(a);const s=this.getSelectedRows(null,a);let l=this.getSelectedRows(null,[t])[0];const u=this._getGroups();if(u){u.has(t)&&(l={groupKey:t});for(let c=0,d=a.length;ci!=null&&!t.has(i));if(a&&a.length){for(const i of a)if(i!=null&&!e.has(i))return!1;return!0}else return!1}allIsNotSelected(e,t){for(const r of t)if(r!=null&&Array.isArray(e)&&e.includes(r))return!0;return!1}formatPaginationInfo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="";const a=H(this.getProp("pagination"),"formatPageText"),{total:i,pageSize:o,currentPage:s}=e,l=Math.min((s-1)*o+1,i),u=Math.min(s*o,i);return(a||a!==!1&&t&&i>0)&&(r=typeof a=="function"?a({currentStart:l,currentEnd:u,total:i}):t.replace("${currentStart}",l).replace("${currentEnd}",u).replace("${total}",i)),r}toggleShowFilter(e,t){let r=this.getQuery(e);const a=t;r=Object.assign(Object.assign({},r),{filterDropdownVisible:a}),this._filterShowIsControlled(),this._adapter.notifyFilterDropdownVisibleChange(a,e)}handleFilterSelect(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getQuery(e),a=[...this._adapter.getState("queries")];const{filteredValue:i}=t;r=Object.assign(Object.assign({},r),{filteredValue:i}),a=jq(r,a);const o=this._mergeToQueries(r,null),s=this._getAllFilters(o);this._filterIsControlled(e)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,s)}handleSort(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.stopPropagation(t);const{dataIndex:r}=e;let a=this.getState("queries"),i=null;a=[...a],Br(a,(o,s,l)=>{if(o.sorter){const u=Object.assign({},o),c=H(u,"sortOrder"),d=H(u,"defaultSortOrder",!1);let f=this.isSortOrderValid(c)?c:d;r&&r===u.dataIndex?f===je.SORT_DIRECTIONS[0]?f=je.SORT_DIRECTIONS[1]:f===je.SORT_DIRECTIONS[1]?f=!1:f=je.SORT_DIRECTIONS[0]:f=!1,l[s]=Object.assign(Object.assign({},u),{sortOrder:f}),r===u.dataIndex&&(i=l[s])}}),this._sorterIsControlled(r)||(this._adapter.setQueries(a),this.handleClickFilterOrSorter(a)),this._notifyChange(null,null,i,null)}handleClickFilterOrSorter(e){const t=[...this.getProp("dataSource")],r=this.getFilteredSortedDataSource(t,e),a=this.getAllDisabledRowKeys(r);this.setCachedFilteredSortedDataSource(r),this.setAllDisabledRowKeys(a);const i=this.getCurrentPageData(r);this.setAdapterPageData(i)}getQuery(e,t){if(t=t||this.getState("queries"),e!=null)return qs(t,r=>r.dataIndex===e)}getCellWidths(e,t,r){return this._adapter.getCellWidths(e,t,r)}setHeadWidths(e,t){return this._adapter.setHeadWidths(e,t)}getHeadWidths(e){return this._adapter.getHeadWidths(e)}mergedRowExpandable(e){return this._adapter.mergedRowExpandable(e)}setBodyHasScrollbar(e){this._adapter.setBodyHasScrollbar(e)}}const mF=$S,Hq={align:v.oneOf(je.ALIGNS),className:v.string,colSpan:v.number,dataIndex:v.string,defaultSortOrder:v.oneOf(je.SORT_DIRECTIONS),filterChildrenRecord:v.bool,filterDropdownProps:v.object,filterDropdown:v.node,filterDropdownVisible:v.bool,filterIcon:v.func,filterMultiple:v.bool,filteredValue:v.arrayOf(v.any),filters:v.array,fixed:v.oneOf(je.FIXED_SET),onCell:v.func,onFilter:v.func,onFilterDropdownVisibleChange:v.func,onHeaderCell:v.func,onSorterChange:v.func,render:v.func,renderFilterDropdownItem:v.func,sortChildrenRecord:v.bool,sortDirections:v.arrayOf(v.string),sortOrder:v.oneOfType([v.bool,v.string]),sorter:v.oneOfType([v.bool,v.func]),title:v.oneOfType([v.func,v.node]),useFullRender:v.bool,width:v.oneOfType([v.number,v.string])};class tt extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(e)}render(){return null}}tt.propTypes=Object.assign({},Hq);tt.elementType="Column";function VS(n){if(n){const e=[];return x.Children.forEach(n,t=>{if(x.isValidElement(t)&&(t.type===tt||H(t,"type.elementType")==="Column")){const r=fr(t.props,["children"]);Array.isArray(t.props.children)&&t.props.children.length&&(r.children=VS(t.props.children)),e.push(Object.assign({key:t.key},r))}}),e}return[]}const DRe=x.createContext({headWidths:[],setHeadWidths:B,handleRowExpanded:B}),ih=DRe,ARe=n=>{let{children:e,anyColumnFixed:t,flattenedColumns:r,tableWidth:a,headWidths:i,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,handleRowExpanded:u,renderExpandIcon:c,renderSelection:d,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}=n;const g=D.useMemo(()=>({anyColumnFixed:t,flattenedColumns:r,renderExpandIcon:c,renderSelection:d,setHeadWidths:o,getHeadWidths:s,getCellWidths:l,headWidths:i,tableWidth:a,handleRowExpanded:u,getVirtualizedListRef:f,setBodyHasScrollbar:h,direction:p}),[t,r,c,d,o,s,l,i,a,u,f,h,p]);return x.createElement(ih.Provider,{value:g},e)},MRe=ARe;class RRe extends ze{handleChange(e){const t=e.target.checked;this._adapter.notifyChange(t,e)}}class jS extends Pe{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)}})}constructor(e){super(e),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new RRe(this.adapter)}render(){const{selected:e,getCheckboxProps:t,indeterminate:r,disabled:a,prefixCls:i,className:o}=this.props,s=this.props["aria-label"];let l={onChange:this.handleChange,disabled:a,indeterminate:r,checked:e};typeof t=="function"&&(l=Object.assign(Object.assign({},l),t()));const u=$(`${i}-selection-wrap`,{[`${i}-selection-disabled`]:a},o);return x.createElement("span",{className:u},x.createElement(Ff,Object.assign({"aria-label":s},l)))}}jS.propTypes={columnTitle:v.string,getCheckboxProps:v.func,type:v.string,onChange:v.func,selected:v.bool,disabled:v.bool,indeterminate:v.bool,prefixCls:v.string,className:v.string,"aria-label":v.string};jS.defaultProps={disabled:!1,onChange:B,prefixCls:pa.PREFIX};class QA extends D.PureComponent{render(){const{pagination:e,prefixCls:t,info:r,renderPagination:a}=this.props,i=H(e,"total"),o=a&&ke(a)?a(e):null;return x.createElement("div",{className:`${t}-pagination-outer`},D.isValidElement(o)?o:x.createElement(x.Fragment,null,x.createElement("span",{className:`${t}-pagination-info`},r),x.createElement("span",{className:`${t}-pagination-wrapper`},i>0?x.createElement(rx,Object.assign({},e,{key:H(e,"pageSize","pagination")})):null)))}}QA.propTypes={style:v.object,prefixCls:v.string,pagination:v.object,info:v.oneOfType([v.string,v.node]),renderPagination:v.func};QA.defaultProps={prefixCls:pa.PREFIX};function Uq(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const{filterMultiple:r=!0,filters:a=[],filteredValue:i=[],filterDropdownVisible:o,onSelect:s=B,onFilterDropdownVisibleChange:l=B,trigger:u="click",position:c="bottom",renderFilterDropdownItem:d}=n,f=Object.assign(Object.assign({},n),{onVisibleChange:h=>l(h),trigger:u,position:c,render:x.createElement(Vs.Menu,null,Array.isArray(a)&&a.map((h,p)=>{const g=w=>{const T=w&&w.nativeEvent;T&&(T.stopImmediatePropagation(),T.stopPropagation(),T.preventDefault());let E=[...i];const O=E.includes(h.value),I=E.indexOf(h.value);return I>-1?E.splice(I,1):r?E.push(h.value):E=[h.value],s({value:h.value,filteredValue:E,included:!O,domEvent:T})},m=i.includes(h.value),{text:y}=h,{value:b}=h,_=`${t}_${p}`,S=typeof d=="function"?d({onChange:g,filterMultiple:r,value:b,text:y,checked:m,filteredValue:i,level:t}):null;let C=S&&x.isValidElement(S)?x.cloneElement(S,{key:_}):x.createElement(Vs.Item,{key:_,onClick:g},r?x.createElement(Ff,{checked:m},y):x.createElement(q1,{checked:m},y));if(Array.isArray(h.children)&&h.children.length){const w=Object.assign(Object.assign({},n),{filters:h.children,trigger:"hover",position:"right"});delete w.filterDropdownVisible,C=Uq(w,C,t+1)}return C}))});return o!=null&&(f.visible=o),x.createElement(Vs,Object.assign({},f,{key:`Dropdown_level_${t}`,className:`${pa.PREFIX}-column-filter-dropdown`}),e)}function LRe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:e=pa.PREFIX,filteredValue:t,filterIcon:r="filter",renderFilterDropdown:a,filterDropdownProps:i}=n;let{filterDropdown:o=null}=n;const s=$(`${e}-column-filter`,{on:Array.isArray(t)&&t.length});let l;typeof r=="function"?l=r(Array.isArray(t)&&t.length>0):D.isValidElement(r)?l=r:l=x.createElement("div",{className:s},"​",x.createElement(XTe,{role:"button","aria-label":"Filter data with this column","aria-haspopup":"listbox",tabIndex:-1,size:"default"}));const u=Object.assign(Object.assign({},n),i);return o=x.isValidElement(o)?o:typeof a=="function"?a(u,{iconElem:l}):Uq(u,l),o}class JA extends D.PureComponent{render(){const{prefixCls:e,onClick:t,sortOrder:r,style:a,title:i}=this.props,o="default",s=$(`${e}-column-sorter-up`,{on:r===je.SORT_DIRECTIONS[0]}),l=$(`${e}-column-sorter-down`,{on:r===je.SORT_DIRECTIONS[1]}),u={"aria-label":`Current sort order is ${r?`${r}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return x.createElement("div",Object.assign({role:"button"},u,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:c=>ha(c)&&t(c)}),i,x.createElement("div",{style:a,className:`${e}-column-sorter`},x.createElement("span",{className:`${s}`},x.createElement(dTe,{size:o})),x.createElement("span",{className:`${l}`},x.createElement(lTe,{size:o}))))}}JA.propTypes={className:v.string,style:v.object,onClick:v.func,prefixCls:v.string,sortOrder:v.oneOfType([v.string,v.bool])};JA.defaultProps={prefixCls:pa.PREFIX,onClick:B,sortOrder:!1};function e9(n){const{expanded:e,componentType:t,onClick:r=B,onMouseEnter:a=B,onMouseLeave:i=B,expandIcon:o,prefixCls:s=pa.PREFIX,motion:l=!0}=n;let u;x.isValidElement(o)?u=o:typeof o=="function"?u=o(e):t==="tree"?u=e&&!l?x.createElement(SZ,{size:"small"}):x.createElement(K5e,{size:"small"}):u=e&&!l?x.createElement(kf,null):x.createElement(sg,null);const c=D.useCallback(d=>{typeof r=="function"&&r(!e,d)},[e]);if(l){const d=u;u=x.createElement(ig,{animationState:e?"enter":"leave",startClassName:`${pa.PREFIX}-expandedIcon-${e?"show":"hide"}`},f=>{let{animationClassName:h}=f;return x.cloneElement(d,{className:(d.props.className||"")+" "+h})})}return x.createElement("span",{role:"button","aria-label":"Expand this row",tabIndex:-1,onClick:c,onMouseEnter:a,onMouseLeave:i,className:`${s}-expand-icon`,onKeyPress:d=>ha(d)&&c(d)},u)}e9.propTypes={expanded:v.bool,componentType:v.oneOf(["tree","expand"]),onClick:v.func,onMouseEnter:v.func,onMouseLeave:v.func,expandIcon:v.oneOfType([v.node,v.func]),prefixCls:v.string,motion:v.bool};e9.defaultProps={componentType:"expand",onClick:B,onMouseEnter:B,onMouseLeave:B,prefixCls:pa.PREFIX};class sx extends x.PureComponent{render(){const{columns:e,className:t,style:r,prefixCls:a,components:i}=this.props,o=H(i,"colgroup.wrapper","colgroup"),s=H(i,"colgroup.col","col"),l=Bp(e).map((c,d)=>{const f={};return c.width&&(f.width=c.width,f.minWidth=f.width),x.createElement(s,{className:$(`${a}-col`,c.className),key:c.key||c.dataIndex||d,style:f})}),u=$(`${a}-colgroup`,t);return x.createElement(o,{className:u,style:r},l)}}sx.propTypes={columns:v.array,prefixCls:v.string,className:v.string,style:v.object,components:v.object};sx.defaultProps={columns:[],prefixCls:pa.PREFIX};var kRe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{if(this.headerNode=t,t&&this.context.setHeadWidths){const{prefixCls:r,row:a,index:i}=this.props,o=`.${r}-row-head`,s=t&&t.querySelectorAll&&t.querySelectorAll(o);this.context.setHeadWidths(K1(s,(l,u)=>{let c=H(a,[u,"column","width"]);const d=H(a,[u,"column","key"]);return typeof c!="number"&&(c=l&&l.getBoundingClientRect().width||0),{width:c,key:d}}),i)}},this.headerNode=null}componentDidUpdate(e){e.columns!==this.props.columns&&this.headerNode&&this.cacheRef(this.headerNode)}render(){const{components:e,row:t,prefixCls:r,onHeaderRow:a,index:i,style:o,columns:s}=this.props,{getCellWidths:l,direction:u}=this.context,c=u==="rtl",d=Vq(s,i),f=l(d),h=H(e,"header.row","tr"),p=H(e,"header.cell","th"),g=a(s,i)||{};ai(g,"className",$(H(g,"className"),`${r}-row`));const m=K1(t,(y,b)=>{const{column:_}=y,S=kRe(y,["column"]),C=typeof _.onHeaderCell=="function"?_.onHeaderCell(_,b,i):{};let w=Object.assign({},C.style);if(_.align){const L=Bq(_.align,u);w=Object.assign(Object.assign({},w),{textAlign:L}),C.className=$(C.className,_.className,{[`${r}-align-${L}`]:!!L})}let T,E,O,I;if(c?(T=f2(_),E=d2(_),O=jI(d,_),I=VI(d,_)):(T=d2(_),E=f2(_),O=VI(d,_),I=jI(d,_)),C.className=$(`${r}-row-head`,_.className,C.className,{[`${r}-cell-fixed-left`]:T,[`${r}-cell-fixed-left-last`]:O,[`${r}-cell-fixed-right`]:E,[`${r}-cell-fixed-right-first`]:I,[`${r}-row-head-ellipsis`]:_.ellipsis}),f.length&&d.length){const L=po(d,k=>k&&k.key!=null&&k.key===_.key);if(L>-1){if(d2(_)){const k=c?"right":"left";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,0,L)})}else if(f2(_)){const k=c?"left":"right";w=Object.assign(Object.assign({},w),{position:"sticky",[k]:gg(f,L+1)})}}}Object.assign(S,{resize:_.resize});const P=fr(Object.assign(Object.assign({},S),C),["colStart","colEnd","hasSubColumns","parents","level"]),{rowSpan:A,colSpan:R}=P;return A===0||R===0?null:x.createElement(p,Object.assign({role:"columnheader","aria-colindex":b+1},P,{style:w,key:_.key||_.dataIndex||b}))});return x.createElement(h,Object.assign({role:"row","aria-rowindex":i+1},g,{style:o,ref:this.cacheRef}),m)}}lx.contextType=ih;lx.propTypes={components:v.object,row:v.array,prefixCls:v.string,onHeaderRow:v.func,index:v.oneOfType([v.string,v.number]),style:v.object,columns:v.array,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};lx.defaultProps={onHeaderRow:B,prefixCls:pa.PREFIX,columns:[],components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};function NRe(n){const e=[];function t(a,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;e[s]=e[s]||[];let u=i;return a.map(d=>{const f={key:d.key,className:d.className||"",children:ke(d.title)?d.title():d.title,column:d,colStart:u,level:l,parents:o};let h=1;const p=d.children;p&&p.length>0&&(h=t(p,u,[...o,f],s+1,l+1).reduce((y,b)=>y+b,0),f.hasSubColumns=!0),"colSpan"in d&&({colSpan:h}=d),"rowSpan"in d&&(f.rowSpan=d.rowSpan),d.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&(f["x-type"]=je.DEFAULT_KEY_COLUMN_SCROLLBAR),f.colSpan=h,f.colEnd=f.colStart+h-1,e[s].push(f),u+=h;const g=d==null?void 0:d.ellipsis;return qA(g)&&typeof f.children=="string"&&(f.title=f.children),h})}t(n,0);const r=e.length;for(let a=0;a{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=r-a)});return e}class t9 extends Pe{get adapter(){return Object.assign({},super.adapter)}render(){const{components:e,columns:t,prefixCls:r,fixed:a,onHeaderRow:i,forwardedRef:o,selectedRowKeysSet:s}=this.props,l=NRe(t),u=e.header.wrapper;return x.createElement(u,{className:`${r}-thead`,ref:o},l.map((c,d)=>x.createElement(lx,{prefixCls:r,key:d,index:d,fixed:a,columns:t,row:c,components:e,onHeaderRow:i,selectedRowKeysSet:s})))}}t9.propTypes={components:v.any,columns:v.array,columnManager:v.object,prefixCls:v.string,onHeaderRow:v.func,onDidUpdate:v.func,fixed:v.oneOfType([v.bool,v.string]),selectedRowKeysSet:v.instanceOf(Set).isRequired};t9.defaultProps={columns:[],prefixCls:pa.PREFIX,onHeaderRow:B,onDidUpdate:B,components:{header:{wrapper:"thead",row:"tr",cell:"th"}}};const Wq=x.forwardRef((n,e)=>x.createElement(t9,Object.assign({},n,{forwardedRef:e})));class n9 extends x.PureComponent{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{selectedRowKeysSet:new Set};super(e)}render(){const{scroll:e,prefixCls:t,fixed:r,forwardedRef:a,handleBodyScroll:i,columns:o,components:s,onDidUpdate:l,showHeader:u,tableLayout:c,bodyHasScrollBar:d,sticky:f}=this.props,h=H(s,"header.outer","table"),p=H(e,"x"),g={},m={};p&&!r&&(m.width=p),d&&(g.overflowY="scroll");const y=x.createElement(sx,{columns:o,prefixCls:t}),b=x.createElement(Wq,Object.assign({},this.props,{columns:o,components:s,onDidUpdate:l})),_=$(`${t}-header`,{[`${t}-header-sticky`]:f,[`${t}-header-hidden`]:!u}),S=H(f,"top",0);return typeof S=="number"&&(g.top=S),x.createElement("div",{key:"headTable",style:g,className:_,ref:a,onScroll:i},x.createElement(h,{style:m,className:$(t,{[`${t}-fixed`]:c==="fixed"})},y,b))}}n9.propTypes={tableLayout:v.string,bodyHasScrollBar:v.bool,columns:v.array,components:v.object,dataSource:v.array,fixed:v.oneOfType([v.bool,v.string]),handleBodyScroll:v.func,prefixCls:v.string,forwardedRef:v.oneOfType([v.object,v.func]),scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,onDidUpdate:v.func,onHeaderRow:v.func};n9.defaultProps={handleBodyScroll:B};const FRe=x.forwardRef((n,e)=>x.createElement(n9,Object.assign({},n,{forwardedRef:e})));var $Re=sq,VRe=$Re("length"),jRe=VRe,zRe="\\ud800-\\udfff",BRe="\\u0300-\\u036f",HRe="\\ufe20-\\ufe2f",URe="\\u20d0-\\u20ff",WRe=BRe+HRe+URe,GRe="\\ufe0e\\ufe0f",YRe="\\u200d",KRe=RegExp("["+YRe+zRe+WRe+GRe+"]");function ZRe(n){return KRe.test(n)}var r9=ZRe,Gq="\\ud800-\\udfff",XRe="\\u0300-\\u036f",qRe="\\ufe20-\\ufe2f",QRe="\\u20d0-\\u20ff",JRe=XRe+qRe+QRe,eLe="\\ufe0e\\ufe0f",tLe="["+Gq+"]",zI="["+JRe+"]",BI="\\ud83c[\\udffb-\\udfff]",nLe="(?:"+zI+"|"+BI+")",Yq="[^"+Gq+"]",Kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Zq="[\\ud800-\\udbff][\\udc00-\\udfff]",rLe="\\u200d",Xq=nLe+"?",qq="["+eLe+"]?",aLe="(?:"+rLe+"(?:"+[Yq,Kq,Zq].join("|")+")"+qq+Xq+")*",iLe=qq+Xq+aLe,oLe="(?:"+[Yq+zI+"?",zI,Kq,Zq,tLe].join("|")+")",yF=RegExp(BI+"(?="+BI+")|"+oLe+iLe,"g");function sLe(n){for(var e=yF.lastIndex=0;yF.test(n);)++e;return e}var lLe=sLe,uLe=jRe,cLe=r9,dLe=lLe;function fLe(n){return cLe(n)?dLe(n):uLe(n)}var hLe=fLe,pLe=y7,gLe=Bg,vLe=ls,mLe=c7,yLe=hLe,bLe="[object Map]",_Le="[object Set]";function SLe(n){if(n==null)return 0;if(vLe(n))return mLe(n)?yLe(n):n.length;var e=gLe(n);return e==bLe||e==_Le?n.size:pLe(n).length}var CLe=SLe;const Ob=Ie(CLe);var wLe=X7,xLe=Qg,TLe=Qy,ELe=Math.max,OLe=Math.min;function ILe(n,e,t){var r=n==null?0:n.length;if(!r)return-1;var a=r-1;return t!==void 0&&(a=TLe(t),a=t<0?ELe(r+a,0):OLe(a,r-1)),wLe(n,xLe(e),a,!0)}var PLe=ILe;const DLe=Ie(PLe);class ALe extends ze{init(){this.initVirtualizedData(),this.initExpandBtnShouldInRow()}destroy(){this.unobserveBodyResize()}initVirtualizedData(e){this._adapter.setVirtualizedData(this.flattenData(this.getProp("dataSource")),e)}initExpandBtnShouldInRow(e){const t=this.getProps(),r=rRe(t);this._adapter.setCachedExpandBtnShouldInRow(r),!oa(e)&&!e&&(e=je.EXPAND_RELATED_PROPS.map(i=>H(t,i,void 0))),this._adapter.setCachedExpandRelatedProps(e)}flattenData(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];const i=[],{rowKey:o,childrenRecordName:s,expandedRowRender:l,expandedRowKeys:u,groups:c}=this.getProps();return t===0&&j1(c)?c.forEach((d,f)=>{const h=e.findIndex(p=>d.has(Xu(p,o)));if(h>-1){const p=DLe(e,m=>d.has(Xu(m,o))),g=Fs(u,f);i.push({key:f,level:t,sectionRow:!0,group:d,groupKey:f,expanded:g}),g&&i.push(...this.flattenData(e.slice(h,p+1),t+1,[...r],[...a]))}}):e.forEach((d,f)=>{const h=Xu(d,o),p=tRe(d,s);t&&a.push(h);const g={key:h,record:d,level:t,parentKeys:[...r],childrenKeys:[...a]};i.push(g);const m=[];Fs(u,h)&&(Array.isArray(p)&&p.length?m.push(...this.flattenData(p,t+1,[...g.parentKeys],[...g.childrenKeys])):l&&m.push({key:$q(h),level:t,expandedRow:!0,record:d}),i.push(...m))}),i}observeBodyResize(e){const{scroll:t}=this.getProps();if(H(t,"y"))return this._adapter.observeBodyResize(e)}unobserveBodyResize(){return this._adapter.unobserveBodyResize()}}var MLe=ww,RLe=4;function LLe(n){return MLe(n,RLe)}var kLe=LLe;const NLe=Ie(kLe);let O5,I5;const bF={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function FLe(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"vertical";if(typeof document>"u"||typeof window>"u")return 0;const e=n==="vertical";if(e&&O5)return O5;if(!e&&I5)return I5;const t=document.createElement("div");Object.keys(bF).forEach(a=>{t.style[a]=bF[a]}),e?t.style.overflowY="scroll":t.style.overflowX="scroll",document.body.appendChild(t);let r=0;return e?(r=t.offsetWidth-t.clientWidth,O5=r):(r=t.offsetHeight-t.clientHeight,I5=r),document.body.removeChild(t),r}function Qq(n){return typeof n=="number"?n-lr.DEFAULT_CELL_PADDING_LEFT-lr.DEFAULT_CELL_PADDING_RIGHT-lr.DEFAULT_CELL_BORDER_WIDTH_LEFT-lr.DEFAULT_CELL_BORDER_WIDTH_RIGHT-FLe("vertical"):void 0}function _F(n,e){return Gy({},{table:"table",header:{outer:"table",wrapper:"thead",row:"tr",cell:"th"},body:e?{outer:"div",wrapper:"div",row:"div",cell:"div",colgroup:{wrapper:"div",col:"div"}}:{outer:"table",wrapper:"tbody",row:"tr",cell:"td",colgroup:{wrapper:"colgroup",col:"col"}},footer:{wrapper:"tfoot",row:"tr",cell:"td"}},n)}const e1=new Nq("[@douyinfe/semi-ui Table]");function HI(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=[],i=r?ti:NLe;return K1(e,o=>{o=Object.assign({},o);const s=hF(o,t),l=s!=null&&qs(n,u=>hF(u,t)===s);l?a.push(i(Object.assign(Object.assign({},l),o))):a.push(i(o))}),a}function $Le(){return!0}var VLe=$Le;const jLe=Ie(VLe);function zLe(n,e){if(n===e)return!0;if(!n||!e)return!1;const t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(let i=0;ithis.ref=t,this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customCellProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new HLe(this.adapter)}shouldComponentUpdate(e){const t=this.props,{column:r,expandIcon:a}=t,i=QMe(r),o=Fq(r)||a;if((i||o)&&!Ke(e,this.props))return!0;{const s=["selected","expanded","expandIcon","disabled"],l=fr(t,s),u=fr(e,s);if(!Ke(u,l))return!0}return!1}componentDidUpdate(){this.props.onDidUpdate(this.ref)}getTdProps(){const{record:e,index:t,column:r={},fixedLeft:a,fixedRight:i,width:o,height:s}=this.props;let l={},u={};const{direction:c}=this.context,d=c==="rtl";if(a||typeof a=="number"?ai(l,d?"style.right":"style.left",typeof a=="number"?a:0):(i||typeof i=="number")&&ai(l,d?"style.left":"style.right",typeof i=="number"?i:0),o!=null&&ai(l,"style.width",o),s!=null&&ai(l,"style.height",s),r.onCell){u=r.onCell(e,t),this.adapter.setCache("customCellProps",Object.assign({},u)),l=Object.assign(Object.assign({},l),fr(u,["style","className","onClick"]));const p=H(u,"style")||{};l.style=Object.assign(Object.assign({},l.style),p)}if(r.align){const p=Bq(r.align,c);l.style=Object.assign(Object.assign({},l.style),{textAlign:p})}return{tdProps:l,customCellProps:u}}renderText(e){const{record:t,indentSize:r,prefixCls:a,indent:i,index:o,expandIcon:s,renderExpandIcon:l,column:u={}}=this.props,{dataIndex:c,render:d,useFullRender:f}=u;let h,p,g;typeof c=="number"?h=H(t,c):!c||c.length===0?h=t:h=H(t,c);const m=i&&r?x.createElement("span",{style:{paddingLeft:`${r*i}px`},className:`${a}-row-indent indent-level-${i}`}):null,y=typeof l=="function"?l(t):s;if(d){const b={expandIcon:y};if(f){const{renderSelection:_}=this.context,S=typeof _=="function"?_(t):null;Object.assign(b,{selection:S,indentText:m})}h=d(h,t,o,b),SF(h)&&(e=h.props?Gy(e,h.props):e,p=e.colSpan,g=e.rowSpan,h=h.children)}return{text:h,indentText:m,rowSpan:g,colSpan:p,realExpandIcon:y,tdProps:e}}renderInner(e,t,r){const{prefixCls:a,isSection:i,expandIcon:o,column:s={}}=this.props,{tableWidth:l,anyColumnFixed:u}=this.context,{useFullRender:c}=s;let d=null;return c?d=e:d=[x.createElement(D.Fragment,{key:"indentText"},t),x.createElement(D.Fragment,{key:"expandIcon"},o?r:null),x.createElement(D.Fragment,{key:"text"},e)],i&&(d=x.createElement("div",{className:$(`${a}-section-inner`),style:{width:u?Qq(l):void 0}},d)),d}render(){const{prefixCls:e,column:t={},component:r,fixedLeft:a,fixedRight:i,lastFixedLeft:o,firstFixedRight:s,colIndex:l}=this.props,{direction:u}=this.context,c=u==="rtl",{className:d,ellipsis:f}=t,h=a||typeof a=="number",p=i||typeof i=="number",{tdProps:g,customCellProps:m}=this.getTdProps(),y=this.renderText(g);let{text:b}=y;const{indentText:_,rowSpan:S,colSpan:C,realExpandIcon:w,tdProps:T}=y;let E;if(qA(f)&&typeof b=="string"&&(E=b),S===0||C===0)return null;SF(b)&&(b=null);const I=this.renderInner(b,_,w);let P,A,R,L;c?(P=p,A=s,R=h,L=o):(P=h,A=o,R=p,L=s);const k=$(d,`${e}-row-cell`,H(m,"className"),{[`${e}-cell-fixed-left`]:P,[`${e}-cell-fixed-left-last`]:A,[`${e}-cell-fixed-right`]:R,[`${e}-cell-fixed-right-first`]:L,[`${e}-row-cell-ellipsis`]:f});return x.createElement(r,Object.assign({role:"gridcell","aria-colindex":l+1,className:k,onClick:this.handleClick,title:E},T,{ref:this.setRef}),I)}}Q1.contextType=ih;Q1.defaultProps={indent:0,indentSize:lr.DEFAULT_INDENT_WIDTH,onClick:B,prefixCls:pa.PREFIX,component:"td",onDidUpdate:B,column:{}};Q1.propTypes={record:v.object,prefixCls:v.string,index:v.number,fixedLeft:v.oneOfType([v.bool,v.number]),lastFixedLeft:v.bool,fixedRight:v.oneOfType([v.bool,v.number]),firstFixedRight:v.bool,indent:v.number,indentSize:v.number,column:v.object,expandIcon:v.any,renderExpandIcon:v.func,hideExpandedColumn:v.bool,component:v.any,onClick:v.func,onDidUpdate:v.func,isSection:v.bool,width:v.oneOfType([v.string,v.number]),height:v.oneOfType([v.string,v.number]),selected:v.bool,expanded:v.bool,colIndex:v.number};var CF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.ref.current=t},this.renderExpandIcon=t=>{const{renderExpandIcon:r}=this.props;return r(t,!0)},this.handleMouseEnter=t=>{this.foundation.handleMouseEnter(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseEnter)=="function"&&r.onMouseEnter(t)},this.handleMouseLeave=t=>{this.foundation.handleMouseLeave(t);const r=this.adapter.getCache("customRowProps");typeof(r==null?void 0:r.onMouseLeave)=="function"&&r.onMouseLeave(t)},this.handleClick=t=>{this.foundation.handleClick(t);const r=this.adapter.getCache("customRowProps");r&&typeof r.onClick=="function"&&r.onClick(t)},this.ref=D.createRef(),this.foundation=new BLe(this.adapter)}componentDidMount(){const{onRow:e,index:t,record:r}=this.props;if(typeof this.adapter.getCache("customRowProps")>"u"){const i=e(r,t)||{},o=CF(i,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},o))}}shouldComponentUpdate(e){const t=["cellWidths"];return!zLe(fr(e,t),fr(this.props,t))||!Ke(eu(e,t),eu(this.props,t))}renderCells(){const{columns:e,record:t,index:r,prefixCls:a,fixed:i,components:o,expandableRow:s,level:l,expandIcon:u,rowExpandable:c,isSection:d,expandedRow:f,virtualized:h,indentSize:p,hideExpandedColumn:g,cellWidths:m,selected:y,expanded:b,disabled:_,onDidUpdate:S}=this.props,C=H(o,"body.cell",je.DEFAULT_COMPONENTS.body.cell),w=[],T=c(t);let E=0;return Br(e,(O,I)=>{const P=H(O,"key"),A={};if(i!=="right"&&(XMe(P)&&E++,s&&I===E&&(A.renderExpandIcon=this.renderExpandIcon,(g||d)&&(A.expandIcon=u??!0)),l!=null&&I===E&&(A.indent=l,!s&&g&&(A.indent=l+1))),Fq(O)&&!T)w.push(x.createElement(Q1,{key:I,colIndex:I,isSection:d}));else if(!qMe(O)){const R={};C!==je.DEFAULT_COMPONENTS.body.cell&&h&&!f&&(R.width=H(m,I)),w.push(x.createElement(Q1,Object.assign({colIndex:I},A,R,{hideExpandedColumn:g,indentSize:p,isSection:d,prefixCls:`${a}`,column:O,key:I,index:r,record:t,component:C,fixedLeft:d2(O)&&gg(m,0,I),lastFixedLeft:VI(e,O),fixedRight:f2(O)&&gg(m,I+1),firstFixedRight:jI(e,O),selected:y,expanded:b,disabled:_,onDidUpdate:S})))}}),w}render(){const{style:e}=this.props,{components:t,prefixCls:r,selected:a,onRow:i,index:o,className:s,replaceClassName:l,record:u,hovered:c,expanded:d,expandableRow:f,level:h,expandedRow:p,isSection:g}=this.props,m=t.body.row,y=i(u,o)||{},{className:b,style:_}=y,S=CF(y,["className","style"]);this.adapter.setCache("customRowProps",Object.assign({},S));const C=Object.assign(Object.assign({},e),_),w=typeof l=="string"&&l.length?l:$(s,`${r}-row`,{[`${r}-row-selected`]:a,[`${r}-row-expanded`]:d,[`${r}-row-hovered`]:c},b),T={};return typeof o=="number"&&(T["aria-rowindex"]=o+1),f&&(T["aria-expanded"]=d),(d||p)&&(T["aria-level"]=2),typeof h=="number"&&(T["aria-level"]=h+1),g&&(T["aria-level"]=1),x.createElement(m,Object.assign({role:"row"},T,S,{style:C,className:w,ref:this._cacheNode,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleClick}),this.renderCells())}}vg.propTypes={anyColumnFixed:v.bool,cellWidths:v.array.isRequired,className:v.string,columns:v.array.isRequired,components:v.object.isRequired,disabled:v.bool,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandableRow:v.bool,expanded:v.bool,expandedRow:v.bool,fixed:v.oneOfType([v.string,v.bool]),height:v.oneOfType([v.string,v.number]),hideExpandedColumn:v.bool,hovered:v.bool.isRequired,indent:v.number,indentSize:v.number,index:v.number,isSection:v.bool,level:v.number,onDidUpdate:v.func,onHover:v.func,onRow:v.func,onRowClick:v.func,onRowContextMenu:v.func,onRowDoubleClick:v.func,onRowMouseEnter:v.func,onRowMouseLeave:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,replaceClassName:v.string,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.number]).isRequired,selected:v.bool,store:v.object,style:v.object,virtualized:v.oneOfType([v.object,v.bool]),visible:v.bool.isRequired};vg.defaultProps={columns:[],rowExpandable:jLe,components:{body:{row:"tr",cell:"td"}},prefixCls:pa.PREFIX,onRow:B,onRowClick:B,onRowDoubleClick:B,onRowMouseEnter:B,onRowMouseLeave:B,onHover:B,onDidUpdate:B,visible:!0,hovered:!1,selected:!1,disabled:!1};var ULe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a({props:S,children:x.createElement("div",{className:$(`${r}-expand-inner`),style:{width:m?Qq(g):void 0}},_)})},C)],T=$(a,`${r}-row-expand`),E=y(w);return x.createElement(vg,{style:d,components:c,className:T,expandedRow:!0,renderExpandIcon:s,rowKey:`${e.key}-expanded-row`,columns:w,store:u,virtualized:f,indentSize:h,cellWidths:E})}}ux.contextType=ih;ux.propTypes={cellWidths:v.array.isRequired,className:v.string,columns:v.array,components:v.object,defaultExpandAllRows:v.bool,defaultExpandedRowKeys:v.array,expandIcon:v.oneOfType([v.object,v.node,v.func]),expandRowByClick:v.bool,expanded:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,indentSize:v.number,index:v.oneOfType([v.string,v.number]),onExpand:v.func,onExpandedRowsChange:v.func,prefixCls:v.string,record:v.object,renderExpandIcon:v.func,store:v.object,style:v.object,virtualized:v.oneOfType([v.bool,v.object])};ux.defaultProps={record:{},prefixCls:pa.PREFIX};var WLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{typeof a=="function"&&r&&a(!o,i,l),typeof s.onClick=="function"&&s.onClick(l)}})},this.collectGroupedData=()=>{const{data:t,group:r,rowKey:a}=this.props;return Array.isArray(t)&&t.length&&Ps(r)?t.filter(i=>{const o=typeof a=="function"?a(i):H(i,a);return o!=null&&o!==""&&r.has(o)}):[]},this.renderExpandIcon=t=>{const{renderExpandIcon:r,groupKey:a}=this.props;return typeof r=="function"?r(t,!1,a):null}}isInnerColumnKey(e){return e!=null?[je.DEFAULT_KEY_COLUMN_EXPAND,je.DEFAULT_KEY_COLUMN_SELECTION].includes(e):!1}render(){const{record:e,columns:t=[],prefixCls:r,className:a,expanded:i,renderGroupSection:o,components:s,index:l,store:u,group:c,groupKey:d,virtualized:f,style:h}=this.props,p={};let g={},m=null;const y=typeof o=="function"?o(d,[...c]):null;if(D.isValidElement(y))m=y;else if(y&&Object.prototype.toString.call(y)==="[object Object]"){const w=y,{children:T}=w,E=WLe(w,["children"]);m=T,g=Object.assign({},E)}p.colSpan=XA(t).length;const b=[Object.assign({render:()=>({props:p,children:m})},g)],_=$(a,`${r}-row-section`,{on:i}),{getCellWidths:S}=this.context,C=S(b,null,!0);return x.createElement(vg,{components:s,virtualized:f,index:l,onRow:this.onRow,expanded:i,expandIcon:!0,isSection:!0,record:e,replaceClassName:_,expandableRow:!0,renderExpandIcon:this.renderExpandIcon,rowKey:d,columns:b,store:u,style:h,cellWidths:C})}}cx.contextType=ih;cx.propTypes={record:v.object,index:v.number,columns:v.array,group:v.object.isRequired,groupKey:v.oneOfType([v.string,v.number]).isRequired,data:v.array,renderGroupSection:v.func,onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,components:v.object,expanded:v.bool,prefixCls:v.string,onExpand:v.func,virtualized:v.oneOfType([v.bool,v.object]),style:v.object,renderExpandIcon:v.func,className:v.string,store:v.object,rowKey:v.oneOfType([v.string,v.number,v.func])};cx.defaultProps={prefixCls:pa.PREFIX,components:{body:{row:"tr",cell:"td"}}};const wF=cx;var xF=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{forwardedRef:l}=this.props;this.ref.current=s,this.foundation.observeBodyResize(s),typeof l=="function"?l(s):l&&typeof l=="object"&&(l.current=s)},this.itemSize=s=>{const{virtualized:l,size:u}=this.props,{virtualizedData:c}=this.state,d=H(c,s),f=nRe(u,d.sectionRow),h=H(l,"itemSize",f.height);let p=h;return typeof h=="function"&&(p=h(s,{expandedRow:H(d,"expandedRow",!1),sectionRow:H(d,"sectionRow",!1)})),pH(l,[s,"key"],s),this.handleRowClick=(s,l,u)=>{const{handleRowExpanded:c}=this.context;c(!u,s,l)},this.handleVirtualizedScroll=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const l=H(r.props.virtualized,"onScroll");typeof l=="function"&&l(s)},this.handleVirtualizedBodyScroll=s=>{const{handleBodyScroll:l}=this.props,u=H(s,"nativeEvent.target.scrollLeft"),c=H(s,"nativeEvent.target.scrollTop");c===this.state.cache.virtualizedScrollTop&&this.handleVirtualizedScroll({horizontalScrolling:!0}),this.state.cache.virtualizedScrollLeft=u,this.state.cache.virtualizedScrollTop=c,typeof l=="function"&&l(s)},this.getVirtualizedRowWidth=()=>{const{getCellWidths:s}=this.context,{columns:l}=this.props,u=s(l);return gg(u,0,Ob(l))},this.renderVirtualizedRow=s=>{const{index:l,style:u}=s,{virtualizedData:c,cachedExpandBtnShouldInRow:d}=this.state,{flattenedColumns:f}=this.context,h=H(c,[l],{}),{key:p,parentKeys:g,expandedRow:m,sectionRow:y}=h,b=xF(h,["key","parentKeys","expandedRow","sectionRow"]),_=this.getVirtualizedRowWidth(),S=d,C=Object.assign(Object.assign(Object.assign(Object.assign({},this.props),{style:Object.assign(Object.assign({},u),{width:_})}),b),{columns:f,index:l,expandBtnShouldInRow:S});return y?this.renderSectionRow(C):m?this.renderExpandedRow(C):this.renderBaseRow(C)},this.renderTbody=x.forwardRef(function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;return x.createElement("div",Object.assign({},s,{onScroll:function(){s.onScroll&&s.onScroll(...arguments)},className:$(s.className,`${r.props.prefixCls}-tbody`),style:Object.assign({},s.style),ref:l}))}),this.renderOuter=x.forwardRef((s,l)=>{const{children:u}=s,c=xF(s,["children"]),{handleWheel:d,prefixCls:f,emptySlot:h,dataSource:p}=this.props,g=this.getVirtualizedRowWidth(),m=$(`${f}`,`${f}-fixed`);return x.createElement("div",Object.assign({},c,{ref:l,onWheel:function(){d&&d(...arguments),c.onWheel&&c.onWheel(...arguments)},onScroll:function(){r.handleVirtualizedBodyScroll(...arguments),c.onScroll&&c.onScroll(...arguments)}}),x.createElement("div",{style:{width:g},className:m},u),Ob(p)===0&&h)}),this.onItemsRendered=s=>{this.state.cache.virtualizedScrollLeft&&this.ref.current&&(this.ref.current.scrollLeft=this.state.cache.virtualizedScrollLeft)},this.renderVirtualizedBody=s=>{const{scroll:l,prefixCls:u,virtualized:c,columns:d}=this.props,{virtualizedData:f}=this.state,{getCellWidths:h}=this.context,p=h(d);if(!Ob(p))return null;const g=H(l,"y"),m=typeof g=="number",y=m?g:600;m||e1.warn('You have to specific "scroll.y" which must be a number for table virtualization!');const b={width:"100%",height:f!=null&&f.length?y:null,overflowX:"auto",overflowY:"auto"},_=$(`${u}-body`);return x.createElement(RIe,Object.assign({},typeof c=="object"?c:{},{initialScrollOffset:this.state.cache.virtualizedScrollTop,onScroll:this.handleVirtualizedScroll,onItemsRendered:this.onItemsRendered,ref:this.listRef,className:_,outerRef:this.forwardRef,height:f!=null&&f.length?y:0,width:b.width,itemData:f,itemSize:this.itemSize,itemCount:f.length,itemKey:this.itemKey,innerElementType:this.renderTbody,outerElementType:this.renderOuter,style:Object.assign(Object.assign({},b),{direction:s}),direction:s}),this.renderVirtualizedRow)},this.renderSectionRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{groupKey:void 0};const{dataSource:l,rowKey:u,group:c,groupKey:d,index:f}=s,h=Object.keys(wF.propTypes),p=eu(s,h),{handleRowExpanded:g}=r.context;return x.createElement(wF,Object.assign({},p,{record:{groupKey:d,records:[...c].map(m=>pF(l,m,u))},index:f,onExpand:g,data:l,key:d||f}))},this.renderExpandedRow=function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{renderExpandIcon:()=>null};const{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,rowKey:m,virtualized:y}=s;let b=Xu(f,m);b==null&&(b=g);const{flattenedColumns:_,getCellWidths:S}=r.context;return _!==r.flattenedColumns&&(r.flattenedColumns=_,r.cellWidths=S(_)),x.createElement(ux,{style:l,components:u,renderExpandIcon:c,expandedRowRender:d,record:f,columns:h,expanded:p,index:g,virtualized:y,key:$q(b),cellWidths:r.cellWidths})},this.renderGroupedRows=()=>{const{groups:s,dataSource:l,rowKey:u,expandedRowKeys:c}=this.props,{flattenedColumns:d}=this.context,f=new Map,h=[];s!=null&&Array.isArray(l)&&l.length&&l.forEach(g=>{const m=Xu(g,u);s.forEach((y,b)=>{if(y.has(m))return f.has(b)||f.set(b,new Set([])),f.get(b).add(m),!1})});let p=-1;return f.forEach((g,m)=>{const y=E5(c,m);if(h.push(this.renderSectionRow(Object.assign(Object.assign({},this.props),{columns:d,index:++p,group:g,groupKey:m,expanded:y}))),y){const b=[];g.forEach(_=>{const S=pF(l,_,u);S!=null&&b.push(S)}),h.push(this.renderBodyRows(b))}}),h},this.renderBody=s=>{const{scroll:l,prefixCls:u,columns:c,components:d,fixed:f,handleWheel:h,headerRef:p,handleBodyScroll:g,anyColumnFixed:m,showHeader:y,emptySlot:b,includeHeader:_,dataSource:S,onScroll:C,groups:w,expandedRowRender:T,tableLayout:E}=this.props,O=H(l,"x"),I=H(l,"y"),P={},A={},R=H(d,"body.outer","table"),L=H(d,"body.wrapper")||"tbody";I&&(P.maxHeight=I),O&&(A.width=O),m&&Ob(S)&&(P.overflow="auto",P.WebkitTransform="translate3d (0, 0, 0)");const k=x.createElement(sx,{components:H(d,"body"),columns:c,prefixCls:u}),N=`${u}-body`,z=x.createElement("div",{key:"bodyTable",className:N,style:P,ref:this.forwardRef,onWheel:h,onScroll:g},x.createElement(R,{role:j1(w)||ke(T)||oRe({dataSource:S})?"treegrid":"grid","aria-rowcount":S&&S.length,"aria-colcount":c&&c.length,style:A,className:$(u,{[`${u}-fixed`]:E==="fixed"})},k,_&&y?x.createElement(Wq,Object.assign({},this.props,{ref:p,components:d,columns:c})):null,x.createElement(L,{className:`${u}-tbody`,onScroll:C},j1(w)?this.renderGroupedRows():this.renderBodyRows(S))),b);return f&&c.length?x.createElement("div",{key:"bodyTable",className:`${u}-body-outer`},z):z},this.ref=x.createRef(),this.state={virtualizedData:[],cache:{virtualizedScrollTop:null,virtualizedScrollLeft:null},cachedExpandBtnShouldInRow:null,cachedExpandRelatedProps:[]},this.listRef=x.createRef();const{getVirtualizedListRef:a,flattenedColumns:i,getCellWidths:o}=t;a&&(e.virtualized?a(this.listRef):console.warn("getVirtualizedListRef only works with virtualized. See https://semi.design/en-US/show/table for more information.")),this.foundation=new ALe(this.adapter),this.flattenedColumns=i,this.cellWidths=o(i),this.observer=null}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVirtualizedData:(e,t)=>this.setState({virtualizedData:e},t),setCachedExpandBtnShouldInRow:e=>this.setState({cachedExpandBtnShouldInRow:e}),setCachedExpandRelatedProps:e=>this.setState({cachedExpandRelatedProps:e}),observeBodyResize:e=>{const{setBodyHasScrollbar:t}=this.context,r=()=>{const a=()=>{const{offsetWidth:o,clientWidth:s}=e,l=s{const e=this.ref.current;this.observer&&(this.observer.unobserve(e),this.observer=null)}})}componentDidUpdate(e,t){const{virtualized:r,dataSource:a,expandedRowKeys:i,columns:o,scroll:s}=this.props;r&&(e.dataSource!==a||e.expandedRowKeys!==i||e.columns!==o)&&this.foundation.initVirtualizedData();const u=je.EXPAND_RELATED_PROPS.map(f=>H(this.props,f,void 0));Ke(u,t.cachedExpandRelatedProps)||this.foundation.initExpandBtnShouldInRow(u);const c=H(s,"y"),d=this.ref.current;c&&c!==H(e,"scroll.y")&&this.foundation.observeBodyResize(d)}renderBaseRow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowKey:t,columns:r,expandedRowKeys:a,rowExpandable:i,record:o,index:s,level:l,expandBtnShouldInRow:u,selectedRowKeysSet:c,disabledRowKeysSet:d,expandRowByClick:f}=e,h=Object.keys(vg.propTypes),p=eu(e,h);let g=Xu(o,t);g==null&&(g=s);const m=E5(a,g),y=i&&i(o),b={level:void 0,expanded:m};(y||u)&&(b.level=l,b.expandableRow=y,f&&(b.onRowClick=this.handleRowClick));const _={selected:JMe(c,g),disabled:eRe(d,g)},{getCellWidths:S}=this.context,C=S(r,null,!0);return x.createElement(vg,Object.assign({},p,b,_,{key:g,rowKey:g,cellWidths:C}))}renderBodyRows(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const{rowKey:a,expandedRowRender:i,expandedRowKeys:o,childrenRecordName:s,rowExpandable:l}=this.props,u=typeof i=="function",c=this.state.cachedExpandBtnShouldInRow,{flattenedColumns:d}=this.context;return Br(e,(f,h)=>{let p=Xu(f,a);p==null&&(p=h);const g=H(f,s),m=!!(Array.isArray(g)&&g.length);r.push(this.renderBaseRow(Object.assign(Object.assign({},this.props),{columns:d,expandBtnShouldInRow:c,record:f,key:p,level:t,index:h})));const y=E5(o,p);if(u&&l&&l(f)&&y){const b=this.renderExpandedRow(Object.assign(Object.assign({},this.props),{columns:d,level:t,index:h,record:f,expanded:y}));ql(b)||r.push(b)}if(m&&y){const b=this.renderBodyRows(g,t+1);r.push(...b)}}),r}render(){const{virtualized:e}=this.props,{direction:t}=this.context;return e?this.renderVirtualizedBody(t):this.renderBody(t)}}a9.contextType=ih;a9.propTypes={anyColumnFixed:v.bool,childrenRecordName:v.string,columns:v.array,components:v.object,dataSource:v.array,disabledRowKeysSet:v.instanceOf(Set).isRequired,emptySlot:v.node,expandRowByClick:v.bool,expandedRowKeys:v.array,expandedRowRender:v.func,fixed:v.oneOfType([v.string,v.bool]),forwardedRef:v.oneOfType([v.object,v.func]),groups:v.instanceOf(Map),handleBodyScroll:v.func,handleWheel:v.func,headerRef:v.oneOfType([v.object,v.func]),includeHeader:v.bool,onScroll:v.func,prefixCls:v.string,renderExpandIcon:v.func,rowExpandable:v.func,rowKey:v.oneOfType([v.string,v.bool,v.func]),scroll:v.object,selectedRowKeysSet:v.instanceOf(Set).isRequired,showHeader:v.bool,size:v.string,store:v.object,virtualized:v.oneOfType([v.bool,v.object])};const GLe=x.forwardRef(function(e,t){return x.createElement(a9,Object.assign({},e,{forwardedRef:t}))});var YLe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.bodyWrapRef.current&&(this.bodyWrapRef.current.scrollTop=0)},setSelectedRowKeys:t=>{this.setState({rowSelection:Object.assign(Object.assign({},this.state.rowSelection),{selectedRowKeys:[...t],selectedRowKeysSet:new Set(t)})})},setDisabledRowKeys:t=>{this.setState({disabledRowKeys:t,disabledRowKeysSet:new Set(t)})},setCurrentPage:t=>{const{pagination:r}=this.state;typeof r=="object"?this.setState({pagination:Object.assign(Object.assign({},r),{currentPage:t})}):this.setState({pagination:{currentPage:t}})},setPagination:t=>this.setState({pagination:t}),setGroups:t=>this.setState({groups:t}),setDataSource:t=>this.setState({dataSource:t}),setExpandedRowKeys:t=>this.setState({expandedRowKeys:[...t]}),setQuery:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=[...e.state.queries];r=jq(t,r),e.setState({queries:r})},setQueries:t=>this.setState({queries:t}),setFlattenData:t=>this.setState({flattenData:t}),setAllRowKeys:t=>this.setState({allRowKeys:t}),setHoveredRowKey:t=>{this.store.setState({hoveredRowKey:t})},setCachedFilteredSortedDataSource:t=>{this.cachedFilteredSortedDataSource=t},setCachedFilteredSortedRowKeys:t=>{this.cachedFilteredSortedRowKeys=t,this.cachedFilteredSortedRowKeysSet=new Set(t)},setAllDisabledRowKeys:t=>{const r=new Set(t);this.setState({allDisabledRowKeys:t,allDisabledRowKeysSet:r})},getCurrentPage:()=>H(this.state,"pagination.currentPage",1),getCurrentPageSize:()=>H(this.state,"pagination.pageSize",lr.DEFAULT_PAGE_SIZE),getCachedFilteredSortedDataSource:()=>this.cachedFilteredSortedDataSource,getCachedFilteredSortedRowKeys:()=>this.cachedFilteredSortedRowKeys,getCachedFilteredSortedRowKeysSet:()=>this.cachedFilteredSortedRowKeysSet,getAllDisabledRowKeys:()=>this.state.allDisabledRowKeys,getAllDisabledRowKeysSet:()=>this.state.allDisabledRowKeysSet,notifyFilterDropdownVisibleChange:(t,r)=>this._invokeColumnFn(r,"onFilterDropdownVisibleChange",t),notifyChange:function(){return e.props.onChange(...arguments)},notifyExpand:function(){return e.props.onExpand(...arguments)},notifyExpandedRowsChange:function(){return e.props.onExpandedRowsChange(...arguments)},notifySelect:function(){for(var t=arguments.length,r=new Array(t),a=0;ac2(this.getColumns(t||this.props.columns,this.props.children),r=>!!r.fixed),useFixedHeader:()=>{const{scroll:t,sticky:r}=this.props;return!!(H(t,"y")||r)},getTableLayout:()=>{let t=!1;const{flattenColumns:r}=this.state;return Array.isArray(r)&&(t=r.some(a=>!!a.ellipsis||!!a.fixed)),this.adapter.useFixedHeader()&&(t=!0),t?"fixed":"auto"},setHeadWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ZMe(e.state.headWidths[r],t)||e.setState(a=>{const i=[...a.headWidths];return i[r]=[...t],{headWidths:i}})},getHeadWidths:function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.state.headWidths.length&&typeof t=="number"?(e.state.headWidths[t]||[]).map(a=>a.width):[]},getCellWidths:function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Array.isArray(t)&&t.length&&(r=r==null&&e.state.headWidths.length?SMe(e.state.headWidths):[],Array.isArray(r)&&r.length)?t.reduce((i,o)=>{const s=o.key===je.DEFAULT_KEY_COLUMN_SCROLLBAR&&a?null:qs(r,l=>l&&l.key!=null&&l.key===o.key);return s&&i.push(s.width),i},[]):[]},mergedRowExpandable:t=>{const{expandedRowRender:r,childrenRecordName:a,rowExpandable:i}=this.props,o=H(t,a),s=typeof r=="function",l=typeof i=="function",u=Array.isArray(o)&&o.length,c=l&&i(t);return(s||u)&&(!l||c)||!(s||u)&&c},isAnyColumnUseFullRender:t=>c2(t,r=>!!r.useFullRender),getNormalizeColumns:()=>this.normalizeColumns,getHandleColumns:()=>this.handleColumns,getMergePagination:()=>this.mergePagination,setBodyHasScrollbar:t=>{t!==this.state.bodyHasScrollBar&&this.setState({bodyHasScrollBar:t})},stopPropagation(t){t&&typeof t=="object"&&(typeof t.stopPropagation=="function"&&t.stopPropagation(),t.nativeEvent&&typeof t.nativeEvent.stopPropagation=="function"?t.nativeEvent.stopPropagation():typeof t.stopImmediatePropagation=="function"&&t.stopImmediatePropagation())}})}constructor(e,t){var r;super(e),r=this,this._warnIfNoKey=()=>{(this.props.rowSelection||this.props.expandedRowRender)&&c2(this.props.dataSource,c=>this.foundation.getRecordKey(c)==null)&&e1.error('You must specify a key for each element in the dataSource or use "rowKey" to specify an attribute name as the primary key!')},this._invokeRowSelection=function(c){const d=H(r.state,["rowSelection",c]);if(typeof d=="function"){for(var f=arguments.length,h=new Array(f>1?f-1:0),p=1;p2?f-2:0),p=2;p{this.headerWrapRef.current=c},this.getCurrentPageData=()=>{const c=this.foundation.getCurrentPageData(),d=["dataSource","groups"].reduce((f,h)=>(c[h]&&(f[h]=c[h]),f),{});return ti(d)},this.getColumns=(c,d)=>!Array.isArray(c)||!c||!c.length?VS(d):c,this.getCellWidths=function(){return r.foundation.getCellWidths(...arguments)},this.setHeadWidths=function(){return r.foundation.setHeadWidths(...arguments)},this.getHeadWidths=function(){return r.foundation.getHeadWidths(...arguments)},this.mergedRowExpandable=function(){return r.foundation.mergedRowExpandable(...arguments)},this.setBodyHasScrollbar=function(){return r.foundation.setBodyHasScrollbar(...arguments)},this.handleWheel=c=>{const{scroll:d={}}=this.props;if(window.navigator.userAgent.match(/Trident\/7\./)&&d.y){c.preventDefault();const f=c.deltaY,{target:h}=c,p=this.bodyWrapRef.current;let g=0;this.lastScrollTop?g=this.lastScrollTop+f:g=f,p&&h!==p&&(p.scrollTop=g)}},this.handleBodyScrollLeft=c=>{if(c.currentTarget!==c.target)return;const{target:d}=c,f=this.headerWrapRef.current,h=this.bodyWrapRef.current;d.scrollLeft!==this.lastScrollLeft&&(d===h&&f?f.scrollLeft=d.scrollLeft:d===f&&h&&(h.scrollLeft=d.scrollLeft),this.setScrollPositionClassName()),this.lastScrollLeft=d.scrollLeft},this.handleWindowResize=()=>{this.syncTableWidth(),this.setScrollPositionClassName()},this.handleBodyScrollTop=c=>{const{target:d}=c;if(c.currentTarget!==d)return;const{scroll:f={}}=this.props,h=this.headerWrapRef.current,p=this.bodyWrapRef.current;if(d.scrollTop!==this.lastScrollTop&&f.y&&d!==h){const{scrollTop:g}=d;p&&d!==p&&(p.scrollTop=g)}this.lastScrollTop=d.scrollTop},this.handleBodyScroll=c=>{this.handleBodyScrollLeft(c),this.handleBodyScrollTop(c)},this.setScrollPosition=c=>{const{prefixCls:d}=this.props,f=[`${d}-scroll-position-both`,`${d}-scroll-position-middle`,`${d}-scroll-position-left`,`${d}-scroll-position-right`];this.scrollPosition=c;const h=this.wrapRef.current;if(h&&h.nodeType)if(c==="both"){const p=[`${d}-scroll-position-left`,`${d}-scroll-position-right`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}else{const p=[`${d}-scroll-position-${c}`];h.classList.remove(...dg(f,p)),h.classList.add(...p)}},this.setScrollPositionClassName=()=>{const c=this.bodyWrapRef.current;if(c&&c.children&&c.children.length){const d=c.scrollLeft===0,f=Math.abs(c.scrollLeft)+1>=c.children[0].getBoundingClientRect().width-c.getBoundingClientRect().width;d&&f?this.setScrollPosition("both"):d?this.setScrollPosition("left"):f?this.setScrollPosition("right"):this.scrollPosition!=="middle"&&this.setScrollPosition("middle")}},this.syncTableWidth=()=>{this.rootWrapRef&&this.rootWrapRef.current&&this.setState({tableWidth:this.rootWrapRef.current.getBoundingClientRect().width})},this.renderSelection=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{rowSelection:f,allDisabledRowKeysSet:h}=r.state;if(f&&typeof f=="object"){const{selectedRowKeys:p=[],selectedRowKeysSet:g=new Set,getCheckboxProps:m,disabled:y}=f;if(d){const b=H(f,"key",je.DEFAULT_KEY_COLUMN_SELECTION),_=r.cachedFilteredSortedRowKeys,S=r.cachedFilteredSortedRowKeysSet,C=r.foundation.allIsSelected(g,h,_),w=r.foundation.hasRowSelected(p,S);return x.createElement(jS,{"aria-label":`${C?"Deselect":"Select"} all rows`,disabled:y,key:b,selected:C,indeterminate:w&&!C,onChange:(T,E)=>{r.toggleSelectAllRow(T,E)}})}else{const b=r.foundation.getRecordKey(c),_=g.has(b),S=()=>typeof m=="function"?m(c):{};return x.createElement(jS,{"aria-label":`${_?"Deselect":"Select"} this row`,getCheckboxProps:S,selected:_,onChange:(C,w)=>r.toggleSelectRow(C,b,w)})}}return null},this.renderRowSelectionCallback=function(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return r.renderSelection(d)},this.renderTitleSelectionCallback=()=>this.renderSelection(null,!0),this.normalizeSelectionColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{rowSelection:d,prefixCls:f}=c;let h={};if(d){const p=["selectedRowKeys","selectedRowKeysSet"];h={key:je.DEFAULT_KEY_COLUMN_SELECTION},oa(d)&&(h=Object.assign(Object.assign({},h),fr(d,p))),h.className=$(h.className,`${f}-column-selection`),h.title=r.renderTitleSelectionCallback,h.render=r.renderRowSelectionCallback}return h},this.normalizeScrollbarColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{scrollbarWidth:d=0}=c;return{key:je.DEFAULT_KEY_COLUMN_SCROLLBAR,width:d,fixed:"right"}},this.renderExpandIcon=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const{expandedRowKeys:h}=r.state,{expandIcon:p}=r.props,g=typeof f=="string"||typeof f=="number"?f:r.foundation.getRecordKey(c);return x.createElement(e9,{key:g,componentType:d?"tree":"expand",expanded:Fs(h,g),expandIcon:p,onClick:(m,y)=>r.handleRowExpanded(m,g,y)})},this.handleRowExpanded=function(){return r.foundation.handleRowExpanded(...arguments)},this.normalizeExpandColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=null;const{prefixCls:f,expandCellFixed:h,expandIcon:p}=c;return d={fixed:h,key:je.DEFAULT_KEY_COLUMN_EXPAND},d.className=$(d.className,`${f}-column-expand`),d.render=p!==!1?function(){let g=arguments.length>1?arguments[1]:void 0;return r.adapter.mergedRowExpandable(g)?r.renderExpandIcon(g):null}:()=>null,d},this.addFnsInColumn=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d}=r.props;if(c&&(c.sorter||c.filters||c.useFullRender)){let f=!1;const{dataIndex:h,title:p,useFullRender:g}=c,m=r.foundation.getQuery(h),y={},b=[];g&&(y.selection=r.renderSelection(null,!0));const _=H(m,"sortOrder"),S=H(m,"defaultSortOrder",!1),C=r.foundation.isSortOrderValid(_)?_:S,w=qA(c.ellipsis),T=typeof p!="function"&&x.createElement("span",{className:`${d}-row-head-title`,key:je.DEFAULT_KEY_COLUMN_TITLE,title:w&&typeof p=="string"?p:void 0},p);if(typeof c.sorter=="function"||c.sorter===!0){const A=x.createElement(JA,{key:je.DEFAULT_KEY_COLUMN_SORTER,sortOrder:C,onClick:R=>r.foundation.handleSort(c,R),title:T});g&&(y.sorter=A),f=!0,b.push(A)}else b.push(T);const E=H(m,"filteredValue"),O=H(m,"defaultFilteredValue"),I=E||O;if(Array.isArray(c.filters)&&c.filters.length||D.isValidElement(c.filterDropdown)){const A=x.createElement(LRe,Object.assign({key:je.DEFAULT_KEY_COLUMN_FILTER},m,{filteredValue:I,onFilterDropdownVisibleChange:R=>r.foundation.toggleShowFilter(h,R),onSelect:R=>r.foundation.handleFilterSelect(h,R)}));g&&(y.filter=A),f=!0,b.push(A)}const P=typeof p=="function"?()=>p(y):f?x.createElement("div",{className:`${d}-operate-wrapper`},b):b;c=Object.assign(Object.assign({},c),{title:P})}return c},this.toggleSelectRow=(c,d,f)=>{this.foundation.handleSelectRow(d,c,f)},this.toggleSelectAllRow=(c,d)=>{this.foundation.handleSelectAllRow(c,d)},this.renderPagination=(c,d)=>{if(!c)return null;const f=this.foundation.memoizedPagination(c);return x.createElement(hn,{componentName:"Table"},h=>{const p=this.foundation.formatPaginationInfo(f,h.pageText);return x.createElement(QA,{info:p,pagination:f,renderPagination:d})})},this.renderTitle=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{title:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-title`,"x-semi-prop":"title"},d):null},this.renderEmpty=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{prefixCls:d,empty:f,dataSource:h}=c,p=`${d}-placeholder`;return r.foundation.isEmpty(h)?x.createElement(hn,{componentName:"Table",key:"emptyText"},(m,y)=>x.createElement("div",{className:p},x.createElement("div",{className:`${d}-empty`,"x-semi-prop":"empty"},f||m.emptyText))):null},this.renderFooter=function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{footer:d}=c;const{prefixCls:f,dataSource:h}=c;return typeof d=="function"&&(d=d(h)),D.isValidElement(d)||typeof d=="string"?x.createElement("div",{className:`${f}-footer`,key:"footer","x-semi-prop":"footer"},d):null},this.renderMainTable=c=>{const d=this.adapter.useFixedHeader(),f=this.renderEmpty(c);return[this.renderTable(Object.assign(Object.assign({},c),{fixed:!1,useFixedHeader:d,headerRef:this._cacheHeaderRef,bodyRef:this.bodyWrapRef,includeHeader:!d,emptySlot:f})),this.renderFooter(c)]},this.renderTable=c=>{const{columns:d,filteredColumns:f,fixed:h,useFixedHeader:p,scroll:g,prefixCls:m,anyColumnFixed:y,includeHeader:b,showHeader:_,components:S,headerRef:C,bodyRef:w,onHeaderRow:T,rowSelection:E,dataSource:O,bodyHasScrollBar:I,disabledRowKeysSet:P,sticky:A}=c,R=H(E,"selectedRowKeysSet",new Set),L=this.adapter.getTableLayout(),k=h||p?x.createElement(FRe,{key:"head",tableLayout:L,ref:C,columns:f,prefixCls:m,fixed:h,handleBodyScroll:this.handleBodyScrollLeft,components:S,scroll:g,showHeader:_,selectedRowKeysSet:R,onHeaderRow:T,dataSource:O,bodyHasScrollBar:I,sticky:A}):null,N=x.createElement(GLe,Object.assign({},fr(c,["rowSelection","headWidths"]),{key:"body",ref:w,columns:f,fixed:h,prefixCls:m,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,anyColumnFixed:y,tableLayout:L,includeHeader:b,showHeader:_,scroll:g,components:S,store:this.store,selectedRowKeysSet:R,disabledRowKeysSet:P}));return[k,N]},this.handleColumns=(c,d)=>{const{hideExpandedColumn:f,scroll:h,prefixCls:p,expandCellFixed:g,expandIcon:m,rowSelection:y}=this.props,b="children";let _=ti(d);const S=function(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Array.isArray(C)&&C.length&&Br(C,(w,T,E)=>{const O=r.addFnsInColumn(w),I=w[b];if(Array.isArray(I)&&I.length){const P=[...I];S(P),O[b]=P}E[T]=O})};if(S(_),!f){const C=this.normalizeExpandColumn({prefixCls:p,expandCellFixed:g,expandIcon:m}),w=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND);C&&(w>-1?_[w]=Object.assign(Object.assign({},C),_[w]):C.fixed==="right"?_=[..._,C]:_=[C,..._])}if(y&&!H(y,"hidden")){const C=po(_,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION),w=this.normalizeSelectionColumn({rowSelection:y,prefixCls:p});C>-1?_[C]=Object.assign(Object.assign({},w),_[C]):w.fixed==="right"?_=[..._,w]:_=[w,..._]}return FS(_),_},this.normalizeColumns=(c,d)=>ti(this.getColumns(c,d)),this.mergePagination=c=>Object.assign({onChange:this.foundation.setPage},c),this.foundation=new mF(this.adapter);const a=this.getColumns(e.columns,e.children),i=Bp(a),o=mF.initColumnsFilteredValueAndSorterOrder(ti(i)),s=this.foundation.getFilteredSortedDataSource(this.props.dataSource,o),l=m7(this.props.pagination)?this.props.pagination:{},u=this.foundation.getCurrentPageData(s,l,o);this.state={cachedColumns:a,cachedChildren:e.children,flattenColumns:i,components:_F(e.components,e.virtualized),queries:o,dataSource:u.dataSource,flattenData:[],expandedRowKeys:[...e.expandedRowKeys||[],...e.defaultExpandedRowKeys||[]],rowSelection:e.rowSelection?oa(e.rowSelection)?Object.assign({},e.rowSelection):{}:null,pagination:u.pagination,groups:null,allRowKeys:[],disabledRowKeys:[],disabledRowKeysSet:new Set,allDisabledRowKeys:[],allDisabledRowKeysSet:new Set,headWidths:[],bodyHasScrollBar:!1,prePropRowSelection:void 0,prePagination:void 0},this.rootWrapRef=D.createRef(),this.wrapRef=D.createRef(),this.bodyWrapRef=D.createRef(),this.headerWrapRef=D.createRef(),this.store=new lRe({hoveredRowKey:null}),this.debouncedWindowResize=n7(this.handleWindowResize,150),this.cachedFilteredSortedDataSource=[],this.cachedFilteredSortedRowKeys=[],this.cachedFilteredSortedRowKeysSet=new Set}static getDerivedStateFromProps(e,t){const r={},{rowSelection:a,dataSource:i,childrenRecordName:o,rowKey:s,pagination:l}=e;if(e.columns&&e.children&&e1.warn("columns should not given by object and children at the same time"),e.columns&&e.columns!==t.cachedColumns){const u=Bp(e.columns);r.flattenColumns=u,r.queries=HI(t.queries,u,null,!1),r.cachedColumns=e.columns,r.cachedChildren=null}else if(e.children&&e.children!==t.cachedChildren){const u=VS(e.children),c=Bp(u),d=HI(t.queries,c,null,!1);r.flattenColumns=c,r.queries=[...d],r.cachedColumns=[...u],r.cachedChildren=e.children}if(a!==t.prePropRowSelection){let u={};oa(t.rowSelection)&&(u=Object.assign(Object.assign({},u),t.rowSelection)),oa(a)&&(u=Object.assign(Object.assign({},u),a));const c=H(a,"selectedRowKeys"),d=H(a,"getCheckboxProps");if(c&&Array.isArray(c)&&(u.selectedRowKeysSet=new Set(c)),ke(d)){const f=zq({dataSource:i,getCheckboxProps:d,childrenRecordName:o,rowKey:s}),h=new Set(f);r.disabledRowKeys=f,r.disabledRowKeysSet=h,r.allDisabledRowKeys=f,r.allDisabledRowKeysSet=h}r.rowSelection=u,r.prePropRowSelection=a}if(l!==t.prePagination){let u={};oa(t.pagination)&&(u=Object.assign(Object.assign({},u),t.pagination)),oa(l)&&(u=Object.assign(Object.assign({},u),l)),r.pagination=u,r.prePagination=l}return r}componentDidMount(){super.componentDidMount(),this.setScrollPosition("left"),(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.handleWindowResize(),window.addEventListener("resize",this.debouncedWindowResize))}componentDidUpdate(e,t){const{dataSource:r,expandedRowKeys:a,expandAllRows:i,expandAllGroupRows:o,virtualized:s,components:l,pagination:u}=this.props,{pagination:c,queries:d,cachedColumns:f,cachedChildren:h,groups:p}=this.state,g={};if(this._warnIfNoKey(),Array.isArray(a)&&a!==e.expandedRowKeys&&this.setState({expandedRowKeys:a}),(l!==e.components||s!==e.virtualized)&&this.setState({components:_F(l,s)}),(i!==e.expandAllRows||o!==e.expandAllGroupRows)&&this.foundation.initExpandedRowKeys({groups:p}),r!==e.dataSource||f!==t.cachedColumns||h!==t.cachedChildren){const m=[...r],y=this.foundation.getFilteredSortedDataSource(m,d),b=this.foundation.getAllDisabledRowKeys(y);this.foundation.setCachedFilteredSortedDataSource(y),this.foundation.setAllDisabledRowKeys(b),g.dataSource=y,this.props.groupBy&&(g.groups=null)}if(r!==e.dataSource&&(g.pagination=oa(c)?Object.assign(Object.assign({},c),{currentPage:oa(u)&&u.currentPage?u.currentPage:1}):c),Object.keys(g).length){const{pagination:m=null,queries:y=null,dataSource:b=null}=g,_=this.foundation.getCurrentPageData(b,m,y);this.adapter.setAllRowKeys(_.allRowKeys),this.adapter.setDisabledRowKeys(_.disabledRowKeys),"dataSource"in g&&((this.props.defaultExpandAllRows&&_.groups&&_.groups.size||this.props.expandAllRows||this.props.expandAllGroupRows)&&this.foundation.initExpandedRowKeys(_),g.pagination=_.pagination);const S=Object.keys(g);for(const C of S)this.setState({[C]:_[C]})}(this.adapter.isAnyColumnFixed()||this.props.showHeader&&this.adapter.useFixedHeader())&&(this.debouncedWindowResize||window.addEventListener("resize",this.debouncedWindowResize))}componentWillUnmount(){super.componentWillUnmount(),this.debouncedWindowResize&&(window.removeEventListener("resize",this.debouncedWindowResize),this.debouncedWindowResize.cancel(),this.debouncedWindowResize=null)}render(){let e=this.props,{scroll:t,prefixCls:r,className:a,style:i={},bordered:o,id:s,pagination:l,virtualized:u,size:c,renderPagination:d,getVirtualizedListRef:f,loading:h,hideExpandedColumn:p,rowSelection:g}=e,m=YLe(e,["scroll","prefixCls","className","style","bordered","id","pagination","virtualized","size","renderPagination","getVirtualizedListRef","loading","hideExpandedColumn","rowSelection"]),{rowSelection:y,expandedRowKeys:b,headWidths:_,tableWidth:S,pagination:C,dataSource:w,queries:T,cachedColumns:E,bodyHasScrollBar:O}=this.state;i=Object.assign({},i);let I;if(this.adapter.isAnyColumnUseFullRender(T))I=this.handleColumns(T,E);else{const Y=g&&!H(g,"hidden");I=this.foundation.memoizedWithFnsColumns(T,E,Y,p,O)}const P=this.foundation.memoizedFilterColumns(I),A=this.foundation.memoizedFlattenFnsColumns(I),R=this.adapter.isAnyColumnFixed(I),L=Object.assign(Object.assign(Object.assign({},m),this.state),{virtualized:u,scroll:t,prefixCls:r,size:c,hideExpandedColumn:p,columns:I,anyColumnFixed:R,rowExpandable:this.mergedRowExpandable,pagination:C,dataSource:w,rowSelection:y,expandedRowKeys:b,renderExpandIcon:this.renderExpandIcon,filteredColumns:P}),k=H(t,"x"),N=H(t,"y");u&&typeof i.width!="number"&&(i.width=k);const z=$({[`${r}-${je.SIZE_SMALL}`]:c===je.SIZE_SMALL,[`${r}-${je.SIZE_MIDDLE}`]:c===je.SIZE_MIDDLE,[`${r}-virtualized`]:!!u,[`${r}-bordered`]:o,[`${r}-fixed-header`]:!!N,[`${r}-scroll-position-left`]:["both","left"].includes(this.position),[`${r}-scroll-position-right`]:["both","right"].includes(this.position)}),F=C&&l?this.renderPagination(C,d):null,j=H(l,"position","bottom"),U=Object.assign(Object.assign({},this.context),{headWidths:_,tableWidth:S,anyColumnFixed:R,flattenedColumns:A,renderExpandIcon:this.renderExpandIcon,renderSelection:this.renderSelection,setHeadWidths:this.setHeadWidths,getHeadWidths:this.getHeadWidths,getCellWidths:this.getCellWidths,handleRowExpanded:this.handleRowExpanded,getVirtualizedListRef:f,setBodyHasScrollbar:this.setBodyHasScrollbar}),G=this.getDataAttr(m);return x.createElement("div",Object.assign({ref:this.rootWrapRef,className:$(a,`${r}-wrapper`,`${r}-wrapper-${L.direction}`),"data-column-fixed":R,style:i,id:s},G),x.createElement(MRe,Object.assign({},U,{direction:L.direction}),x.createElement(Jl,{spinning:h,size:"large"},x.createElement("div",{ref:this.wrapRef,className:z},x.createElement(x.Fragment,{key:"pagination-top"},["top","both"].includes(j)?F:null),this.renderTitle({title:L.title,dataSource:L.dataSource,prefixCls:L.prefixCls}),x.createElement("div",{className:`${r}-container`},this.renderMainTable(Object.assign({},L))),x.createElement(x.Fragment,{key:"pagination-bottom"},["bottom","both"].includes(j)?F:null)))))}};dx.contextType=ih;dx.propTypes={className:v.string,style:v.object,prefixCls:v.string,components:v.any,bordered:v.bool,loading:v.bool,size:v.oneOf(je.SIZES),tableLayout:v.oneOf(je.LAYOUTS),columns:v.arrayOf(v.shape(Hq)),hideExpandedColumn:v.bool,id:v.string,expandIcon:v.oneOfType([v.bool,v.func,v.node]),expandCellFixed:v.oneOf(je.FIXED_SET),title:v.oneOfType([v.string,v.node,v.func]),onHeaderRow:v.func,showHeader:v.bool,indentSize:v.number,rowKey:v.oneOfType([v.func,v.string,v.number]),onRow:v.func,onExpandedRowsChange:v.func,onExpand:v.func,rowExpandable:v.func,expandedRowRender:v.func,expandedRowKeys:v.array,defaultExpandAllRows:v.bool,expandAllRows:v.bool,defaultExpandAllGroupRows:v.bool,expandAllGroupRows:v.bool,defaultExpandedRowKeys:v.array,pagination:v.oneOfType([v.object,v.bool]),renderPagination:v.func,footer:v.oneOfType([v.func,v.string,v.node]),empty:v.node,dataSource:v.array,childrenRecordName:v.string,rowSelection:v.oneOfType([v.object,v.bool]),onChange:v.func,scroll:v.shape({x:v.oneOfType([v.number,v.string,v.bool]),y:v.oneOfType([v.number,v.string])}),groupBy:v.oneOfType([v.string,v.number,v.func]),renderGroupSection:v.oneOfType([v.func]),onGroupedRow:v.func,clickGroupedRowToExpand:v.bool,virtualized:v.oneOfType([v.object,v.bool]),dropdownPrefixCls:v.string,expandRowByClick:v.bool,getVirtualizedListRef:v.func};dx.defaultProps={tableLayout:"",dataSource:[],prefixCls:pa.PREFIX,rowSelection:null,className:"",childrenRecordName:"children",size:"default",loading:!1,bordered:!1,expandCellFixed:!1,hideExpandedColumn:!0,showHeader:!0,indentSize:lr.DEFAULT_INDENT_WIDTH,onChange:B,pagination:!0,rowKey:"key",defaultExpandedRowKeys:[],defaultExpandAllRows:!1,defaultExpandAllGroupRows:!1,expandAllRows:!1,expandAllGroupRows:!1,onFilterDropdownVisibleChange:B,onExpand:B,onExpandedRowsChange:B,expandRowByClick:!1};const i9=dx;var KLe=S7;function ZLe(n,e,t){var r=n.length;return t=t===void 0?r:t,!e&&t>=r?n:KLe(n,e,t)}var XLe=ZLe,qLe=ss,QLe=gi,JLe="[object RegExp]";function eke(n){return QLe(n)&&qLe(n)==JLe}var tke=eke,nke=tke,rke=Qf,TF=Hy,EF=TF&&TF.isRegExp,ake=EF?rke(EF):nke,ike=ake;function oke(n){return n.split("")}var ske=oke,Jq="\\ud800-\\udfff",lke="\\u0300-\\u036f",uke="\\ufe20-\\ufe2f",cke="\\u20d0-\\u20ff",dke=lke+uke+cke,fke="\\ufe0e\\ufe0f",hke="["+Jq+"]",UI="["+dke+"]",WI="\\ud83c[\\udffb-\\udfff]",pke="(?:"+UI+"|"+WI+")",eQ="[^"+Jq+"]",tQ="(?:\\ud83c[\\udde6-\\uddff]){2}",nQ="[\\ud800-\\udbff][\\udc00-\\udfff]",gke="\\u200d",rQ=pke+"?",aQ="["+fke+"]?",vke="(?:"+gke+"(?:"+[eQ,tQ,nQ].join("|")+")"+aQ+rQ+")*",mke=aQ+rQ+vke,yke="(?:"+[eQ+UI+"?",UI,tQ,nQ,hke].join("|")+")",bke=RegExp(WI+"(?="+WI+")|"+yke+mke,"g");function _ke(n){return n.match(bke)||[]}var Ske=_ke,Cke=ske,wke=r9,xke=Ske;function Tke(n){return wke(n)?xke(n):Cke(n)}var Eke=Tke,Oke=GY,Ike=XLe,Pke=r9,Dke=Cw,Ake=ike,Mke=Eke,Rke=hw,Lke=4294967295;function kke(n,e,t){return t&&typeof t!="number"&&Dke(n,e,t)&&(e=t=void 0),t=t===void 0?Lke:t>>>0,t?(n=Rke(n),n&&(typeof e=="string"||e!=null&&!Ake(e))&&(e=Oke(e),!e&&Pke(n))?Ike(Mke(n),0,t):n.split(e,t)):[]}var Nke=kke;const t1=Ie(Nke);function Fke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a!e.includes(o));return $(n,...i)}function $ke(n){const e=t1(n,/\s+/);for(var t=arguments.length,r=new Array(t>1?t-1:0),a=1;a{const o=e.indexOf(i);o>-1&&e.splice(o,1)}),$(...e)}var o9={exports:{}},m0={},fx={exports:{}},iQ={};function oQ(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const t=(n=window.document)===null||n===void 0||(n=n.documentElement)===null||n===void 0?void 0:n.style;if(!t||e in t)return"";for(let r=0;re===t.identifier)||n.changedTouches&&(0,Li.findInArray)(n.changedTouches,t=>e===t.identifier)}function oNe(n){if(n.targetTouches&&n.targetTouches[0])return n.targetTouches[0].identifier;if(n.changedTouches&&n.changedTouches[0])return n.changedTouches[0].identifier}function sNe(n){if(!n)return;let e=n.getElementById("react-draggable-style-el");e||(e=n.createElement("style"),e.type="text/css",e.id="react-draggable-style-el",e.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,e.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,n.getElementsByTagName("head")[0].appendChild(e)),n.body&&dQ(n.body,"react-draggable-transparent-selection")}function lNe(n){if(n)try{if(n.body&&fQ(n.body,"react-draggable-transparent-selection"),n.selection)n.selection.empty();else{const e=(n.defaultView||window).getSelection();e&&e.type!=="Caret"&&e.removeAllRanges()}}catch{}}function dQ(n,e){n.classList?n.classList.add(e):n.className.match(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)")))||(n.className+=" ".concat(e))}function fQ(n,e){n.classList?n.classList.remove(e):n.className=n.className.replace(new RegExp("(?:^|\\s)".concat(e,"(?!\\S)"),"g"),"")}var ll={};Object.defineProperty(ll,"__esModule",{value:!0});ll.canDragX=dNe;ll.canDragY=fNe;ll.createCoreData=pNe;ll.createDraggableData=gNe;ll.getBoundPosition=uNe;ll.getControlPosition=hNe;ll.snapToGrid=cNe;var Ci=sl,Tp=Zn;function uNe(n,e,t){if(!n.props.bounds)return[e,t];let{bounds:r}=n.props;r=typeof r=="string"?r:vNe(r);const a=l9(n);if(typeof r=="string"){const{ownerDocument:i}=a,o=i.defaultView;let s;if(r==="parent"?s=a.parentNode:s=i.querySelector(r),!(s instanceof o.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const l=s,u=o.getComputedStyle(a),c=o.getComputedStyle(l);r={left:-a.offsetLeft+(0,Ci.int)(c.paddingLeft)+(0,Ci.int)(u.marginLeft),top:-a.offsetTop+(0,Ci.int)(c.paddingTop)+(0,Ci.int)(u.marginTop),right:(0,Tp.innerWidth)(l)-(0,Tp.outerWidth)(a)-a.offsetLeft+(0,Ci.int)(c.paddingRight)-(0,Ci.int)(u.marginRight),bottom:(0,Tp.innerHeight)(l)-(0,Tp.outerHeight)(a)-a.offsetTop+(0,Ci.int)(c.paddingBottom)-(0,Ci.int)(u.marginBottom)}}return(0,Ci.isNum)(r.right)&&(e=Math.min(e,r.right)),(0,Ci.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,Ci.isNum)(r.left)&&(e=Math.max(e,r.left)),(0,Ci.isNum)(r.top)&&(t=Math.max(t,r.top)),[e,t]}function cNe(n,e,t){const r=Math.round(e/n[0])*n[0],a=Math.round(t/n[1])*n[1];return[r,a]}function dNe(n){return n.props.axis==="both"||n.props.axis==="x"}function fNe(n){return n.props.axis==="both"||n.props.axis==="y"}function hNe(n,e,t){const r=typeof e=="number"?(0,Tp.getTouch)(n,e):null;if(typeof e=="number"&&!r)return null;const a=l9(t),i=t.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,Tp.offsetXYFromParent)(r||n,i,t.props.scale)}function pNe(n,e,t){const r=!(0,Ci.isNum)(n.lastX),a=l9(n);return r?{node:a,deltaX:0,deltaY:0,lastX:e,lastY:t,x:e,y:t}:{node:a,deltaX:e-n.lastX,deltaY:t-n.lastY,lastX:n.lastX,lastY:n.lastY,x:e,y:t}}function gNe(n,e){const t=n.props.scale;return{node:e.node,x:n.state.x+e.deltaX/t,y:n.state.y+e.deltaY/t,deltaX:e.deltaX/t,deltaY:e.deltaY/t,lastX:n.state.x,lastY:n.state.y}}function vNe(n){return{left:n.left,top:n.top,right:n.right,bottom:n.bottom}}function l9(n){const e=n.findDOMNode();if(!e)throw new Error(": Unmounted during event!");return e}var hx={},px={};Object.defineProperty(px,"__esModule",{value:!0});px.default=mNe;function mNe(){}Object.defineProperty(hx,"__esModule",{value:!0});hx.default=void 0;var D5=bNe(D),Wa=u9($y),yNe=u9(Ti),ra=Zn,wu=ll,A5=sl,zv=u9(px);function u9(n){return n&&n.__esModule?n:{default:n}}function hQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(hQ=function(r){return r?t:e})(n)}function bNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=hQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function Ta(n,e,t){return e=_Ne(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _Ne(n){var e=SNe(n,"string");return typeof e=="symbol"?e:String(e)}function SNe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}const Fo={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let xu=Fo.mouse,gx=class extends D5.Component{constructor(){super(...arguments),Ta(this,"dragging",!1),Ta(this,"lastX",NaN),Ta(this,"lastY",NaN),Ta(this,"touchIdentifier",null),Ta(this,"mounted",!1),Ta(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button=="number"&&e.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(e.target instanceof r.defaultView.Node)||this.props.handle&&!(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,ra.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type==="touchstart"&&e.preventDefault();const a=(0,ra.getTouchIdentifier)(e);this.touchIdentifier=a;const i=(0,wu.getControlPosition)(e,a,this);if(i==null)return;const{x:o,y:s}=i,l=(0,wu.createCoreData)(this,o,s);(0,zv.default)("DraggableCore: handleDragStart: %j",l),(0,zv.default)("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ra.addUserSelectStyles)(r),this.dragging=!0,this.lastX=o,this.lastY=s,(0,ra.addEvent)(r,xu.move,this.handleDrag),(0,ra.addEvent)(r,xu.stop,this.handleDragStop))}),Ta(this,"handleDrag",e=>{const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let s=r-this.lastX,l=a-this.lastY;if([s,l]=(0,wu.snapToGrid)(this.props.grid,s,l),!s&&!l)return;r=this.lastX+s,a=this.lastY+l}const i=(0,wu.createCoreData)(this,r,a);if((0,zv.default)("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=r,this.lastY=a}),Ta(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,wu.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:r,y:a}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX||0,u=a-this.lastY||0;[l,u]=(0,wu.snapToGrid)(this.props.grid,l,u),r=this.lastX+l,a=this.lastY+u}const i=(0,wu.createCoreData)(this,r,a);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(s.ownerDocument),(0,zv.default)("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,zv.default)("DraggableCore: Removing handlers"),(0,ra.removeEvent)(s.ownerDocument,xu.move,this.handleDrag),(0,ra.removeEvent)(s.ownerDocument,xu.stop,this.handleDragStop))}),Ta(this,"onMouseDown",e=>(xu=Fo.mouse,this.handleDragStart(e))),Ta(this,"onMouseUp",e=>(xu=Fo.mouse,this.handleDragStop(e))),Ta(this,"onTouchStart",e=>(xu=Fo.touch,this.handleDragStart(e))),Ta(this,"onTouchEnd",e=>(xu=Fo.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,ra.addEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,ra.removeEvent)(t,Fo.mouse.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.touch.move,this.handleDrag),(0,ra.removeEvent)(t,Fo.mouse.stop,this.handleDragStop),(0,ra.removeEvent)(t,Fo.touch.stop,this.handleDragStop),(0,ra.removeEvent)(e,Fo.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ra.removeUserSelectStyles)(t)}}findDOMNode(){var e,t;return(e=this.props)!==null&&e!==void 0&&e.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:yNe.default.findDOMNode(this)}render(){return D5.cloneElement(D5.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};hx.default=gx;Ta(gx,"displayName","DraggableCore");Ta(gx,"propTypes",{allowAnyClick:Wa.default.bool,children:Wa.default.node.isRequired,disabled:Wa.default.bool,enableUserSelectHack:Wa.default.bool,offsetParent:function(n,e){if(n[e]&&n[e].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Wa.default.arrayOf(Wa.default.number),handle:Wa.default.string,cancel:Wa.default.string,nodeRef:Wa.default.object,onStart:Wa.default.func,onDrag:Wa.default.func,onStop:Wa.default.func,onMouseDown:Wa.default.func,scale:Wa.default.number,className:A5.dontSetMe,style:A5.dontSetMe,transform:A5.dontSetMe});Ta(gx,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),n.default=void 0;var e=f(D),t=c($y),r=c(Ti),a=c(jke),i=Zn,o=ll,s=sl,l=c(hx),u=c(px);function c(b){return b&&b.__esModule?b:{default:b}}function d(b){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(d=function(C){return C?S:_})(b)}function f(b,_){if(!_&&b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var S=d(_);if(S&&S.has(b))return S.get(b);var C={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in b)if(T!=="default"&&Object.prototype.hasOwnProperty.call(b,T)){var E=w?Object.getOwnPropertyDescriptor(b,T):null;E&&(E.get||E.set)?Object.defineProperty(C,T,E):C[T]=b[T]}return C.default=b,S&&S.set(b,C),C}function h(){return h=Object.assign?Object.assign.bind():function(b){for(var _=1;_{if((0,u.default)("Draggable: onDragStart: %j",C),this.props.onStart(S,(0,o.createDraggableData)(this,C))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(S,C)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",C);const w=(0,o.createDraggableData)(this,C),T={x:w.x,y:w.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:I}=T;T.x+=this.state.slackX,T.y+=this.state.slackY;const[P,A]=(0,o.getBoundPosition)(this,T.x,T.y);T.x=P,T.y=A,T.slackX=this.state.slackX+(O-T.x),T.slackY=this.state.slackY+(I-T.y),w.x=T.x,w.y=T.y,w.deltaX=T.x-this.state.x,w.deltaY=T.y-this.state.y}if(this.props.onDrag(S,w)===!1)return!1;this.setState(T)}),p(this,"onDragStop",(S,C)=>{if(!this.state.dragging||this.props.onStop(S,(0,o.createDraggableData)(this,C))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",C);const T={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:I}=this.props.position;T.x=O,T.y=I}this.setState(T)}),this.state={dragging:!1,dragged:!1,x:_.position?_.position.x:_.defaultPosition.x,y:_.position?_.position.y:_.defaultPosition.y,prevPropsPosition:{..._.position},slackX:0,slackY:0,isElementSVG:!1},_.position&&!(_.onDrag||_.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var _,S;return(_=(S=this.props)===null||S===void 0||(S=S.nodeRef)===null||S===void 0?void 0:S.current)!==null&&_!==void 0?_:r.default.findDOMNode(this)}render(){const{axis:_,bounds:S,children:C,defaultPosition:w,defaultClassName:T,defaultClassNameDragging:E,defaultClassNameDragged:O,position:I,positionOffset:P,scale:A,...R}=this.props;let L={},k=null;const z=!!!I||this.state.dragging,F=I||w,j={x:(0,o.canDragX)(this)&&z?this.state.x:F.x,y:(0,o.canDragY)(this)&&z?this.state.y:F.y};this.state.isElementSVG?k=(0,i.createSVGTransform)(j,P):L=(0,i.createCSSTransform)(j,P);const U=(0,a.default)(C.props.className||"",T,{[E]:this.state.dragging,[O]:this.state.dragged});return e.createElement(l.default,h({},R,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),e.cloneElement(e.Children.only(C),{className:U,style:{...C.props.style,...L},transform:k}))}}n.default=y,p(y,"displayName","Draggable"),p(y,"propTypes",{...l.default.propTypes,axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(y,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(iQ);const{default:pQ,DraggableCore:CNe}=iQ;fx.exports=pQ;fx.exports.default=pQ;fx.exports.DraggableCore=CNe;var wNe=fx.exports,c9={};c9.__esModule=!0;c9.cloneElement=PNe;var xNe=TNe(D);function TNe(n){return n&&n.__esModule?n:{default:n}}function PF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function DF(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function AF(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function M5(n){for(var e=1;eMath.abs(f*c)?i=a/c:a=i*c}var h=a,p=i,g=this.slack||[0,0],m=g[0],y=g[1];return a+=m,i+=y,s&&(a=Math.max(s[0],a),i=Math.max(s[1],i)),l&&(a=Math.min(l[0],a),i=Math.min(l[1],i)),this.slack=[m+(h-a),y+(p-i)],[a,i]},t.resizeHandler=function(a,i){var o=this;return function(s,l){var u=l.node,c=l.deltaX,d=l.deltaY;a==="onResizeStart"&&o.resetData();var f=(o.props.axis==="both"||o.props.axis==="x")&&i!=="n"&&i!=="s",h=(o.props.axis==="both"||o.props.axis==="y")&&i!=="e"&&i!=="w";if(!(!f&&!h)){var p=i[0],g=i[i.length-1],m=u.getBoundingClientRect();if(o.lastHandleRect!=null){if(g==="w"){var y=m.left-o.lastHandleRect.left;c+=y}if(p==="n"){var b=m.top-o.lastHandleRect.top;d+=b}}o.lastHandleRect=m,g==="w"&&(c=-c),p==="n"&&(d=-d);var _=o.props.width+(f?c/o.props.transformScale:0),S=o.props.height+(h?d/o.props.transformScale:0),C=o.runConstraints(_,S);_=C[0],S=C[1];var w=_!==o.props.width||S!==o.props.height,T=typeof o.props[a]=="function"?o.props[a]:null,E=a==="onResize"&&!w;T&&!E&&(s.persist==null||s.persist(),T(s,{node:u,size:{width:_,height:S},handle:i})),a==="onResizeStop"&&o.resetData()}}},t.renderResizeHandle=function(a,i){var o=this.props.handle;if(!o)return Bv.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+a,ref:i});if(typeof o=="function")return o(a,i);var s=typeof o.type=="string",l=M5({ref:i},s?{}:{handleAxis:a});return Bv.cloneElement(o,l)},t.render=function(){var a=this,i=this.props,o=i.children,s=i.className,l=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var u=i.resizeHandles;i.transformScale;var c=FNe(i,kNe);return(0,RNe.cloneElement)(o,M5(M5({},c),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(o.props.children,u.map(function(d){var f,h=(f=a.handleRefs[d])!=null?f:a.handleRefs[d]=Bv.createRef();return Bv.createElement(MNe.DraggableCore,GI({},l,{nodeRef:h,key:"resizableHandle-"+d,onStop:a.resizeHandler("onResizeStop",d),onStart:a.resizeHandler("onResizeStart",d),onDrag:a.resizeHandler("onResize",d)}),a.renderResizeHandle(d,h))}))}))},e}(Bv.Component);m0.default=d9;d9.propTypes=LNe.resizableProps;d9.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var vx={};vx.__esModule=!0;vx.default=void 0;var R5=GNe(D),BNe=vQ($y),HNe=vQ(m0),UNe=y0,WNe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function vQ(n){return n&&n.__esModule?n:{default:n}}function mQ(n){if(typeof WeakMap!="function")return null;var e=new WeakMap,t=new WeakMap;return(mQ=function(a){return a?t:e})(n)}function GNe(n,e){if(!e&&n&&n.__esModule)return n;if(n===null||typeof n!="object"&&typeof n!="function")return{default:n};var t=mQ(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in n)if(i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)){var o=a?Object.getOwnPropertyDescriptor(n,i):null;o&&(o.get||o.set)?Object.defineProperty(r,i,o):r[i]=n[i]}return r.default=n,t&&t.set(n,r),r}function KI(){return KI=Object.assign?Object.assign.bind():function(n){for(var e=1;e=0)&&(t[a]=n[a]);return t}function qNe(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,ZI(n,e)}function ZI(n,e){return ZI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZI(n,e)}var yQ=function(n){qNe(e,n);function e(){for(var r,a=arguments.length,i=new Array(a),o=0;ox.createElement(x.Fragment,{key:c},u)),x.createElement(QNe,{width:i,height:0,onResize:t,onResizeStart:r,onResizeStop:a,draggableOpts:{enableUserSelectHack:!1},axis:"x"},x.createElement("th",Object.assign({},s),l))}}const tFe=eFe;var nFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;const{components:t,columns:r,resizable:a}=n,i=nFe(n,["components","columns","resizable"]),o="children",s=H(a,"onResize",B),l=H(a,"onResizeStart",B),u=H(a,"onResizeStop",B),c=Array.isArray(r)&&r.length?r:VS(n.children),d=FS(ti(c),o),f=FS(ti(c),o);typeof n.expandedRowRender=="function"&&!n.hideExpandedColumn&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_EXPAND)&&f.unshift({key:je.DEFAULT_KEY_COLUMN_EXPAND,width:lr.DEFAULT_WIDTH_COLUMN_EXPAND}),n.rowSelection&&!qs(d,T=>T.key===je.DEFAULT_KEY_COLUMN_SELECTION)&&f.unshift({width:H(n,"rowSelection.width",lr.DEFAULT_WIDTH_COLUMN_SELECTION),key:je.DEFAULT_KEY_COLUMN_SELECTION});const[h,p]=D.useState(f);D.useEffect(()=>{const T=aRe(h,f);p(HI(h,T))},[r,n.expandedRowRender,n.hideExpandedColumn,n.rowSelection]);const g=D.useMemo(()=>Gy({header:{cell:tFe}},t),[t]),m=H(a,"handlerClassName","resizing"),y=T=>(E,O)=>{let{size:I}=O;const P=ti(h),A=h2(P,T,o);let R=Object.assign(Object.assign({},A),{width:I.width});const L=s(R)||{};R=Object.assign(Object.assign({},R),L),Object.assign(A,R),p(P)},b=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:Fke(I.className,m)});const A=l(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},_=T=>E=>{const O=ti(h),I=h2(O,T,o);let P=Object.assign(Object.assign({},I),{className:$ke(I.className,m)});const A=u(P)||{};P=Object.assign(Object.assign({},P),A),Object.assign(I,P),p(O)},S=function(T,E){let O=arguments.length>3?arguments[3]:void 0;return Object.assign(Object.assign({},T),{onHeaderCell:I=>Object.assign(Object.assign({},O),{width:I.width,onResize:y(I),onResizeStart:b(I),onResizeStop:_(I)})})},C=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(T)&&T.length?T.map((O,I)=>{var P,A;const R=(A=(P=O.onHeaderCell)===null||P===void 0?void 0:P.call(O,O,I,E))!==null&&A!==void 0?A:{};Object.assign(O,S(O,I,E,R));const L=O[o];return Array.isArray(L)&&L.length&&(O[o]=C(L,E+1)),O}):[]},w=D.useMemo(()=>C(h),[h]);return x.createElement(i9,Object.assign({},i,{columns:w,components:g,ref:e}))},aFe=x.forwardRef(rFe);class sh extends x.PureComponent{constructor(e){super(e),this.getCurrentPageData=()=>this.tableRef.current&&this.tableRef.current.getCurrentPageData(),this.tableRef=x.createRef()}render(){var e;const t=this.props,r=(e=this.props.direction)!==null&&e!==void 0?e:this.context.direction;return t.resizable?x.createElement(aFe,Object.assign({},t,{ref:this.tableRef,direction:r})):x.createElement(i9,Object.assign({},t,{ref:this.tableRef,direction:r}))}}sh.Column=tt;sh.DEFAULT_KEY_COLUMN_SELECTION=je.DEFAULT_KEY_COLUMN_SELECTION;sh.DEFAULT_KEY_COLUMN_EXPAND=je.DEFAULT_KEY_COLUMN_EXPAND;sh.propTypes=Object.assign(Object.assign({},i9.propTypes),{resizable:v.oneOfType([v.bool,v.object])});sh.defaultProps={hideExpandedColumn:!0};sh.contextType=Fr;const mx=sh,Pb=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;if(n instanceof Date)return n;if(typeof n=="number"||!isNaN(Number(n)))return new Date(lo(n));if(typeof n=="string"){let r=new Date;return r=cZ(n,e,r,{locale:t}),r}else if(typeof n>"u")return;return new Date},Db=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gn.DEFAULT_FORMAT,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:k7;return Lt(n,e,{locale:t})},iFe=(n,e)=>{if(typeof n=="function"){const t=n();if(Array.isArray(t)&&!ct(e)&&t.some(r=>lo(r)===lo(e)))return!0}return!1},oFe=(n,e,t)=>{if(typeof n=="function"){const r=n(e);if(Array.isArray(r)&&!ct(e)&&!ct(t)&&r.some(a=>lo(a)===lo(t)))return!0}return!1},sFe=(n,e,t,r)=>{if(typeof n=="function"){const a=n(e,t);if(Array.isArray(a)&&!ct(e)&&!ct(t)&&!ct(r)&&a.some(i=>lo(i)===lo(r)))return!0}return!1},L5=n=>Array.isArray(n)?[...n]:[],lFe=(n,e)=>{let t=!0;const r="BDEGHKLMOPQRSTXYabcehimopqstuwxyz",a=new RegExp(`[${r}]`,"g"),i=new RegExp(`[^${r}]`,"g"),o=/[H|m|s]{1,2}/,s=e.split(i),l=e.replace(a,""),u=new RegExp(`[${l}]`,"g"),c=n.split(u);if(s.length!==c.length)t=!1;else for(let d=0,f=c.length;d{const f=Pb(d,a,o);isNaN(f.getTime())||s.push(this.isValidTimeZone(r)?RI(f,r):f)});const u=[!0,!1];s.map((d,f)=>{u[f]=KCe(d)<12}),s.length===t.length?t=s:(t=[],t.length&&(l=!0));let c="";l||(c=t.map(d=>Db(d,a,o)).join(i)),this.setState({isAM:u,value:t,inputValue:c,invalid:l})}getValidFormat(e){let t=e;return ct(t)&&(t=this.getDefaultFormatIfNeed()),typeof t!="string"&&(t=Gn.DEFAULT_FORMAT),t}handlePanelChange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const r=this.getValidFormat(),a=this.getProp("dateFnsLocale"),i=this.getState("value");let o=this.getState("isAM");const s=L5(i);if(o=L5(o),e){const l=!!e.isAM,u=Pb(e.timeStampValue,r,a);s[t]=u,o[t]=l;const c=this.formatValue(s);if(this.getState("isAM")[t]!==e.isAM&&this.setState({isAM:o}),!this._isControlledComponent("value")){const d=this.validateDates(s);this.setState({isAM:o,value:s,inputValue:c,invalid:d})}this._hasChanged(s,i)&&this._notifyChange(s,c)}}refreshProps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{value:t,timeZone:r,__prevTimeZone:a}=e;let i=this.parseValue(t);const o=this.validateDates(i);o||this.isValidTimeZone(r)&&(i=i.map(l=>RI(this.isValidTimeZone(a)?zp(l,a):l,r)));const s=this.formatValue(i);this.setState({value:i,invalid:o,inputValue:s})}handleFocus(e){this.getState("open")||this.handlePanelOpen(),this._adapter.notifyFocus(e)}setPanel(e){this._adapter.togglePanel(e)}destroy(){this._adapter.unregisterClickOutSide()}handlePanelOpen(){this._isControlledComponent("open")||(this._adapter.registerClickOutSide(),this.setPanel(!0)),this._adapter.notifyOpenChange(!0)}handlePanelClose(e,t){this._isControlledComponent("open")||(this._adapter.unregisterClickOutSide(),this.setPanel(!1)),this._adapter.notifyOpenChange(!1),this._adapter.notifyBlur(t)}handleVisibleChange(e){this._isControlledComponent("open")||this._adapter.togglePanel(e),this._adapter.notifyOpenChange(e)}handleInputChange(e){this._adapter.setInputValue(e);const t=this.getProp("rangeSeparator"),r=t1(e,t),a=this.getValidFormat();if(e!==""&&r.some(c=>!lFe(c,a)))return;const i=this.parseInput(e),o=this.validateDates(i),s={invalid:o},l=this.getState("value");let u=L5(l);o||(s.value=i,u=[...i]),this._isControlledComponent("value")||this.setState(s),this._hasChanged(u,l)&&this._notifyChange(u,e)}doValidate(e){if(typeof e=="string")return this.validateStr(e);if(Array.isArray(e))return this.validateDates(e)}validateStr(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const t=this.parseInput(e);return this.validateDates(t)}validateDates(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=e.some(r=>isNaN(Number(r)));return t||(t=e.some(r=>this.isDisabledHMS({hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds()}))),t}handleInputBlur(e){const t=this.getState("invalid"),r=this.getState("inputValue"),a=this.getState("value");r?t?this.setState({inputValue:this.formatValue(a),invalid:!1}):this.setState({inputValue:this.formatValue(a)}):this.setState({inputValue:"",value:[],invalid:!1})}formatValue(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");let i=e;if(i&&!Array.isArray(i)&&(i=i[i]),i&&Array.isArray(i))return i.map(s=>{let l;return Vt(s)?l="":l=Db(s,t,a),l}).join(r)}parseInput(e){const t=this.getValidFormat(),r=this.getProp("rangeSeparator"),a=this.getProp("dateFnsLocale");return e&&typeof e=="string"?t1(e,r).map(i=>Pb(i,t,a)):[]}parseValue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=this.getValidFormat(),r=this.getProp("dateFnsLocale");let a=e;return Array.isArray(a)||(a=a?[a]:[]),Array.isArray(a)?a.map(i=>Pb(i,t,r)):[]}_notifyChange(e,t){let r=t,a=e;const i=this.getProp("timeZone");if(this._adapter.isRangePicker()){const s=this.getProp("rangeSeparator");r=t1(t,s)}else a=Array.isArray(a)?a[0]:a;if(this.isValidTimeZone(i)&&a){const s=this.getValidFormat();Array.isArray(a)?(a=a.map(l=>zp(l,i)),r=a.map(l=>Lt(l,s))):(a=zp(a,i),r=Lt(a,s))}this.getProp("onChangeWithDateFirst")?this._adapter.notifyChange(a,r):this._adapter.notifyChange(r,a)}_hasChanged(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=this.getValidFormat(),a=this.getProp("dateFnsLocale");return e.length!==t.length||e.some((i,o)=>{const s=t[o];return!(uo(i)&&uo(s)&&Db(i,r,a)===Db(s,r,a))})}};const cFe=uFe;class dFe extends ze{constructor(e){super(Object.assign({},e))}init(){}destroy(){}handleFocus(e){this.storeCursor(),this._adapter.notifyFocus(e)}handleChange(e){this.storeCursor(),this._adapter.notifyChange(e)}handleBlur(e){this.clearCursor(),this._adapter.notifyBlur(e)}storeCursor(){const e=this.getCache("inputNode");if(e){const{selectionStart:t}=e;this.setCache("cursorIndex",t)}}restoreCursor(){const e=this.getCache("inputNode"),t=this.getCache("cursorIndex");e&&!ct(t)&&(e.selectionStart=t,e.selectionEnd=t)}clearCursor(){this.setCache("cursorIndex",null),this.setCache("beforeStr",null),this.setCache("afterStr",null)}}const fFe=dFe;var hFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);athis.adapter.setCache("inputNode",t),this.handleClick=t=>this.props.onClick(t),this.handleFocus=t=>this.foundation.handleFocus(t),this.handleBlur=t=>this.foundation.handleBlur(t),this.handleChange=t=>this.foundation.handleChange(t),this.foundation=new fFe(this.adapter),this.state={}}componentDidMount(){super.componentDidMount();const{focusOnOpen:e,preventScroll:t}=this.props;e&&(window.requestAnimationFrame||window.setTimeout)(()=>{const a=this.adapter.getCache("inputNode");a&&(a.focus({preventScroll:t}),a.select())})}componentDidUpdate(e){const{timeStampValue:t}=this.props;this.isControlled("timeStampValue")&&t!==this.state.timeStampValue&&this.foundation.restoreCursor(),this.props.value!==e.value&&this.foundation.restoreCursor()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{notifyChange:function(){return e.props.onChange(...arguments)},notifyFocus:function(){return e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur(...arguments)}})}getInput(){const e=this.props,{prefixCls:t,placeholder:r,inputReadOnly:a,onFocus:i,disabled:o,type:s,locale:l,localeCode:u,insetLabel:c,validateStatus:d,value:f,onChange:h,invalid:p,format:g,clearText:m,disabledHours:y,disabledMinutes:b,disabledSeconds:_,onEsc:S,defaultOpenValue:C,currentSelectPanel:w,focusOnOpen:T,timeStampValue:E,timeZone:O,defaultOpen:I,dateFnsLocale:P}=e,A=hFe(e,["prefixCls","placeholder","inputReadOnly","onFocus","disabled","type","locale","localeCode","insetLabel","validateStatus","value","onChange","invalid","format","clearText","disabledHours","disabledMinutes","disabledSeconds","onEsc","defaultOpenValue","currentSelectPanel","focusOnOpen","timeStampValue","timeZone","defaultOpen","dateFnsLocale"]),R=$(`${t}-input`,{[`${t}-input-invalid`]:p,[`${t}-input-readonly`]:a}),L=p?"error":d;return x.createElement(Ri,Object.assign({},A,{hideSuffix:!0,className:R,ref:this.setRef,value:f,placeholder:r||l.placeholder[s],readonly:!!a,onChange:this.handleChange,onFocus:this.handleFocus,onBlur:this.handleBlur,suffix:x.createElement(vZ,{onClick:this.handleClick}),validateStatus:L,disabled:o,insetLabel:c}))}render(){const{prefixCls:e}=this.props;return x.createElement("div",{className:`${e}-input-wrap`},this.getInput())}}f9.propTypes={borderless:v.bool,format:v.string,prefixCls:v.string,placeholder:v.string,clearText:v.string,inputReadOnly:v.bool,hourOptions:v.array,minuteOptions:v.array,secondOptions:v.array,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,onChange:v.func,onFocus:v.func,onBlur:v.func,onEsc:v.func,onClick:v.func,defaultOpenValue:v.object,currentSelectPanel:v.string,focusOnOpen:v.bool,timeStampValue:v.any,locale:v.object,localeCode:v.string,insetLabel:v.node,validateStatus:v.string,preventScroll:v.bool};f9.defaultProps={borderless:!1,inputReadOnly:!1,onChange:B,onBlur:B,onFocus:B,onClick:B,disabledHours:B,disabledMinutes:B,disabledSeconds:B,format:Gn.DEFAULT_FORMAT};const pFe=f9,RF={panelHeader:v.oneOfType([v.node,v.string]),panelFooter:v.oneOfType([v.node,v.string])},gFe={},vFe=[v.string,v.number,v.instanceOf(Date)],LF=v.oneOfType([...vFe,v.arrayOf(v.string),v.arrayOf(v.number),v.arrayOf(v.instanceOf(Date))]);var mFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{this.setState({currentSelectPanel:a})},this.handlePanelChange=(a,i)=>this.foundation.handlePanelChange(a,i),this.handleInput=a=>this.foundation.handleInputChange(a),this.createPanelProps=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const{panels:i,panelFooter:o,panelHeader:s,locale:l}=t.props,u={panelHeader:s,panelFooter:o};if(t.adapter.isRangePicker()){const c={0:l.begin,1:l.end};u.panelHeader=H(i,a,ct(s)?H(c,a,null):Array.isArray(s)?s[a]:s),u.panelFooter=H(i,a,Array.isArray(o)?o[a]:o)}return u},this.handlePanelVisibleChange=a=>this.foundation.handleVisibleChange(a),this.openPanel=()=>{this.foundation.handlePanelOpen()},this.handleFocus=a=>{this.foundation.handleFocus(a)},this.handleBlur=a=>this.foundation.handleInputBlur(a),this.setTimePickerRef=a=>this.timePickerRef.current=a;const{format:r=Gn.DEFAULT_FORMAT}=e;this.state={open:e.open||e.defaultOpen||!1,value:[],inputValue:"",currentSelectPanel:0,isAM:[!0,!1],showHour:!!r.match(/HH|hh|H|h/g),showMinute:!!r.match(/mm/g),showSecond:!!r.match(/ss/g),invalid:void 0},this.foundation=new cFe(this.adapter),this.timePickerRef=x.createRef(),this.savePanelRef=x.createRef()}get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{togglePanel:t=>{this.setState({open:t})},registerClickOutSide:()=>{this.clickOutSideHandler&&this.adapter.unregisterClickOutSide(),this.clickOutSideHandler=t=>{const r=this.savePanelRef&&this.savePanelRef.current,a=t.target&&r&&r.contains(t.target);!(this.timePickerRef&&this.timePickerRef.current&&this.timePickerRef.current.contains(t.target))&&!a&&this.foundation.handlePanelClose(!0,t)},document.addEventListener("mousedown",this.clickOutSideHandler)},setInputValue:(t,r)=>this.setState({inputValue:t},r),unregisterClickOutSide:()=>{this.clickOutSideHandler&&(document.removeEventListener("mousedown",this.clickOutSideHandler),this.clickOutSideHandler=null)},notifyOpenChange:function(){return e.props.onOpenChange(...arguments)},notifyChange:(t,r)=>this.props.onChange&&this.props.onChange(t,r),notifyFocus:function(){return e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){return e.props.onBlur&&e.props.onBlur(...arguments)},isRangePicker:()=>this.props.type===Gn.TYPE_TIME_RANGE_PICKER})}static getDerivedStateFromProps(e,t){return"open"in e&&e.open!==t.open?{open:e.open}:null}componentDidUpdate(e){this.isControlled("value")&&this.props.value!==e.value?this.foundation.refreshProps(Object.assign({},this.props)):this.props.timeZone!==e.timeZone&&this.foundation.refreshProps({timeZone:this.props.timeZone,__prevTimeZone:e.timeZone,value:this.state.value})}getPanelElement(){const{prefixCls:e,type:t}=this.props,{isAM:r,value:a}=this.state,i=this.foundation.getDefaultFormatIfNeed(),o=[x.createElement(NI,Object.assign({},this.props,{key:0,format:i,isAM:r[0],timeStampValue:a[0],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,0),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(0)))];t===Gn.TYPE_TIME_RANGE_PICKER&&o.push(x.createElement(NI,Object.assign({},this.props,{key:1,format:i,isAM:r[1],timeStampValue:a[1],prefixCls:`${e}-panel`,onChange:l=>this.handlePanelChange(l,1),onCurrentSelectPanelChange:this.onCurrentSelectPanelChange},this.createPanelProps(1))));const s=$({[kI.RANGE_PANEL_LISTS]:this.adapter.isRangePicker()});return x.createElement("div",{ref:this.savePanelRef,className:s},o.map(l=>l))}getPopupClassName(){const{use12Hours:e,prefixCls:t,popupClassName:r}=this.props,{showHour:a,showMinute:i,showSecond:o}=this.state;let s=0;return a&&(s+=1),i&&(s+=1),o&&(s+=1),e&&(s+=1),$(`${t}-panel`,r,{[`${t}-panel-narrow`]:(!a||!i||!o)&&!e,[kI.RANGE_PICKER]:this.adapter.isRangePicker()},`${t}-panel-column-${s}`)}focus(){}blur(){}render(){const e=this.props,{prefixCls:t,placeholder:r,disabled:a,defaultValue:i,dropdownMargin:o,className:s,popupStyle:l,size:u,style:c,locale:d,localeCode:f,zIndex:h,getPopupContainer:p,insetLabel:g,insetLabelId:m,inputStyle:y,showClear:b,panelHeader:_,panelFooter:S,rangeSeparator:C,onOpenChange:w,onChangeWithDateFirst:T,popupClassName:E,hideDisabledOptions:O,use12Hours:I,minuteStep:P,hourStep:A,secondStep:R,scrollItemProps:L,triggerRender:k,motion:N,autoAdjustOverflow:z}=e,F=mFe(e,["prefixCls","placeholder","disabled","defaultValue","dropdownMargin","className","popupStyle","size","style","locale","localeCode","zIndex","getPopupContainer","insetLabel","insetLabelId","inputStyle","showClear","panelHeader","panelFooter","rangeSeparator","onOpenChange","onChangeWithDateFirst","popupClassName","hideDisabledOptions","use12Hours","minuteStep","hourStep","secondStep","scrollItemProps","triggerRender","motion","autoAdjustOverflow"]),j=this.foundation.getDefaultFormatIfNeed(),U=this.foundation.getPosition(),G=typeof k=="function",{open:Y,inputValue:Q,invalid:Z,value:ae}=this.state,se=this.getPopupClassName(),ee=$({[`${t}-header`]:!0}),ne=$({[`${t}-panel`]:!0,[`${t}-panel-${u}`]:u}),re=Object.assign(Object.assign({},F),{disabled:a,prefixCls:t,size:u,showClear:a?!1:b,style:y,value:Q,onFocus:this.handleFocus,insetLabel:g,insetLabelId:m,format:j,locale:d,localeCode:f,invalid:Z,placeholder:r,onChange:this.handleInput,onBlur:this.handleBlur}),te={};return G&&(te.onClick=this.openPanel),x.createElement("div",Object.assign({ref:this.setTimePickerRef,className:$({[t]:!0},s),style:c},te),x.createElement(di,{getPopupContainer:p,zIndex:h,prefixCls:ne,contentClassName:se,style:l,content:this.getPanelElement(),trigger:"custom",position:U,visible:a?!1:!!Y,motion:N,margin:o,autoAdjustOverflow:z},G?x.createElement(Wg,{triggerRender:k,disabled:a,value:ae,inputValue:Q,onChange:this.handleInput,placeholder:r,componentName:"TimePicker",componentProps:Object.assign({},this.props)}):x.createElement("span",{className:ee},x.createElement(pFe,Object.assign({},re)))))}}rv.contextType=Fr;rv.propTypes=Object.assign(Object.assign({"aria-labelledby":v.string,"aria-invalid":v.bool,"aria-errormessage":v.string,"aria-describedby":v.string,"aria-required":v.bool,prefixCls:v.string,borderless:v.bool,clearText:v.string,clearIcon:v.node,value:LF,inputReadOnly:v.bool,disabled:v.bool,showClear:v.bool,defaultValue:LF,open:v.bool,defaultOpen:v.bool,onOpenChange:v.func,position:v.any,getPopupContainer:v.func,placeholder:v.string,format:v.string,style:v.object,className:v.string,popupClassName:v.string,popupStyle:v.object,disabledHours:v.func,disabledMinutes:v.func,disabledSeconds:v.func,dropdownMargin:v.oneOfType([v.number,v.object]),hideDisabledOptions:v.bool,onChange:v.func,use12Hours:v.bool,hourStep:v.number,minuteStep:v.number,secondStep:v.number,focusOnOpen:v.bool,autoFocus:v.bool,size:v.oneOf(Gn.SIZE),panels:v.arrayOf(v.shape(RF)),onFocus:v.func,onBlur:v.func,locale:v.object,localeCode:v.string,dateFnsLocale:v.object,zIndex:v.oneOfType([v.number,v.string]),insetLabel:v.node,insetLabelId:v.string,validateStatus:v.oneOf(Gn.STATUS),type:v.oneOf(Gn.TYPES),rangeSeparator:v.string,triggerRender:v.func,timeZone:v.oneOfType([v.string,v.number]),scrollItemProps:v.object,motion:v.oneOfType([v.bool,v.func,v.object]),autoAdjustOverflow:v.bool},RF),{inputStyle:v.object,preventScroll:v.bool});rv.defaultProps=Object.assign({autoAdjustOverflow:!0,borderless:!1,getPopupContainer:()=>document.body,showClear:!0,zIndex:ci.DEFAULT_Z_INDEX,rangeSeparator:Gn.DEFAULT_RANGE_SEPARATOR,onOpenChange:B,clearText:"clear",prefixCls:kI.PREFIX,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{left:"0px",top:"0px"},disabledHours:()=>[],disabledMinutes:()=>[],disabledSeconds:()=>[],hideDisabledOptions:!1,onFocus:B,onBlur:B,onChange:B,onChangeWithDateFirst:!0,use12Hours:!1,focusOnOpen:!1,onKeyDown:B,size:"default",type:Gn.DEFAULT_TYPE,motion:!0},gFe);class h9 extends x.PureComponent{render(){const{type:e}=this.props;return x.createElement(Fr.Consumer,null,t=>{let{timeZone:r}=t;return x.createElement(hn,{componentName:"TimePicker"},(a,i,o)=>x.createElement(rv,Object.assign({timeZone:r,placeholder:H(a,["placeholder",e])},this.props,{locale:a,localeCode:i,dateFnsLocale:o})))})}}h9.propTypes=rv.propTypes;h9.defaultProps=rv.defaultProps;class p9 extends ze{constructor(e){super(Object.assign(Object.assign({},p9.defaultAdapter),e)),this.handleMouseInSideChange=t=>{this._adapter.handleMouseInSideChange(t)},this.getInputWrapperRect=()=>this._adapter.getInputWrapperRect()}hasToast(e){return this._adapter.getState("list").map(r=>{let{id:a}=r;return a}).includes(e)}addToast(e){const t=this._adapter.getState("list");t.push(e),this._adapter.updateToast(t,[],[])}updateToast(e,t){let r=this._adapter.getState("list");r=r.map(i=>i.id===e?Object.assign(Object.assign({},i),t):i);const a=r.filter(i=>i.id===e);this._adapter.updateToast(r,[],a)}removeToast(e){let t=this._adapter.getState("list");const r=[];t=t.filter(a=>a.id===e?(r.push(a),!1):!0),this._adapter.updateToast(t,r,[])}destroyAll(){const e=this._adapter.getState("list");e.length>0&&this._adapter.updateToast([],e,[])}}const k5=`${q}-toast`,ep={PREFIX:k5,WRAPPER:`${k5}-wrapper`,LIST:`${k5}-list`},p2={types:["warning","success","info","error","default"],themes:["normal","light"],directions:["ltr","rtl"]},yFe={duration:3};class g9 extends ze{constructor(e){super(Object.assign(Object.assign({},g9.defaultAdapter),e)),this._timer=null,this._id=null}init(){this.startCloseTimer_(),this._id=this._adapter.getProp("id")}destroy(){this.clearCloseTimer_()}startCloseTimer_(){const e=this._adapter.getProp("duration");e&&Rn(e)&&(this._timer=setTimeout(()=>{this.close()},e*1e3))}close(e){e&&e.stopPropagation(),this._adapter.notifyWrapperToRemove(this._id),this._adapter.notifyClose()}clearCloseTimer_(){this._timer&&(clearTimeout(this._timer),this._timer=null)}restartCloseTimer(){this.clearCloseTimer_(),this.startCloseTimer_()}}const Lo=ep.PREFIX;let yx=class extends Pe{constructor(e){super(e),this.toastEle=x.createRef(),this.clearCloseTimer=()=>{this.foundation.clearCloseTimer_()},this.startCloseTimer=()=>{this.foundation.startCloseTimer_()},this.restartCloseTimer=()=>{this.foundation.restartCloseTimer()},this.state={},this.foundation=new g9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyWrapperToRemove:e=>{this.props.close(e)},notifyClose:()=>{this.props.onClose()}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}close(e){this.foundation.close(e)}renderIcon(){const{type:e,icon:t}=this.props,a={warning:x.createElement(Ow,null),success:x.createElement(_Z,null),info:x.createElement(bZ,null),error:x.createElement(z1,null)}[e],i="large",o=$(`${Lo}-icon`,`${Lo}-icon-${e}`);return t?Hr(t)?x.cloneElement(t,{size:i,className:`${Lo}-icon`}):t:e&&a?x.cloneElement(a,{size:i,className:o}):null}render(){const{content:e,type:t,theme:r,showClose:a,textMaxWidth:i,className:o,style:s}=this.props,l=this.props.direction||this.context.direction,u=$(Lo,o,{[`${Lo}-${t}`]:!0,[`${Lo}-${r}`]:r==="light",[`${Lo}-rtl`]:l==="rtl"}),c={};c.maxWidth=i;const d="borderless",f="small",h=this.props.positionInList?this.props.positionInList.length-this.props.positionInList.index-1:0,p=x.createElement("div",{ref:this.toastEle,role:"alert","aria-label":`${t||"default"} type`,className:u,style:Object.assign(Object.assign({},s),{transform:`translate3d(0,0,${h*-10}px)`}),onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onAnimationStart:this.props.onAnimationStart,onAnimationEnd:this.props.onAnimationEnd},x.createElement("div",{className:`${Lo}-content`},this.renderIcon(),x.createElement("span",{className:`${Lo}-content-text`,style:c,"x-semi-prop":"content"},e),a&&x.createElement("div",{className:`${Lo}-close-button`},x.createElement(Dl,{onClick:g=>this.close(g),type:"tertiary",icon:x.createElement(Ky,{"x-semi-prop":"icon"}),theme:d,size:f}))));if(this.props.stack){const g=this.props.stackExpanded&&this.toastEle.current&&getComputedStyle(this.toastEle.current).height||0;return x.createElement("div",{className:`${Lo}-zero-height-wrapper`,style:{height:g}},p)}else return p}};yx.contextType=Fr;yx.propTypes={onClose:v.func,content:v.node,close:v.func,duration:v.number,theme:v.oneOf(p2.themes),type:v.oneOf(p2.types),textMaxWidth:v.oneOfType([v.string,v.number]),style:v.object,className:v.string,showClose:v.bool,stack:v.bool,stackExpanded:v.bool,icon:v.oneOfType([v.string,v.node]),direction:v.oneOf(p2.directions)};yx.defaultProps={onClose:B,content:"",close:B,duration:yFe.duration,textMaxWidth:450,showClose:!0,stack:!1,stackExpanded:!1,theme:"normal"};const bQ=yx;var bFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{var{afterClose:t}=n,r=bFe(n,["afterClose"]);const[a,i]=D.useState(!0),o=()=>{i(!1)};return x.useImperativeHandle(e,()=>({close:()=>{i(!1)}})),D.useEffect(()=>{a||t(r.id)},[a]),a?x.createElement(bQ,Object.assign({},r,{close:o})):null},SFe=x.forwardRef(_Fe),Hv={motion:!0,zIndex:1010,duration:3};function CFe(){const[n,e]=x.useState([]);function t(r,a){return e(i=>[{element:r,config:a},...i]),i=>{e(o=>o.filter(s=>{let{config:l}=s;return l.id!==i}))}}return[n,t]}function wFe(){const[n,e]=CFe(),t=D.useRef(new Map),r=i=>{const o=yS("semi_toast_"),s=Object.assign(Object.assign({},i),{id:o});let l;const u=x.createElement(SFe,Object.assign({},s,{key:o,afterClose:c=>l(c),ref:c=>{var d;t.current.set(o,{close:(d=c==null?void 0:c.close)!==null&&d!==void 0?d:B})}}));return l=e(u,Object.assign({},s)),o},a=i=>{var o;const{close:s}=(o=t.current.get(i))!==null&&o!==void 0?o:{};s==null||s()};return[{success:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"success"})),info:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"info"})),error:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"error"})),warning:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"warning"})),open:i=>r(Object.assign(Object.assign(Object.assign({},Hv),i),{type:"default"})),close:i=>a(i)},x.createElement(x.Fragment,null,Array.isArray(n)&&n.length?x.createElement(x.Fragment,null,n.map(i=>i.element)):null)]}const xFe=()=>{var n;return n=class Wt extends Pe{constructor(t){super(t),this.stack=!1,this.innerWrapperRef=x.createRef(),this.handleMouseEnter=r=>{this.stack&&this.foundation.handleMouseInSideChange(!0)},this.handleMouseLeave=r=>{var a;this.stack&&(!((a=this.foundation.getInputWrapperRect())===null||a===void 0)&&a.height)&&this.foundation.handleMouseInSideChange(!1)},this.state={list:[],removedItems:[],updatedItems:[],mouseInSide:!1},this.foundation=new p9(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateToast:(t,r,a)=>{this.setState({list:t,removedItems:r,updatedItems:a})},handleMouseInSideChange:t=>{this.setState({mouseInSide:t})},getInputWrapperRect:()=>{var t;return(t=this.innerWrapperRef.current)===null||t===void 0?void 0:t.getBoundingClientRect()}})}static create(t){var r;const a=(r=t.id)!==null&&r!==void 0?r:yS("toast");if(Wt.ref){const i=document.querySelector(`#${this.wrapperId}`);["top","left","bottom","right"].map(o=>{o in t&&(i.style[o]=typeof t[o]=="number"?`${t[o]}px`:t[o])}),!!t.stack!==Wt.ref.stack&&(Wt.ref.stack=!!t.stack),Wt.ref.has(a)?Wt.ref.update(a,Object.assign(Object.assign({},t),{id:a})):Wt.ref.add(Object.assign(Object.assign({},t),{id:a}))}else{const i=document.createElement("div");this.wrapperId||(this.wrapperId=yS("toast-wrapper").slice(0,26)),i.className=ep.WRAPPER,i.id=this.wrapperId,i.style.zIndex=String(typeof t.zIndex=="number"?t.zIndex:Wt.defaultOpts.zIndex),["top","left","bottom","right"].map(o=>{if(o in Wt.defaultOpts||o in t){const s=t[o]?t[o]:Wt.defaultOpts[o];i.style[o]=typeof s=="number"?`${s}px`:s}}),Wt.defaultOpts.getPopupContainer?Wt.defaultOpts.getPopupContainer().appendChild(i):document.body.appendChild(i),ui.render(x.createElement(Wt,{ref:o=>Wt.ref=o}),i,()=>{Wt.ref.add(Object.assign(Object.assign({},t),{id:a})),Wt.ref.stack=!!t.stack})}return a}static close(t){Wt.ref&&Wt.ref.remove(t)}static destroyAll(){if(Wt.ref){Wt.ref.destroyAll();const t=document.querySelector(`#${this.wrapperId}`);ui.unmountComponentAtNode(t),t&&t.parentNode.removeChild(t),Wt.ref=null,this.wrapperId=null}}static getWrapperId(){return this.wrapperId}static info(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"info"}))}static warning(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"warning"}))}static error(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"error"}))}static success(t){return typeof t=="string"&&(t={content:t}),this.create(Object.assign(Object.assign(Object.assign({},Wt.defaultOpts),t),{type:"success"}))}static config(t){["top","left","bottom","right"].forEach(r=>{r in t&&(Wt.defaultOpts[r]=t[r])}),typeof t.zIndex=="number"&&(Wt.defaultOpts.zIndex=t.zIndex),typeof t.duration=="number"&&(Wt.defaultOpts.duration=t.duration),typeof t.getPopupContainer=="function"&&(Wt.defaultOpts.getPopupContainer=t.getPopupContainer)}has(t){return this.foundation.hasToast(t)}add(t){return this.foundation.addToast(t)}update(t,r){return this.foundation.updateToast(t,r)}remove(t){return this.foundation.removeToast(t)}destroyAll(){return this.foundation.destroyAll()}render(){let{list:t}=this.state;const{removedItems:r,updatedItems:a}=this.state;t=Array.from(new Set([...t,...r]));const i=a.map(s=>{let{id:l}=s;return l}),o=s=>{var l;!((l=s==null?void 0:s.foundation)===null||l===void 0)&&l._id&&i.includes(s.foundation._id)&&s.foundation.restartCloseTimer()};return x.createElement(x.Fragment,null,x.createElement("div",{className:$({[`${ep.PREFIX}-innerWrapper`]:!0,[`${ep.PREFIX}-innerWrapper-hover`]:this.state.mouseInSide}),ref:this.innerWrapperRef,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave},t.map((s,l)=>{const u=r.find(c=>c.id===s.id)!==void 0;return x.createElement(ig,{key:s.id,motion:s.motion,animationState:u?"leave":"enter",startClassName:u?`${ep.PREFIX}-animation-hide`:`${ep.PREFIX}-animation-show`},c=>{let{animationClassName:d,animationEventsNeedBind:f,isAnimating:h}=c;return u&&!h?null:x.createElement(bQ,Object.assign({},s,{stack:this.stack,stackExpanded:this.state.mouseInSide,positionInList:{length:t.length,index:l},className:$({[s.className]:!!s.className,[d]:!0})},f,{style:Object.assign({},s.style),close:p=>this.remove(p),ref:o}))})})))}},n.defaultOpts={motion:!0,zIndex:1010,content:""},n.propTypes={content:v.node,duration:v.number,onClose:v.func,icon:v.node,direction:v.oneOf(p2.directions),stack:v.bool},n.defaultProps={},n};class TFe{static create(e){const t=xFe();return t.useToast=wFe,e&&t.config(e),t}}const Es=TFe.create(),_Q={PREFIX:`${q}-tree`,PREFIX_OPTION:`${q}-tree-option`};function EFe(n){return jK(n,e=>{if(m7(e)&&!e._innerDataTag||x.isValidElement(e))return e})}const OFe=_Q.PREFIX;class v9 extends D.PureComponent{constructor(e){super(e),this._onResize=t=>{const r=t&&t[1]&&t[1].target;if(r){const a=H(r,"offsetHeight")||0,i=window.getComputedStyle(r)||{},o=parseInt(H(i,"paddingTop"),10)||0,s=parseInt(H(i,"paddingBottom"),10)||0,l=a-o-s;this.state.height!==l&&this.setState({height:a-o-s})}},this.state={height:this.props.defaultHeight||0}}componentDidMount(){const{height:e}=this.state}render(){const{children:e,defaultWidth:t,defaultHeight:r}=this.props,{height:a}=this.state;let i=!1;return(a===0||typeof a!="number")&&(i=!0),x.createElement(vf,{observeParent:!0,onResize:this._onResize},x.createElement("div",{style:{height:r,overflow:"visible"},className:`${OFe}-auto-wrapper`},!i&&e({height:a,width:t})))}}v9.propTypes={defaultHeight:v.oneOfType([v.number,v.string]),defaultWidth:v.oneOfType([v.number,v.string])};v9.defaultProps={defaultHeight:"100%",defaultWidth:"100%"};const IFe=x.createContext(null),m9=IFe;var PFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{onNodeSelect:r}=this.context;r(t,this.props)},this.onExpand=t=>{const{onNodeExpand:r}=this.context;t&&t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.onCheck=t=>{if(this.isDisabled())return;const{onNodeCheck:r}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),r(t,this.props)},this.handleCheckEnterPress=t=>{ha(t)&&this.onCheck(t)},this.onContextMenu=t=>{const{onNodeRightClick:r}=this.context;r(t,this.props)},this.onClick=t=>{const{expandAction:r}=this.context;if(r==="doubleClick"){this.debounceSelect(t);return}this.onSelect(t),r==="click"&&this.onExpand(t)},this.handleliEnterPress=t=>{ha(t)&&this.onClick(t)},this.onDoubleClick=t=>{const{expandAction:r,onNodeDoubleClick:a}=this.context;t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),ke(a)&&a(t,this.props),r==="doubleClick"&&this.onExpand(t)},this.onDragStart=t=>{const{onNodeDragStart:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}));try{t.dataTransfer.setData("text/plain","")}catch{}},this.onDragEnter=t=>{const{onNodeDragEnter:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragOver=t=>{const{onNodeDragOver:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragLeave=t=>{const{onNodeDragLeave:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDragEnd=t=>{const{onNodeDragEnd:r}=this.context;t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.onDrop=t=>{const{onNodeDrop:r}=this.context;t.preventDefault(),t.stopPropagation(),r(t,Object.assign(Object.assign({},this.props),{nodeInstance:this.refNode}))},this.getNodeChildren=()=>{const{children:t}=this.props;return t||[]},this.isLeaf=()=>{const{isLeaf:t,loaded:r}=this.props,{loadData:a}=this.context,i=this.getNodeChildren().length!==0;return t===!1?!1:t||!a&&!i||a&&r&&!i},this.isDisabled=()=>{const{disabled:t}=this.props,{treeDisabled:r}=this.context;return t===!1?!1:!!(r||t)},this.renderRealLabel=()=>{const{renderLabel:t}=this.context,{label:r,keyword:a,data:i,filtered:o,treeNodeFilterProp:s}=this.props;return ke(t)?t(r,i):Xe(r)&&o&&a?E7({sourceString:r,searchWords:[a],option:{highlightTag:"span",highlightClassName:`${rn}-highlight`}}):r},this.setRef=t=>{this.refNode=t},this.state={},this.debounceSelect=n7(this.onSelect,500,{leading:!0,trailing:!1})}renderArrow(){const e=!this.isLeaf(),{loading:t,expanded:r}=this.props;return t?x.createElement(Jl,{wrapperClassName:`${rn}-spin-icon`}):e?x.createElement(SZ,{role:"button","aria-label":`${r?"Expand":"Collapse"} the tree item`,className:`${rn}-expand-icon`,size:"small",onClick:this.onExpand}):x.createElement("span",{className:`${rn}-empty-icon`})}renderCheckbox(){const{checked:e,halfChecked:t,eventKey:r}=this.props,a=this.isDisabled();return x.createElement("div",{role:"none",onClick:this.onCheck,onKeyPress:this.handleCheckEnterPress},x.createElement(Ff,{"aria-label":"Toggle the checked state of checkbox",value:r,indeterminate:t,checked:e,disabled:!!a}))}renderIcon(){const{directory:e,treeIcon:t}=this.context,{expanded:r,icon:a}=this.props,i=!this.isLeaf(),o=a||t;let s;return(o||e)&&(o?s=a||t:i?s=r?x.createElement(n5e,{className:`${rn}-item-icon`}):x.createElement(JTe,{className:`${rn}-item-icon`}):s=x.createElement(IO,{className:`${rn}-item-icon`})),s}renderEmptyNode(){const{emptyContent:e}=this.props,t=$(rn,{[`${rn}-empty`]:!0});return x.createElement("ul",{className:t},x.createElement("li",{className:`${rn}-label ${rn}-label-empty`,"x-semi-prop":"emptyContent"},e))}render(){const e=this.props,{eventKey:t,expanded:r,selected:a,checked:i,halfChecked:o,loading:s,active:l,level:u,empty:c,filtered:d,treeNodeFilterProp:f,display:h,style:p}=e,g=PFe(e,["eventKey","expanded","selected","checked","halfChecked","loading","active","level","empty","filtered","treeNodeFilterProp","display","style"]);if(c)return this.renderEmptyNode();const{multiple:m,draggable:y,renderFullLabel:b,dragOverNodeKey:_,dropPosition:S,labelEllipsis:C}=this.context,w=this.isDisabled(),T=_===t&&S===0,E=_===t&&S===-1,O=_===t&&S===1,I=$(rn,{[`${rn}-level-${u+1}`]:!0,[`${rn}-collapsed`]:!r,[`${rn}-disabled`]:!!w,[`${rn}-selected`]:a,[`${rn}-active`]:!m&&l,[`${rn}-ellipsis`]:C,[`${rn}-drag-over`]:!w&&T,[`${rn}-draggable`]:!w&&y&&!b,[`${rn}-fullLabel-draggable`]:!w&&y&&b,[`${rn}-fullLabel-drag-over-gap-top`]:!w&&E&&b,[`${rn}-fullLabel-drag-over-gap-bottom`]:!w&&O&&b}),P={onClick:this.onClick,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,className:I,onExpand:this.onExpand,data:g.data,level:u,onCheck:this.onCheck,style:p,expandIcon:this.renderArrow(),checkStatus:{checked:i,halfChecked:o},expandStatus:{expanded:r,loading:s},filtered:d,searchWord:g.keyword},A={onDoubleClick:this.onDoubleClick,onDragStart:y?this.onDragStart:void 0,onDragEnter:y?this.onDragEnter:void 0,onDragOver:y?this.onDragOver:void 0,onDragLeave:y?this.onDragLeave:void 0,onDrop:y?this.onDrop:void 0,onDragEnd:y?this.onDragEnd:void 0,draggable:!w&&y||void 0};if(b){const N=b(Object.assign({},P));return y?x.cloneElement(N,Object.assign({ref:this.setRef},A)):vt(p)?N:x.cloneElement(N,{style:Object.assign(Object.assign({},H(N,["props","style"])),p)})}const R=$(`${rn}-label`,{[`${rn}-drag-over-gap-top`]:!w&&E,[`${rn}-drag-over-gap-bottom`]:!w&&O}),L=H(g,["data","children","length"]),k=Xe(g.pos)?Number(g.pos.split("-")[u+1])+1:1;return x.createElement("li",Object.assign({className:I,role:"treeitem","aria-disabled":w,"aria-checked":i,"aria-selected":a,"aria-setsize":L,"aria-posinset":k,"aria-expanded":r,"aria-level":u+1,"data-key":t,onClick:this.onClick,onKeyPress:this.handleliEnterPress,onContextMenu:this.onContextMenu,onDoubleClick:this.onDoubleClick,ref:this.setRef,style:p},A),this.renderArrow(),x.createElement("span",{className:R},m?this.renderCheckbox():null,this.renderIcon(),x.createElement("span",{className:`${rn}-label-text`},this.renderRealLabel())))}};Hp.contextType=m9;Hp.propTypes={expanded:v.bool,selected:v.bool,checked:v.bool,halfChecked:v.bool,active:v.bool,disabled:v.bool,loaded:v.bool,loading:v.bool,isLeaf:v.bool,pos:v.string,children:v.oneOfType([v.array,v.object]),icon:v.node,directory:v.bool,keyword:v.string,treeNodeFilterProp:v.string,selectedKey:v.string,motionKey:v.oneOfType([v.string,v.arrayOf(v.string)])};Hp.defaultProps={selectedKey:"",motionKey:""};var DFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{setTimeout(()=>{i(!n.open)},0)},[]),x.createElement(VX,Object.assign({},r,{isOpen:a}),t)}const kF=n=>n.key;class SQ extends D.PureComponent{constructor(e){super(e),this.onMotionEnd=()=>{typeof this.props.onMotionEnd=="function"&&this.props.onMotionEnd(),this.setState({transitionNodes:[]})},this.state={transitionNodes:[]}}static getDerivedStateFromProps(e,t){const{flattenNodes:r=[],motionKeys:a,motionType:i,flattenList:o=[]}=e,s=!Ke(t.cachedMotionKeys,a)||!Ke(t.cachedData.map(p=>p.key),r.map(p=>p.key)),l=[...a];if(!s||!l.length)return null;const u=[],c=[];let d=0,f={};return(i==="hide"&&o?o:r).forEach((p,g)=>{const m=kF(p);a.has(m)?(c.push(p),m===l[0]&&(d=g)):u.push(p)}),u.splice(d,0,c),f={transitionNodes:u,cachedData:r,cachedMotionKeys:a,cachedMotionType:i},f}render(){const{flattenNodes:e,motionType:t,searchTargetIsDeep:r,renderTreeNode:a}=this.props,{transitionNodes:i}=this.state;return(i.length&&!r?i:e).map(l=>{const u=Array.isArray(l);if(u&&!l.length)return null;if(u&&l.length){const c=kF(l[0]);return x.createElement(AFe,{open:t==="hide",duration:200,motion:!!t,key:`motion-${c}`,onMotionEnd:this.onMotionEnd},l.map(d=>a(d)))}return a(l)})}}SQ.contextType=m9;const CQ={PREFIX:`${q}-tree-select`,PREFIX_TREE:`${q}-tree`,PREFIX_OPTION:`${q}-tree-select-option`},Aa={SIZE_SET:["small","large","default"],SEARCH_POSITION_DROPDOWN:"dropdown",SEARCH_POSITION_TRIGGER:"trigger",STATUS:kg};class MFe extends ze{constructor(e){super(Object.assign({},e)),this._registerClickOutsideHandler=t=>{this._adapter.registerClickOutsideHandler(r=>{this.handlerTriggerBlur(r),this.close(r)})}}init(){const{searchAutoFocus:e,searchPosition:t,filterTreeNode:r}=this.getProps(),a=t===Aa.SEARCH_POSITION_TRIGGER&&r,i=e&&a;this._setDropdownWidth(),(this.getProp("defaultOpen")||i)&&!this._isDisabled()&&this.open(),i&&this.handleTriggerFocus(null)}destroy(){this._adapter.unregisterClickOutsideHandler()}_setDropdownWidth(){const{style:e,dropdownMatchSelectWidth:t}=this.getProps();let r;t&&(e&&Rn(e.width)||e&&Xe(e.width)&&!e.width.includes("%")?r=e.width:r=this._adapter.getTriggerWidth(),this._adapter.setOptionWrapperWidth(r))}_isMultiple(){return this.getProp("multiple")}_isAnimated(){return this.getProp("motionExpand")}_isDisabled(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.getProp("disabled")||e.disabled}_isExpandControlled(){return this.getProp("expandedKeys")}_isSelectToClose(){return!this.getProp("expandAction")}_isLoadControlled(){return this.getProp("loadedKeys")}_showFilteredOnly(){const{inputValue:e}=this.getStates(),{showFilteredOnly:t}=this.getProps();return!!e&&t}findDataForValue(e){const{value:t,defaultValue:r,keyMaps:a}=this.getProps(),i=H(a,"value","value"),o=H(a,"key","key");let s=[];return t?s=Array.isArray(t)?t:[t]:r&&(s=Array.isArray(r)?r:[r]),s.find(l=>l[i]===e||l[o]===e)}constructDataForValue(e){const{treeNodeLabelProp:t,keyMaps:r}=this.getProps(),a=H(r,"key","key"),i=H(r,"label",t);return{[a]:e,[i]:e}}getDataForKeyNotInKeyEntities(e){const{onChangeWithObject:t}=this.getProps();return t?this.findDataForValue(e):this.constructDataForValue(e)}getCopyFromState(e){const t={};return sIe(e).forEach(r=>{t[r]=Ii(this.getState(r))}),t}getTreeNodeProps(e){const{expandedKeys:t=new Set([]),selectedKeys:r=[],checkedKeys:a=new Set([]),halfCheckedKeys:i=new Set([]),realCheckedKeys:o=new Set([]),keyEntities:s={},filteredKeys:l=new Set([]),inputValue:u="",loadedKeys:c,loadingKeys:d,filteredExpandedKeys:f=new Set([]),disabledKeys:h=new Set([])}=this.getStates(),{treeNodeFilterProp:p,checkRelation:g}=this.getProps(),m=s[e];if(!m)return null;let b=!1,_=!1;g==="related"?(b=a.has(e),_=i.has(e)):g==="unRelated"&&(b=o.has(e),_=!1);const C={eventKey:e,expanded:!!u&&!this._isExpandControlled()?f.has(e):t.has(e),selected:r.includes(e),checked:b,halfChecked:_,pos:String(m?m.pos:""),level:m.level,filtered:l.has(e),keyword:u,treeNodeFilterProp:p,loading:d.has(e)&&!c.has(e),loaded:c.has(e)};return this.getProp("disableStrictly")&&h.has(e)&&(C.disabled=!0),C}handleNodeLoad(e,t,r,a){const{loadData:i}=this.getProps(),{key:o}=r;return!i||e.has(o)||t.has(o)?{}:(i(r).then(()=>{const{loadedKeys:s,loadingKeys:l}=this.getCopyFromState(["loadedKeys","loadingKeys"]),u=s.add(o),c=new Set([...l]);c.delete(o),this._adapter.notifyLoad(u,r),this._isLoadControlled()||this._adapter.updateState({loadedKeys:u}),this._adapter.setState({loadingKeys:c}),a()}),{loadingKeys:t.add(o)})}focusInput(e){this._adapter.updateInputFocus(e)}_notifyMultipleChange(e,t){const{keyEntities:r}=this.getStates(),{leafOnly:a,checkRelation:i,keyMaps:o}=this.getProps();let s=[];i==="related"?s=Pi(e,r,a,!0):i==="unRelated"&&(s=e);const l=s.map(u=>r[u]&&r[u].key===u?r[u].data:this.getDataForKeyNotInKeyEntities(u));if(this.getProp("onChangeWithObject"))this._adapter.notifyChangeWithObject(l,t);else{const u=IS(l,o);this._adapter.notifyChange(u,l,t)}}_notifyChange(e,t){const{keyEntities:r}=this.getStates(),{keyMaps:a}=this.getProps();if(this._isMultiple()&&Array.isArray(e))this._notifyMultipleChange(e,t);else{const i=Vt(e)?e:r[e].data,o=Vt(e)?e:IS(i,a);this.getProp("onChangeWithObject")?this._adapter.notifyChangeWithObject(i,t):this._adapter.notifyChange(o,i,t)}}_notifyFocus(e){this._adapter.notifyFocus(e)}handleTriggerFocus(e){this._adapter.updateIsFocus(!0),this._notifyFocus(e),this._registerClickOutsideHandler(e)}_notifyBlur(e){this._adapter.notifyBlur(e)}handlerTriggerBlur(e){this._adapter.updateIsFocus(!1),this._notifyBlur(e),this._adapter.unregisterClickOutsideHandler()}toggleHoverState(e){this._adapter.toggleHovering(e)}open(){this._adapter.openMenu(),this._setDropdownWidth()}close(e){this._adapter.closeMenu(),this.getProp("motionExpand")&&this._adapter.updateState({motionKeys:new Set([])})}handleClick(e){const t=this._isDisabled(),{isOpen:r,inputValue:a,isFocus:i}=this.getStates(),{searchPosition:o,clickTriggerToHide:s}=this.getProps();if(!t)if(i||this.handleTriggerFocus(e),r){if(o==="trigger"&&a)return;s&&this.close(e)}else this.open()}handleSelectionEnterPress(e){ha(e)&&this.handleClick(e)}handleClear(e){const{searchPosition:t,filterTreeNode:r}=this.getProps(),{inputValue:a,selectedKeys:i}=this.getStates(),o=this._isMultiple(),s=this._isControlledComponent(),l=o?[]:void 0;this._notifyChange(l,e),s||(this._adapter.rePositionDropdown(),this._adapter.updateState({selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([])})),r&&t===Aa.SEARCH_POSITION_TRIGGER&&a!==""&&(vt(i)?this.handleInputChange(""):this.clearInput())}handleClearEnterPress(e){ha(e)&&this.handleClear(e)}removeTag(e){const{disableStrictly:t,checkRelation:r,keyMaps:a}=this.getProps(),{keyEntities:i,disabledKeys:o,realCheckedKeys:s}=this.getStates(),l=i[e]&&i[e].key===e?i[e].data:this.getDataForKeyNotInKeyEntities(e),u=H(a,"disabled","disabled");if(!(l[u]||t&&o.has(e))){if(r==="unRelated"){const c=new Set(s);c.delete(e),this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:c}),this._adapter.rePositionDropdown())}else if(r==="related"){const{checkedKeys:c,halfCheckedKeys:d}=this.calcCheckedKeys(e,!1);this._notifyChange([...c],null),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:c,halfCheckedKeys:d}),this._adapter.rePositionDropdown())}this._adapter.notifySelect(e,!1,l),this._adapter.rePositionDropdown()}}clearInput(){const{flattenNodes:e,expandedKeys:t,selectedKeys:r,keyEntities:a,treeData:i}=this.getStates(),{keyMaps:o}=this.getProps(),s=new Set(t),l=this._isExpandControlled(),u=$l(r,a);u.forEach(d=>s.add(d));const c=Jh(i,s,o);this._adapter.updateState({expandedKeys:l?t:s,flattenNodes:l?e:c,inputValue:"",motionKeys:new Set([]),filteredKeys:new Set([]),filteredExpandedKeys:new Set(u),filteredShownKeys:new Set([])})}handleInputChange(e){this._adapter.updateInputValue(e);const{flattenNodes:t,expandedKeys:r,selectedKeys:a,keyEntities:i,treeData:o}=this.getStates(),{showFilteredOnly:s,filterTreeNode:l,treeNodeFilterProp:u,keyMaps:c}=this.getProps(),d=u!=="label"?u:H(c,"label","label"),f=new Set(r);let h=[],p=[],g=[],m=new Set([]);if(!e)p=$l(a,i),p.forEach(b=>f.add(b)),g=Jh(o,f,c);else{h=Object.values(i).filter(_=>{const{data:S}=_;return XZ(e,S,l,d)}).map(_=>_.key),p=$l(h,i,!1);const b=Fl(h,i,!0);m=new Set([...b,...p]),g=Jh(o,new Set(p),c,s&&m)}const y=new Set(p);this._adapter.notifySearch(e,Array.from(y)),this._adapter.updateState({expandedKeys:this._isExpandControlled()?r:f,flattenNodes:this._isExpandControlled()?t:g,motionKeys:new Set([]),filteredKeys:new Set(h),filteredExpandedKeys:y,filteredShownKeys:m})}handleNodeSelect(e,t){this._isDisabled(t)||(this._isMultiple()?this.handleMultipleSelect(e,t):this.handleSingleSelect(e,t))}handleSingleSelect(e,t){let{selectedKeys:r}=this.getCopyFromState("selectedKeys");const{clickToHide:a}=this.getProps(),{selected:i,eventKey:o,data:s}=t;this._adapter.notifySelect(o,!0,s),!r.includes(o)&&!i&&(r=[o],this._notifyChange(o,e),this._isControlledComponent()||this._adapter.updateState({selectedKeys:r})),a&&(this._isSelectToClose()||!s.children)&&(this.close(e),this.handlerTriggerBlur(e))}calcCheckedKeys(e,t){const{keyEntities:r}=this.getStates(),{checkedKeys:a,halfCheckedKeys:i}=this.getCopyFromState(["checkedKeys","halfCheckedKeys"]);return t?qZ(e,r,a,i):QZ(e,r,a,i)}handleMultipleSelect(e,t){const{searchPosition:r,disableStrictly:a,checkRelation:i}=this.getProps(),{inputValue:o,realCheckedKeys:s}=this.getStates(),{checked:l,eventKey:u,data:c}=t;if(i==="related"){const d=a?this.calcCheckedStatus(!l,u):!l,{checkedKeys:f,halfCheckedKeys:h}=a?this.calcNonDisabledCheckedKeys(u,d):this.calcCheckedKeys(u,d);this._adapter.notifySelect(u,d,c),this._notifyChange([...f],e),this._isControlledComponent()||(this._adapter.updateState({checkedKeys:f,halfCheckedKeys:h}),this._adapter.rePositionDropdown())}else if(i==="unRelated"){const d=new Set(s);let f;s.has(u)?(d.delete(u),f=!1):(d.add(u),f=!0),this._adapter.notifySelect(u,f,c),this._notifyChange([...d],e),this._isControlledComponent()||(this._adapter.updateState({realCheckedKeys:d}),this._adapter.rePositionDropdown())}r===Aa.SEARCH_POSITION_TRIGGER&&o!==""&&this._adapter.updateState({inputValue:""})}calcNonDisabledCheckedKeys(e,t){const{keyEntities:r,disabledKeys:a}=this.getStates(),{checkedKeys:i}=this.getCopyFromState(["checkedKeys"]),o=Pi(Fl([e],r,!1),r,!0);if(!o.some(c=>a.has(c)))return this.calcCheckedKeys(e,t);const l=o.filter(c=>!a.has(c)),u=t?[...l,...i]:dg(Pi([...i],r,!0,!0),l);return Jy(u,r)}calcCheckedStatus(e,t){if(!e)return e;const{checkedKeys:r,keyEntities:a,disabledKeys:i}=this.getStates(),o=Pi(Fl([t],a,!1),a,!0);return o.some(c=>i.has(c))?!o.filter(c=>!i.has(c)).every(c=>r.has(c)):e}handleNodeExpandInSearch(e,t){const{treeData:r,filteredShownKeys:a,keyEntities:i,keyMaps:o}=this.getStates(),s=this._showFilteredOnly(),{filteredExpandedKeys:l}=this.getCopyFromState("filteredExpandedKeys");let u="show";const{eventKey:c,expanded:d,data:f}=t;if(d?l.has(c)&&(l.delete(c),u="hide"):l.add(c),this._adapter.cacheFlattenNodes(u==="hide"&&this._isAnimated()),!this._isExpandControlled()){const h=Jh(r,l,o,s&&a),p=this._isAnimated()?Uk(c,l,i):[],g={filteredExpandedKeys:l,flattenNodes:h,motionKeys:new Set(p),motionType:u};this._adapter.updateState(g)}this._adapter.notifyExpand(l,{expanded:!d,node:f})}handleNodeExpand(e,t){const{loadData:r,keyMaps:a}=this.getProps(),{inputValue:i,keyEntities:o}=this.getStates(),s=!!i;if(!r&&(!t.children||!t.children.length))return;const l=this._isExpandControlled();if(s&&!l){this.handleNodeExpandInSearch(e,t);return}const{treeData:u}=this.getStates(),{expandedKeys:c}=this.getCopyFromState("expandedKeys");let d="show";const{eventKey:f,expanded:h,data:p}=t;if(h?c.has(f)&&(c.delete(f),d="hide"):c.add(f),this._adapter.cacheFlattenNodes(d==="hide"&&this._isAnimated()),!l){const g=Jh(u,c,a),m=this._isAnimated()?Uk(f,c,o):[],y={expandedKeys:c,flattenNodes:g,motionKeys:new Set(m),motionType:d};this._adapter.updateState(y)}this._adapter.notifyExpand(c,{expanded:!h,node:p})}getRenderTextInSingle(){const{renderSelectedItem:e,treeNodeLabelProp:t,keyMaps:r}=this.getProps(),{selectedKeys:a,keyEntities:i}=this.getStates(),o=H(r,"label",t),s=ke(e)?e:c=>H(c,o,null);let l;if(a.length){const c=a[0];l=i[c]&&i[c].key===c?i[c].data:this.getDataForKeyNotInKeyEntities(c)}return l?s(l):null}handleInputTriggerBlur(){this._adapter.updateState({inputTriggerFocus:!1})}handleInputTriggerFocus(){this.clearInput(),this._adapter.updateState({inputTriggerFocus:!0})}setLoadKeys(e,t){this._adapter.updateLoadKeys(e,t)}}var RFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{suffix:t}=this.props,r=$({[`${gt}-suffix`]:!0,[`${gt}-suffix-text`]:t&&Xe(t),[`${gt}-suffix-icon`]:Hr(t)});return x.createElement("div",{className:r,"x-semi-prop":"suffix"},t)},this.renderPrefix=()=>{const{prefix:t,insetLabel:r,insetLabelId:a}=this.props,i=t||r,o=$({[`${gt}-prefix`]:!0,[`${gt}-inset-label`]:r,[`${gt}-prefix-text`]:i&&Xe(i),[`${gt}-prefix-icon`]:Hr(i)});return x.createElement("div",{className:o,id:a,"x-semi-prop":"prefix,insetLabel"},i)},this.renderContent=()=>{const{dropdownMinWidth:t}=this.state,{dropdownStyle:r,dropdownClassName:a}=this.props,i=Object.assign({minWidth:t},r),o=$(a,`${gt}-popover`);return x.createElement("div",{className:o,style:i},this.renderTree())},this.removeTag=t=>{this.foundation.removeTag(t)},this.handleClick=t=>{this.foundation.handleClick(t)},this.getDataForKeyNotInKeyEntities=t=>this.foundation.getDataForKeyNotInKeyEntities(t),this.handleSelectionEnterPress=t=>{this.foundation.handleSelectionEnterPress(t)},this.hasValue=()=>{const{multiple:t,checkRelation:r}=this.props,{realCheckedKeys:a,checkedKeys:i,selectedKeys:o}=this.state;let s=!1;return t?r==="related"?s=!!i.size:r==="unRelated"&&(s=!!a.size):s=!!o.length,s},this.showClearBtn=()=>{const{showClear:t,disabled:r,searchPosition:a}=this.props,{inputValue:i,isOpen:o,isHovering:s}=this.state,l=a===Aa.SEARCH_POSITION_TRIGGER&&i;return t&&(this.hasValue()||l)&&!r&&(o||s)},this.renderTagList=()=>{const{checkedKeys:t,keyEntities:r,disabledKeys:a,realCheckedKeys:i}=this.state,{treeNodeLabelProp:o,leafOnly:s,disabled:l,disableStrictly:u,size:c,checkRelation:d,renderSelectedItem:f,keyMaps:h}=this.props,p=H(h,"label",o),g=ke(f)?f:b=>({isRenderInTag:!0,content:H(b,p,null)});let m=[];d==="related"?m=Pi([...t],r,s,!0):d==="unRelated"&&Object.keys(r).length>0&&(m=[...i]);const y=[];return m.forEach((b,_)=>{const S=r[b]&&r[b].key===b?r[b].data:this.getDataForKeyNotInKeyEntities(b),C=(I,P)=>{P&&typeof P.preventDefault=="function"&&P.preventDefault(),this.removeTag(b)},{content:w,isRenderInTag:T}=S?g(S,{index:_,onClose:C}):{};if(ql(w)||Vt(w))return;const O={closable:!(l||S.disabled||u&&a.has(S.key)),color:"white",visible:!0,onClose:C,key:`tag-${b}-${_}`,size:c==="small"?"small":"large"};T?y.push(x.createElement(ca,Object.assign({},O),w)):y.push(w)}),y},this.renderSingleTriggerSearchItem=()=>{const{placeholder:t,disabled:r}=this.props,{inputTriggerFocus:a}=this.state,i=this.foundation.getRenderTextInSingle(),o=$(`${gt}-selection-TriggerSearchItem`,{[`${gt}-selection-TriggerSearchItem-placeholder`]:(a||!i)&&!r,[`${gt}-selection-TriggerSearchItem-disabled`]:r});return x.createElement("span",{className:o},i||t)},this.renderSingleTriggerSearch=()=>{const{inputValue:t}=this.state;return x.createElement(x.Fragment,null,!t&&this.renderSingleTriggerSearchItem(),this.renderInput())},this.renderSelectContent=()=>{const{multiple:t,placeholder:r,maxTagCount:a,searchPosition:i,filterTreeNode:o,showRestTagsPopover:s,restTagsPopoverProps:l}=this.props;if(o&&i===Aa.SEARCH_POSITION_TRIGGER)return t?this.renderTagInput():this.renderSingleTriggerSearch();if(!t||!this.hasValue()){const d=this.foundation.getRenderTextInSingle(),f=$(`${gt}-selection-content`,{[`${gt}-selection-placeholder`]:!d});return x.createElement("span",{className:f},d||r)}const c=this.renderTagList();return x.createElement(X1,{maxTagCount:a,tagList:c,size:"large",mode:"custom",showPopover:s,popoverProps:l})},this.handleClear=t=>{t&&t.stopPropagation(),this.foundation.handleClear(t)},this.handleClearEnterPress=t=>{t&&t.stopPropagation(),this.foundation.handleClearEnterPress(t)},this.handleMouseOver=t=>{this.foundation.toggleHoverState(!0)},this.handleMouseLeave=t=>{this.foundation.toggleHoverState(!1)},this.search=t=>{const{isOpen:r}=this.state;r||this.foundation.open(),this.foundation.handleInputChange(t)},this.close=()=>{this.foundation.close(null)},this.renderArrow=()=>{const t=this.showClearBtn(),{arrowIcon:r}=this.props;return t?null:r?x.createElement("div",{className:$(`${gt}-arrow`),"x-semi-prop":"arrowIcon"},r):null},this.renderClearBtn=()=>{const t=this.showClearBtn(),{clearIcon:r}=this.props,a=$(`${gt}-clearbtn`);return t?x.createElement("div",{role:"button",tabIndex:0,"aria-label":"Clear TreeSelect value",className:a,onClick:this.handleClear,onKeyPress:this.handleClearEnterPress},r||x.createElement(Gc,null)):null},this.renderSelection=()=>{const t=this.props,{disabled:r,multiple:a,filterTreeNode:i,validateStatus:o,prefix:s,suffix:l,style:u,size:c,insetLabel:d,className:f,placeholder:h,showClear:p,leafOnly:g,searchPosition:m,triggerRender:y,borderless:b}=t,_=RFe(t,["disabled","multiple","filterTreeNode","validateStatus","prefix","suffix","style","size","insetLabel","className","placeholder","showClear","leafOnly","searchPosition","triggerRender","borderless"]),{inputValue:S,selectedKeys:C,checkedKeys:w,keyEntities:T,isFocus:E}=this.state,O=!!i,I=typeof y=="function",P=p?{onMouseEnter:j=>this.handleMouseOver(j),onMouseLeave:j=>this.handleMouseLeave(j)}:{},A=m===Aa.SEARCH_POSITION_TRIGGER&&O,R=A&&vt(w),L=A&&!vt(w),k=I?$(f):$(gt,{[`${gt}-borderless`]:b,[`${gt}-focus`]:E,[`${gt}-disabled`]:r,[`${gt}-single`]:!a,[`${gt}-multiple`]:a,[`${gt}-multiple-tagInput-empty`]:a&&R,[`${gt}-multiple-tagInput-notEmpty`]:a&&L,[`${gt}-filterable`]:O,[`${gt}-error`]:o==="error",[`${gt}-warning`]:o==="warning",[`${gt}-small`]:c==="small",[`${gt}-large`]:c==="large",[`${gt}-with-prefix`]:s||d,[`${gt}-with-suffix`]:l,[`${gt}-with-suffix`]:l},f),N=a?Pi([...w],T,g,!0):C,z=I?x.createElement(Wg,{inputValue:S,value:N.map(j=>H(T,[j,"data"])),disabled:r,placeholder:h,onClear:this.handleClear,componentName:"TreeSelect",triggerRender:y,componentProps:Object.assign({},this.props),onSearch:this.search,onRemove:this.removeTag}):[x.createElement(D.Fragment,{key:"prefix"},s||d?this.renderPrefix():null),x.createElement(D.Fragment,{key:"selection"},x.createElement("div",{className:`${gt}-selection`},this.renderSelectContent())),x.createElement(D.Fragment,{key:"suffix"},l?this.renderSuffix():null),x.createElement(D.Fragment,{key:"clearBtn"},p||A&&S?this.renderClearBtn():null),x.createElement(D.Fragment,{key:"arrow"},this.renderArrow())],F=r?null:0;return x.createElement("div",Object.assign({role:"combobox","aria-disabled":r,"aria-haspopup":"tree",tabIndex:F,className:k,style:u,ref:this.triggerRef,onClick:this.handleClick,onKeyPress:this.handleSelectionEnterPress,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},P,this.getDataAttr(_)),z)},this.renderTagItem=(t,r)=>{const{keyEntities:a,disabledKeys:i}=this.state,{size:o,leafOnly:s,disabled:l,disableStrictly:u,renderSelectedItem:c,treeNodeLabelProp:d,keyMaps:f}=this.props,h=H(f,"label",d),g=Pi([t],a,s,!0).map(O=>a[t]&&a[t].key===t?a[t].data:this.getDataForKeyNotInKeyEntities(t)),m=IS(g,f),y=$(`${gt}-selection-tag`,{[`${gt}-selection-tag-disabled`]:l}),b=!vt(g)&&!vt(g[0]),_=u&&b&&i.has(g[0].key),S=b&&!g[0].disabled&&!l&&!_,C=(O,I)=>{I.preventDefault(),this.removeTag(t)},w={size:o==="small"?"small":"large",key:`tag-${m}-${r}`,color:"white",className:y,closable:S,onClose:C},T=g[0],E=ke(c)?c:O=>({isRenderInTag:!0,content:H(O,h,null)});if(ke(E)){const{content:O,isRenderInTag:I}=T?E(T,{index:r,onClose:C}):{};return I?x.createElement(ca,Object.assign({},w),O):O}return x.createElement(ca,Object.assign({},w),m)},this.renderTagInput=()=>{const{leafOnly:t,disabled:r,size:a,searchAutoFocus:i,placeholder:o,maxTagCount:s,checkRelation:l,showRestTagsPopover:u,restTagsPopoverProps:c,searchPosition:d,filterTreeNode:f,preventScroll:h}=this.props,{keyEntities:p,checkedKeys:g,inputValue:m,realCheckedKeys:y}=this.state;let b=[];l==="related"?b=Pi(g,p,t,!0):l==="unRelated"&&(b=[...y]);const _=f&&d===Aa.SEARCH_POSITION_TRIGGER?i:void 0;return x.createElement(dA,{maxTagCount:s,disabled:r,onInputChange:S=>this.search(S),ref:this.tagInputRef,placeholder:o,value:b,inputValue:m,size:a,showRestTagsPopover:u,restTagsPopoverProps:c,autoFocus:_,renderTagItem:(S,C)=>this.renderTagItem(S,C),onRemove:S=>this.removeTag(S),expandRestTagsOnClick:!1,preventScroll:h})},this.renderInput=()=>{const{searchPlaceholder:t,searchRender:r,showSearchClear:a,searchPosition:i,searchAutoFocus:o,multiple:s,disabled:l,preventScroll:u}=this.props,c=i===Aa.SEARCH_POSITION_DROPDOWN,d=$({[`${Ih}-input`]:c,[`${gt}-inputTrigger`]:!c}),{inputValue:f}=this.state,h={value:f,className:d,preventScroll:u,onChange:_=>this.search(_)},m=c?{showClear:a,prefix:x.createElement(D5e,null)}:{autofocus:o,onFocus:_=>this.foundation.handleInputTriggerFocus(),onBlur:_=>this.foundation.handleInputTriggerBlur(),disabled:l},y=$({[`${Ih}-search-wrapper`]:c,[`${gt}-triggerSingleSearch-wrapper`]:!c&&!s}),b=typeof r=="function"||typeof r=="boolean";return b&&!r?null:x.createElement("div",{className:y},x.createElement(hn,{componentName:"TreeSelect"},_=>{const S=c?t||_.searchPlaceholder:"";return b?r(Object.assign(Object.assign(Object.assign({},m),h),{placeholder:S})):x.createElement(Ri,Object.assign({"aria-label":"Filter TreeSelect item",ref:this.inputRef,placeholder:S},h,m))}))},this.renderEmpty=()=>{const{emptyContent:t}=this.props;return t?x.createElement(Hp,{empty:!0,emptyContent:this.props.emptyContent}):x.createElement(hn,{componentName:"Tree"},r=>x.createElement(Hp,{empty:!0,emptyContent:r.emptyText}))},this.onNodeLoad=t=>new Promise(r=>this.foundation.setLoadKeys(t,r)),this.onNodeSelect=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeCheck=(t,r)=>{this.foundation.handleNodeSelect(t,r)},this.onNodeExpand=(t,r)=>{this.foundation.handleNodeExpand(t,r)},this.getTreeNodeRequiredProps=()=>{const{expandedKeys:t,selectedKeys:r,checkedKeys:a,halfCheckedKeys:i,keyEntities:o,filteredKeys:s}=this.state;return{expandedKeys:t||new Set,selectedKeys:r||[],checkedKeys:a||new Set,halfCheckedKeys:i||new Set,filteredKeys:s||new Set,keyEntities:o}},this.getTreeNodeKey=t=>{const{data:r}=t,{key:a}=r;return a},this.handlePopoverClose=t=>{const{filterTreeNode:r,searchAutoFocus:a,searchPosition:i}=this.props;t===!1&&r&&this.foundation.clearInput(),r&&i===Aa.SEARCH_POSITION_DROPDOWN&&t&&a&&this.foundation.focusInput(!0)},this.renderTreeNode=(t,r,a)=>{const{data:i,key:o}=t,s=this.foundation.getTreeNodeProps(o);if(!s)return null;const l=eu(t,["key","label","disabled","isLeaf","icon"]),{keyMaps:u}=this.props,c=i[H(u,"children","children")];return!Vt(c)&&(l.children=c),x.createElement(Hp,Object.assign({},s,i,l,{data:i,style:a}))},this.itemKey=(t,r)=>{const{visibleOptions:a}=r;return a[t].key},this.renderNodeList=()=>{const{flattenNodes:t,motionKeys:r,motionType:a,filteredKeys:i}=this.state,{direction:o}=this.context,{virtualize:s,motionExpand:l}=this.props,u="expandedKeys"in this.props;if(!s||vt(s))return x.createElement(SQ,{flattenNodes:t,flattenList:this._flattenNodes,motionKeys:l?r:new Set([]),motionType:a,searchTargetIsDeep:u&&l&&vt(r)&&!vt(i),onMotionEnd:this.onMotionEnd,renderTreeNode:this.renderTreeNode});const c={visibleOptions:t,renderOption:this.renderTreeNode};return x.createElement(v9,{defaultHeight:s.height,defaultWidth:s.width},d=>{let{height:f,width:h}=d;return x.createElement(jw,{itemCount:t.length,itemSize:s.itemSize,height:f,width:h,itemKey:this.itemKey,itemData:c,className:`${Ih}-virtual-list`,style:{direction:o}},Iq)})},this.renderTree=()=>{const{keyEntities:t,motionKeys:r,motionType:a,inputValue:i,filteredKeys:o,flattenNodes:s,checkedKeys:l,realCheckedKeys:u}=this.state,{loadData:c,filterTreeNode:d,disabled:f,multiple:h,showFilteredOnly:p,motionExpand:g,outerBottomSlot:m,outerTopSlot:y,expandAction:b,labelEllipsis:_,virtualize:S,optionListStyle:C,searchPosition:w,renderLabel:T,renderFullLabel:E,checkRelation:O}=this.props,I=$(`${Ih}-wrapper`),P=$(`${Ih}-option-list`,{[`${Ih}-option-list-block`]:!0}),A=!!i&&!o.size,R=vt(s)||p&&A,L=w===Aa.SEARCH_POSITION_DROPDOWN;return x.createElement(m9.Provider,{value:{loadData:c,treeDisabled:f,motion:g,motionKeys:r,motionType:a,expandAction:b,filterTreeNode:d,keyEntities:t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeRightClick:B,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,renderTreeNode:this.renderTreeNode,multiple:h,showFilteredOnly:p,isSearching:!!i,renderLabel:T,renderFullLabel:E,labelEllipsis:typeof _>"u"?S:_}},x.createElement("div",{className:I},y,!y&&d&&L&&this.renderInput(),x.createElement("div",{className:P,role:"tree","aria-multiselectable":!!h,style:C},R?this.renderEmpty():h?x.createElement(nA,{value:Array.from(O==="related"?l:u)},this.renderNodeList()):this.renderNodeList()),m))},this.state={inputTriggerFocus:!1,isOpen:!1,isFocus:!1,rePosKey:LFe,dropdownMinWidth:null,inputValue:"",keyEntities:{},treeData:[],flattenNodes:[],selectedKeys:[],checkedKeys:new Set,halfCheckedKeys:new Set,realCheckedKeys:new Set([]),disabledKeys:new Set,motionKeys:new Set([]),motionType:"hide",expandedKeys:new Set(e.expandedKeys),filteredKeys:new Set,filteredExpandedKeys:new Set,filteredShownKeys:new Set,prevProps:null,isHovering:!1,cachedKeyValuePairs:{},loadedKeys:new Set,loadingKeys:new Set},this.inputRef=x.createRef(),this.tagInputRef=x.createRef(),this.triggerRef=x.createRef(),this.optionsRef=x.createRef(),this.clickOutsideHandler=null,this.foundation=new MFe(this.adapter),this.treeSelectID=Math.random().toString(36).slice(2),this.onMotionEnd=()=>{this.adapter.rePositionDropdown()}}static getDerivedStateFromProps(e,t){const{prevProps:r,rePosKey:a}=t,{keyMaps:i}=e,o=m=>!r&&m in e||r&&!Ke(r[m],e[m]);let s;const l=e.onChangeWithObject;let u=t.keyEntities||{},c=t.cachedKeyValuePairs||{};const d={prevProps:e},f=o("treeData"),h=o("expandedKeys");if(f){s=e.treeData,d.treeData=s;const m=rIe(s,i);d.keyEntities=Object.assign({},m.keyEntities),u=d.keyEntities,d.cachedKeyValuePairs=Object.assign({},m.valueEntities),c=d.cachedKeyValuePairs}s&&e.motion&&!Ke(Object.keys(d.keyEntities),Object.keys(t.keyEntities))&&r&&e.motion&&(d.motionKeys=new Set([]),d.motionType=null);const p=f&&e.expandAll;if(h||r&&o("autoExpandParent")){if(d.expandedKeys=Bk(e.expandedKeys,u,e.autoExpandParent||!r),r&&e.motion&&!s){const{motionKeys:m,motionType:y}=oIe(t.expandedKeys,d.expandedKeys,u);d.motionKeys=new Set(m),d.motionType=y}}else!r&&(e.defaultExpandAll||e.expandAll)||p?d.expandedKeys=new Set(Object.keys(u)):!r&&e.defaultExpandedKeys?d.expandedKeys=Bk(e.defaultExpandedKeys,u):!r&&e.defaultValue?d.expandedKeys=Hk(Su(e.defaultValue,l,i),u,e.multiple,c):!r&&e.value&&(d.expandedKeys=Hk(Su(e.value,l,i),u,e.multiple,c));if(s||h){const m=Jh(s||t.treeData,d.expandedKeys||t.expandedKeys,i);d.flattenNodes=m}const g=e.multiple;if(!g)o("value")?d.selectedKeys=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?d.selectedKeys=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?d.selectedKeys=Nd(Su(e.value,l,i)||"",c,g):d.selectedKeys=Wk(t.selectedKeys,u));else{let m;if(o("value")?m=Nd(Su(e.value,l,i),c,g):!r&&e.defaultValue?m=Nd(Su(e.defaultValue,l,i),c,g):s&&(e.value?m=Nd(Su(e.value,l,i)||[],c,g):m=Wk(e.checkRelation==="related"?t.checkedKeys:t.realCheckedKeys,u)),m){if(e.checkRelation==="unRelated")d.realCheckedKeys=new Set(m);else if(e.checkRelation==="related"){const{checkedKeys:y,halfCheckedKeys:b}=Jy(m,u);d.checkedKeys=y,d.halfCheckedKeys=b}}}return o("loadedKeys")&&(d.loadedKeys=new Set(e.loadedKeys)),(f||o("value"))&&(d.rePosKey=a+1),s&&e.disableStrictly&&e.checkRelation==="related"&&(d.disabledKeys=JZ(u,i)),d}get adapter(){var e=this;const t={updateInputValue:i=>{this.setState({inputValue:i})}},r={registerClickOutsideHandler:i=>{const o=s=>{const l=this.optionsRef&&this.optionsRef.current,u=this.triggerRef&&this.triggerRef.current,c=ui.findDOMNode(l),d=s.target;c&&(!c.contains(d)||!c.contains(d.parentNode))&&u&&!u.contains(d)&&i(s)};this.clickOutsideHandler=o,document.addEventListener("mousedown",o,!1)},unregisterClickOutsideHandler:()=>{document.removeEventListener("mousedown",this.clickOutsideHandler,!1),this.clickOutsideHandler=null},rePositionDropdown:()=>{let{rePosKey:i}=this.state;i=i+1,this.setState({rePosKey:i})}},a={updateState:i=>{this.setState(Object.assign({},i))},notifySelect:(i,o,s)=>{this.props.onSelect&&this.props.onSelect(i,o,s)},notifySearch:(i,o)=>{this.props.onSearch&&this.props.onSearch(i,o)},cacheFlattenNodes:i=>{this._flattenNodes=i?EFe(this.state.flattenNodes):null},notifyLoad:(i,o)=>{const{onLoad:s}=this.props;ke(s)&&s(i,o)}};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),t),r),a),{updateLoadKeys:(i,o)=>{this.setState(s=>{let{loadedKeys:l,loadingKeys:u}=s;return this.foundation.handleNodeLoad(l,u,i,o)})},updateState:i=>{this.setState(Object.assign({},i))},openMenu:()=>{this.setState({isOpen:!0},()=>{this.props.onVisibleChange(!0)})},closeMenu:i=>{this.setState({isOpen:!1},()=>{i&&i(),this.props.onVisibleChange(!1)})},getTriggerWidth:()=>{const i=this.triggerRef.current;return i&&i.getBoundingClientRect().width},setOptionWrapperWidth:i=>{this.setState({dropdownMinWidth:i})},notifyChange:(i,o,s)=>{this.props.onChange&&this.props.onChange(i,o,s)},notifyChangeWithObject:(i,o)=>{this.props.onChange&&this.props.onChange(i,o)},notifyExpand:(i,o)=>{let{expanded:s,node:l}=o;this.props.onExpand&&this.props.onExpand([...i],{expanded:s,node:l}),s&&this.props.loadData&&this.onNodeLoad(l)},notifyFocus:function(){e.props.onFocus&&e.props.onFocus(...arguments)},notifyBlur:function(){e.props.onBlur&&e.props.onBlur(...arguments)},toggleHovering:i=>{this.setState({isHovering:i})},updateInputFocus:i=>{if(i){if(this.inputRef&&this.inputRef.current){const{preventScroll:o}=this.props;this.inputRef.current.focus({preventScroll:o})}this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.focus()}else this.inputRef&&this.inputRef.current&&this.inputRef.current.blur(),this.tagInputRef&&this.tagInputRef.current&&this.tagInputRef.current.blur()},updateIsFocus:i=>{this.setState({isFocus:i})}})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.renderContent(),{motion:t,zIndex:r,mouseLeaveDelay:a,mouseEnterDelay:i,autoAdjustOverflow:o,stopPropagation:s,getPopupContainer:l,dropdownMargin:u,position:c}=this.props,{isOpen:d,rePosKey:f}=this.state,h=this.renderSelection(),p=c||"bottomLeft";return x.createElement(di,{stopPropagation:s,getPopupContainer:l,zIndex:r,motion:t,margin:u,ref:this.optionsRef,content:e,visible:d,trigger:"custom",rePosKey:f,position:p,autoAdjustOverflow:o,mouseLeaveDelay:a,mouseEnterDelay:i,onVisibleChange:this.handlePopoverClose},h)}}bx.contextType=Fr;bx.propTypes={"aria-describedby":v.string,"aria-errormessage":v.string,"aria-invalid":v.bool,"aria-labelledby":v.string,"aria-required":v.bool,borderless:v.bool,loadedKeys:v.arrayOf(v.string),loadData:v.func,onLoad:v.func,arrowIcon:v.node,clearIcon:v.node,defaultOpen:v.bool,defaultValue:v.oneOfType([v.string,v.array,v.object]),defaultExpandAll:v.bool,defaultExpandedKeys:v.array,expandAll:v.bool,disabled:v.bool,disableStrictly:v.bool,filterTreeNode:v.oneOfType([v.func,v.bool]),multiple:v.bool,searchPlaceholder:v.string,searchAutoFocus:v.bool,virtualize:v.object,treeNodeFilterProp:v.string,onChange:v.func,onSearch:v.func,onSelect:v.func,onExpand:v.func,onChangeWithObject:v.bool,onBlur:v.func,onFocus:v.func,value:v.oneOfType([v.string,v.number,v.array,v.object]),expandedKeys:v.array,autoExpandParent:v.bool,showClear:v.bool,showSearchClear:v.bool,autoAdjustOverflow:v.bool,showFilteredOnly:v.bool,motionExpand:v.bool,emptyContent:v.node,keyMaps:v.object,leafOnly:v.bool,treeData:v.arrayOf(v.shape({key:v.string,value:v.oneOfType([v.string,v.number]),label:v.any})),dropdownClassName:v.string,dropdownStyle:v.object,dropdownMargin:v.oneOfType([v.number,v.object]),motion:v.bool,placeholder:v.string,maxTagCount:v.number,size:v.oneOf(Aa.SIZE_SET),className:v.string,style:v.object,treeNodeLabelProp:v.string,suffix:v.node,prefix:v.node,insetLabel:v.node,insetLabelId:v.string,zIndex:v.number,getPopupContainer:v.func,dropdownMatchSelectWidth:v.bool,validateStatus:v.oneOf(Aa.STATUS),mouseEnterDelay:v.number,mouseLeaveDelay:v.number,triggerRender:v.func,stopPropagation:v.oneOfType([v.bool,v.string]),outerBottomSlot:v.node,outerTopSlot:v.node,onVisibleChange:v.func,expandAction:v.oneOf(["click","doubleClick",!1]),searchPosition:v.oneOf([Aa.SEARCH_POSITION_DROPDOWN,Aa.SEARCH_POSITION_TRIGGER]),clickToHide:v.bool,renderLabel:v.func,renderFullLabel:v.func,labelEllipsis:v.bool,optionListStyle:v.object,searchRender:v.oneOfType([v.func,v.bool]),renderSelectedItem:v.func,checkRelation:v.string,"aria-label":v.string,showRestTagsPopover:v.bool,restTagsPopoverProps:v.object,preventScroll:v.bool,clickTriggerToHide:v.bool};bx.defaultProps={borderless:!1,searchPosition:Aa.SEARCH_POSITION_DROPDOWN,arrowIcon:x.createElement(kf,null),autoExpandParent:!1,autoAdjustOverflow:!0,stopPropagation:!0,motion:!0,motionExpand:!0,expandAll:!1,zIndex:ci.DEFAULT_Z_INDEX,disableStrictly:!1,multiple:!1,filterTreeNode:!1,size:"default",treeNodeFilterProp:"label",onChangeWithObject:!1,treeNodeLabelProp:"label",dropdownMatchSelectWidth:!0,defaultOpen:!1,showSearchClear:!0,showClear:!1,onVisibleChange:B,expandAction:!1,clickToHide:!0,searchAutoFocus:!1,checkRelation:"related","aria-label":"TreeSelect",showRestTagsPopover:!1,restTagsPopoverProps:{},clickTriggerToHide:!0};const kFe=bx,NF=`${q}-upload`,FF="picture",$F="list",NFe=.95,wQ={PREFIX:NF,LIST:`${NF}-list`},VF="auto",jF="custom",_t={FILE_STATUS_UPLOADING:"uploading",FILE_STATUS_SUCCESS:"success",FILE_STATUS_UPLOAD_FAIL:"uploadFail",FILE_STATUS_VALIDATING:"validating",FILE_STATUS_VALID_FAIL:"validateFail",FILE_STATUS_WAIT_UPLOAD:"wait",FILE_LIST_PIC:FF,FILE_LIST_DEFAULT:$F,LIST_TYPE:[FF,$F],imageTypes:["image","webp","png","svg","gif","jpg","jpeg","bmp","dpg"],DRAG_AREA_DEFAULT:"default",DRAG_AREA_LEGAL:"legal",DRAG_AREA_ILLEGAL:"illegal",TRIGGER_AUTO:VF,TRIGGER_CUSTOM:jF,UPLOAD_TRIGGER:[VF,jF],VALIDATE_STATUS:kg,PROMPT_POSITION:["left","right","bottom"]},FFe={PROGRESS_COEFFICIENT:NFe};var XI=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const Ep=1024,N5=1048576;function qI(n){if(n=Ep&&n=N5)return`${(n/N5).toFixed(1)}MB`}function $Fe(n,e){return n.indexOf(e,n.length-e.length)!==-1}function VFe(n){return XI(this,void 0,void 0,function*(){return new Promise((e,t)=>{const r=n.createReader();let a=[];function i(){r.readEntries(o=>{const s=Array.prototype.slice.apply(o);a=a.concat(s),!s.length?e(a):i()},t)}i()})})}function jFe(n){return XI(this,void 0,void 0,function*(){const e=[],t=(r,a)=>XI(this,void 0,void 0,function*(){if(a=a||"",r.path=a,r.isFile)e.push(new Promise((i,o)=>{r.file(s=>{r.fullPath&&!s.webkitRelativePath&&(Object.defineProperties(s,{webkitRelativePath:{writable:!0}}),s.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(s,{webkitRelativePath:{writable:!1}})),i(s)},o)}));else if(r.isDirectory){const i=yield VFe(r);for(let o=0;ot(i.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(e)}catch(r){return console.warn("Captured error while loop directory."),console.error(r),[]}})}var zFe=function(n,e,t,r){function a(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function s(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?i(c.value):a(c.value).then(s,l)}u((r=r.apply(n,e||[])).next())})};const{FILE_STATUS_UPLOADING:zF,FILE_STATUS_SUCCESS:BFe,FILE_STATUS_UPLOAD_FAIL:HFe,FILE_STATUS_VALID_FAIL:F5,FILE_STATUS_WAIT_UPLOAD:BF,DRAG_AREA_DEFAULT:$5,DRAG_AREA_LEGAL:UFe,TRIGGER_AUTO:Ab}=_t;class WFe extends ze{constructor(e){super(Object.assign({},e))}init(){const{disabled:e,addOnPasting:t}=this.getProps();t&&!e&&this.bindPastingHandler()}destroy(){const{disabled:e,addOnPasting:t}=this.getProps();this.releaseMemory(),t&&!e&&this.unbindPastingHandler()}getError(e){let{action:t,xhr:r,message:a,fileName:i}=e;const o=r?r.status:0,s=a||`cannot post ${i} to ${t}, xhr status: ${o}'`,l=new Error(s);return l.status=o,l.method="post",l.url=t,l}getBody(e){if(!e)return;const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}checkFileSize(e){const{size:t}=e,{maxSize:r,minSize:a}=this.getProps();let i=!1;return(t>r*Ep||t{const c=this.checkFileFormat(i,u);return c||t.push(u),c}),t.length!==0&&this._adapter.notifyAcceptInvalid(t),s.length===0))return;s=s.map(u=>(a&&(u=a(u)),u.uid||(u.uid=q_()),this.checkFileSize(u)&&(u._sizeInvalid=!0,u.status=F5,this._adapter.notifySizeError(u,o)),u));const l=o.length+s.length;if(typeof r<"u"&&l>r){if(this._adapter.notifyExceed(s),r===1){s=s.slice(-1),this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.replaceFileList(s);return}const u=r-o.length;s=s.slice(0,u)}this._adapter.notifyFileSelect(s),this._adapter.resetInput(),this.addFilesToList(s)}handleReplaceChange(e){if(e.length===0)return;const{transformFile:t,uploadTrigger:r,accept:a}=this.getProps(),{replaceIdx:i,fileList:o}=this.getStates();let s=Array.from(e).pop();if(typeof a<"u"&&!this.checkFileFormat(a,s)){this._adapter.notifyAcceptInvalid([s]);return}t&&(s=t(s)),s.uid||(s.uid=q_()),this.checkFileSize(s)&&(s._sizeInvalid=!0,s.status=F5,this._adapter.notifySizeError(s,o)),this._adapter.notifyFileSelect([s]);const l=this.buildFileItem(s,r),u=[...o];u.splice(i,1,l),this._adapter.notifyChange({currentFile:l,fileList:u}),this._adapter.updateFileList(u,()=>{this._adapter.resetReplaceInput(),l._sizeInvalid||this.upload(l)})}buildFileItem(e,t){const{_sizeInvalid:r,status:a}=e;try{delete e._sizeInvalid,delete e.status}catch{}const i={status:a||(t===Ab?zF:BF),name:e.name,size:qI(e.size),uid:e.uid,percent:0,fileInstance:e,url:this._createURL(e)};return r&&(i._sizeInvalid=!0),this.isImage(e)&&(i.preview=!0),i}replaceFileList(e){const{uploadTrigger:t}=this.getProps(),r=e.map(a=>this.buildFileItem(a,t));this._adapter.notifyChange({fileList:r,currentFile:r[0]}),this._adapter.updateFileList(r,()=>{t===Ab&&this.startUpload(r)})}addFilesToList(e){const t=this.getState("fileList").slice(),{uploadTrigger:r}=this.getProps(),a=e.map(i=>this.buildFileItem(i,r));a.forEach(i=>{const o=t.findIndex(s=>s.uid===i.uid);o!==-1?t[o]=i:(t.push(i),this._adapter.notifyChange({fileList:t,currentFile:i}))}),this._adapter.updateFileList(t,()=>{r===Ab&&this.startUpload(a)})}insertFileToList(e,t){const{limit:r,transformFile:a,accept:i,uploadTrigger:o}=this.getProps(),{fileList:s}=this.getStates(),l=[];let u=Array.from(e);if(typeof i<"u"&&(u=u.filter(h=>{const p=this.checkFileFormat(i,h);return p||l.push(h),p}),l.length!==0&&this._adapter.notifyAcceptInvalid(l),u.length===0))return;u=u.map(h=>(h.uid||(h.uid=q_()),this.checkFileSize(h)&&(h._sizeInvalid=!0,h.status=F5,this._adapter.notifySizeError(h,s)),a&&(h=a(h)),h));const c=s.length+u.length;if(typeof r<"u"&&c>r){if(r===1){u=u.slice(-1),this._adapter.notifyFileSelect(u),this._adapter.resetInput(),this.replaceFileList(u);return}const h=r-s.length;u=u.slice(0,h),this._adapter.notifyExceed(u)}const d=u.map(h=>this.buildFileItem(h,o)),f=s.slice();typeof t<"u"?f.splice(t,0,...d):f.push(...d),this._adapter.notifyFileSelect(u),this._adapter.notifyChange({fileList:f,currentFile:null}),this._adapter.updateFileList(f,()=>{o===Ab&&this.startUpload(d)})}manualUpload(){const e=this.getState("fileList").filter(t=>t.status===BF);this.startUpload(e)}startUpload(e){e.forEach(t=>{t._sizeInvalid||this.upload(t)})}upload(e){const{beforeUpload:t}=this.getProps();if(typeof t>"u"){this.post(e);return}if(typeof t=="function"){const{fileList:r}=this.getStates(),a=this._adapter.notifyBeforeUpload({file:e,fileList:r});switch(!0){case a===!0:{this.post(e);break}case a===!1:{const i={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};this.handleBeforeUploadResultInObject(i,e);break}case(a&&$f(a)):{Promise.resolve(a).then(i=>{let o={shouldUpload:!0};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)},i=>{let o={shouldUpload:!1,status:_t.FILE_STATUS_VALID_FAIL};Object.prototype.toString.call(i).slice(8,-1)==="Object"&&(o=Object.assign(Object.assign({},o),i)),this.handleBeforeUploadResultInObject(o,e)});break}case typeof a=="object":this.handleBeforeUploadResultInObject(a,e);break}}}handleBeforeUploadResultInObject(e,t){const{shouldUpload:r,status:a,autoRemove:i,validateMessage:o,fileInstance:s}=e;let l=this.getState("fileList").slice();if(i)l=l.filter(u=>u.uid!==t.uid);else{const u=this._getFileIndex(t,l);if(u<0)return;a&&(l[u].status=a),o&&(l[u].validateMessage=o),s&&(s.uid=t.uid,l[u].fileInstance=s,l[u].size=qI(s.size),l[u].name=s.name,l[u].url=this._createURL(s)),l[u].shouldUpload=r}this._adapter.updateFileList(l),this._adapter.notifyChange({fileList:l,currentFile:t}),r&&this.post(t)}post(e){const{fileInstance:t}=e,r=this.getProps();if(typeof XMLHttpRequest>"u")return;const a=new XMLHttpRequest,i=new FormData,{action:o}=r;let{data:s}=r;s&&(typeof s=="function"&&(s=s(t)),Object.keys(s).forEach(c=>{i.append(c,s[c])}));const l=r.name||r.fileName||t.name;if(r.customRequest)return r.customRequest({fileName:l,data:s,file:e,fileInstance:t,onProgress:c=>this.handleProgress({e:c,fileInstance:t}),onError:(c,d)=>this.handleError({e:d,xhr:c,fileInstance:t}),onSuccess:(c,d)=>this.handleSuccess({response:c,fileInstance:t,e:d,isCustomRequest:!0}),withCredentials:r.withCredentials,action:r.action});i.append(l,t),a.open("post",o,!0),r.withCredentials&&"withCredentials"in a&&(a.withCredentials=!0),a.upload&&(a.upload.onprogress=c=>this.handleProgress({e:c,fileInstance:t})),a.onload=c=>this.handleOnLoad({e:c,xhr:a,fileInstance:t}),a.onerror=c=>this.handleError({e:c,xhr:a,fileInstance:t});let u=r.headers||{};typeof u=="function"&&(u=u(t));for(const c in u)Object.prototype.hasOwnProperty.call(u,c)&&u[c]!==null&&a.setRequestHeader(c,u[c]);a.send(i)}handleProgress(e){let{e:t,fileInstance:r}=e;const{fileList:a}=this.getStates(),i=a.slice();let o=0;t.total>0&&(o=Number((t.loaded/t.total*100*FFe.PROGRESS_COEFFICIENT).toFixed(0))||0);const s=this._getFileIndex(r,i);s<0||(i[s].percent=o,i[s].status=zF,this._adapter.notifyProgress(o,r,i),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:i[s]}))}handleOnLoad(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);o<0||(r.status<200||r.status>=300?this.handleError({e:t,xhr:r,fileInstance:a}):this.handleSuccess({e:t,xhr:r,fileInstance:a,index:o}))}handleSuccess(e){let{e:t,fileInstance:r,isCustomRequest:a=!1,xhr:i,response:o}=e;const{fileList:s}=this.getStates();let l=null;const u=this._getFileIndex(r,s);if(u<0)return;a?l=o:l=this.getBody(i);const c=s.slice(),{afterUpload:d}=this.getProps();if(c[u].status=BFe,c[u].percent=100,this._adapter.notifyProgress(100,r,c),c[u].response=l,t&&(c[u].event=t),d&&typeof d=="function"){const{autoRemove:f,status:h,validateMessage:p,name:g}=this._adapter.notifyAfterUpload({response:l,file:c[u],fileList:c})||{};h&&(c[u].status=h),p&&(c[u].validateMessage=p),g&&(c[u].name=g),f&&c.splice(u,1)}this._adapter.notifySuccess(l,r,c),this._adapter.notifyChange({fileList:c,currentFile:c[u]}),this._adapter.updateFileList(c)}_getFileIndex(e,t){return t.findIndex(r=>r.uid===e.uid)}handleRemove(e){const{disabled:t}=this.getProps();if(t)return;const{fileList:r}=this.getStates();Promise.resolve(this._adapter.notifyBeforeRemove(e,r)).then(a=>{if(a===!1)return;const i=r.slice(),o=this._getFileIndex(e,r);o<0||(i.splice(o,1),this._adapter.notifyRemove(e.fileInstance,i,e),this._adapter.updateFileList(i),this._adapter.notifyChange({fileList:i,currentFile:e}))})}handleError(e){let{e:t,xhr:r,fileInstance:a}=e;const{fileList:i}=this.getStates(),o=this._getFileIndex(a,i);if(o<0)return;const{action:s}=this.getProps(),l=i.slice(),u=this.getError({action:s,xhr:r,fileName:a.name});l[o].status=HFe,l[o].response=u,l[o].event=t,this._adapter.notifyError(u,a,l,r),this._adapter.updateFileList(l),this._adapter.notifyChange({currentFile:l[o],fileList:l})}handleClear(){const{disabled:e}=this.getProps(),{fileList:t}=this.getStates();e||Promise.resolve(this._adapter.notifyBeforeClear(t)).then(r=>{r!==!1&&(this._adapter.updateFileList([]),this._adapter.notifyClear(),this._adapter.notifyChange({fileList:[]}))}).catch(r=>{})}_createURL(e){const t=URL.createObjectURL(e),{localUrls:r}=this.getStates(),a=r.slice();return a.push(t),this._adapter.updateLocalUrls(a),t}releaseMemory(){const{localUrls:e}=this.getStates();e.forEach(t=>{this._releaseBlob(t)})}_releaseBlob(e){try{URL.revokeObjectURL(e)}catch(t){console.log(t)}}isImage(e){return/(webp|svg|png|gif|jpg|jpeg|bmp|dpg)$/i.test(e.type)}isMultiple(){return!!this.getProp("multiple")}handleDragEnter(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget=e.currentTarget;const{disabled:t}=this.getProps();t||this._adapter.updateDragAreaStatus(UFe)}handleDirectoryDrop(e){return zFe(this,void 0,void 0,function*(){const t=this.getState("fileList").slice(),r=[].slice.call(e.dataTransfer.items),a=yield jFe(r);this.handleChange(a),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,a,t)})}handleDrop(e){e.preventDefault(),e.stopPropagation();const{disabled:t,directory:r}=this.getProps(),a=this.getState("fileList").slice();if(!t){if(r){this.handleDirectoryDrop(e);return}const i=Array.from(e.dataTransfer.files);this.handleChange(i),this._adapter.updateDragAreaStatus($5),this._adapter.notifyDrop(e,i,a)}}handleDragOver(e){e.preventDefault(),e.stopPropagation()}handleDragLeave(e){e.preventDefault(),e.stopPropagation(),this._dragEnterTarget===e.target&&this._adapter.updateDragAreaStatus($5)}checkFileFormat(e,t){const r=e.split(",").map(o=>o.trim()).filter(o=>o),a=t.type||"",i=a.replace(/\/.*$/,"");return r.some(o=>{if(o.charAt(0)==="."){const s=t.name||"",l=o.split(".").pop().toLowerCase();return $Fe(s.toLowerCase(),l)}if(/\/\*$/.test(o)){const s=o.replace(/\/.*$/,"");return i===s}return/^[^\/]+\/[^\/]+$/.test(o)?a===o:!1})}retry(e){const{onRetry:t}=this.getProps();t&&typeof t=="function"&&t(e),this.post(e)}handlePreviewClick(e){this._adapter.notifyPreviewClick(e)}readFileFromClipboard(e){for(const t of e)for(const r of t.types)r.startsWith("image")&&t.getType(r).then(a=>a.arrayBuffer()).then(a=>{const i=r.split("/")[1],o=new File([a],`upload.${i}`,{type:r});this.handleChange([o])})}handlePasting(e){if((this._adapter.isMac()?e.metaKey:e.ctrlKey)&&e.code==="KeyV"&&e.target===document.body){const a="clipboard-read";navigator.permissions.query({name:a}).then(i=>{console.log(i),i.state==="granted"||i.state==="prompt"?navigator.clipboard.read().then(o=>{this.readFileFromClipboard(o)}):this._adapter.notifyPastingError(i)}).catch(i=>{this._adapter.notifyPastingError(i)})}}bindPastingHandler(){this._adapter.registerPastingHandler(e=>this.handlePasting(e))}unbindPastingHandler(){this._adapter.unRegisterPastingHandler()}}const GFe=WFe;class YFe extends ze{constructor(e){super(Object.assign({},e))}handleImageError(e){this._adapter.updateFallbackPreview(!0)}}const KFe=YFe,un=wQ.PREFIX,ZFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"7.99992",cy:"7.99992",r:"6.66667",fill:"white"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.3332 8.00008C15.3332 12.0502 12.0499 15.3334 7.99984 15.3334C3.94975 15.3334 0.666504 12.0502 0.666504 8.00008C0.666504 3.94999 3.94975 0.666748 7.99984 0.666748C12.0499 0.666748 15.3332 3.94999 15.3332 8.00008ZM8.99984 11.6667C8.99984 11.1145 8.55212 10.6667 7.99984 10.6667C7.44755 10.6667 6.99984 11.1145 6.99984 11.6667C6.99984 12.219 7.44755 12.6667 7.99984 12.6667C8.55212 12.6667 8.99984 12.219 8.99984 11.6667ZM7.99984 3.33341C7.27573 3.33341 6.7003 3.94171 6.74046 4.66469L6.94437 8.33495C6.97549 8.89513 7.4388 9.33341 7.99984 9.33341C8.56087 9.33341 9.02419 8.89513 9.05531 8.33495L9.25921 4.66469C9.29938 3.94171 8.72394 3.33341 7.99984 3.33341Z",fill:"#F93920"}))},XFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("circle",{cx:"14",cy:"14",r:"14",fill:"#16161A",fillOpacity:"0.6"}),x.createElement("path",{d:"M9 10.25V18.25L10.25 13.25H17.875V11.75C17.875 11.4739 17.6511 11.25 17.375 11.25H14L12.75 9.75H9.5C9.22386 9.75 9 9.97386 9 10.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M18 18.25L19 13.25H10.2031L9 18.25H18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qFe=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return x.createElement("svg",Object.assign({focusable:!1,"aria-hidden":!0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),x.createElement("path",{d:"M6 17V7.58824C6 7.26336 6.26863 7 6.6 7H10.5L12 8.76471H16.05C16.3814 8.76471 16.65 9.02806 16.65 9.35294V11.1176H7.5L6 17ZM6 17L7.44375 11.1176H18L16.8 17L6 17Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};class y9 extends Pe{constructor(e){super(e),this.state={fallbackPreview:!1},this.foundation=new KFe(this.adapter)}get adapter(){return Object.assign(Object.assign({},super.adapter),{updateFallbackPreview:e=>this.setState({fallbackPreview:e})})}transSize(e){return typeof e=="number"?qI(e):e}renderValidateMessage(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(typeof t=="string"&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(x.Fragment,null,x.createElement(Jl,{size:"small",wrapperClassName:`${un}-file-card-icon-loading`}),t);break;case typeof t=="string":r=x.createElement(x.Fragment,null,x.createElement(z1,{className:`${un}-file-card-icon-error`}),t);break;case xO(t):r=t;break}return r}renderPicValidateMsg(){const{status:e,validateMessage:t}=this.props;let r=null;switch(!0){case(t&&e===_t.FILE_STATUS_VALIDATING):r=x.createElement(Jl,{size:"small",wrapperClassName:`${un}-picture-file-card-icon-loading`});break;case(t&&(e===_t.FILE_STATUS_VALID_FAIL||e===_t.FILE_STATUS_UPLOAD_FAIL)):r=x.createElement("div",{className:`${un}-picture-file-card-icon-error`},x.createElement(ZFe,null));break}return r?x.createElement(Sr,{content:t,trigger:"hover",position:"bottom"},r):null}renderPic(e){const{fallbackPreview:t}=this.state,{url:r,percent:a,status:i,disabled:o,style:s,onPreviewClick:l,showPicInfo:u,renderPicInfo:c,renderPicPreviewIcon:d,renderThumbnail:f,name:h,index:p,picHeight:g,picWidth:m}=this.props,y=i===_t.FILE_STATUS_UPLOADING&&a!==100,b=i===_t.FILE_STATUS_UPLOAD_FAIL&&this.props.showRetry,_=i===_t.FILE_STATUS_SUCCESS&&this.props.showReplace,S=i===_t.FILE_STATUS_SUCCESS&&!this.props.showReplace,C=$({[`${un}-picture-file-card`]:!0,[`${un}-picture-file-card-preview-fallback`]:t,[`${un}-picture-file-card-disabled`]:o,[`${un}-picture-file-card-show-pointer`]:typeof l<"u",[`${un}-picture-file-card-error`]:i===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-picture-file-card-uploading`]:y}),w=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-retry`,onClick:k=>this.onRetry(k)},x.createElement(O5e,{className:`${un}-picture-file-card-icon-retry`})),T=x.createElement(Sr,{trigger:"hover",position:"top",content:e.replace,showArrow:!1,spacing:4},x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-replace`,onClick:k=>this.onReplace(k)},x.createElement(XFe,{className:`${un}-picture-file-card-icon-replace`}))),E=x.createElement("div",{className:`${un}-picture-file-card-preview`},typeof d=="function"?d(this.props):null),O=x.createElement("div",{role:"button",tabIndex:0,className:`${un}-picture-file-card-close`,onClick:k=>this.onRemove(k)},x.createElement(Gc,{className:`${un}-picture-file-card-icon-close`})),I=typeof c=="function"?c(this.props):x.createElement("div",{className:`${un}-picture-file-card-pic-info`},p+1);let P={},A=s?Object.assign({},s):{};g&&(A.height=g,P.height=g),m&&(A.width=m,P.width=m);const L=typeof f=="function"?f(this.props):t?x.createElement(IO,{size:"large"}):x.createElement("img",{src:r,alt:h,onError:k=>this.foundation.handleImageError(k),style:P});return x.createElement("div",{role:"listitem",className:C,style:A,onClick:l},L,y?x.createElement(lF,{percent:a,type:"circle",size:"small",orbitStroke:"#FFF","aria-label":"uploading file progress"}):null,b?w:null,_&&T,S&&E,u&&I,!o&&O,this.renderPicValidateMsg())}renderFile(e){const{name:t,size:r,percent:a,url:i,showRetry:o,showReplace:s,preview:l,previewFile:u,status:c,style:d,onPreviewClick:f,renderFileOperation:h}=this.props,{fallbackPreview:p}=this.state,g=$({[`${un}-file-card`]:!0,[`${un}-file-card-fail`]:c===_t.FILE_STATUS_VALID_FAIL||c===_t.FILE_STATUS_UPLOAD_FAIL,[`${un}-file-card-show-pointer`]:typeof f<"u"}),m=$({[`${un}-file-card-preview`]:!0,[`${un}-file-card-preview-placeholder`]:!l||u||p}),y=`${un}-file-card-info`,b=`${un}-file-card-close`,_=`${un}-file-card-replace`,S=!(a===100||typeof a>"u")&&c===_t.FILE_STATUS_UPLOADING,C=c===_t.FILE_STATUS_UPLOAD_FAIL&&o,w=c===_t.FILE_STATUS_SUCCESS&&s,T=this.transSize(r);let E=l&&!p?x.createElement("img",{src:i,alt:t,onError:I=>this.foundation.handleImageError(I)}):x.createElement(IO,{size:"large"});u&&(E=u(this.props));const O=typeof h=="function"?h(this.props):x.createElement(Jt,{onClick:I=>this.onRemove(I),type:"tertiary",icon:x.createElement(Ky,null),theme:"borderless",size:"small",className:b});return x.createElement("div",{role:"listitem",className:g,style:d,onClick:f},x.createElement("div",{className:m},E),x.createElement("div",{className:`${y}-main`},x.createElement("div",{className:`${y}-main-text`},x.createElement("span",{className:`${y}-name`},t),x.createElement("span",null,x.createElement("span",{className:`${y}-size`},T),w&&x.createElement(Sr,{trigger:"hover",position:"top",showArrow:!1,content:e.replace},x.createElement(Jt,{onClick:I=>this.onReplace(I),type:"tertiary",theme:"borderless",size:"small",icon:x.createElement(qFe,null),className:_})))),S?x.createElement(lF,{percent:a,style:{width:"100%"},"aria-label":"uploading file progress"}):null,x.createElement("div",{className:`${y}-main-control`},x.createElement("span",{className:`${y}-validate-message`},this.renderValidateMessage()),C?x.createElement("span",{role:"button",tabIndex:0,className:`${y}-retry`,onClick:I=>this.onRetry(I)},e.retry):null)),O)}onRemove(e){e.stopPropagation(),this.props.onRemove()}onReplace(e){e.stopPropagation(),this.props.onReplace()}onRetry(e){e.stopPropagation(),this.props.onRetry()}render(){const{listType:e}=this.props;return e===_t.FILE_LIST_PIC?x.createElement(hn,{componentName:"Upload"},t=>this.renderPic(t)):e===_t.FILE_LIST_DEFAULT?x.createElement(hn,{componentName:"Upload"},t=>this.renderFile(t)):null}}y9.propTypes={className:v.string,disabled:v.bool,listType:v.string,name:v.string,onPreviewClick:v.func,onRemove:v.func,onReplace:v.func,onRetry:v.func,percent:v.number,preview:v.bool,previewFile:v.func,picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),showReplace:v.bool,showRetry:v.bool,size:v.oneOfType([v.number,v.string]),status:v.string,style:v.object,url:v.string,validateMessage:v.node,index:v.number};y9.defaultProps={listType:_t.FILE_LIST_DEFAULT,name:"",onRemove:()=>{},onRetry:()=>{},preview:!1,size:""};const xQ=y9;var QFe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{inputRef:t,props:r}=this,{onOpenFileDialog:a}=r;this.props.disabled||!t||!t.current||(t.current.click(),a&&a())},this.onChange=t=>{const{files:r}=t.target;this.foundation.handleChange(r)},this.replace=t=>{this.setState({replaceIdx:t},()=>{this.replaceInputRef.current.click()})},this.onReplaceChange=t=>{const{files:r}=t.target;this.foundation.handleReplaceChange(r)},this.clear=()=>{this.foundation.handleClear()},this.remove=t=>{this.foundation.handleRemove(t)},this.insert=(t,r)=>this.foundation.insertFileToList(t,r),this.upload=()=>{this.foundation.manualUpload()},this.openFileDialog=()=>{this.onClick()},this.renderFile=(t,r,a)=>{const{name:i,status:o,validateMessage:s,_sizeInvalid:l,uid:u}=t,{previewFile:c,listType:d,itemStyle:f,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderFileItem:y,renderThumbnail:b,disabled:_,onPreviewClick:S,picWidth:C,picHeight:w}=this.props,T=()=>this.remove(t),E=()=>{this.foundation.retry(t)},O=()=>{this.replace(r)},I=Object.assign(Object.assign(Object.assign({},eu(this.props,["showRetry","showReplace",""])),t),{previewFile:c,listType:d,onRemove:T,onRetry:E,index:r,key:u||`${i}${r}`,style:f,disabled:_,showPicInfo:h,renderPicInfo:p,renderPicPreviewIcon:g,renderFileOperation:m,renderThumbnail:b,onReplace:O,onPreviewClick:typeof S<"u"?()=>this.foundation.handlePreviewClick(t):void 0,picWidth:C,picHeight:w});return o===_t.FILE_STATUS_UPLOAD_FAIL&&!s&&(I.validateMessage=a.fail),l&&!s&&(I.validateMessage=a.illegalSize),typeof y>"u"?x.createElement(xQ,Object.assign({},I)):y(I)},this.renderFileList=()=>{const{listType:t}=this.props;return t===_t.FILE_LIST_PIC?this.renderFileListPic():t===_t.FILE_LIST_DEFAULT?this.renderFileListDefault():null},this.renderFileListPic=()=>{const{showUploadList:t,limit:r,disabled:a,children:i,draggable:o,hotSpotLocation:s,picHeight:l,picWidth:u}=this.props,{fileList:c,dragAreaStatus:d}=this.state,f=this.props.fileList||c,h=r?r>f.length:!0,p=`${Pn}-drag-area`,g=$(`${Pn}-add`,{[`${Pn}-picture-add`]:!0,[`${Pn}-picture-add-disabled`]:a}),m=$(`${Pn}-file-list`,{[`${Pn}-picture-file-list`]:!0}),y=$({[`${p}-legal`]:d===_t.DRAG_AREA_LEGAL,[`${p}-illegal`]:d===_t.DRAG_AREA_ILLEGAL}),b=`${Pn}-file-list-main`,_={role:"button",className:g,onClick:this.onClick,style:{height:l,width:u}},S={className:m},C={onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter};o&&Object.assign(_,C,{className:$(g,y)});const w=x.createElement("div",Object.assign({},_,{"x-semi-prop":"children"}),i);return!t||!f.length?h?w:null:x.createElement(hn,{componentName:"Upload"},T=>x.createElement("div",Object.assign({},S),x.createElement("div",{className:b,role:"list","aria-label":"picture list"},h&&s==="start"?w:null,f.map((E,O)=>this.renderFile(E,O,T)),h&&s==="end"?w:null)))},this.renderFileListDefault=()=>{const{showUploadList:t,limit:r,disabled:a}=this.props,{fileList:i}=this.state,o=this.props.fileList||i,s=$(`${Pn}-file-list`),l=`${Pn}-file-list-title`,u=`${Pn}-file-list-main`,c=r!==1&&o.length,d=this.props.showClear&&!a,f={className:s};return!t||!o.length?null:x.createElement(hn,{componentName:"Upload"},h=>x.createElement("div",Object.assign({},f),c?x.createElement("div",{className:l},x.createElement("span",{className:`${l}-choosen`},h.selectedFiles),d?x.createElement("span",{role:"button",tabIndex:0,onClick:this.clear,className:`${l}-clear`},h.clear):null):null,x.createElement("div",{className:u,role:"list","aria-label":"file list"},o.map((p,g)=>this.renderFile(p,g,h)))))},this.onDrop=t=>{this.foundation.handleDrop(t)},this.onDragOver=t=>{this.foundation.handleDragOver(t)},this.onDragLeave=t=>{this.foundation.handleDragLeave(t)},this.onDragEnter=t=>{this.foundation.handleDragEnter(t)},this.renderAddContent=()=>{const{draggable:t,children:r,listType:a,disabled:i}=this.props,o=$(`${Pn}-add`);return a===_t.FILE_LIST_PIC?null:t?this.renderDragArea():x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":i,className:o,onClick:this.onClick},r)},this.renderDragArea=()=>{const{dragAreaStatus:t}=this.state,{children:r,dragIcon:a,dragMainText:i,dragSubText:o,disabled:s}=this.props,l=`${Pn}-drag-area`,u=$(l,{[`${l}-legal`]:t===_t.DRAG_AREA_LEGAL,[`${l}-illegal`]:t===_t.DRAG_AREA_ILLEGAL,[`${l}-custom`]:r});return x.createElement(hn,{componentName:"Upload"},c=>x.createElement("div",{role:"button",tabIndex:0,"aria-disabled":s,className:u,onDrop:this.onDrop,onDragOver:this.onDragOver,onDragLeave:this.onDragLeave,onDragEnter:this.onDragEnter,onClick:this.onClick},r||x.createElement(x.Fragment,null,x.createElement("div",{className:`${l}-icon`,"x-semi-prop":"dragIcon"},a||x.createElement(q5e,{size:"extra-large"})),x.createElement("div",{className:`${l}-text`},x.createElement("div",{className:`${l}-main-text`,"x-semi-prop":"dragMainText"},i||c.mainText),x.createElement("div",{className:`${l}-sub-text`,"x-semi-prop":"dragSubText"},o),x.createElement("div",{className:`${l}-tips`},t===_t.DRAG_AREA_LEGAL&&x.createElement("span",{className:`${l}-tips-legal`},c.legalTips),t===_t.DRAG_AREA_ILLEGAL&&x.createElement("span",{className:`${l}-tips-illegal`},c.illegalTips))))))},this.state={fileList:e.defaultFileList||[],replaceIdx:-1,inputKey:Math.random(),replaceInputKey:Math.random(),dragAreaStatus:"default",localUrls:[]},this.foundation=new GFe(this.adapter),this.inputRef=x.createRef(),this.replaceInputRef=x.createRef()}static getDerivedStateFromProps(e){const{fileList:t}=e;return"fileList"in e?{fileList:t||[]}:null}get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyFileSelect:e=>this.props.onFileChange(e),notifyError:(e,t,r,a)=>this.props.onError(e,t,r,a),notifySuccess:(e,t,r)=>this.props.onSuccess(e,t,r),notifyProgress:(e,t,r)=>this.props.onProgress(e,t,r),notifyRemove:(e,t,r)=>this.props.onRemove(e,t,r),notifySizeError:(e,t)=>this.props.onSizeError(e,t),notifyExceed:e=>this.props.onExceed(e),updateFileList:(e,t)=>{typeof t=="function"?this.setState({fileList:e},t):this.setState({fileList:e})},notifyBeforeUpload:e=>{let{file:t,fileList:r}=e;return this.props.beforeUpload({file:t,fileList:r})},notifyAfterUpload:e=>{let{response:t,file:r,fileList:a}=e;return this.props.afterUpload({response:t,file:r,fileList:a})},resetInput:()=>{this.setState(e=>({inputKey:Math.random()}))},resetReplaceInput:()=>{this.setState(e=>({replaceInputKey:Math.random()}))},isMac:()=>navigator.platform.toUpperCase().indexOf("MAC")>=0,registerPastingHandler:e=>{document.body.addEventListener("keydown",e),this.pastingCb=e},unRegisterPastingHandler:()=>{this.pastingCb&&document.body.removeEventListener("keydown",this.pastingCb)},notifyPastingError:e=>this.props.onPastingError(e),updateDragAreaStatus:e=>this.setState({dragAreaStatus:e}),notifyChange:e=>{let{currentFile:t,fileList:r}=e;return this.props.onChange({currentFile:t,fileList:r})},updateLocalUrls:e=>this.setState({localUrls:e}),notifyClear:()=>this.props.onClear(),notifyPreviewClick:e=>this.props.onPreviewClick(e),notifyDrop:(e,t,r)=>this.props.onDrop(e,t,r),notifyAcceptInvalid:e=>this.props.onAcceptInvalid(e),notifyBeforeRemove:(e,t)=>this.props.beforeRemove(e,t),notifyBeforeClear:e=>this.props.beforeClear(e)})}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}render(){const e=this.props,{style:t,className:r,multiple:a,accept:i,disabled:o,children:s,capture:l,listType:u,prompt:c,promptPosition:d,draggable:f,validateMessage:h,validateStatus:p,directory:g}=e,m=QFe(e,["style","className","multiple","accept","disabled","children","capture","listType","prompt","promptPosition","draggable","validateMessage","validateStatus","directory"]),y=$(Pn,{[`${Pn}-picture`]:u===_t.FILE_LIST_PIC,[`${Pn}-disabled`]:o,[`${Pn}-default`]:p==="default",[`${Pn}-error`]:p==="error",[`${Pn}-warning`]:p==="warning",[`${Pn}-success`]:p==="success"},r),b=$(`${Pn}-hidden-input`),_=$(`${Pn}-hidden-input-replace`),S=$(`${Pn}-prompt`),C=$(`${Pn}-validate-message`),w=g?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return x.createElement("div",Object.assign({className:y,style:t,"x-prompt-pos":d},this.getDataAttr(m)),x.createElement("input",Object.assign({key:this.state.inputKey,capture:l,multiple:a,accept:i,onChange:this.onChange,type:"file",autoComplete:"off",tabIndex:-1,className:b,ref:this.inputRef},w)),x.createElement("input",{key:this.state.replaceInputKey,multiple:!1,accept:i,onChange:this.onReplaceChange,type:"file",autoComplete:"off",tabIndex:-1,className:_,ref:this.replaceInputRef}),this.renderAddContent(),c?x.createElement("div",{className:S,"x-semi-prop":"prompt"},c):null,h?x.createElement("div",{className:C,"x-semi-prop":"validateMessage"},h):null,this.renderFileList())}}_x.propTypes={accept:v.string,action:v.string.isRequired,addOnPasting:v.bool,afterUpload:v.func,beforeClear:v.func,beforeRemove:v.func,beforeUpload:v.func,children:v.node,className:v.string,customRequest:v.func,data:v.oneOfType([v.object,v.func]),defaultFileList:v.array,directory:v.bool,disabled:v.bool,dragIcon:v.node,dragMainText:v.node,dragSubText:v.node,draggable:v.bool,fileList:v.array,fileName:v.string,headers:v.oneOfType([v.object,v.func]),hotSpotLocation:v.oneOf(["start","end"]),itemStyle:v.object,limit:v.number,listType:v.oneOf(_t.LIST_TYPE),maxSize:v.number,minSize:v.number,multiple:v.bool,name:v.string,onAcceptInvalid:v.func,onChange:v.func,onClear:v.func,onDrop:v.func,onError:v.func,onExceed:v.func,onFileChange:v.func,onOpenFileDialog:v.func,onPreviewClick:v.func,onProgress:v.func,onRemove:v.func,onRetry:v.func,onSizeError:v.func,onSuccess:v.func,onPastingError:v.func,previewFile:v.func,prompt:v.node,promptPosition:v.oneOf(_t.PROMPT_POSITION),picWidth:v.oneOfType([v.number,v.string]),picHeight:v.oneOfType([v.number,v.string]),renderFileItem:v.func,renderPicPreviewIcon:v.func,renderFileOperation:v.func,renderPicInfo:v.func,renderThumbnail:v.func,showClear:v.bool,showPicInfo:v.bool,showReplace:v.bool,showRetry:v.bool,showUploadList:v.bool,style:v.object,timeout:v.number,transformFile:v.func,uploadTrigger:v.oneOf(_t.UPLOAD_TRIGGER),validateMessage:v.node,validateStatus:v.oneOf(_t.VALIDATE_STATUS),withCredentials:v.bool};_x.defaultProps={defaultFileList:[],disabled:!1,listType:"list",hotSpotLocation:"end",multiple:!1,onAcceptInvalid:B,onChange:B,beforeRemove:()=>!0,beforeClear:()=>!0,onClear:B,onDrop:B,onError:B,onExceed:B,onFileChange:B,onOpenFileDialog:B,onProgress:B,onRemove:B,onRetry:B,onSizeError:B,onSuccess:B,onPastingError:B,promptPosition:"right",showClear:!0,showPicInfo:!1,showReplace:!1,showRetry:!0,showUploadList:!0,uploadTrigger:"auto",withCredentials:!1};_x.FileCard=xQ;const JFe=_x;class b9 extends D.Component{constructor(e){super(e),this.state={}}render(){const{children:e,locale:t}=this.props;return x.createElement(YK.Provider,{value:t},e)}}b9.propTypes={locale:v.object,children:v.node};b9.defaultProps={locale:OO};function tf(){return tf=Object.assign||function(n){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g2(n,e,t){return t$e()?g2=Reflect.construct:g2=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&J1(u,o.prototype),u},g2.apply(null,arguments)}function n$e(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function JI(n){var e=typeof Map=="function"?new Map:void 0;return JI=function(r){if(r===null||!n$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return g2(r,arguments,QI(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),J1(a,r)},JI(n)}var r$e=/%[sdj%]/g,a$e=function(){};function eP(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Ai(){for(var n=arguments.length,e=new Array(n),t=0;t=i)return s;switch(s){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch{return"[Circular]"}break;default:return s}});return o}return a}function i$e(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function Cr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||i$e(e)&&typeof n=="string"&&!n)}function o$e(n,e,t){var r=[],a=0,i=n.length;function o(s){r.push.apply(r,s),a++,a===i&&t(r)}n.forEach(function(s){e(s,o)})}function HF(n,e,t){var r=0,a=n.length;function i(o){if(o&&o.length){t(o);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Im={integer:function(e){return Im.number(e)&&parseInt(e,10)===e},float:function(e){return Im.number(e)&&!Im.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!Im.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&!!e.match(V5.email)&&e.length<255},url:function(e){return typeof e=="string"&&!!e.match(V5.url)},hex:function(e){return typeof e=="string"&&!!e.match(V5.hex)}};function c$e(n,e,t,r,a){if(n.required&&e===void 0){TQ(n,e,t,r,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=n.type;i.indexOf(o)>-1?Im[o](e)||r.push(Ai(a.messages.types[o],n.fullField,n.type)):o&&typeof e!==n.type&&r.push(Ai(a.messages.types[o],n.fullField,n.type))}function d$e(n,e,t,r,a){var i=typeof n.len=="number",o=typeof n.min=="number",s=typeof n.max=="number",l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=e,c=null,d=typeof e=="number",f=typeof e=="string",h=Array.isArray(e);if(d?c="number":f?c="string":h&&(c="array"),!c)return!1;h&&(u=e.length),f&&(u=e.replace(l,"_").length),i?u!==n.len&&r.push(Ai(a.messages[c].len,n.fullField,n.len)):o&&!s&&un.max?r.push(Ai(a.messages[c].max,n.fullField,n.max)):o&&s&&(un.max)&&r.push(Ai(a.messages[c].range,n.fullField,n.min,n.max))}var Ph="enum";function f$e(n,e,t,r,a){n[Ph]=Array.isArray(n[Ph])?n[Ph]:[],n[Ph].indexOf(e)===-1&&r.push(Ai(a.messages[Ph],n.fullField,n[Ph].join(", ")))}function h$e(n,e,t,r,a){if(n.pattern){if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern));else if(typeof n.pattern=="string"){var i=new RegExp(n.pattern);i.test(e)||r.push(Ai(a.messages.pattern.mismatch,n.fullField,e,n.pattern))}}}var yt={required:TQ,whitespace:u$e,type:c$e,range:d$e,enum:f$e,pattern:h$e};function p$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a,"string"),Cr(e,"string")||(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a),yt.pattern(n,e,r,i,a),n.whitespace===!0&&yt.whitespace(n,e,r,i,a))}t(i)}function g$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function v$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e===""&&(e=void 0),Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function m$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}function y$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e)||yt.type(n,e,r,i,a)}t(i)}function b$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function _$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function S$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(e==null&&!n.required)return t();yt.required(n,e,r,i,a,"array"),e!=null&&(yt.type(n,e,r,i,a),yt.range(n,e,r,i,a))}t(i)}function C$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt.type(n,e,r,i,a)}t(i)}var w$e="enum";function x$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a),e!==void 0&&yt[w$e](n,e,r,i,a)}t(i)}function T$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"string")&&!n.required)return t();yt.required(n,e,r,i,a),Cr(e,"string")||yt.pattern(n,e,r,i,a)}t(i)}function E$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e,"date")&&!n.required)return t();if(yt.required(n,e,r,i,a),!Cr(e,"date")){var s;e instanceof Date?s=e:s=new Date(e),yt.type(n,s,r,i,a),s&&yt.range(n,s.getTime(),r,i,a)}}t(i)}function O$e(n,e,t,r,a){var i=[],o=Array.isArray(e)?"array":typeof e;yt.required(n,e,r,i,a,o),t(i)}function j5(n,e,t,r,a){var i=n.type,o=[],s=n.required||!n.required&&r.hasOwnProperty(n.field);if(s){if(Cr(e,i)&&!n.required)return t();yt.required(n,e,r,o,a,i),Cr(e,i)||yt.type(n,e,r,o,a)}t(o)}function I$e(n,e,t,r,a){var i=[],o=n.required||!n.required&&r.hasOwnProperty(n.field);if(o){if(Cr(e)&&!n.required)return t();yt.required(n,e,r,i,a)}t(i)}var n1={string:p$e,method:g$e,number:v$e,boolean:m$e,regexp:y$e,integer:b$e,float:_$e,array:S$e,object:C$e,enum:x$e,pattern:T$e,date:E$e,url:j5,hex:j5,email:j5,required:O$e,any:I$e};function tP(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var _9=tP();function _c(n){this.rules=null,this._messages=_9,this.define(n)}_c.prototype={messages:function(e){return e&&(this._messages=GF(tP(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if(typeof e!="object"||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t,r;for(t in e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var a=this;t===void 0&&(t={}),r===void 0&&(r=function(){});var i=e,o=t,s=r;if(typeof o=="function"&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(),Promise.resolve();function l(g){var m,y=[],b={};function _(S){if(Array.isArray(S)){var C;y=(C=y).concat.apply(C,S)}else y.push(S)}for(m=0;m1&&arguments[1]!==void 0?arguments[1]:[];const t={};return t[n]=e,new _c(t)}function M$e(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=!1;return typeof n=="object"&&"required"in n?e=n.required:Array.isArray(n)&&n.length&&n.forEach(t=>{t.required&&(e=!0)}),e}function nf(n){let e=!0;return typeof n=="string"&&n.length?e=!1:Array.isArray(n)&&n.length?e=n.every(t=>nf(t)):typeof n=="boolean"?e=n:n&&typeof n.$$typeof=="symbol"&&n.$$typeof.toString()==="Symbol(react.element)"&&(e=!1),e}function R$e(n,e){let t=[],r=[];return Vt(n)?Vt(e)?t=Om.DEFAULT_TRIGGER:t=e:t=n,Array.isArray(t)&&(r=t),typeof t=="string"&&(r[0]=t),r}function L$e(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Vt(n)?Vt(e)?t:e:n}function k$e(n,e){const r=Object.assign(Object.assign({},{valueKey:"value",onKeyChangeFnName:"onChange",valuePath:"",maintainCursor:!1,shouldInject:!0,shouldMemo:!0}),n),a="field"in e?!0:r.shouldInject;return{options:r,shouldInject:a}}function N$e(n){let t=Object.assign(Object.assign({},{allowEmptyString:!1,allowEmpty:!1,emptyValue:"",noLabel:!1,noErrorMessage:!1,isInInputGroup:!1}),n),{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,onChange:b,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,noLabel:E,noErrorMessage:O,isInInputGroup:I,stopValidateWithError:P,convert:A,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,id:F}=t,j=P$e(t,["field","label","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","initValue","validate","validateStatus","trigger","allowEmptyString","allowEmpty","emptyValue","rules","onChange","keepState","transform","name","fieldClassName","fieldStyle","noLabel","noErrorMessage","isInInputGroup","stopValidateWithError","convert","showValidateIcon","helpText","extraText","extraTextPosition","pure","id"]);delete j.defaultChecked,delete j.defaultValue,delete j.checked,typeof c<"u"&&(c=Ii(c));const U=M$e(y);return m=typeof m<"u"?m:"",{field:r,label:a,labelPosition:i,labelWidth:o,labelAlign:s,labelCol:l,wrapperCol:u,noLabel:E,noErrorMessage:O,isInInputGroup:I,initValue:c,validate:d,validateStatus:f,trigger:h,allowEmptyString:p,allowEmpty:g,emptyValue:m,rules:y,required:U,keepState:_,transform:S,name:C,fieldClassName:w,fieldStyle:T,convert:A,stopValidateWithError:P,showValidateIcon:R,helpText:L,extraText:k,extraTextPosition:N,pure:z,rest:j,id:F}}class F$e extends ze{constructor(e){super(Object.assign({},e));let{initValues:t}=this._adapter.getProps();t=this._adapter.cloneDeep(t),this.data={values:t||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this)}init(){this._adapter.initFormId()}getField(e){return this.fields.get(e)}register(e,t,r){if(this.registered[e],this.registered[e]=!0,this.fields.set(e,r),!r.keepState){const a=r.allowEmpty||!1,i={notNotify:!0,notUpdate:!1,allowEmpty:a};let o=t.value;!a&&o===""&&(o=void 0),this.updateStateValue(e,o,i),t.error&&this.updateStateError(e,t.error,i)}}unRegister(e){const t=this.fields.get(e);try{t.keepState||(r2(this.data.values,e),r2(this.data.errors,e),r2(this.data.touched,e))}catch{console.error(`some thing wrong when unregister field:${e}`)}this.fields.delete(e),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(e,t){this.updateArrayField(e,{updateKey:new Date().valueOf(),initValue:t})}unRegisterArrayField(e){this.registeredArrayField.delete(e)}getArrayField(e){return this.registeredArrayField.get(e)}updateArrayField(e,t){const r=Object.assign(Object.assign({},this.registeredArrayField.get(e)),t);this.registeredArrayField.set(e,r)}validate(e){const{validateFields:t}=this.getProps();return t&&ke(t)?this._formValidate():this._fieldsValidate(e)}_formValidate(){const{values:e}=this.data,{validateFields:t}=this.getProps();return new Promise((r,a)=>{let i;try{i=t(e)}catch(o){i=o}if(i)$f(i)?i.then(o=>{if(o)this.data.errors=o,this._adapter.notifyChange(this.data),this.injectErrorToField(o),this._adapter.forceUpdate(),this._autoScroll(100),a(o);else{const s=this._adapter.cloneDeep(e);r(s),this.injectErrorToField({})}},o=>{this._autoScroll(100),a(o)}):(this.data.errors=i,this.injectErrorToField(i),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),a(i));else{const o=this._adapter.cloneDeep(e);r(o),this.injectErrorToField({})}})}_fieldsValidate(e){const{values:t}=this.data;return new Promise((r,a)=>{let i=[];const o=this._getOperateFieldMap(e);o.forEach((s,l)=>{const u=this.getValue(l),c={notNotify:!0,notUpdate:!0},d=s.fieldApi.validate(u,c);i.push(d),s.fieldApi.setTouched(!0,c)}),Promise.all(i).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();const s=this.getError();if(this._isValid(o)){const l=this._adapter.cloneDeep(t);r(l)}else this._autoScroll(),a(s)})})}submit(e){const{values:t}=this.data;this.validate().then(r=>{const a=this._adapter.cloneDeep(r);this._adapter.notifySubmit(a,e)}).catch(r=>{const a=this._adapter.cloneDeep(r),i=this._adapter.cloneDeep(t);this._adapter.notifySubmitFail(a,i,e)})}_getNestedField(e){const t=this.fields,r=[...t].map(i=>i[0]);let a=new Map;return r.forEach(i=>{let o=Y1(i),s=Y1(e);if(s.every((l,u)=>s[u]===o[u])){const l=t.get(i);a.set(i,l)}}),a}_getOperateFieldMap(e){let t=new Map;return Vt(e)?t=this.fields:e.forEach(r=>{const a=this.fields.get(r);if(Vt(a)){const i=this._getNestedField(r);t=new Map([...t,...i])}else t.set(r,a)}),t}reset(e){this._getOperateFieldMap(e).forEach(r=>{r.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{const a=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,a,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(e){this.fields.forEach(t=>{const r=Ea(e,t.field),a={notNotify:!0,notUpdate:!0};t.fieldApi.setError(r,a)})}getValue(e,t){const r=typeof e>"u",a=t&&t.needClone;let i,o;switch(!0){case(!r&&!a):i=Ea(this.data.values,e);break;case(!r&&a):o=Ea(this.data.values,e),i=this._adapter.cloneDeep(o);break;case(r&&!a):i=Object.assign({},this.data.values);break;case(r&&a):i=this._adapter.cloneDeep(this.data.values);break}return i}setValues(e,t){let{isOverride:r=!1}=t;const a=this._adapter.cloneDeep(e);this.fields.forEach(i=>{const o=Ea(a,i.field),s={notNotify:!0,notUpdate:!0};i.fieldApi.setValue(o,s)}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(o=>{this.updateArrayField(o,{updateKey:new Date().valueOf()})}),r&&(this.data.values=a),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},e)),this._adapter.forceUpdate()}updateStateValue(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate,s=r&&r.fieldAllowEmpty,l=this.getProp("allowEmpty"),u=s||l;v5(this.data.values,e,t,u),i||(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[e]:t})),o||this._adapter.forceUpdate(a)}getTouched(e){return typeof e>"u"?this.data.touched:Ea(this.data.touched,e)}updateStateTouched(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.touched,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getError(e){return typeof e>"u"?this.data.errors:Ea(this.data.errors,e)}updateStateError(e,t,r,a){const i=r&&r.notNotify,o=r&&r.notUpdate;v5(this.data.errors,e,t),i||this._adapter.notifyChange(this.data),o||this._adapter.forceUpdate(a)}getFieldSetterApi(){return{setValue:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setValue(l,o):(this.updateStateValue(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.values,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setValue(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setError:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0,l=this._adapter.cloneDeep(i);s?s.setError(l,o):(this.updateStateError(a,l,o,()=>{let u=this._getNestedField(a);u.size&&u.forEach(c=>{let d=c.field,f=Ea(this.data.errors,d),h={notNotify:!0,notUpdate:!0};c.fieldApi.setError(f,h)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))},setTouched:(a,i,o)=>{const s=this.fields.get(a)?this.fields.get(a).fieldApi:void 0;s?s.setTouched(i,o):(this.updateStateTouched(a,i,o,()=>{let l=this._getNestedField(a);l.size&&l.forEach(u=>{let c=u.field,d=Ea(this.data.touched,c),f={notNotify:!0,notUpdate:!0};u.fieldApi.setTouched(d,f)})}),this.getArrayField(a)&&this.updateArrayField(a,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){const e=this.getFieldSetterApi();return Object.assign(Object.assign({},e),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,r)=>this.setValues(t,r||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,r)=>this.scrollToField(t,r)})}getFormState(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(e){let t=!0;return e?[...e.keys()].forEach(a=>{const i=Ea(this.data.errors,a);nf(i)||(t=!1)}):t=!!a6e(this.data.errors),t}getInitValues(){return this._adapter.getInitValues()}getInitValue(e){return typeof e>"u"?this._adapter.getInitValues():Ea(this._adapter.getInitValues(),e)}getFormProps(e){return this._adapter.getFormProps(e)}getFieldExist(e){return!!this.fields.has(e)}_autoScroll(e){const{autoScrollToError:t}=this.getFormProps();if(!t)return;let r={behavior:"smooth",block:"start"};typeof t=="object"&&(r=t),e?setTimeout(()=>this._getErrorFieldAndScroll(r),100):this._getErrorFieldAndScroll(r)}_getErrorFieldAndScroll(e){const t=this._adapter.getAllErrorDOM();if(t&&t.length)try{const r=t[0].parentNode.parentNode;LL(r,e)}catch{}}scrollToField(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(e)){const r=this._adapter.getFieldDOM(e);LL(r,t)}}}const S9=x.createContext({});S9.displayName="FormState";const EQ=x.createContext({});EQ.displayName="FormApi";const b0=x.createContext({});b0.displayName="FormUpdater";const $$e=x.createContext({shouldUseInitValue:!0}),z5=tu.PREFIX;class _0 extends D.PureComponent{generatorText(e){const{helpTextId:t,errorMessageId:r}=this.props,a=this.props.error;let i=r;if(a||(i=t),typeof e=="string")return x.createElement("span",{id:i},e);if(Array.isArray(e)){const o=e.filter(s=>s);return o.length?x.createElement("span",{id:i},o.join(", ")):null}else if(x.isValidElement(e))return e;return null}render(){const{error:e,className:t,style:r,validateStatus:a,helpText:i,showValidateIcon:o,isInInputGroup:s}=this.props,l=$({[z5+"-field-error-message"]:!!e,[z5+"-field-help-text"]:!!i},t);if(!e&&!i)return null;const u={warning:x.createElement(Ow,null),error:x.createElement(z1,null)},c=e?this.generatorText(e):this.generatorText(i),d=`${z5}-field-validate-status-icon`;let f=null;return s?f=x.createElement(z1,{className:d}):u[a]&&(f=x.cloneElement(u[a],{className:d})),x.createElement("div",{className:l,style:r},o&&c?f:null,c)}}_0.propTypes={error:v.oneOfType([v.bool,v.string,v.array,v.node]),className:v.string,style:v.object,validateStatus:v.string,showValidateIcon:v.bool,helpText:v.node,isInInputGroup:v.bool,errorMessageId:v.string,helpTextId:v.string};var V$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{let e,t,r,a,i,o="top";try{const S=D.useContext(b0).getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol"]);e=S.labelCol,t=S.wrapperCol,r=S.labelWidth,a=S.labelAlign,o=S.labelPosition?S.labelPosition:o}catch{}n.labelPosition&&(o=n.labelPosition);let{children:s,label:l,className:u,style:c,error:d,noLabel:f}=n;V$e(n,["children","label","className","style","error","noLabel"]);const h=e&&t,p=$({[`${Uv}-field`]:!0,[`${Uv}-slot`]:!0},u),g=$({[`${Uv}-col-${a}`]:!0});switch(!0){case(oa(l)&&!x.isValidElement(l)):break;case(Xe(l)||Rn(l)):l={text:l};break;case x.isValidElement(l):l={text:l};break}let m=null;if(typeof d!==void 0){let _={};switch(!0){case(oa(d)&&!x.isValidElement(d)):_=d;break;case(Xe(d)||Rn(d)):_={error:d};break;case x.isValidElement(d):_={error:d};break}m=x.createElement(_0,Object.assign({},_))}let y=Object.assign({align:a,width:r},l),b=$({[`${Uv}-field-main`]:!0,[`${Uv}-slot-main`]:!0});switch(!0){case(!h&&!f):i=x.createElement(x.Fragment,null,x.createElement(Ys,Object.assign({},y)),x.createElement("div",{className:b},s,m));break;case(!h&&f):i=x.createElement(x.Fragment,null,x.createElement("div",{className:b},s,m));break;case(h&&o==="top"):i=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y)))),x.createElement(ii,null,s,m));break;case(h&&o!=="top"):i=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},e,{className:g}),x.createElement(Ys,Object.assign({},y))),x.createElement(ii,null,s,m));break}return x.createElement("div",{className:p,"x-label-pos":o,style:c},i)},z$e=j$e,YF=tu.PREFIX;class OQ extends D.PureComponent{render(){const{text:e,className:t,style:r,children:a}=this.props,i=$({[YF+"-section"]:!0},t),o=YF+"-section-text";return x.createElement("section",{className:i,style:r},x.createElement("h5",{className:o},e),a)}}OQ.propTypes={text:v.node,className:v.string,style:v.object,children:v.node};function IQ(){return D.useContext(S9)}function B$e(){return D.useContext(b0)}function B5(n){const e=D.useRef(),[t,r]=D.useState(n);return e.current=t,[t,o=>{e.current=o,r(o)},()=>e.current]}function H$e(){return D.useContext($$e)}var U$e=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a{const{fieldSet:e}=n,t=IQ(),r=e.map(a=>Ea(t.errors,a));return nf(r)?null:x.createElement(_0,{error:r,showValidateIcon:n.showValidateIcon,isInInputGroup:n.isInInputGroup})};class PQ extends D.Component{renderLabel(e,t){return e?Xe(e)?x.createElement(Ys,{width:t.labelWidth,text:e}):x.createElement(Ys,Object.assign({width:t.labelWidth},e)):null}render(){const e=this.props,{children:t,label:r,extraText:a,extraTextPosition:i}=e,o=U$e(e,["children","label","extraText","extraTextPosition"]),l=this.context.getFormProps(["labelPosition","labelWidth","labelAlign","showValidateIcon","wrapperCol","labelCol","disabled"]),u=this.props.labelPosition||l.labelPosition,c=[],d=x.Children.map(t,E=>E&&E.props&&E.props.field?(c.push(E.props.field),x.cloneElement(E,{isInInputGroup:!0})):null),f=$({[`${Dh}-field-group`]:!0}),h=l.labelCol,p=l.wrapperCol,g=l.labelAlign,m=h&&p,y=h?`${Dh}-col-${g}`:"",b=this.renderLabel(r,l),_=x.createElement(OA,Object.assign({disabled:l.disabled},o),d),S=x.createElement(W$e,{fieldSet:c,showValidateIcon:l.showValidateIcon,isInInputGroup:!0}),C=$(`${Dh}-field-extra`,{[`${Dh}-field-extra-string`]:typeof a=="string",[`${Dh}-field-extra-middle`]:i==="middle",[`${Dh}-field-extra-bottom`]:i==="bottom"}),w=a?x.createElement("div",{className:C,"x-semi-prop":"extraText"},a):null;let T;switch(!0){case!m:T=x.createElement(x.Fragment,null,b,x.createElement("div",null,i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u==="top"):T=x.createElement(x.Fragment,null,x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},h,{className:y}),b)),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break;case(m&&u!=="top"):T=x.createElement(x.Fragment,null,x.createElement(ii,Object.assign({},h,{className:y}),b),x.createElement(ii,Object.assign({},p),i==="middle"?w:null,_,i==="bottom"?w:null,S));break}return x.createElement("div",{"x-label-pos":u,className:f},T)}}PQ.contextType=b0;const G$e=PQ,ms=tu.PREFIX,H5=typeof window<"u"?D.useLayoutEffect:D.useEffect;function $r(n,e){let t=(r,a)=>{let{field:i,label:o,labelPosition:s,labelWidth:l,labelAlign:u,labelCol:c,wrapperCol:d,noLabel:f,noErrorMessage:h,isInInputGroup:p,initValue:g,validate:m,validateStatus:y,trigger:b,allowEmptyString:_,allowEmpty:S,emptyValue:C,rules:w,required:T,keepState:E,transform:O,name:I,fieldClassName:P,fieldStyle:A,convert:R,stopValidateWithError:L,helpText:k,extraText:N,extraTextPosition:z,pure:F,id:j,rest:U}=N$e(r),{options:G,shouldInject:Y}=k$e(e,r);if(_n(typeof i>"u"&&G.shouldInject,"[Semi Form]: 'field' is required, please check your props of Field Component"),!Y)return x.createElement(n,Object.assign({},U,{ref:a}));IQ();const Q=B$e();if(!Q.getFormProps)return _n(!0,"[Semi Form]: Field Component must be use inside the Form, please check your dom declaration"),null;let Z=Q.getFormProps(["labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","disabled","showValidateIcon","extraTextPosition","stopValidateWithError","trigger"]),ae=s||Z.labelPosition,se=l||Z.labelWidth,ee=u||Z.labelAlign,ne=c||Z.labelCol,re=d||Z.wrapperCol,te=z||Z.extraTextPosition||"bottom",oe=L$e(L,Z.stopValidateWithError,!1),pe=R$e(b,Z.trigger),We=typeof i<"u"?Q.getValue(i):void 0,Ce=typeof g<"u"?g:We,Je;try{Je=H$e(),Je&&(Ce=Je.shouldUseInitValue&&typeof g<"u"?g:We)}catch{}const[Ve,Rt,$n]=B5(typeof Ce!==void 0?Ce:null),Vn=pe.includes("mount");S=S||Q.getFormProps().allowEmpty;const[on,wn,mi]=B5(),[Ba,vu]=D.useState(),[mh,yh,fs]=B5(0),[qr,Vr]=D.useState(y),hs=D.useRef(w),Qr=D.useRef(m),Hi=D.useRef(null),ps=(ut,tn)=>{vu(ut),Q.updateStateTouched(i,ut,tn)},ba=(ut,tn)=>{ut!==mi()&&(wn(ut),Q.updateStateError(i,ut,tn),nf(ut)?Vr("success"):Vr("error"))},hl=(ut,tn)=>{Rt(ut);let Hn=Object.assign(Object.assign({},tn),{allowEmpty:S});Q.updateStateValue(i,ut,Hn)},mu=()=>{let ut={notNotify:!0,notUpdate:!0};hl(Ce!==null?Ce:void 0,ut),ba(void 0,ut),ps(void 0,ut),Vr("default")},pl=(ut,tn)=>{let Hn=hs.current||[];const nn=A$e(i,Hn),Ir={[i]:ut},sn=new Promise((vn,ST)=>{nn.validate(Ir,{first:oe},(vl,ml)=>{}).then(vl=>{Hi.current===sn&&(Vr("success"),ba(void 0,tn),vn({}))}).catch(vl=>{if(Hi.current!==sn)return;let{errors:ml,fields:G0}=vl;if(ml&&G0){let ed=ml.map(xv=>xv.message);ed.length===1&&(ed=ed[0]),ba(ed,tn),nf(ed)||(Vr("error"),vn(ml))}else throw Vr("error"),ba(vl.message,tn),vn(vl.message),vl})});return Hi.current=sn,sn},qc=(ut,tn,Hn)=>{const nn=new Promise(Ir=>{let sn;try{sn=Qr.current(ut,tn)}catch(vn){sn=vn}sn===void 0?(Ir({}),ba(void 0,Hn)):$f(sn)?sn.then(vn=>{Hi.current===nn&&(nf(vn)?(ba(void 0,Hn),Ir(null)):(ba(vn,Hn),Ir(vn)))}):nf(sn)?(ba(void 0,Hn),Ir(null)):(ba(sn,Hn),Ir(sn))});return Hi.current=nn,nn},gs=(ut,tn)=>{let Hn=ut,nn=hs.current;return O&&(Hn=O(ut)),Qr.current?qc(Hn,Q.getValue(),tn):nn?pl(Hn,tn):null},Qc=function(ut,tn){if(G.onKeyChangeFnName in r&&typeof r[G.onKeyChangeFnName]=="function"){for(var nn=arguments.length,Ir=new Array(nn>2?nn-2:0),sn=2;sn{hs.current=w,Qr.current=m},[w,m]),H5(()=>{Vn&&gs(Ve)},[]),H5(()=>{if(typeof i>"u")return()=>{};const ut=$n();return Q.register(i,{value:ut,error:on,touched:Ba,status:qr},{field:i,fieldApi:jn,keepState:E,allowEmpty:S||_}),()=>{Q.unRegister(i)}},[i]);const zn=j||i,Bn=`${zn}-label`,pr=`${zn}-helpText`,Or=`${zn}-extraText`,gl=`${zn}-errormessage`,Ha=()=>{let ut=y||qr;const tn=$(`${ms}-field-extra`,{[`${ms}-field-extra-string`]:typeof N=="string",[`${ms}-field-extra-middle`]:te==="middle",[`${ms}-field-extra-bottom`]:te==="bottom"}),Hn=N?x.createElement("div",{className:tn,id:Or,"x-semi-prop":"extraText"},N):null;let nn=Object.assign(Object.assign({id:zn,disabled:Z.disabled},U),{ref:a,onBlur:In,[G.onKeyChangeFnName]:Qc,[G.valueKey]:Ve,validateStatus:ut,"aria-required":T,"aria-labelledby":Bn});I&&(nn.name=I),k&&(nn["aria-describedby"]=N?`${pr} ${Or}`:pr),N&&(nn["aria-describedby"]=k?`${pr} ${Or}`:Or),qr==="error"&&(nn["aria-errormessage"]=gl,nn["aria-invalid"]=!0);const Ir=$({[`${ms}-field`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P}),sn=$({[`${ms}-field-main`]:!0});ae==="inset"&&!f&&(nn.insetLabel=o||i,nn.insetLabelId=Bn,typeof o=="object"&&!xO(o)&&(nn.insetLabel=o.text,nn.insetLabelId=Bn));const vn=x.createElement(n,Object.assign({},nn));if(p)return vn;if(F){let xv=$(U.className,{[`${ms}-field-pure`]:!0,[`${ms}-field-${I}`]:!!I,[P]:!!P});return nn.className=xv,x.createElement(n,Object.assign({},nn))}let ST=ne&&re;const vl=ee?`${ms}-col-${ee}`:"";let ml=null;if(!f&&ae!=="inset"){let xv=typeof o=="object"&&!xO(o)?o:{};ml=x.createElement(Ys,Object.assign({text:o||i,id:Bn,required:T,name:zn||I||i,width:se,align:ee},xv))}const G0=x.createElement("div",{className:sn},te==="middle"?Hn:null,vn,h?null:x.createElement(_0,{error:on,validateStatus:ut,helpText:k,helpTextId:pr,errorMessageId:gl,showValidateIcon:Z.showValidateIcon}),te==="bottom"?Hn:null),ed=x.createElement(x.Fragment,null,ae==="top"?x.createElement("div",{style:{overflow:"hidden"}},x.createElement(ii,Object.assign({},ne,{className:vl}),ml)):x.createElement(ii,Object.assign({},ne,{className:vl}),ml),x.createElement(ii,Object.assign({},re),G0));return x.createElement("div",{className:Ir,style:A,"x-label-pos":ae,"x-field-id":i,"x-extra-pos":te},ST?ed:x.createElement(x.Fragment,null,ml,G0))},Jc=[...Object.values(sr),...Object.values(r),i,ae,ee,Z.disabled];return G.shouldMemo?D.useMemo(Ha,[...Jc]):Ha()};return t=D.forwardRef(t),t.displayName=D$e(n),t}const Y$e=$r(Ri,{maintainCursor:!0}),K$e=$r(Tq,{maintainCursor:!0}),Z$e=$r(c8e,{maintainCursor:!0}),C9=$r(g0);C9.Option=g0.Option;C9.OptGroup=g0.OptGroup;const X$e=$r(nA),q$e=$r(Ff,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),Q$e=$r(Mq,{valuePath:"target.value"}),J$e=$r(q1,{valueKey:"checked",valuePath:"target.checked",shouldInject:!1}),eVe=$r(u9e),tVe=$r(kq,{valueKey:"checked"}),nVe=$r(zA),rVe=$r(h9),aVe=$r(kFe),iVe=$r(BDe),oVe=$r(ix),sVe=$r(nEe,{valueKey:"value",onKeyChangeFnName:"onChange"}),lVe=$r(JFe,{valueKey:"fileList",valuePath:"fileList",onKeyChangeFnName:"onChange"}),uVe=$r(dA);var cVe=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a and
in ths same time; will be ignored"),_n(e.component&&e.children&&!bk(e.children),"[Semi Form] You should not use and {children}
in ths same time;
{children}
will be ignored"),_n(e.render&&e.children&&!bk(e.children),"[Semi Form] You should not use
and {children}
in ths same time;
{children}
will be ignored"),this.submit=this.submit.bind(this),this.reset=this.reset.bind(this),this.foundation=new F$e(this.adapter),this.formApi=this.foundation.getFormApi(),this.props.getFormApi&&this.props.getFormApi(this.formApi)}componentDidMount(){this.foundation.init()}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{cloneDeep:ti,notifySubmit:(e,t)=>{this.props.onSubmit(e,t)},notifySubmitFail:(e,t,r)=>{this.props.onSubmitFail(e,t,r)},forceUpdate:e=>{this.forceUpdate(e)},notifyChange:e=>{this.props.onChange(e)},notifyValueChange:(e,t)=>{this.props.onValueChange(e,t)},notifyReset:()=>{this.props.onReset()},initFormId:()=>{this.setState({formId:q_()})},getInitValues:()=>this.props.initValues,getFormProps:e=>{if(typeof e>"u")return this.props;if(typeof e=="string")return this.props[e];{const t={};return e.forEach(r=>{t[r]=this.props[r]}),t}},getAllErrorDOM:()=>{const{formId:e}=this.state,{id:t}=this.props,r=t||e;return document.querySelectorAll(`form[x-form-id="${r}"] .${tu.PREFIX}-field-error-message`)},getFieldDOM:e=>document.querySelector(`.${tu.PREFIX}-field[x-field-id="${e}"]`)})}get content(){const{children:e,component:t,render:r}=this.props,a=this.foundation.getFormState(),i={formState:a,formApi:this.foundation.getFormApi(),values:a.values};return t?x.createElement(t,i):r?r(i):typeof e=="function"?e(i):e}submit(e){e.preventDefault(),this.foundation.submit(e)}reset(e){e.preventDefault(),this.foundation.reset()}render(){const t=this.foundation.getFormState(!1),r=this.foundation.getModifyFormStateApi(),{formId:a}=this.state,i=this.props,{children:o,getFormApi:s,onChange:l,onSubmit:u,onSubmitFail:c,onValueChange:d,component:f,render:h,validateFields:p,initValues:g,layout:m,style:y,className:b,labelPosition:_,labelWidth:S,labelAlign:C,labelCol:w,wrapperCol:T,allowEmpty:E,autoScrollToError:O,showValidateIcon:I,stopValidateWithError:P,extraTextPosition:A,id:R,trigger:L}=i,k=cVe(i,["children","getFormApi","onChange","onSubmit","onSubmitFail","onValueChange","component","render","validateFields","initValues","layout","style","className","labelPosition","labelWidth","labelAlign","labelCol","wrapperCol","allowEmpty","autoScrollToError","showValidateIcon","stopValidateWithError","extraTextPosition","id","trigger"]),N=$(U5,b,{[U5+"-vertical"]:m==="vertical",[U5+"-horizontal"]:m==="horizontal"}),z=T&&w,F=x.createElement("form",Object.assign({style:y},k,{onReset:this.reset,onSubmit:this.submit,className:N,"x-form-id":R||a}),this.content),j=x.createElement(FI,null,F);return x.createElement(b0.Provider,{value:r},x.createElement(EQ.Provider,{value:this.formApi},x.createElement(S9.Provider,{value:t},z?j:F)))}}gn.propTypes={"aria-label":v.string,onSubmit:v.func,onSubmitFail:v.func,onChange:v.func,onReset:v.func,onValueChange:v.func,autoScrollToError:v.oneOfType([v.bool,v.object]),allowEmpty:v.bool,className:v.string,component:v.oneOfType([v.node,v.func]),disabled:v.bool,extraTextPosition:v.oneOf(Om.EXTRA_POS),getFormApi:v.func,initValues:v.object,validateFields:v.func,layout:v.oneOf(Om.LAYOUT),labelPosition:v.oneOf(Om.LABEL_POS),labelWidth:v.oneOfType([v.number,v.string]),labelAlign:v.oneOf(Om.LABEL_ALIGN),labelCol:v.object,render:v.func,style:v.object,showValidateIcon:v.bool,stopValidateWithError:v.bool,id:v.string,wrapperCol:v.object,trigger:v.oneOfType([v.oneOf(["blur","change","custom","mount"]),v.arrayOf(v.oneOf(["blur","change","custom","mount"]))])};gn.defaultProps={onChange:B,onSubmitFail:B,onSubmit:B,onReset:B,onValueChange:B,layout:"vertical",labelPosition:"top",allowEmpty:!1,autoScrollToError:!1,showValidateIcon:!0};gn.Input=Y$e;gn.TextArea=Z$e;gn.InputNumber=K$e;gn.Select=C9;gn.Checkbox=q$e;gn.CheckboxGroup=X$e;gn.Radio=J$e;gn.RadioGroup=Q$e;gn.DatePicker=eVe;gn.TimePicker=rVe;gn.Switch=tVe;gn.Slider=nVe;gn.TreeSelect=aVe;gn.Cascader=iVe;gn.Rating=oVe;gn.AutoComplete=sVe;gn.Upload=lVe;gn.TagInput=uVe;gn.Slot=z$e;gn.ErrorMessage=_0;gn.InputGroup=G$e;gn.Label=Ys;gn.Section=OQ;const Ze=gn,dVe="_main_1w0iy_1",fVe="_login_1w0iy_8",hVe="_component66_1w0iy_20",pVe="_logo_1w0iy_28",gVe="_header_1w0iy_33",vVe="_title_1w0iy_41",mVe="_text_1w0iy_50",yVe="_form_1w0iy_59",bVe="_inputs_1w0iy_67",_Ve="_button_1w0iy_75",SVe="_oauth_1w0iy_79",Ca={main:dVe,login:fVe,component66:hVe,logo:pVe,header:gVe,title:vVe,text:mVe,form:yVe,inputs:bVe,button:_Ve,oauth:SVe,undefined:"_undefined_1w0iy_88"},DQ={Error:{Network:"The network has wandered off, please try again later!"},Dashboard:{QPH:"QPH",QPHTip:"The number of queries in the past hour.",QPS:"Avg. QPS",QPSTip:"Average number of queries per second in the past hour.",QPM:"Avg. QPM",QPMTip:"Average number of queries per minute in the past hour.",Backends:"Backends",BackendsOffline:"Backends Offline",BackendsOnline:"Backends Online",StartTime:"Started At",Summary:"Summary",QueryDistribution:"Query Distribution in last hour.",QueryCount:"Query Count"},History:{RoutedToTip:"Default All",QueryIdTip:"Default All"},Menu:{Header:{PersonalCenter:"Profile",Logout:"Logout"},Sider:{Dashboard:"Dashboard",Cluster:"Cluster",History:"History",ResourceGroup:"Resource Group",Selector:"Selector"}},Auth:{LoginTitle:"Welcome",tips:{tip1:"Sign in",tip2:" Trino Gateway ",tip3:"Account"},Username:"Username",Password:"Password",PasswordTip:"Input password",UsernameTip:"Input username",Login:"Sign in",OAuth2:"Sign in with External Authentication",NoneAuthTip:"Password not allowed",LoginSuccess:"Login Success",Expiration:"Login has expired, please log in again",LogoutSuccess:"Logout Success"},Copy:{Success:"Copied to clipboard",Failed:"Copy failed, please grant permission to access clipboard"},UI:{Confirm:"Confirm",Cancel:"Cancel",Close:"Close",Create:"Create",Edit:"Edit",Delete:"Delete",DeleteTitle:"Are you sure you want to delete?",DeleteContent:"Once deleted, it cannot be recovered!",Query:"Query"}};function AQ(n,e){Object.keys(e).forEach(function(t){if(e[t]&&typeof e[t]=="object"){AQ(n[t]=n[t]||{},e[t]);return}n[t]=e[t]})}const CVe={code:"en-US",dateFnsLocale:M7,Pagination:{pageSize:"Items per page: ${pageSize}",total:"Total pages: ${total}",jumpTo:"Jump to",page:" page"},Modal:{confirm:"Confirm",cancel:"Cancel"},TimePicker:{placeholder:{time:"Select time",timeRange:"Select a time range"},begin:"Start Time",end:"End Time",hour:"",minute:"",second:"",AM:"AM",PM:"PM"},DatePicker:{placeholder:{date:"Select date",dateTime:"Select date and time",dateRange:["Start date","End date"],dateTimeRange:["Start date","End date"],monthRange:["Start month","End month"]},presets:"Presets",footer:{confirm:"Confirm",cancel:"Cancel"},selectDate:"Select Date",selectTime:"Select Time",year:"year",month:"month",day:"day",monthText:"${month} ${year}",months:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},fullMonths:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"},weeks:{Mon:"Mon",Tue:"Tue",Wed:"Wed",Thu:"Thu",Fri:"Fri",Sat:"Sat",Sun:"Sun"},localeFormatToken:{FORMAT_SWITCH_DATE:"MM/dd/yyyy"}},Popconfirm:{confirm:"Confirm",cancel:"Cancel"},Navigation:{collapseText:"Collapse Sidebar",expandText:"Expand Sidebar"},Table:{emptyText:"No Result",pageText:"Showing ${currentStart} to ${currentEnd} of ${total}"},Select:{emptyText:"No Result",createText:"Create"},Cascader:{emptyText:"No Result"},Tree:{emptyText:"No Result",searchPlaceholder:"Search"},List:{emptyText:"No Result"},Calendar:{allDay:"All Day",AM:"${time} AM",PM:"${time} PM",datestring:"",remaining:"${remained} more"},Upload:{mainText:"Click to Upload File or Drag File to here",illegalTips:"This type of file is not supported",legalTips:"Release and start uploading",retry:"Retry",replace:"Replace File",clear:"Clear",selectedFiles:"Selected Files",illegalSize:"Illegal file size",fail:"Upload fail"},TreeSelect:{searchPlaceholder:"Search"},Typography:{copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Transfer:{emptyLeft:"No Data",emptySearch:"No search results",emptyRight:"No content, check from the left",placeholder:"Search",clear:"Clear",selectAll:"Select all",clearSelectAll:"Unselect all",total:"Total items: ${total}",selected:"Items selected: ${total}"},Form:{optional:"(optional)"},Image:{preview:"Preview",loading:"Loading",loadError:"Failed to load",prevTip:"Previous",nextTip:"Next",zoomInTip:"Zoom in",zoomOutTip:"Zoom out",rotateTip:"Rotate",downloadTip:"Download",adaptiveTip:"Adapt to the page",originTip:"Original size"}},wVe=CVe,MQ={en_US:DQ},KF=Object.keys(MQ),xVe={en_US:"en_US"},TVe={en_US:wVe},EVe="lang",RQ="en_US",ve=DQ,OVe=MQ[w9()];AQ(ve,OVe);function IVe(n){try{return localStorage.getItem(n)}catch{return null}}function PVe(){try{return navigator.language.toLowerCase()}catch{return RQ}}function w9(){const n=IVe(EVe);if(KF.includes(n??""))return n;const e=PVe();for(const t of KF)if(e.includes(t))return t;return RQ}function DVe(){return xVe[w9()]}function AVe(){return TVe[w9()]}var MVe={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ZF=n=>{let e;const t=new Set,r=(l,u)=>{const c=typeof l=="function"?l(e):l;if(!Object.is(c,e)){const d=e;e=u??typeof c!="object"?c:Object.assign({},e,c),t.forEach(f=>f(e,d))}},a=()=>e,s={setState:r,getState:a,subscribe:l=>(t.add(l),()=>t.delete(l)),destroy:()=>{(MVe&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}};return e=n(r,a,s),s},RVe=n=>n?ZF(n):ZF;var LQ={exports:{}},kQ={},NQ={exports:{}},FQ={};/** - * @license React - * use-sync-external-store-shim.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mg=D;function LVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var kVe=typeof Object.is=="function"?Object.is:LVe,NVe=mg.useState,FVe=mg.useEffect,$Ve=mg.useLayoutEffect,VVe=mg.useDebugValue;function jVe(n,e){var t=e(),r=NVe({inst:{value:t,getSnapshot:e}}),a=r[0].inst,i=r[1];return $Ve(function(){a.value=t,a.getSnapshot=e,W5(a)&&i({inst:a})},[n,t,e]),FVe(function(){return W5(a)&&i({inst:a}),n(function(){W5(a)&&i({inst:a})})},[n]),VVe(t),t}function W5(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!kVe(n,t)}catch{return!0}}function zVe(n,e){return e()}var BVe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?zVe:jVe;FQ.useSyncExternalStore=mg.useSyncExternalStore!==void 0?mg.useSyncExternalStore:BVe;NQ.exports=FQ;var HVe=NQ.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Sx=D,UVe=HVe;function WVe(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var GVe=typeof Object.is=="function"?Object.is:WVe,YVe=UVe.useSyncExternalStore,KVe=Sx.useRef,ZVe=Sx.useEffect,XVe=Sx.useMemo,qVe=Sx.useDebugValue;kQ.useSyncExternalStoreWithSelector=function(n,e,t,r,a){var i=KVe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=XVe(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return d=p}return d=h}if(p=d,GVe(c,h))return p;var g=r(h);return a!==void 0&&a(p,g)?p:(c=h,d=g)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,t,r,a]);var s=YVe(n,i[0],i[1]);return ZVe(function(){o.hasValue=!0,o.value=s},[s]),qVe(s),s};LQ.exports=kQ;var QVe=LQ.exports;const JVe=Ie(QVe);var eje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useSyncExternalStoreWithSelector:tje}=JVe;function nje(n,e=n.getState,t){const r=tje(n.subscribe,n.getState,n.getServerState||n.getState,e,t);return D.useDebugValue(r),r}const XF=n=>{(eje&&"production")!=="production"&&typeof n!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const e=typeof n=="function"?RVe(n):n,t=(r,a)=>nje(e,r,a);return Object.assign(t,e),t},$Q=n=>n?XF(n):XF;var rje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function aje(n,e){let t;try{t=n()}catch{return}return{getItem:a=>{var i;const o=l=>l===null?null:JSON.parse(l,e==null?void 0:e.reviver),s=(i=t.getItem(a))!=null?i:null;return s instanceof Promise?s.then(o):o(s)},setItem:(a,i)=>t.setItem(a,JSON.stringify(i,e==null?void 0:e.replacer)),removeItem:a=>t.removeItem(a)}}const ey=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(r){return ey(r)(t)},catch(r){return this}}}catch(t){return{then(r){return this},catch(r){return ey(r)(t)}}}},ije=(n,e)=>(t,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...e},o=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return n((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...m)},r,a);const c=ey(i.serialize),d=()=>{const m=i.partialize({...r()});let y;const b=c({state:m,version:i.version}).then(_=>u.setItem(i.name,_)).catch(_=>{y=_});if(y)throw y;return b},f=a.setState;a.setState=(m,y)=>{f(m,y),d()};const h=n((...m)=>{t(...m),d()},r,a);let p;const g=()=>{var m;if(!u)return;o=!1,s.forEach(b=>b(r()));const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,r()))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)return i.deserialize(b)}).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return p=i.merge(b,(_=r())!=null?_:h),t(p,!0),d()}).then(()=>{y==null||y(p,void 0),o=!0,l.forEach(b=>b(p))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:m=>{i={...i,...m},m.getStorage&&(u=m.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},g(),p||h},oje=(n,e)=>(t,r,a)=>{let i={storage:aje(()=>localStorage),partialize:g=>g,version:0,merge:(g,m)=>({...m,...g}),...e},o=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return n((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),t(...g)},r,a);const c=()=>{const g=i.partialize({...r()});return u.setItem(i.name,{state:g,version:i.version})},d=a.setState;a.setState=(g,m)=>{d(g,m),c()};const f=n((...g)=>{t(...g),c()},r,a);let h;const p=()=>{var g,m;if(!u)return;o=!1,s.forEach(b=>{var _;return b((_=r())!=null?_:f)});const y=((m=i.onRehydrateStorage)==null?void 0:m.call(i,(g=r())!=null?g:f))||void 0;return ey(u.getItem.bind(u))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate)return i.migrate(b.state,b.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return b.state}).then(b=>{var _;return h=i.merge(b,(_=r())!=null?_:f),t(h,!0),c()}).then(()=>{y==null||y(h,void 0),h=r(),o=!0,l.forEach(b=>b(h))}).catch(b=>{y==null||y(void 0,b)})};return a.persist={setOptions:g=>{i={...i,...g},g.storage&&(u=g.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||p(),h||f},sje=(n,e)=>"getStorage"in e||"serialize"in e||"deserialize"in e?((rje&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),ije(n,e)):oje(n,e),VQ=sje;var x9=(n=>(n.Access="access-control",n.Config="app-config",n))(x9||{}),av=(n=>(n.ADMIN="ADMIN",n.API="API",n.USER="USER",n))(av||{});let G5=0;const $i=$Q()(VQ((n,e)=>({token:"",userId:"",userName:"",nickName:"",userType:"",email:"",phonenumber:"",sex:"",avatar:"",permissions:[],roles:[],updateToken(t){n(()=>({token:t==null?void 0:t.trim()})),e().token&&e().getUserInfo(!0)},isAuthorized(){return e().getUserInfo(),!!e().token},getUserInfo(t=!1){!e().token||!t&&G5>0||(G5=1,hje().then(r=>{n(()=>({...r}))}).catch(()=>{}).finally(()=>{G5=2}))},hasRole(t){return e().roles.includes(t)},hasPermission(t){const r=e().permissions;return console.log(r),console.log(t),t==null||r==null||r.length==0||r.includes(t)}}),{name:x9.Access,version:1,migrate(n,e){return n}}));var Fd=(n=>(n.Auto="auto",n.Dark="dark",n.Light="light",n))(Fd||{});const qF={avatar:"/logo.svg",theme:"auto",fontSize:14,sidebarWidth:270},jQ=$Q()(VQ((n,e)=>({...qF,reset(){n(()=>({...qF}))},update(t){const r={...e()};t(r),n(()=>r)}}),{name:x9.Config,version:1,migrate(n,e){return n}}));var lje={VITE_BASE_URL:"/",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};class uje{async get(e,t={}){let r="";Object.keys(t).length>0&&(r="?"+new URLSearchParams(t).toString());const a=await fetch(this.path(e+r),{headers:Y5(),method:"GET"});if(a.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const i=await a.json();if(i.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(i.code!==200)throw Es.error({content:i.msg,duration:5,theme:"light"}),new Error(i.msg);return i.data}async post(e,t={}){const r=await fetch(this.path(e),{body:JSON.stringify(t),headers:{"Content-Type":"application/json",...Y5()},method:"POST"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code===401)throw Es.error({content:ve.Auth.Expiration,duration:5,theme:"light"}),$i.getState().updateToken(""),new Error(ve.Auth.Expiration);if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}async postForm(e,t=new FormData){const r=await fetch(this.path(e),{body:t,headers:Y5(),method:"POST",redirect:"follow"});if(r.status!==200)throw Es.error({content:ve.Error.Network,duration:5,theme:"light"}),new Error(ve.Error.Network);const a=await r.json();if(a.code!==200)throw Es.error({content:a.msg,duration:5,theme:"light"}),new Error(a.msg);return a.data}path(e){return[lje.VITE_PROXY_PATH,e].join("")}}const Er=new uje;function Y5(){const n=$i.getState(),e={"x-requested-with":"XMLHttpRequest","Content-Language":DVe()},t=a=>`Bearer ${a.trim()}`;return(a=>a&&a.length>0)(n.token)&&(e.Authorization=t(n.token)),e}async function cje(n){return Er.post("/login",n)}async function dje(n){return Er.post("/logout",n)}async function fje(n){return Er.post("/sso",n)}async function hje(){return Er.post("/userinfo",{})}async function pje(){return Er.post("/loginType",{})}function gje(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState({}),[i,o]=D.useState();D.useEffect(()=>{pje().then(u=>{o(u)}).catch(()=>{})},[]);const s=()=>{e&&e.validate(["username","password"]).then(()=>{cje(r).then(u=>{n.updateToken(u.token),Es.success(ve.Auth.LoginSuccess)}).catch(()=>{})}).catch(()=>{})},l=()=>{fje({}).then(u=>{window.location.href=u}).catch(()=>{})};return V.jsx("div",{className:Ca.main,children:V.jsxs("div",{className:Ca.login,children:[V.jsxs("div",{className:Ca.component66,children:[V.jsx("img",{src:"/logo.svg",className:Ca.logo}),V.jsx("div",{className:Ca.header,children:V.jsxs("p",{className:Ca.text,children:[V.jsx("span",{children:ve.Auth.tips.tip1}),V.jsx("span",{children:ve.Auth.tips.tip2}),V.jsx("span",{children:ve.Auth.tips.tip3})]})})]}),i=="form"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",type:"password",placeholder:ve.Auth.PasswordTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i=="oauth"&&V.jsx("div",{className:Ca.oauth,children:V.jsx(Jt,{theme:"solid",className:Ca.button,onClick:l,children:ve.Auth.OAuth2})}),i=="none"&&V.jsx("div",{className:Ca.form,children:V.jsxs(Ze,{className:Ca.inputs,getFormApi:t,onValueChange:u=>a(u),children:[V.jsx(Ze.Input,{label:{text:ve.Auth.Username},field:"username",placeholder:ve.Auth.UsernameTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}]}),V.jsx(Ze.Input,{label:{text:ve.Auth.Password},field:"password",placeholder:ve.Auth.NoneAuthTip,style:{width:"100%"},fieldStyle:{alignSelf:"stretch",padding:0},readonly:!0}),V.jsx(Jt,{theme:"solid",htmlType:"submit",className:Ca.button,onClick:s,children:ve.Auth.Login})]})}),i==null&&V.jsx("div",{className:Ca.undefined,children:V.jsx(Jl,{size:"large"})})]})})}const vje="_header_k9z2y_1",mje="_navigationHeaderLogo_k9z2y_10",yje="_dIV_k9z2y_14",bje="_semiIconsBell_k9z2y_20",_je="_avatar_k9z2y_24",Sje="_sider_k9z2y_29",Cje="_collapsed_k9z2y_34",wje="_nav_k9z2y_10",xje="_icon_k9z2y_52",Tje="_content_k9z2y_57",Eje="_userProfile_k9z2y_69",Oje="_banner_k9z2y_77",Ije="_frame4159_k9z2y_82",Pje="_name_k9z2y_91",Dje="_richardHendricks_k9z2y_97",Aje="_aRichardHendricks_k9z2y_104",Mje="_main_k9z2y_112",Rje="_descriptions_k9z2y_123",Lje="_frame4152_k9z2y_130",kje="_semiIconsMapPin_k9z2y_136",Nje="_value_k9z2y_140",Fje="_tags_k9z2y_147",$je="_tag_k9z2y_147",Vje="_tag1_k9z2y_154",jje="_tag2_k9z2y_155",Ot={header:vje,navigationHeaderLogo:mje,dIV:yje,semiIconsBell:bje,avatar:_je,sider:Sje,collapsed:Cje,nav:wje,icon:xje,content:Tje,userProfile:Eje,banner:Oje,frame4159:Ije,name:Pje,richardHendricks:Dje,aRichardHendricks:Aje,main:Mje,descriptions:Rje,frame4152:Lje,semiIconsMapPin:kje,value:Nje,tags:Fje,tag:$je,tag1:Vje,tag2:jje};function nP(){return nP=Object.assign||function(n){for(var e=1;e"u"&&typeof self<"u"?$d.worker=!0:typeof navigator>"u"?($d.node=!0,$d.svgSupported=!0):aze(navigator.userAgent,$d);function aze(n,e){var t=e.browser,r=n.match(/Firefox\/([\d.]+)/),a=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),i=n.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(n);r&&(t.firefox=!0,t.version=r[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ot=$d;var T9=12,zQ="sans-serif",Ac=T9+"px "+zQ,ize=20,oze=100,sze="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lze(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t=0)s=o*t.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),n.appendChild(o),t.push(o)}return t}function Aze(n,e,t){for(var r=t?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&i&&f===i[d]&&h===i[d+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=t?n$(s,o):n$(o,s))}function KQ(n){return n.nodeName.toUpperCase()==="CANVAS"}var Mze=/([&<>"'])/g,Rze={"&":"&","<":"<",">":">",'"':""","'":"'"};function Qa(n){return n==null?"":(n+"").replace(Mze,function(e,t){return Rze[t]})}var Lze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Z5=[],kze=ot.browser.firefox&&+ot.browser.version.split(".")[0]<39;function pP(n,e,t,r){return t=t||{},r?a$(n,e,t):kze&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):a$(n,e,t),t}function a$(n,e,t){if(ot.domSupported&&n.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(KQ(n)){var i=n.getBoundingClientRect();t.zrX=r-i.left,t.zrY=a-i.top;return}else if(hP(Z5,n,r,a)){t.zrX=Z5[0],t.zrY=Z5[1];return}}t.zrX=t.zrY=0}function M9(n){return n||window.event}function qi(n,e,t){if(e=M9(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pP(n,o,e,t)}else{pP(n,e,e,t);var i=Nze(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Lze.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Nze(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,r=n.deltaY;if(t==null||r==null)return e;var a=Math.abs(r!==0?r:t),i=r>0?-1:r<0?1:t>0?-1:1;return 3*a*i}function gP(n,e,t,r){n.addEventListener(e,t,r)}function Fze(n,e,t,r){n.removeEventListener(e,t,r)}var nu=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function i$(n){return n.which===2||n.which===3}var $ze=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=o$(r)/o$(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Vze(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:n[0].target,event:e}}}}};function wo(){return[1,0,0,1,0,0]}function Ex(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function R9(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function Bl(n,e,t){var r=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=r,n[1]=a,n[2]=i,n[3]=o,n[4]=s,n[5]=l,n}function Js(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function uh(n,e,t){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=r*c+o*u,n[1]=-r*u+o*c,n[2]=a*c+s*u,n[3]=-a*u+c*s,n[4]=c*i+u*l,n[5]=c*l-u*i,n}function L9(n,e,t){var r=t[0],a=t[1];return n[0]=e[0]*r,n[1]=e[1]*a,n[2]=e[2]*r,n[3]=e[3]*a,n[4]=e[4]*r,n[5]=e[5]*a,n}function sv(n,e){var t=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*r;return l?(l=1/l,n[0]=o*l,n[1]=-i*l,n[2]=-r*l,n[3]=t*l,n[4]=(r*s-o*a)*l,n[5]=(i*a-t*s)*l,n):null}function jze(n){var e=wo();return R9(e,n),e}var zze=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,r=this.y-e.y;return Math.sqrt(t*t+r*r)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,r=this.y-e.y;return t*t+r*r},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,r=this.y;return this.x=e[0]*t+e[2]*r+e[4],this.y=e[1]*t+e[3]*r+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,r){e.x=t,e.y=r},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,r){e.x=t.x+r.x,e.y=t.y+r.y},n.sub=function(e,t,r){e.x=t.x-r.x,e.y=t.y-r.y},n.scale=function(e,t,r){e.x=t.x*r,e.y=t.y*r},n.scaleAndAdd=function(e,t,r,a){e.x=t.x+r.x*a,e.y=t.y+r.y*a},n.lerp=function(e,t,r,a){var i=1-a;e.x=i*t.x+a*r.x,e.y=i*t.y+a*r.y},n}();const Le=zze;var Rb=Math.min,Lb=Math.max,id=new Le,od=new Le,sd=new Le,ld=new Le,Wv=new Le,Gv=new Le,Bze=function(){function n(e,t,r,a){r<0&&(e=e+r,r=-r),a<0&&(t=t+a,a=-a),this.x=e,this.y=t,this.width=r,this.height=a}return n.prototype.union=function(e){var t=Rb(e.x,this.x),r=Rb(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lb(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lb(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=t,this.y=r},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,r=e.width/t.width,a=e.height/t.height,i=wo();return Js(i,i,[-t.x,-t.y]),L9(i,i,[r,a]),Js(i,i,[e.x,e.y]),i},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,d=e.y+e.height,f=!(ip&&(p=_,gp&&(p=S,y=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,r){if(!r){e!==t&&n.copy(e,t);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}id.x=sd.x=t.x,id.y=ld.y=t.y,od.x=ld.x=t.x+t.width,od.y=sd.y=t.y+t.height,id.transform(r),ld.transform(r),od.transform(r),sd.transform(r),e.x=Rb(id.x,od.x,sd.x,ld.x),e.y=Rb(id.y,od.y,sd.y,ld.y);var l=Lb(id.x,od.x,sd.x,ld.x),u=Lb(id.y,od.y,sd.y,ld.y);e.width=l-e.x,e.height=u-e.y},n}();const $e=Bze;var ZQ="silent";function Hze(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Uze}}function Uze(){nu(this.event)}var Wze=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(To),Yv=function(){function n(e,t){this.x=e,this.y=t}return n}(),Gze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],q5=new $e(0,0,0,0),XQ=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this)||this;return s._hovered=new Yv(0,0),s.storage=t,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Wze,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Eze(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(M(Gze,function(r){t.on&&t.on(r,this[r],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var r=t.zrX,a=t.zrY,i=qQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Yv(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var r=t.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Yv(0,0)},e.prototype.dispatch=function(t,r){var a=this[t];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var r=this.proxy;r.setCursor&&r.setCursor(t)},e.prototype.dispatchToElement=function(t,r,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+r,s=Hze(r,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(t,r,a){var i=this.storage.getDisplayList(),o=new Yv(t,r);if(s$(i,o,t,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new $e(t-u,r-u,l,l),d=i.length-1;d>=0;d--){var f=i[d];f!==a&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(q5.copy(f.getBoundingRect()),f.transform&&q5.applyTransform(f.transform),q5.intersect(c)&&s.push(f))}if(s.length)for(var h=4,p=Math.PI/12,g=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(i,n,e)}});function Yze(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var r=n,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,t))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?ZQ:!0}return!1}function s$(n,e,t,r,a){for(var i=n.length-1;i>=0;i--){var o=n[i],s=void 0;if(o!==a&&!o.ignore&&(s=Yze(o,t,r))&&(!e.topTarget&&(e.topTarget=o),s!==ZQ)){e.target=o;break}}}function qQ(n,e,t){var r=n.painter;return e<0||e>r.getWidth()||t<0||t>r.getHeight()}const Kze=XQ;var QQ=32,Kv=7;function Zze(n){for(var e=0;n>=QQ;)e|=n&1,n>>=1;return n+e}function l$(n,e,t,r){var a=e+1;if(a===t)return 1;if(r(n[a++],n[e])<0){for(;a=0;)a++;return a-e}function Xze(n,e,t){for(t--;e>>1,a(i,n[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:n[o+3]=n[o+2];case 2:n[o+2]=n[o+1];case 1:n[o+1]=n[o];break;default:for(;u>0;)n[o+u]=n[o+u-1],u--}n[o]=i}}function Q5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(n,e[t+c])>0?o=c+1:l=c}return l}function J5(n,e,t,r,a,i){var o=0,s=0,l=1;if(i(n,e[t+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(n,e[t+c])<0?l=c:o=c+1}return l}function qze(n,e){var t=Kv,r,a,i=0;n.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Kv||T>=Kv);if(E)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),p===1){for(y=0;y=0;y--)n[w+y]=n[C+y];n[S]=o[_];return}for(var T=t;;){var E=0,O=0,I=!1;do if(e(o[_],n[b])<0){if(n[S--]=n[b--],E++,O=0,--p===0){I=!0;break}}else if(n[S--]=o[_--],O++,E=0,--m===1){I=!0;break}while((E|O)=0;y--)n[w+y]=n[C+y];if(p===0){I=!0;break}}if(n[S--]=o[_--],--m===1){I=!0;break}if(O=m-Q5(n[b],o,0,m,m-1,e),O!==0){for(S-=O,_-=O,m-=O,w=S+1,C=_+1,y=0;y=Kv||O>=Kv);if(I)break;T<0&&(T=0),T+=2}if(t=T,t<1&&(t=1),m===1){for(S-=p,b-=p,w=S+1,C=b+1,y=p-1;y>=0;y--)n[w+y]=n[C+y];n[S]=o[_]}else{if(m===0)throw new Error;for(C=S-(m-1),y=0;ys&&(l=s),u$(n,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var Ei=1,Pm=2,tp=4,c$=!1;function e4(){c$||(c$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d$(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Qze=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d$}return n.prototype.traverse=function(e,t){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(e4(),c.z=0),isNaN(c.z2)&&(e4(),c.z2=0),isNaN(c.zlevel)&&(e4(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,t,r);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,r)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,r=e.length;t=0&&this._roots.splice(a,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Jze=Qze;var JQ;JQ=ot.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const vP=JQ;var _2={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)))},elasticOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/r)+1)},elasticInOut:function(n){var e,t=.1,r=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=r/4):e=r*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/r)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-_2.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?_2.bounceIn(n*2)*.5:_2.bounceOut(n*2-1)*.5+.5}};const eJ=_2;var kb=Math.pow,Sc=Math.sqrt,US=1e-8,tJ=1e-4,f$=Sc(3),Nb=1/3,Ls=lh(),io=lh(),Up=lh();function ec(n){return n>-US&&nUS||n<-US}function vr(n,e,t,r,a){var i=1-a;return i*i*(i*n+3*a*e)+a*a*(a*r+3*i*t)}function h$(n,e,t,r,a){var i=1-a;return 3*(((e-n)*i+2*(t-e)*a)*i+(r-t)*a*a)}function WS(n,e,t,r,a,i){var o=r+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-a,c=s*s-3*o*l,d=s*l-9*o*u,f=l*l-3*s*u,h=0;if(ec(c)&&ec(d))if(ec(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var g=d*d-4*c*f;if(ec(g)){var m=d/c,p=-s/o+m,y=-m/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(g>0){var b=Sc(g),_=c*s+1.5*o*(-d+b),S=c*s+1.5*o*(-d-b);_<0?_=-kb(-_,Nb):_=kb(_,Nb),S<0?S=-kb(-S,Nb):S=kb(S,Nb);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var C=(2*c*s-3*o*d)/(2*Sc(c*c*c)),w=Math.acos(C)/3,T=Sc(c),E=Math.cos(w),p=(-s-2*T*E)/(3*o),y=(-s+T*(E+f$*Math.sin(w)))/(3*o),O=(-s+T*(E-f$*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),O>=0&&O<=1&&(i[h++]=O)}}return h}function rJ(n,e,t,r,a){var i=6*t-12*e+6*n,o=9*e+3*r-3*n-9*t,s=3*e-3*n,l=0;if(ec(o)){if(nJ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(ec(c))a[0]=-i/(2*o);else if(c>0){var d=Sc(c),u=(-i+d)/(2*o),f=(-i-d)/(2*o);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function Rc(n,e,t,r,a,i){var o=(e-n)*a+n,s=(t-e)*a+e,l=(r-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,d=(c-u)*a+u;i[0]=n,i[1]=o,i[2]=u,i[3]=d,i[4]=d,i[5]=c,i[6]=l,i[7]=r}function aJ(n,e,t,r,a,i,o,s,l,u,c){var d,f=.005,h=1/0,p,g,m,y;Ls[0]=l,Ls[1]=u;for(var b=0;b<1;b+=.05)io[0]=vr(n,t,a,o,b),io[1]=vr(e,r,i,s,b),m=yf(Ls,io),m=0&&m=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(ec(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var d=Sc(c),u=(-o+d)/(2*i),f=(-o-d)/(2*i);u>=0&&u<=1&&(a[l++]=u),f>=0&&f<=1&&(a[l++]=f)}}return l}function iJ(n,e,t){var r=n+t-2*e;return r===0?.5:(n-e)/r}function ry(n,e,t,r,a){var i=(e-n)*r+n,o=(t-e)*r+e,s=(o-i)*r+i;a[0]=n,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function oJ(n,e,t,r,a,i,o,s,l){var u,c=.005,d=1/0;Ls[0]=o,Ls[1]=s;for(var f=0;f<1;f+=.05){io[0]=Mr(n,t,a,f),io[1]=Mr(e,r,i,f);var h=yf(Ls,io);h=0&&h=1?1:WS(0,r,i,1,l,s)&&vr(0,a,o,1,s[0])}}}var aBe=function(){function n(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Yn,this.ondestroy=e.ondestroy||Yn,this.onrestart=e.onrestart||Yn,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:eJ[e]||k9(e)},n}();const iBe=aBe;var sJ=function(){function n(e){this.value=e}return n}(),oBe=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new sJ(e);return this.insertEntry(t),t},n.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.prototype.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),sBe=function(){function n(e){this._list=new oBe,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new sJ(t),s.key=e,r.insertEntry(s),a[e]=s}return i},n.prototype.get=function(e){var t=this._map[e],r=this._list;if(t!=null)return t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const S0=sBe;var p$={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Qo(n){return n=Math.round(n),n<0?0:n>255?255:n}function lBe(n){return n=Math.round(n),n<0?0:n>360?360:n}function ay(n){return n<0?0:n>1?1:n}function t4(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?Qo(parseFloat(e)/100*255):Qo(parseInt(e,10))}function bf(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ay(parseFloat(e)/100):ay(parseFloat(e))}function n4(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function tc(n,e,t){return n+(e-n)*t}function Xi(n,e,t,r,a){return n[0]=e,n[1]=t,n[2]=r,n[3]=a,n}function yP(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var lJ=new S0(20),Fb=null;function Mh(n,e){Fb&&yP(Fb,e),Fb=lJ.put(n,Fb||e.slice())}function ki(n,e){if(n){e=e||[];var t=lJ.get(n);if(t)return yP(e,t);n=n+"";var r=n.replace(/ /g,"").toLowerCase();if(r in p$)return yP(e,p$[r]),Mh(n,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Xi(e,0,0,0,1);return}return Xi(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Mh(n,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Xi(e,0,0,0,1);return}return Xi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Mh(n,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Xi(e,+u[0],+u[1],+u[2],1):Xi(e,0,0,0,1);c=bf(u.pop());case"rgb":if(u.length>=3)return Xi(e,t4(u[0]),t4(u[1]),t4(u[2]),u.length===3?c:bf(u[3])),Mh(n,e),e;Xi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Xi(e,0,0,0,1);return}return u[3]=bf(u[3]),bP(u,e),Mh(n,e),e;case"hsl":if(u.length!==3){Xi(e,0,0,0,1);return}return bP(u,e),Mh(n,e),e;default:return}}Xi(e,0,0,0,1)}}function bP(n,e){var t=(parseFloat(n[0])%360+360)%360/360,r=bf(n[1]),a=bf(n[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Xi(e,Qo(n4(o,i,t+1/3)*255),Qo(n4(o,i,t)*255),Qo(n4(o,i,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function uBe(n){if(n){var e=n[0]/255,t=n[1]/255,r=n[2]/255,a=Math.min(e,t,r),i=Math.max(e,t,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,d=((i-t)/6+o/2)/o,f=((i-r)/6+o/2)/o;e===i?l=f-d:t===i?l=1/3+c-f:r===i&&(l=2/3+d-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return n[3]!=null&&h.push(n[3]),h}}function _P(n,e){var t=ki(n);if(t){for(var r=0;r<3;r++)e<0?t[r]=t[r]*(1-e)|0:t[r]=(255-t[r])*e+t[r]|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return Hl(t,t.length===4?"rgba":"rgb")}}function r4(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return t[0]=Qo(tc(o[0],s[0],l)),t[1]=Qo(tc(o[1],s[1],l)),t[2]=Qo(tc(o[2],s[2],l)),t[3]=ay(tc(o[3],s[3],l)),t}}function cBe(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var r=n*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=ki(e[a]),s=ki(e[i]),l=r-a,u=Hl([Qo(tc(o[0],s[0],l)),Qo(tc(o[1],s[1],l)),Qo(tc(o[2],s[2],l)),ay(tc(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}function a1(n,e,t,r){var a=ki(n);if(n)return a=uBe(a),e!=null&&(a[0]=lBe(e)),t!=null&&(a[1]=bf(t)),r!=null&&(a[2]=bf(r)),Hl(bP(a),"rgba")}function GS(n,e){var t=ki(n);if(t&&e!=null)return t[3]=ay(e),Hl(t,"rgba")}function Hl(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function YS(n,e){var t=ki(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var KS=Math.round;function iy(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=ki(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var g$=1e-4;function nc(n){return n-g$}function $b(n){return KS(n*1e3)/1e3}function SP(n){return KS(n*1e4)/1e4}function dBe(n){return"matrix("+$b(n[0])+","+$b(n[1])+","+$b(n[2])+","+$b(n[3])+","+SP(n[4])+","+SP(n[5])+")"}var fBe={left:"start",right:"end",center:"middle",middle:"middle"};function hBe(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function pBe(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function gBe(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function uJ(n){return n&&!!n.image}function vBe(n){return n&&!!n.svgElement}function N9(n){return uJ(n)||vBe(n)}function cJ(n){return n.type==="linear"}function dJ(n){return n.type==="radial"}function fJ(n){return n&&(n.type==="linear"||n.type==="radial")}function Ox(n){return"url(#"+n+")"}function hJ(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function pJ(n){var e=n.x||0,t=n.y||0,r=(n.rotation||0)*v2,a=Ne(n.scaleX,1),i=Ne(n.scaleY,1),o=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+KS(o*v2)+"deg, "+KS(s*v2)+"deg)"),l.join(" ")}var mBe=function(){return ot.hasGlobalWindow&&me(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return null}}(),CP=Array.prototype.slice;function xl(n,e,t){return(e-n)*t+n}function a4(n,e,t,r){for(var a=e.length,i=0;ir?e:n,i=Math.min(t,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=m$,l=t;if(ga(t)){var u=SBe(t);s=u,(u===1&&!lt(t[0])||u===2&&!lt(t[0][0]))&&(o=!0)}else if(lt(t)&&!ny(t))s=jb;else if(ce(t))if(!isNaN(+t))s=jb;else{var c=ki(t);c&&(l=c,s=Dm)}else if(xx(t)){var d=K({},l);d.colorStops=J(t.colorStops,function(h){return{offset:h.offset,color:ki(h.color)}}),cJ(t)?s=wP:dJ(t)&&(s=xP),l=d}i===0?this.valType=s:(s!==this.valType||s===m$)&&(o=!0),this.discrete=this.discrete||o;var f={time:e,value:l,rawValue:t,percent:0};return r&&(f.easing=r,f.easingFunc=me(r)?r:eJ[r]||k9(r)),a.push(f),f},n.prototype.prepare=function(e,t){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=zb(a),u=y$(a),c=0;c=0&&!(o[c].percent<=t);c--);c=f(c,s-2)}else{for(c=d;ct);c++);c=f(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=t;var m=p.percent-h.percent,y=m===0?1:f((t-h.percent)/m,1);p.easingFunc&&(y=p.easingFunc(y));var b=r?this._additiveValue:u?Zv:e[l];if((zb(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(zb(i))i===C2?a4(b,h[a],p[a],y):yBe(b,h[a],p[a],y);else if(y$(i)){var _=h[a],S=p[a],C=i===wP;e[l]={type:C?"linear":"radial",x:xl(_.x,S.x,y),y:xl(_.y,S.y,y),colorStops:J(_.colorStops,function(T,E){var O=S.colorStops[E];return{offset:xl(T.offset,O.offset,y),color:S2(a4([],T.color,O.color,y))}}),global:S.global},C?(e[l].x2=xl(_.x2,S.x2,y),e[l].y2=xl(_.y2,S.y2,y)):e[l].r=xl(_.r,S.r,y)}else if(u)a4(b,h[a],p[a],y),r||(e[l]=S2(b));else{var w=xl(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,r=this.propName,a=this._additiveValue;t===jb?e[r]=e[r]+a:t===Dm?(ki(e[r],Zv),Vb(Zv,Zv,a,1),e[r]=S2(Zv)):t===C2?Vb(e[r],e[r],a,1):t===gJ&&v$(e[r],e[r],a,1)},n}(),F9=function(){function n(e,t,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){I9("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,r){return this.whenWithKeys(e,t,Ye(t),r)},n.prototype.whenWithKeys=function(e,t,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,i1(u),a),this._trackKeys.push(s)}l.addKeyframe(e,i1(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,r=0;r0)){this._started=1;for(var t=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},n}();function Op(){return new Date().getTime()}var wBe=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,t=t||{},r.stage=t.stage||{},r}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var r=t.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(t){if(t.animation){var r=t.prev,a=t.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var r=t.getClip();r&&this.removeClip(r),t.animation=null},e.prototype.update=function(t){for(var r=Op()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function r(){t._running&&(vP(r),!t._paused&&t.update())}vP(r)},e.prototype.start=function(){this._running||(this._time=Op(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Op(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Op()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var r=t.next;t.prev=t.next=t.animation=null,t=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,r){r=r||{},this.start();var a=new F9(t,r.loop);return this.addAnimator(a),a},e}(To);const xBe=wBe;var TBe=300,i4=ot.domSupported,o4=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=J(n,function(a){var i=a.replace("mouse","pointer");return t.hasOwnProperty(i)?i:a});return{mouse:n,touch:e,pointer:r}}(),b$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_$=!1;function TP(n){var e=n.pointerType;return e==="pen"||e==="touch"}function EBe(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function s4(n){n&&(n.zrByTouch=!0)}function OBe(n,e){return qi(n.dom,new IBe(n,e),!0)}function vJ(n,e){for(var t=e,r=!1;t&&t.nodeType!==9&&!(r=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return r}var IBe=function(){function n(e,t){this.stopPropagation=Yn,this.stopImmediatePropagation=Yn,this.preventDefault=Yn,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),Vo={mousedown:function(n){n=qi(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qi(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qi(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qi(this.dom,n);var e=n.toElement||n.relatedTarget;vJ(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){_$=!0,n=qi(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){_$||(n=qi(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qi(this.dom,n),s4(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),Vo.mousemove.call(this,n),Vo.mousedown.call(this,n)},touchmove:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"change"),Vo.mousemove.call(this,n)},touchend:function(n){n=qi(this.dom,n),s4(n),this.handler.processGesture(n,"end"),Vo.mouseup.call(this,n),+new Date-+this.__lastTouchMomentw$||n<-w$}var cd=[],Rh=[],u4=wo(),c4=Math.abs,LBe=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return ud(this.rotation)||ud(this.x)||ud(this.y)||ud(this.scaleX-1)||ud(this.scaleY-1)||ud(this.skewX)||ud(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),r=this.transform;if(!(t||e)){r&&(C$(r),this.invTransform=null);return}r=r||wo(),t?this.getLocalTransform(r):C$(r),e&&(t?Bl(r,e,r):R9(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(cd);var r=cd[0]<0?-1:1,a=cd[1]<0?-1:1,i=((cd[0]-r)*t+r)/cd[0]||0,o=((cd[1]-a)*t+a)/cd[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||wo(),sv(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=r,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Bl(Rh,e.invTransform,t),t=Rh);var r=this.originX,a=this.originY;(r||a)&&(u4[4]=r,u4[5]=a,Bl(Rh,t,u4),Rh[4]-=r,Rh[5]-=a,t=Rh),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var r=[e,t],a=this.invTransform;return a&&Wr(r,r,a),r},n.prototype.transformCoordToGlobal=function(e,t){var r=[e,t],a=this.transform;return a&&Wr(r,r,a),r},n.prototype.getLineScale=function(){var e=this.transform;return e&&c4(e[0]-1)>1e-10&&c4(e[3]-1)>1e-10?Math.sqrt(c4(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){yJ(this,e)},n.getLocalTransform=function(e,t){t=t||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,g=a+l;t[4]=-p*i-f*g*o,t[5]=-g*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=f*o,u&&uh(t,t,u),t[4]+=r+c,t[5]+=a+d,t},n.initDefaultProps=function(){var e=n.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),n}(),el=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function yJ(n,e){for(var t=0;t=0?parseFloat(n)/100*e:parseFloat(n):n}function XS(n,e,t){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,c="left",d="top";if(r instanceof Array)l+=ns(r[0],t.width),u+=ns(r[1],t.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=d,n}var d4="__zr_normal__",f4=el.concat(["ignore"]),kBe=Qs(el,function(n,e){return n[e]=!0,n},{ignore:!1}),Lh={},NBe=new $e(0,0,0,0),$9=function(){function n(e){this.id=UQ(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,r){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(t),r.position!=null){var c=NBe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Lh,r,c):XS(Lh,r,c),i.x=Lh.x,i.y=Lh.y,o=Lh.align,s=Lh.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=ns(d[0],c.width),h=ns(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,_=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,t.setDefaultTextStyle(m)),t.__dirty|=Ei,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?PP:IP},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),r=typeof t=="string"&&ki(t);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Hl(r,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},K(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(we(e))for(var r=e,a=Ye(r),i=0;i0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(d4,!1,e)},n.prototype.useState=function(e,t,r,a){var i=e===d4,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(Be(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){I9("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!r&&!this.__inHover&&l&&l.duration>0,l);var d=this._textContent,f=this._textGuide;return d&&d.useState(e,t,r,c),f&&f.useState(e,t,r,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei),u}}},n.prototype.useStates=function(e,t,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,t,f),m&&m.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ei)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(t,1),this.useStates(r)}},n.prototype.replaceState=function(e,t,r){var a=this.currentStates.slice(),i=Be(a,e),o=Be(a,t)>=0;i>=0?o?a.splice(i,1):a[i]=t:r&&!o&&a.push(t),this.useStates(a)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var r=this.animators,a=r.length,i=[],o=0;o0&&t.during&&i[0].during(function(p,g){t.during(g)});for(var f=0;f0||a.force&&!o.length){var E=void 0,O=void 0,I=void 0;if(s){O={},f&&(E={});for(var S=0;S<_;S++){var y=g[S];O[y]=t[y],f?E[y]=r[y]:t[y]=r[y]}}else if(f){I={};for(var S=0;S<_;S++){var y=g[S];I[y]=i1(t[y]),$Be(t,r,y)}}var C=new F9(t,!1,!1,d?Pt(p,function(A){return A.targetName===e}):null);C.targetName=e,a.scope&&(C.scope=a.scope),f&&E&&C.whenWithKeys(0,E,g),I&&C.whenWithKeys(0,I,g),C.whenWithKeys(u??500,s?O:r,g).delay(c||0),n.addAnimator(C,e),o.push(C)}}const _J=$9;var SJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var r=this._children,a=0;a=0&&(a.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,r){var a=Be(this._children,t);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(t,r){var a=this._children,i=a[r];if(t&&t!==this&&t.parent!==this&&t!==i){a[r]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var r=this.__zr;r&&r!==t.__zr&&t.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(t){var r=this.__zr,a=this._children,i=Be(a,t);return i<0?this:(a.splice(i,1),t.parent=null,r&&t.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,r){return this.handler.on(e,t,r),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(n<=a)return o;if(n>=i)return s}else{if(n>=a)return o;if(n<=i)return s}else{if(n===a)return o;if(n===i)return s}return(n-a)/l*u+o}function ie(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return ce(n)?WBe(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Ln(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),wJ),n=(+n).toFixed(e),t?n:+n}function go(n){return n.sort(function(e,t){return e-t}),n}function js(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return GBe(n)}function GBe(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),r=t>0?+e.slice(t+1):0,a=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function xJ(n,e){var t=Math.log,r=Math.LN10,a=Math.floor(t(n[1]-n[0])/r),i=Math.round(t(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function YBe(n,e){var t=Qs(n,function(h,p){return h+(isNaN(p)?0:p)},0);if(t===0)return[];for(var r=Math.pow(10,e),a=J(n,function(h){return(isNaN(h)?0:h)/t*r*100}),i=r*100,o=J(a,function(h){return Math.floor(h)}),s=Qs(o,function(h,p){return h+p},0),l=J(a,function(h,p){return h-o[p]});su&&(u=l[d],c=d);++o[c],l[c]=0,++s}return J(o,function(h){return h/r})}function KBe(n,e){var t=Math.max(js(n),js(e)),r=n+e;return t>wJ?r:Ln(r,t)}var I$=9007199254740991;function TJ(n){var e=Math.PI*2;return(n%e+e)%e}function qS(n){return n>-O$&&n=10&&e++,e}function EJ(n,e){var t=V9(n),r=Math.pow(10,t),a=n/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,n=i*r,t>=-20?+n.toFixed(t<0?-t:0):n}function g4(n,e){var t=(n.length-1)*e+1,r=Math.floor(t),a=+n[r-1],i=t-r;return i?a+i*(n[r]-a):a}function P$(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,r=0;r=0||i&&Be(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[n[s][0]]=u)}}return o}}var _He=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SHe=zf(_He),CHe=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return SHe(this,e,t)},n}(),AP=new S0(50);function wHe(n){if(typeof n=="string"){var e=AP.get(n);return e&&e.image}else return n}function H9(n,e,t,r,a){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var i=AP.get(n),o={hostEl:t,cb:r,cbPayload:a};return i?(e=i.image,!Dx(e)&&i.pending.push(o)):(e=Mc.loadImage(n,R$,R$),e.__zrImageSrc=n,AP.put(n,e.__cachedImgObj={image:e,pending:[o]})),e}else return n;else return e}function R$(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Ni(t,e);return u>s&&(t="",u=0),s=n-u,a.ellipsis=t,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=n,a}function VJ(n,e){var t=e.containerWidth,r=e.font,a=e.contentWidth;if(!t)return"";var i=Ni(n,r);if(i<=t)return n;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){n+=e.ellipsis;break}var s=o===0?THe(n,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(n.length*a/i):0;n=n.substr(0,s),i=Ni(n,r)}return n===""&&(n=e.placeholder),n}function THe(n,e,t,r){for(var a=0,i=0,o=n.length;ih&&u){var p=Math.floor(h/s);d=d.slice(0,p)}if(n&&i&&c!=null)for(var g=$J(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;ms&&m4(t,n.substring(s,u),e,o),m4(t,l[2],e,o,l[1]),s=v4.lastIndex}sa){C>0?(b.tokens=b.tokens.slice(0,C),m(b,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break e}var A=T.width,R=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")w.percentWidth=A,c.push(w),w.contentWidth=Ni(w.text,I);else{if(R){var L=T.backgroundColor,k=L&&L.image;k&&(k=wHe(k),Dx(k)&&(w.width=Math.max(w.width,k.width*P/k.height)))}var N=p&&r!=null?r-S:null;N!=null&&N0&&p+r.accumWidth>r.width&&(c=e.split(` -`),u=!0),r.accumWidth=p}else{var g=jJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=e.split(` -`);for(var m=0;m=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var AHe=Qs(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function MHe(n){return DHe(n)?!!AHe[n]:!0}function jJ(n,e,t,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;dt:a+c+h>t){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=f,c=h)):p?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var MP="__zr_style_"+Math.round(Math.random()*10),_f={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ax={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_f[MP]=!0;var k$=["z","z2","invisible"],RHe=["invisible"],LHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var r=Ye(t),a=0;a1e-4){s[0]=n-t,s[1]=e-r,l[0]=n+t,l[1]=e+r;return}if(Bb[0]=S4(a)*t+n,Bb[1]=_4(a)*r+e,Hb[0]=S4(i)*t+n,Hb[1]=_4(i)*r+e,u(s,Bb,Hb),c(l,Bb,Hb),a=a%fd,a<0&&(a=a+fd),i=i%fd,i<0&&(i=i+fd),a>i&&!o?i+=fd:aa&&(Ub[0]=S4(h)*t+n,Ub[1]=_4(h)*r+e,u(s,Ub,s),c(l,Ub,l))}var zt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},hd=[],pd=[],ys=[],Tu=[],bs=[],_s=[],C4=Math.min,w4=Math.max,gd=Math.cos,vd=Math.sin,bl=Math.abs,RP=Math.PI,Lu=RP*2,x4=typeof Float32Array<"u",Xv=[];function T4(n){var e=Math.round(n/RP*1e8)/1e8;return e%2*RP}function zJ(n,e){var t=T4(n[0]);t<0&&(t+=Lu);var r=t-n[0],a=n[1];a+=r,!e&&a-t>=Lu?a=t+Lu:e&&t-a>=Lu?a=t-Lu:!e&&t>a?a=t+(Lu-T4(t-a)):e&&t0&&(this._ux=bl(r/ZS/e)||0,this._uy=bl(r/ZS/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(zt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var r=bl(e-this._xi),a=bl(t-this._yi),i=r>this._ux||a>this._uy;if(this.addData(zt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){return this._drawPendingPt(),this.addData(zt.C,e,t,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,r,a,i,o),this._xi=i,this._yi=o,this},n.prototype.quadraticCurveTo=function(e,t,r,a){return this._drawPendingPt(),this.addData(zt.Q,e,t,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,r,a),this._xi=r,this._yi=a,this},n.prototype.arc=function(e,t,r,a,i,o){this._drawPendingPt(),Xv[0]=a,Xv[1]=i,zJ(Xv,o),a=Xv[0],i=Xv[1];var s=i-a;return this.addData(zt.A,e,t,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,r,a,i,o),this._xi=gd(i)*r+e,this._yi=vd(i)*r+t,this},n.prototype.arcTo=function(e,t,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,r,a,i),this},n.prototype.rect=function(e,t,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,r,a),this.addData(zt.R,e,t,r,a),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(zt.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&e.closePath(),this._xi=t,this._yi=r,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&x4&&(this.data=new Float32Array(t));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var d=0;d0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){ys[0]=ys[1]=bs[0]=bs[1]=Number.MAX_VALUE,Tu[0]=Tu[1]=_s[0]=_s[1]=-Number.MAX_VALUE;var e=this.data,t=0,r=0,a=0,i=0,o;for(o=0;or||bl(_)>a||f===t-1)&&(g=Math.sqrt(b*b+_*_),i=m,o=y);break}case zt.C:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++],w=e[f++],T=e[f++];g=eBe(i,o,S,C,m,y,w,T,10),i=w,o=T;break}case zt.Q:{var S=e[f++],C=e[f++],m=e[f++],y=e[f++];g=nBe(i,o,S,C,m,y,10),i=m,o=y;break}case zt.A:var E=e[f++],O=e[f++],I=e[f++],P=e[f++],A=e[f++],R=e[f++],L=R+A;f+=1,e[f++],p&&(s=gd(A)*I+E,l=vd(A)*P+O),g=w4(I,P)*C4(Lu,Math.abs(R)),i=gd(L)*I+E,o=vd(L)*P+O;break;case zt.R:{s=i=e[f++],l=o=e[f++];var k=e[f++],N=e[f++];g=k*2+N*2;break}case zt.Z:{var b=s-i,_=l-o;g=Math.sqrt(b*b+_*_),i=s,o=l;break}}g>=0&&(u[d++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,d,f,h=t<1,p,g,m=0,y=0,b,_=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,g=this._pathLen,b=t*g,!b)))e:for(var w=0;w0&&(e.lineTo(S,C),_=0),T){case zt.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case zt.L:{d=r[w++],f=r[w++];var O=bl(d-u),I=bl(f-c);if(O>a||I>i){if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+d*A,c*(1-A)+f*A);break e}m+=P}e.lineTo(d,f),u=d,c=f,_=0}else{var R=O*O+I*I;R>_&&(S=d,C=f,_=R)}break}case zt.C:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++],F=r[w++],j=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;Rc(u,L,N,F,A,hd),Rc(c,k,z,j,A,pd),e.bezierCurveTo(hd[1],pd[1],hd[2],pd[2],hd[3],pd[3]);break e}m+=P}e.bezierCurveTo(L,k,N,z,F,j),u=F,c=j;break}case zt.Q:{var L=r[w++],k=r[w++],N=r[w++],z=r[w++];if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;ry(u,L,N,A,hd),ry(c,k,z,A,pd),e.quadraticCurveTo(hd[1],pd[1],hd[2],pd[2]);break e}m+=P}e.quadraticCurveTo(L,k,N,z),u=N,c=z;break}case zt.A:var U=r[w++],G=r[w++],Y=r[w++],Q=r[w++],Z=r[w++],ae=r[w++],se=r[w++],ee=!r[w++],ne=Y>Q?Y:Q,re=bl(Y-Q)>.001,te=Z+ae,oe=!1;if(h){var P=p[y++];m+P>b&&(te=Z+ae*(b-m)/P,oe=!0),m+=P}if(re&&e.ellipse?e.ellipse(U,G,Y,Q,se,Z,te,ee):e.arc(U,G,ne,Z,te,ee),oe)break e;E&&(s=gd(Z)*Y+U,l=vd(Z)*Q+G),u=gd(te)*Y+U,c=vd(te)*Q+G;break;case zt.R:s=u=r[w],l=c=r[w+1],d=r[w++],f=r[w++];var pe=r[w++],We=r[w++];if(h){var P=p[y++];if(m+P>b){var Ce=b-m;e.moveTo(d,f),e.lineTo(d+C4(Ce,pe),f),Ce-=pe,Ce>0&&e.lineTo(d+pe,f+C4(Ce,We)),Ce-=We,Ce>0&&e.lineTo(d+w4(pe-Ce,0),f+We),Ce-=pe,Ce>0&&e.lineTo(d,f+w4(We-Ce,0));break e}m+=P}e.rect(d,f,pe,We);break;case zt.Z:if(h){var P=p[y++];if(m+P>b){var A=(b-m)/P;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}m+=P}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=zt,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function zu(n,e,t,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=n;if(o>e+s&&o>r+s||on+s&&i>t+s||ie+d&&c>r+d&&c>i+d&&c>s+d||cn+d&&u>t+d&&u>a+d&&u>o+d||ue+u&&l>r+u&&l>i+u||ln+u&&s>t+u&&s>a+u||st||c+ua&&(a+=qv);var f=Math.atan2(l,s);return f<0&&(f+=qv),f>=r&&f<=a||f+qv>=r&&f+qv<=a}function Tl(n,e,t,r,a,i){if(i>e&&i>r||ia?s:0}var Eu=nl.CMD,md=Math.PI*2,zHe=1e-4;function BHe(n,e){return Math.abs(n-e)e&&u>r&&u>i&&u>s||u1&&HHe(),h=vr(e,r,i,s,eo[0]),f>1&&(p=vr(e,r,i,s,eo[1]))),f===2?me&&s>r&&s>i||s=0&&u<=1){for(var c=0,d=Mr(e,r,i,u),f=0;ft||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Pa[0]=-l,Pa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=md-1e-4){r=0,a=md;var c=i?1:-1;return o>=Pa[0]+n&&o<=Pa[1]+n?c:0}if(r>a){var d=r;r=a,a=d}r<0&&(r+=md,a+=md);for(var f=0,h=0;h<2;h++){var p=Pa[h];if(p+n>o){var g=Math.atan2(s,p),c=i?1:-1;g<0&&(g=md+g),(g>=r&&g<=a||g+md>=r&&g+md<=a)&&(g>Math.PI/2&&g1&&(t||(s+=Tl(l,u,c,d,r,a))),m&&(l=i[p],u=i[p+1],c=l,d=u),g){case Eu.M:c=i[p++],d=i[p++],l=c,u=d;break;case Eu.L:if(t){if(zu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Tl(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.C:if(t){if(VHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=UHe(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.Q:if(t){if(BJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=WHe(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Eu.A:var y=i[p++],b=i[p++],_=i[p++],S=i[p++],C=i[p++],w=i[p++];p+=1;var T=!!(1-i[p++]);f=Math.cos(C)*_+y,h=Math.sin(C)*S+b,m?(c=f,d=h):s+=Tl(l,u,f,h,r,a);var E=(r-y)*S/_+y;if(t){if(jHe(y,b,S,C,C+w,T,e,E,a))return!0}else s+=GHe(y,b,S,C,C+w,T,E,a);l=Math.cos(C+w)*_+y,u=Math.sin(C+w)*S+b;break;case Eu.R:c=l=i[p++],d=u=i[p++];var O=i[p++],I=i[p++];if(f=c+O,h=d+I,t){if(zu(c,d,f,d,e,r,a)||zu(f,d,f,h,e,r,a)||zu(f,h,c,h,e,r,a)||zu(c,h,c,d,e,r,a))return!0}else s+=Tl(f,d,f,h,r,a),s+=Tl(c,h,c,d,r,a);break;case Eu.Z:if(t){if(zu(l,u,c,d,e,r,a))return!0}else s+=Tl(l,u,c,d,r,a);l=c,u=d;break}}return!t&&!BHe(u,d)&&(s+=Tl(l,u,c,d,r,a)||0),s!==0}function YHe(n,e,t){return HJ(n,0,!1,e,t)}function KHe(n,e,t,r){return HJ(n,e,!0,t,r)}var QS=_e({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_f),ZHe={style:_e({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ax.style)},E4=el.concat(["invisible","culling","z","z2","zlevel","parent"]),XHe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?IP:r>.2?RBe:PP}else if(t)return PP}return IP},e.prototype.getInsideTextStroke=function(t){var r=this.style.fill;if(ce(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=YS(t,0)0))},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,r=this.style,a=!t;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&tp)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect(),o=this.style;if(t=a[0],r=a[1],i.contain(t,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),KHe(s,l/u,t,r)))return!0}if(this.hasFill())return YHe(s,t,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=tp,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,r){t==="shape"?this.setShape(r):n.prototype.attrKV.call(this,t,r)},e.prototype.setShape=function(t,r){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=r:K(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&tp)},e.prototype.createStyle=function(t){return Tx(QS,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var r=this._normalState;t.shape&&!r.shape&&(r.shape=K({},this.shape))},e.prototype._applyStateObj=function(t,r,a,i,o,s){n.prototype._applyStateObj.call(this,t,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=K({},a.shape),K(u,r.shape)):(u=K({},i?this.shape:a.shape),K(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=K({},this.shape);for(var c={},d=Ye(u),f=0;f0},e.prototype.hasFill=function(){var t=this.style,r=t.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(t){return Tx(qHe,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var r=t.text;r!=null?r+="":r="";var a=C0(r,t.font,t.textAlign,t.textBaseline);if(a.x+=t.x||0,a.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(xo);UJ.prototype.type="tspan";const sy=UJ;var QHe=_e({x:0,y:0},_f),JHe={style:_e({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ax.style)};function eUe(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var WJ=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Tx(QHe,t)},e.prototype._getSize=function(t){var r=this.style,a=r[t];if(a!=null)return a;var i=eUe(r.image)?r.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=r[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return JHe},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new $e(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(xo);WJ.prototype.type="image";const Xr=WJ;function tUe(n,e){var t=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(t=t+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var d;s+l>a&&(d=s+l,s*=a/d,l*=a/d),u+c>a&&(d=u+c,u*=a/d,c*=a/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),s+c>i&&(d=s+c,s*=i/d,c*=i/d),n.moveTo(t+s,r),n.lineTo(t+a-l,r),l!==0&&n.arc(t+a-l,r+l,l,-Math.PI/2,0),n.lineTo(t+a,r+i-u),u!==0&&n.arc(t+a-u,r+i-u,u,0,Math.PI/2),n.lineTo(t+c,r+i),c!==0&&n.arc(t+c,r+i-c,c,Math.PI/2,Math.PI),n.lineTo(t,r+s),s!==0&&n.arc(t+s,r+s,s,Math.PI,Math.PI*1.5)}var Ip=Math.round;function GJ(n,e,t){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;n.x1=r,n.x2=a,n.y1=i,n.y2=o;var s=t&&t.lineWidth;return s&&(Ip(r*2)===Ip(a*2)&&(n.x1=n.x2=af(r,s,!0)),Ip(i*2)===Ip(o*2)&&(n.y1=n.y2=af(i,s,!0))),n}}function YJ(n,e,t){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;n.x=r,n.y=a,n.width=i,n.height=o;var s=t&&t.lineWidth;return s&&(n.x=af(r,s,!0),n.y=af(a,s,!0),n.width=Math.max(af(r+i,s,!1)-n.x,i===0?0:1),n.height=Math.max(af(a+o,s,!1)-n.y,o===0?0:1)),n}}function af(n,e,t){if(!e)return n;var r=Ip(n*2);return(r+Ip(e))%2===0?r/2:(r+(t?1:-1))/2}var nUe=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),rUe={},KJ=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new nUe},e.prototype.buildPath=function(t,r){var a,i,o,s;if(this.subPixelOptimize){var l=YJ(rUe,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?tUe(t,r):t.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ue);KJ.prototype.type="rect";const rt=KJ;var j$={fill:"#000"},z$=2,aUe={style:_e({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ax.style)},ZJ=function(n){W(e,n);function e(t){var r=n.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=j$,r.attr(t),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),R=o.calculatedLineHeight,L=0;L=0&&(L=w[R],L.align==="right");)this._placeToken(L,t,E,y,A,"right",_),O-=L.width,A-=L.width,R--;for(P+=(i-(P-m)-(b-A)-O)/2;I<=R;)L=w[I],this._placeToken(L,t,E,y,P+L.width/2,"center",_),P+=L.width,I++;y+=E}},e.prototype._placeToken=function(t,r,a,i,o,s,l){var u=r.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,d=i+a/2;c==="top"?d=i+t.height/2:c==="bottom"&&(d=i+a-t.height/2);var f=!t.isLineHolder&&O4(u);f&&this._renderBackground(u,r,s==="right"?o-t.width:s==="center"?o-t.width/2:o,d-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=Y$(o,s,p),d-=t.height/2-p[0]-t.innerHeight/2);var g=this._getOrCreateChild(sy),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,_=0,S=G$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),C=W$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=z$,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;m.text=t.text,m.x=o,m.y=d,w&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||Ac,m.opacity=Ks(u.opacity,r.opacity,1),H$(m,u),C&&(m.lineWidth=Ks(u.lineWidth,r.lineWidth,_),m.lineDash=Ne(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=C),S&&(m.fill=S);var T=t.contentWidth,E=t.contentHeight;g.setBoundingRect(new $e(Am(m.x,T,m.textAlign),np(m.y,E,m.textBaseline),T,E))},e.prototype._renderBackground=function(t,r,a,i,o,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,d=l&&l.image,f=l&&!d,h=t.borderRadius,p=this,g,m;if(f||t.lineHeight||u&&c){g=this._getOrCreateChild(rt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,g.dirtyShape()}if(f){var b=g.style;b.fill=l||null,b.fillOpacity=Ne(t.fillOpacity,1)}else if(d){m=this._getOrCreateChild(Xr),m.onload=function(){p.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Ne(t.strokeOpacity,1),b.lineDash=t.borderDash,b.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ks(t.opacity,r.opacity,1)},e.makeFont=function(t){var r="";return qJ(t)&&(r=[t.fontStyle,t.fontWeight,XJ(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),r&&Go(r)||t.textFont||t.font},e}(xo),iUe={left:!0,right:1,center:1},oUe={top:1,bottom:1,middle:1},B$=["fontStyle","fontWeight","fontSize","fontFamily"];function XJ(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?T9+"px":n+"px"}function H$(n,e){for(var t=0;t=0,i=!1;if(n instanceof Ue){var o=QJ(n),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(kh(s)||kh(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=K({},r),u=K({},u),u.fill=s):!kh(u.fill)&&kh(s)?(i=!0,r=K({},r),u=K({},u),u.fill=Q$(s)):!kh(u.stroke)&&kh(l)&&(i||(r=K({},r),u=K({},u)),u.stroke=Q$(l)),r.style=u}}if(r&&r.z2==null){i||(r=K({},r));var c=n.z2EmphasisLift;r.z2=n.z2+(c??uv)}return r}function hUe(n,e,t){if(t&&t.z2==null){t=K({},t);var r=n.z2SelectLift;t.z2=n.z2+(r??lUe)}return t}function pUe(n,e,t){var r=Be(n.currentStates,e)>=0,a=n.style.opacity,i=r?null:dUe(n,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=K({},t),o=K({opacity:r?a:i.opacity*.1},o),t.style=o),t}function I4(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return fUe(this,n,e,t);if(n==="blur")return pUe(this,n,t);if(n==="select")return hUe(this,n,t)}return t}function Bf(n){n.stateProxy=I4;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=I4),t&&(t.stateProxy=I4)}function eV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,JJ)}function tV(n,e){!iee(n,e)&&!n.__highByOuter&&du(n,eee)}function au(n,e){n.__highByOuter|=1<<(e||0),du(n,JJ)}function iu(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&du(n,eee)}function nee(n){du(n,G9)}function Y9(n){du(n,tee)}function ree(n){du(n,uUe)}function aee(n){du(n,cUe)}function iee(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function oee(n){var e=n.getModel(),t=[],r=[];e.eachComponent(function(a,i){var o=U9(i),s=a==="series",l=s?n.getViewOfSeriesModel(i):n.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){tee(u)}),s&&t.push(i)),o.isBlured=!1}),M(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function kP(n,e,t,r){var a=r.getModel();t=t||"coordinateSystem";function i(u,c){for(var d=0;d0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Cf(n,e,t){of(n,!0),du(n,Bf),FP(n,e,t)}function _Ue(n){of(n,!1)}function En(n,e,t,r){r?_Ue(n):Cf(n,e,t)}function FP(n,e,t){var r=De(n);e!=null?(r.focus=e,r.blurScope=t):r.focus&&(r.focus=null)}var rV=["emphasis","blur","select"],SUe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(n,e,t,r){t=t||"itemStyle";for(var a=0;a1&&(o*=P4(p),s*=P4(p));var g=(a===i?-1:1)*P4((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=g*o*h/s,y=g*-s*f/o,b=(n+t)/2+Gb(d)*m-Wb(d)*y,_=(e+r)/2+Wb(d)*m+Gb(d)*y,S=sV([1,0],[(f-m)/o,(h-y)/s]),C=[(f-m)/o,(h-y)/s],w=[(-1*f-m)/o,(-1*h-y)/s],T=sV(C,w);if(VP(C,w)<=-1&&(T=Qv),VP(C,w)>=1&&(T=0),T<0){var E=Math.round(T/Qv*1e6)/1e6;T=Qv*2+E%2*Qv}c.addData(u,b,_,o,s,S,T,d,i)}var OUe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,IUe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PUe(n){var e=new nl;if(!n)return e;var t=0,r=0,a=t,i=r,o,s=nl.CMD,l=n.match(OUe);if(!l)return e;for(var u=0;uL*L+k*k&&(E=I,O=P),{cx:E,cy:O,x0:-c,y0:-d,x1:E*(a/C-1),y1:O*(a/C-1)}}function NUe(n){var e;if(X(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function FUe(n,e){var t,r=Mm(e.r,0),a=Mm(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,d=e.cy,f=!!e.clockwise,h=uV(u-l),p=h>D4&&h%D4;if(p>$o&&(h=p),!(r>$o))n.moveTo(c,d);else if(h>D4-$o)n.moveTo(c+r*Fh(l),d+r*yd(l)),n.arc(c,d,r,l,u,!f),a>$o&&(n.moveTo(c+a*Fh(u),d+a*yd(u)),n.arc(c,d,a,u,l,f));else{var g=void 0,m=void 0,y=void 0,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,O=void 0,I=void 0,P=void 0,A=void 0,R=void 0,L=void 0,k=r*Fh(l),N=r*yd(l),z=a*Fh(u),F=a*yd(u),j=h>$o;if(j){var U=e.cornerRadius;U&&(t=NUe(U),g=t[0],m=t[1],y=t[2],b=t[3]);var G=uV(r-a)/2;if(_=Ss(G,y),S=Ss(G,b),C=Ss(G,g),w=Ss(G,m),O=T=Mm(_,S),I=E=Mm(C,w),(T>$o||E>$o)&&(P=r*Fh(u),A=r*yd(u),R=a*Fh(l),L=a*yd(l),h$o){var re=Ss(y,O),te=Ss(b,O),oe=Yb(R,L,k,N,r,re,f),pe=Yb(P,A,z,F,r,te,f);n.moveTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),O0&&n.arc(c+oe.cx,d+oe.cy,re,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,r,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),!f),te>0&&n.arc(c+pe.cx,d+pe.cy,te,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.moveTo(c+k,d+N),n.arc(c,d,r,l,u,!f);if(!(a>$o)||!j)n.lineTo(c+z,d+F);else if(I>$o){var re=Ss(g,I),te=Ss(m,I),oe=Yb(z,F,P,A,a,-te,f),pe=Yb(k,N,R,L,a,-re,f);n.lineTo(c+oe.cx+oe.x0,d+oe.cy+oe.y0),I0&&n.arc(c+oe.cx,d+oe.cy,te,aa(oe.y0,oe.x0),aa(oe.y1,oe.x1),!f),n.arc(c,d,a,aa(oe.cy+oe.y1,oe.cx+oe.x1),aa(pe.cy+pe.y1,pe.cx+pe.x1),f),re>0&&n.arc(c+pe.cx,d+pe.cy,re,aa(pe.y1,pe.x1),aa(pe.y0,pe.x0),!f))}else n.lineTo(c+z,d+F),n.arc(c,d,a,u,l,f)}n.closePath()}}}var $Ue=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return n}(),gee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $Ue},e.prototype.buildPath=function(t,r){FUe(t,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ue);gee.prototype.type="sector";const fi=gee;var VUe=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),vee=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new VUe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.PI*2;t.moveTo(a+r.r,i),t.arc(a,i,r.r,0,o,!1),t.moveTo(a+r.r0,i),t.arc(a,i,r.r0,0,o,!0)},e}(Ue);vee.prototype.type="ring";const kx=vee;function jUe(n,e,t,r){var a=[],i=[],o=[],s=[],l,u,c,d;if(r){c=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,h=n.length;f=2){if(r){var i=jUe(a,r,t,e.smoothConstraint);n.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(a[0][0],a[0][1]);for(var s=1,d=a.length;s_d[1]){if(s=!1,i)return s;var c=Math.abs(_d[0]-bd[1]),d=Math.abs(bd[0]-_d[1]);Math.min(c,d)>a.len()&&(c0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:n,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function ft(n,e,t,r,a,i){J9("update",n,e,t,r,a,i)}function an(n,e,t,r,a,i){J9("enter",n,e,t,r,a,i)}function Wp(n){if(!n.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fV(n){return!n.isGroup}function oWe(n){return n.shape!=null}function E0(n,e,t){if(!n||!e)return;function r(o){var s={};return o.traverse(function(l){fV(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return oWe(o)&&(s.shape=K({},o.shape)),s}var i=r(n);e.traverse(function(o){if(fV(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),ft(o,l,t,De(o).dataIndex)}}})}function Pee(n,e){return J(n,function(t){var r=t[0];r=tC(r,e.x),r=nC(r,e.x+e.width);var a=t[1];return a=tC(a,e.y),a=nC(a,e.y+e.height),[r,a]})}function sWe(n,e){var t=tC(n.x,e.x),r=nC(n.x+n.width,e.x+e.width),a=tC(n.y,e.y),i=nC(n.y+n.height,e.y+e.height);if(r>=t&&i>=a)return{x:t,y:a,width:r-t,height:i-a}}function O0(n,e,t){var r=K({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(a.image=n.slice(8),_e(a,t),new Xr(r)):Fx(n.replace("path://",""),r,t,"center")}function Rm(n,e,t,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var m=A4(h,p,c,d)/f;return!(m<0||m>1)}function A4(n,e,t,r){return n*r-t*e}function lWe(n){return n<=1e-6&&n>=-1e-6}function dv(n){var e=n.itemTooltipOption,t=n.componentModel,r=n.itemName,a=ce(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=n.formatterParamsExtra;l&&M(Ye(l),function(c){he(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(n.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:_e({content:r,formatterParams:s},a)}}function hV(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Zc(n,e){if(n)if(X(n))for(var t=0;t=0&&s.push(l)}),s}}function Xc(n,e){return Fe(Fe({},n,!0),e,!0)}const SWe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},CWe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var aC="ZH",t8="EN",dy=t8,I2={},n8={},Fee=ot.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(aC)>-1?aC:dy}():dy;function $ee(n,e){n=n.toUpperCase(),n8[n]=new Xt(e),I2[n]=e}function wWe(n){if(ce(n)){var e=I2[n.toUpperCase()]||{};return n===aC||n===t8?Ee(e):Fe(Ee(e),Ee(I2[dy]),!1)}else return Fe(Ee(n),Ee(I2[dy]),!1)}function BP(n){return n8[n]}function xWe(){return n8[dy]}$ee(t8,SWe);$ee(aC,CWe);var r8=1e3,a8=r8*60,d1=a8*60,fo=d1*24,yV=fo*365,Lm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xb="{yyyy}-{MM}-{dd}",bV={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xb,hour:Xb+" "+Lm.hour,minute:Xb+" "+Lm.minute,second:Xb+" "+Lm.second,millisecond:Lm.none},L4=["year","month","day","hour","minute","second","millisecond"],Vee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ou(n,e){return n+="","0000".substr(0,e-n.length)+n}function Gp(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function TWe(n){return n===Gp(n)}function EWe(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jx(n,e,t,r){var a=tl(n),i=a[i8(t)](),o=a[Yp(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[zx(t)](),u=a["get"+(t?"UTC":"")+"Day"](),c=a[fy(t)](),d=(c-1)%12+1,f=a[Bx(t)](),h=a[Hx(t)](),p=a[Ux(t)](),g=r instanceof Xt?r:BP(r||Fee)||xWe(),m=g.getModel("time"),y=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ou(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ou(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ou(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ou(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ou(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Ou(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Ou(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ou(p,3)).replace(/{S}/g,p+"")}function OWe(n,e,t,r,a){var i=null;if(ce(t))i=t;else if(me(t))i=t(n.value,e,{level:n.level});else{var o=K({},Lm);if(n.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(X(i)){var d=n.level==null?0:n.level>=0?n.level:i.length+n.level;d=Math.min(d,i.length-1),i=i[d]}}return jx(new Date(n.value),i,a,r)}function jee(n,e){var t=tl(n),r=t[Yp(e)]()+1,a=t[zx(e)](),i=t[fy(e)](),o=t[Bx(e)](),s=t[Hx(e)](),l=t[Ux(e)](),u=l===0,c=u&&s===0,d=c&&o===0,f=d&&i===0,h=f&&a===1,p=h&&r===1;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function _V(n,e,t){var r=lt(n)?tl(n):n;switch(e=e||jee(n,t),e){case"year":return r[i8(t)]();case"half-year":return r[Yp(t)]()>=6?1:0;case"quarter":return Math.floor((r[Yp(t)]()+1)/4);case"month":return r[Yp(t)]();case"day":return r[zx(t)]();case"half-day":return r[fy(t)]()/24;case"hour":return r[fy(t)]();case"minute":return r[Bx(t)]();case"second":return r[Hx(t)]();case"millisecond":return r[Ux(t)]()}}function i8(n){return n?"getUTCFullYear":"getFullYear"}function Yp(n){return n?"getUTCMonth":"getMonth"}function zx(n){return n?"getUTCDate":"getDate"}function fy(n){return n?"getUTCHours":"getHours"}function Bx(n){return n?"getUTCMinutes":"getMinutes"}function Hx(n){return n?"getUTCSeconds":"getSeconds"}function Ux(n){return n?"getUTCMilliseconds":"getMilliseconds"}function IWe(n){return n?"setUTCFullYear":"setFullYear"}function zee(n){return n?"setUTCMonth":"setMonth"}function Bee(n){return n?"setUTCDate":"setDate"}function Hee(n){return n?"setUTCHours":"setHours"}function Uee(n){return n?"setUTCMinutes":"setMinutes"}function Wee(n){return n?"setUTCSeconds":"setSeconds"}function Gee(n){return n?"setUTCMilliseconds":"setMilliseconds"}function Yee(n){if(!OJ(n))return ce(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Kee(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,r){return r.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var pv=A9;function HP(n,e,t){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Go(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=n instanceof Date;if(o||s){var l=o?tl(n):n;if(isNaN(+l)){if(s)return"-"}else return jx(l,r,t)}if(e==="ordinal")return lP(n)?a(n):lt(n)&&i(n)?n+"":"-";var u=ru(n);return i(u)?Yee(u):lP(n)?a(n):typeof n=="boolean"?n+"":"-"}var SV=["a","b","c","d","e","f","g"],k4=function(n,e){return"{"+n+(e??"")+"}"};function Zee(n,e,t){X(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Hf(n,e){return e=e||"transparent",ce(n)?n:we(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function iC(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var P2=M,Xee=["left","right","top","bottom","width","height"],sf=[["width","left","right"],["height","top","bottom"]];function o8(n,e,t,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),d=e.childAt(u+1),f=d&&d.getBoundingRect(),h,p;if(n==="horizontal"){var g=c.width+(f?-f.x+c.x:0);h=i+g,h>r||l.newline?(i=0,h=g,o+=s+t,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);p=o+m,p>a||l.newline?(i+=s+t,o=0,p=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),n==="horizontal"?i=h+t:o=p+t)})}var xf=o8;Ae(o8,"vertical");Ae(o8,"horizontal");function AWe(n,e,t){var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a);return(isNaN(i)||isNaN(parseFloat(n.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(n.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=a),t=pv(t||0),{width:Math.max(s-i-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function hr(n,e,t){t=pv(t||0);var r=e.width,a=e.height,i=ie(n.left,r),o=ie(n.top,a),s=ie(n.right,r),l=ie(n.bottom,a),u=ie(n.width,r),c=ie(n.height,a),d=t[2]+t[0],f=t[1]+t[3],h=n.aspect;switch(isNaN(u)&&(u=r-s-f-i),isNaN(c)&&(c=a-l-d-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-f),isNaN(o)&&(o=a-l-c-d),n.left||n.right){case"center":i=r/2-u/2-t[3];break;case"right":i=r-u-f;break}switch(n.top||n.bottom){case"middle":case"center":o=a/2-c/2-t[0];break;case"bottom":o=a-c-d;break}i=i||0,o=o||0,isNaN(u)&&(u=r-f-i-(s||0)),isNaN(c)&&(c=a-d-o-(l||0));var p=new $e(i+t[3],o+t[0],u,c);return p.margin=t,p}function Wx(n,e,t,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||n,i.x=n.x,i.y=n.y,!o&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new $e(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var d=hr(_e({width:u.width,height:u.height},e),t,r),f=o?d.x-u.x:0,h=s?d.y-u.y:0;return l==="raw"?(i.x=f,i.y=h):(i.x+=f,i.y+=h),i===n&&n.markRedraw(),!0}function MWe(n,e){return n[sf[e][0]]!=null||n[sf[e][1]]!=null&&n[sf[e][2]]!=null}function hy(n){var e=n.layoutMode||n.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function kc(n,e,t){var r=t&&t.ignoreSize;!X(r)&&(r=[r,r]);var a=o(sf[0],0),i=o(sf[1],1);u(sf[0],n,a),u(sf[1],n,i);function o(c,d){var f={},h=0,p={},g=0,m=2;if(P2(c,function(_){p[_]=n[_]}),P2(c,function(_){s(e,_)&&(f[_]=p[_]=e[_]),l(f,_)&&h++,l(p,_)&&g++}),r[d])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(g===m||!h)return p;if(h>=m)return f;for(var y=0;y=0;l--)s=Fe(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(t,r){var a=t+"Index",i=t+"Id";return w0(this.ecModel,t,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Xt);FJ(vv,Xt);Px(vv);bWe(vv);_We(vv,LWe);function LWe(n){var e=[];return M(vv.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=J(e,function(t){return zs(t).main}),n!=="dataset"&&Be(e,"dataset")<=0&&e.unshift("dataset"),e}const it=vv;var Qee="";typeof navigator<"u"&&(Qee=navigator.platform||"");var $h="rgba(0, 0, 0, 0.2)";const kWe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:$h,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:$h,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:$h,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:$h,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:$h,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:$h,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Qee.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Jee=ge(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Eo="original",va="arrayRows",Oo="objectRows",ul="keyedColumns",Cc="typedArray",ete="unknown",Zs="column",mv="row",zr={Must:1,Might:2,Not:3},tte=at();function NWe(n){tte(n).datasetMap=ge()}function nte(n,e,t){var r={},a=l8(e);if(!a||!n)return r;var i=[],o=[],s=e.ecModel,l=tte(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,c,d;n=n.slice(),M(n,function(g,m){var y=we(g)?g:n[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,d=p(y)),r[y.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:d,valueWayDim:0});M(n,function(g,m){var y=g.name,b=p(g);if(c==null){var _=f.valueWayDim;h(r[y],_,b),h(o,_,b),f.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(i,0,b);else{var _=f.categoryWayDim;h(r[y],_,b),h(o,_,b),f.categoryWayDim+=b}});function h(g,m,y){for(var b=0;be)return n[r];return n[t-1]}function ite(n,e,t,r,a,i,o){i=i||n;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?t:zWe(r,o);if(c=c||t,!(!c||!c.length)){var d=c[l];return a&&(u[a]=d),s.paletteIdx=(l+1)%c.length,d}}function BWe(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var qb,Jv,wV,xV="\0_ec_inner",HWe=1,ote=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,r,a,i,o,s){i=i||{},this.option=null,this._theme=new Xt(i),this._locale=new Xt(o),this._optionManager=s},e.prototype.setOption=function(t,r,a){var i=OV(r);this._optionManager.setOption(t,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,r){return this._resetOption(t,OV(r))},e.prototype._resetOption=function(t,r){var a=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?wV(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ge(),u=r&&r.replaceMergeMainTypeMap;NWe(this),M(t,function(d,f){d!=null&&(it.hasClass(f)?f&&(s.push(f),l.set(f,!0)):a[f]=a[f]==null?Ee(d):Fe(a[f],d,!0))}),u&&u.each(function(d,f){it.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),it.topologicalTravel(s,it.getAllClassMainTypes(),c,this);function c(d){var f=VWe(this,d,kt(t[d])),h=i.get(d),p=h?u&&u.get(d)?"replaceMerge":"normalMerge":"replaceAll",g=MJ(h,f,p);iHe(g,d,it),a[d]=null,i.set(d,null),o.set(d,0);var m=[],y=[],b=0,_;M(g,function(S,C){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var E=d==="series",O=it.getClass(d,S.keyInfo.subType,!E);if(!O)return;if(d==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===O)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var I=K({componentIndex:C},S.keyInfo);w=new O(T,this,this,I),K(w,I),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),a[d]=m,i.set(d,y),o.set(d,b),d==="series"&&qb(this)}this._seriesIndices||qb(this)},e.prototype.getOption=function(){var t=Ee(this.option);return M(t,function(r,a){if(it.hasClass(a)){for(var i=kt(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!oy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[a]=i}}),delete t[xV],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,r){var a=this._componentsMap.get(t);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:t==="max"?n<=e:n===e}function eGe(n,e){return n.join(",")===e.join(",")}const tGe=XWe;var ko=M,py=we,IV=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F4(n){var e=n&&n.itemStyle;if(e)for(var t=0,r=IV.length;t=0;m--){var y=n[m];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var b=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&f>=0&&b>0||l==="samesign"&&f<=0&&b<0){f=KBe(f,b),g=b;break}}}return r[0]=f,r[1]=g,r})})}var Gx=function(){function n(e){this.data=e.data||(e.sourceFormat===ul?{}:[]),this.sourceFormat=e.sourceFormat||ete,this.seriesLayoutBy=e.seriesLayoutBy||Zs,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var r=0;rg&&(g=_)}h[0]=p,h[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};kV=(e={},e[va+"_"+Zs]={pure:!0,appendData:i},e[va+"_"+mv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Oo]={pure:!0,appendData:i},e[ul]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),d=0;d<(l||[]).length;d++)c.push(l[d])})}},e[Eo]={appendData:i},e[Cc]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return bg(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,r){},n}();function VV(n){var e,t;return we(n)?n.type&&(t=n):e=n,{text:e,frag:t}}function f1(n){return new yGe(n)}var yGe=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,r=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var d;(this._dirty||i==="reset")&&(this._dirty=!1,d=this._doReset(r)),this._modBy=l,this._modDataCount=u;var f=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(d||h1&&r>0?s:o}};return i;function o(){return e=n?null:le},gte:function(n,e){return n>=e}},_Ge=function(){function n(e,t){if(!lt(t)){var r="";mt(r)}this._opFn=yte[e],this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){return lt(e)?this._opFn(e,this._rvalFloat):this._opFn(ru(e),this._rvalFloat)},n}(),bte=function(){function n(e,t){var r=e==="desc";this._resultLT=r?1:-1,t==null&&(t=r?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var r=lt(e)?e:ru(e),a=lt(t)?t:ru(t),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=ce(e),l=ce(t);s&&(r=l?e:0),l&&(a=s?t:0)}return ra?-this._resultLT:0},n}(),SGe=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ru(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(t=ru(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function CGe(n,e){return n==="eq"||n==="ne"?new SGe(n==="eq",e):he(yte,n)?new _Ge(n,e):null}var wGe=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return wc(e,t)},n}();function xGe(n,e){var t=new wGe,r=n.data,a=t.sourceFormat=n.sourceFormat,i=n.startIndex,o="";n.seriesLayoutBy!==Zs&&mt(o);var s=[],l={},u=n.dimensionsDefine;if(u)M(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var _="";he(l,y)&&mt(_),l[y]=b}});else for(var c=0;c65535?MGe:RGe}function Vh(){return[1/0,-1/0]}function LGe(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function BV(n,e,t,r,a){var i=Cte[t||"float"];if(a){var o=n[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;um[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=J(o,function(b){return b.property}),c=0;cy[1]&&(y[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,r=t[e];if(r!=null&&re)i=o-1;else return o}return-1},n.prototype.indicesOfNearest=function(e,t,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,d=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var r=t.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=d&&b<=f||isNaN(b))&&(l[u++]=g),g++}p=!0}else if(i===2){for(var m=h[a[0]],_=h[a[1]],S=e[a[1]][0],C=e[a[1]][1],y=0;y=d&&b<=f||isNaN(b))&&(w>=S&&w<=C||isNaN(w))&&(l[u++]=g),g++}p=!0}}if(!p)if(i===1)for(var y=0;y=d&&b<=f||isNaN(b))&&(l[u++]=T)}else for(var y=0;ye[I][1])&&(E=!1)}E&&(l[u++]=t.getRawIndex(y))}return uy[1]&&(y[1]=m)}}}},n.prototype.lttbDownSample=function(e,t){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,d,f,h=new(tm(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=d,f=S)}P>0&&Pc-p&&(l=c-p,s.length=l);for(var g=0;gd[1]&&(d[1]=y),f[h++]=b}return i._count=h,i._indices=f,i._updateGetRawIdx(),i},n.prototype.each=function(e,t){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=d)}return o=[s,l],this._extent[e]=o,o},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,r,a,i){return wc(t[i],this._dimensions[i])}j4={arrayRows:e,objectRows:function(t,r,a,i){return wc(t[r],this._dimensions[i])},keyedColumns:e,original:function(t,r,a,i){var o=t&&(t.value==null?t:t.value);return wc(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,r,a,i){return t[i]}}}(),n}(),wte=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),r=!!t.length,a,i;if(Qb(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=Vi(s)?Cc:Eo,i=[];var d=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=Ne(d.seriesLayoutBy,f.seriesLayoutBy)||null,p=Ne(d.sourceHeader,f.sourceHeader),g=Ne(d.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||g;a=m?[GP(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(t);a=b.sourceList,i=b.upstreamSignList}else{var _=y.get("source",!0);a=[GP(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},n.prototype._applyTransform=function(e){var t=this._sourceHost,r=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&UV(i)}var o,s=[],l=[];return M(e,function(u){u.prepareSource();var c=u.getSource(a||0),d="";a!=null&&!c&&UV(d),s.push(c),l.push(u._getVersionSign())}),r?o=DGe(r,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[dGe(s[0])]),{sourceList:o,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||t>0&&!n.noHeader;return M(n.blocks,function(a){var i=Ote(a);i>=e&&(e=i+ +(r&&(!i||KP(a)&&!a.noHeader)))}),e}return 0}function FGe(n,e,t,r){var a=e.noHeader,i=VGe(Ote(e)),o=[],s=e.blocks||[];Na(!s||X(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(he(u,l)){var c=new bte(u[l],null);s.sort(function(p,g){return c.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(p,g){var m=e.valueFormatter,y=Ete(p)(m?K(K({},n),{valueFormatter:m}):n,p,g>0?i.html:0,r);y!=null&&o.push(y)});var d=n.renderMode==="richText"?o.join(i.richText):ZP(o.join(""),a?t:i.html);if(a)return d;var f=HP(e.header,"ordinal",n.useUTC),h=Tte(r,n.renderMode).nameStyle;return n.renderMode==="richText"?Ite(n,f,h)+i.richText+d:ZP('
'+Qa(f)+"
"+d,t)}function $Ge(n,e,t,r){var a=n.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(S){return S=X(S)?S:[S],J(S,function(C,w){return HP(C,X(h)?h[w]:h,u)})};if(!(i&&o)){var d=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),f=i?"":HP(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),g=!s||!i,m=!s&&i,y=Tte(r,a),b=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":d)+(i?"":Ite(n,f,b))+(o?"":BGe(n,p,g,m,_)):ZP((s?"":d)+(i?"":jGe(f,!s,b))+(o?"":zGe(p,g,m,_)),t)}}function WV(n,e,t,r,a,i){if(n){var o=Ete(n),s={useUTC:a,renderMode:t,orderMode:r,markupStyleCreator:e,valueFormatter:n.valueFormatter};return o(s,n,0,i)}}function VGe(n){return{html:kGe[n],richText:NGe[n]}}function ZP(n,e){var t='
',r="margin: "+e+"px 0 0";return'
'+n+t+"
"}function jGe(n,e,t){var r=e?"margin-left:2px":"";return''+Qa(n)+""}function zGe(n,e,t,r){var a=t?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return n=X(n)?n:[n],''+J(n,function(o){return Qa(o)}).join("  ")+""}function Ite(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function BGe(n,e,t,r,a){var i=[a],o=r?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(X(e)?e.join(" "):e,i)}function Pte(n,e){var t=n.getData().getItemVisual(e,"style"),r=t[n.visualDrawType];return Hf(r)}function Dte(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var z4=function(){function n(){this.richTextStyles={},this._nextStyleNameId=IJ()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,r){var a=r==="richText"?this._generateStyleName():null,i=DWe({color:t,type:e,renderMode:r,markerId:a});return ce(i)?i:(this.richTextStyles[a]=i.style,i.content)},n.prototype.wrapRichTextStyle=function(e,t){var r={};X(t)?M(t,function(i){return K(r,i)}):K(r,t);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},n}();function Ate(n){var e=n.series,t=n.dataIndex,r=n.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=X(s),u=Pte(e,t),c,d,f,h;if(o>1||l&&!o){var p=HGe(s,e,t,i,u);c=p.inlineValues,d=p.inlineValueTypes,f=p.blocks,h=p.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=bg(a,t,i[0]),d=g.type}else h=c=l?s[0]:s;var m=j9(e),y=m&&e.name||"",b=a.getName(t),_=r?y:b;return xr("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Go(_),value:c,valueType:d})].concat(f||[])})}function HGe(n,e,t,r,a){var i=e.getData(),o=Qs(n,function(d,f,h){var p=i.getDimensionInfo(h);return d=d||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?M(r,function(d){c(bg(i,t,d),d)}):M(n,c);function c(d,f){var h=i.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:d,valueType:h.type})):(s.push(d),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Iu=at();function Jb(n,e){return n.getName(e)||n.getId(e)}var D2="__universalTransitionEnabled",Kx=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,r,a){this.seriesIndex=this.componentIndex,this.dataTask=f1({count:WGe,reset:GGe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var i=Iu(this).sourceManager=new wte(this);i.prepareSource();var o=this.getInitialData(t,a);YV(o,this),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,r){var a=hy(this),i=a?gv(t):{},o=this.subType;it.hasClass(o)&&(o+="Series"),Fe(t,r.getTheme().get(this.subType)),Fe(t,this.getDefaultOption()),Vf(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&kc(t,i,a)},e.prototype.mergeOption=function(t,r){t=Fe(this.option,t,!0),this.fillDataTextStyle(t.data);var a=hy(this);a&&kc(this.option,t,a);var i=Iu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,r);YV(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Iu(this).dataBeforeProcessed=o,GV(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Vi(t))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,r,a){var i=this.ecModel,o=u8.prototype.getColorFromPalette.call(this,t,r,a);return o||(o=i.getColorFromPalette(t,r,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,r){this._innerSelect(this.getData(r),t)},e.prototype.unselect=function(t,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(t,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[Jb(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[D2])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(t,r)}},e.registerClass=function(t){return it.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(it);or(Kx,h8);or(Kx,u8);FJ(Kx,it);function GV(n){var e=n.name;j9(n)||(n.name=UGe(n)||e)}function UGe(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),r=[];return M(t,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function WGe(n){return n.model.getRawData().count()}function GGe(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),YGe}function YGe(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function YV(n,e){M(HS(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,Ae(KGe,e))})}function KGe(n,e){var t=XP(n);return t&&t.setOutputEnd((e||this).count()),e}function XP(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var r=t.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(n.uid))}return r}}const pn=Kx;var g8=function(){function n(){this.group=new Oe,this.uid=hv("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){},n.prototype.updateLayout=function(e,t,r,a){},n.prototype.updateVisual=function(e,t,r,a){},n.prototype.toggleBlurSeries=function(e,t,r){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();B9(g8);Px(g8);const On=g8;function yv(){var n=at();return function(e){var t=n(e),r=e.pipelineContext,a=!!t.large,i=!!t.progressiveRender,o=t.large=!!(r&&r.large),s=t.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Mte=at(),ZGe=yv(),v8=function(){function n(){this.group=new Oe,this.uid=hv("viewChart"),this.renderTask=f1({plan:XGe,reset:qGe}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,r,a){},n.prototype.highlight=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"emphasis")},n.prototype.downplay=function(e,t,r,a){var i=e.getData(a&&a.dataType);i&&ZV(i,a,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateLayout=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.updateVisual=function(e,t,r,a){this.render(e,t,r,a)},n.prototype.eachRendered=function(e){Zc(this.group,e)},n.markUpdateMethod=function(e,t){Mte(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function KV(n,e,t){n&&uy(n)&&(e==="emphasis"?au:iu)(n,t)}function ZV(n,e,t){var r=jf(n,e),a=e&&e.highlightKey!=null?wUe(e.highlightKey):null;r!=null?M(kt(r),function(i){KV(n.getItemGraphicEl(i),t,a)}):n.eachItemGraphicEl(function(i){KV(i,t,a)})}B9(v8);Px(v8);function XGe(n){return ZGe(n.model)}function qGe(n){var e=n.model,t=n.ecModel,r=n.api,a=n.payload,i=e.pipelineContext.progressiveRender,o=n.view,s=a&&Mte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,r,a),QGe[l]}var QGe={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Qt=v8;var oC="\0__throttleOriginMethod",XV="\0__throttleRate",qV="\0__throttleType";function m8(n,e,t){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function d(){i=new Date().getTime(),o=null,n.apply(l,u||[])}var f=function(){for(var h=[],p=0;p=0?d():o=setTimeout(d,-s),a=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function bv(n,e,t,r){var a=n[e];if(a){var i=a[oC]||a,o=a[qV],s=a[XV];if(s!==t||o!==r){if(t==null||!r)return n[e]=i;a=n[e]=m8(i,t,r==="debounce"),a[oC]=i,a[qV]=r,a[XV]=t}return a}}function gy(n,e){var t=n[e];t&&t[oC]&&(t.clear&&t.clear(),n[e]=t[oC])}var QV=at(),JV={itemStyle:zf(Nee,!0),lineStyle:zf(kee,!0)},JGe={lineStyle:"stroke",itemStyle:"fill"};function Rte(n,e){var t=n.visualStyleMapper||JV[e];return t||(console.warn("Unknown style type '"+e+"'."),JV.itemStyle)}function Lte(n,e){var t=n.visualDrawType||JGe[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var eYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=n.getModel(r),i=Rte(n,r),o=i(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=Lte(n,r),u=o[l],c=me(u)?u:null,d=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||d){var f=n.getColorFromPalette(n.name,null,e.getSeriesCount());o[l]||(o[l]=f,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||me(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||me(o.stroke)?f:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var g=n.getDataParams(p),m=K({},o);m[l]=c(g),h.setItemVisual(p,"style",m)}}}},nm=new Xt,tYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),r=n.visualStyleAccessPath||"itemStyle",a=Rte(n,r),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){nm.option=l[r];var u=a(nm),c=o.ensureUniqueItemVisual(s,"style");K(c,u),nm.option.decal&&(o.setItemVisual(s,"decal",nm.option.decal),nm.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},nYe={performRawSeries:!0,overallReset:function(n){var e=ge();n.eachSeries(function(t){var r=t.getColorBy();if(!t.isColorBySeries()){var a=t.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),QV(t).scope=i}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var r=t.getRawData(),a={},i=t.getData(),o=QV(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=Lte(t,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],d=i.getItemVisual(c,"colorFromPalette");if(d){var f=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();f[l]=t.getColorFromPalette(h,o,p)}})}})}},e_=Math.PI;function rYe(n,e){e=e||{},_e(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Oe,r=new rt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(r);var a=new st({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new rt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new q9({shape:{startAngle:-e_/2,endAngle:-e_/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:e_*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:e_*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=n.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var aYe=function(){function n(e,t,r,a){this._stageTaskMap=ge(),this.ecInstance=e,this.api=t,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!t&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&t.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,r=t._pipelineMap=ge();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(a,a.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),r=this.api;M(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";Na(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,t,r),a.overallReset&&this._createOverallStageTask(a,i,t,r)},this)},n.prototype.prepareView=function(e,t,r,a){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,r){this._performStageTasks(this._visualHandlers,e,t,r)},n.prototype._performStageTasks=function(e,t,r,a){a=a||{};var i=!1,o=this;M(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),d=c.seriesTaskMap,f=c.overallTask;if(f){var h,p=f.agentStubMap;p.each(function(m){s(a,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,r);var g=o.getPerformArgs(f,a.block);p.each(function(m){m.perform(g)}),f.perform(g)&&(i=!0)}else d&&d.each(function(m,y){s(a,m)&&m.dirty();var b=o.getPerformArgs(m,a.block);b.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(r){t=r.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,r,a){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=ge(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(d){var f=d.uid,h=s.set(f,o&&o.get(f)||f1({plan:uYe,reset:cYe,count:fYe}));h.context={model:d,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(d,h)}},n.prototype._createOverallStageTask=function(e,t,r,a){var i=this,o=t.overallTask=t.overallTask||f1({reset:iYe});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ge(),u=e.seriesType,c=e.getTargetSeries,d=!0,f=!1,h="";Na(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(d=!1,M(r.getSeries(),p));function p(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(f=!0,f1({reset:oYe,onDirty:lYe})));y.context={model:g,overallProgress:d},y.agent=o,y.__block=d,i._pipe(g,y)}f&&o.dirty()},n.prototype._pipe=function(e,t){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},n.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:hYe(e)}),e.uid=hv("stageHandler"),t&&(e.visualType=t),e},n}();function iYe(n){n.overallReset(n.ecModel,n.api,n.payload)}function oYe(n){return n.overallProgress&&sYe}function sYe(){this.agent.dirty(),this.getDownstream().dirty()}function lYe(){this.agent&&this.agent.dirty()}function uYe(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function cYe(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=kt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?J(e,function(t,r){return kte(r)}):dYe}var dYe=kte(0);function kte(n){return function(e,t){var r=t.data,a=t.resetDefines[n];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-f.length){var p=u.slice(0,h);p!=="data"&&(t.mainType=p,t[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:t,dataQuery:r,otherQuery:a}},n.prototype.filter=function(e,t){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,i));function c(d,f,h,p){return d[h]==null||f[p||h]===d[h]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),qP=["symbol","symbolSize","symbolRotate","symbolOffset"],rj=qP.concat(["symbolKeepAspect"]),mYe={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&uf(l)?l:.5;var u=n.createRadialGradient(o,s,0,o,s,l);return u}function QP(n,e,t){for(var r=e.type==="radial"?RYe(n,e,t):MYe(n,e,t),a=e.colorStops,i=0;i0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:lt(n)?[n]:X(n)?n:null}function b8(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&kYe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(t){var a=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(t=J(t,function(i){return i/a}),r/=a)}return[t,r]}var NYe=new nl(!0);function uC(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function aj(n){return typeof n=="string"&&n!=="none"}function cC(n){var e=n.fill;return e!=null&&e!=="none"}function ij(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function oj(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function JP(n,e,t){var r=H9(e.image,e.__image,t);if(Dx(r)){var a=n.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*v2),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function FYe(n,e,t,r){var a,i=uC(t),o=cC(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||NYe,d=e.__dirty;if(!r){var f=t.fill,h=t.stroke,p=o&&!!f.colorStops,g=i&&!!h.colorStops,m=o&&!!f.image,y=i&&!!h.image,b=void 0,_=void 0,S=void 0,C=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(b=d?QP(n,f,w):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(_=d?QP(n,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(S=d||!e.__canvasFillPattern?JP(n,f,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(C=d||!e.__canvasStrokePattern?JP(n,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?n.fillStyle=b:m&&(S?n.fillStyle=S:o=!1),g?n.strokeStyle=_:y&&(C?n.strokeStyle=C:i=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var E,O;n.setLineDash&&t.lineDash&&(a=b8(e),E=a[0],O=a[1]);var I=!0;(u||d&tp)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),I=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),I&&c.rebuildPath(n,l?s:1),E&&(n.setLineDash(E),n.lineDashOffset=O),r||(t.strokeFirst?(i&&oj(n,t),o&&ij(n,t)):(o&&ij(n,t),i&&oj(n,t))),E&&n.setLineDash([])}function $Ye(n,e,t){var r=e.__image=H9(t.image,e.__image,e,e.onload);if(!(!r||!Dx(r))){var a=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(r,u,c,t.sWidth,t.sHeight,a,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,d=o-u,f=s-c;n.drawImage(r,u,c,d,f,a,i,o,s)}else n.drawImage(r,a,i,o,s)}}function VYe(n,e,t){var r,a=t.text;if(a!=null&&(a+=""),a){n.font=t.font||Ac,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var i=void 0,o=void 0;n.setLineDash&&t.lineDash&&(r=b8(e),i=r[0],o=r[1]),i&&(n.setLineDash(i),n.lineDashOffset=o),t.strokeFirst?(uC(t)&&n.strokeText(a,t.x,t.y),cC(t)&&n.fillText(a,t.x,t.y)):(cC(t)&&n.fillText(a,t.x,t.y),uC(t)&&n.strokeText(a,t.x,t.y)),i&&n.setLineDash([])}}var sj=["shadowBlur","shadowOffsetX","shadowOffsetY"],lj=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Bte(n,e,t,r,a){var i=!1;if(!r&&(t=t||{},e===t))return!1;if(r||e.opacity!==t.opacity){ni(n,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(o)?_f.opacity:o}(r||e.blend!==t.blend)&&(i||(ni(n,a),i=!0),n.globalCompositeOperation=e.blend||_f.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,r,a){if(!this[ia]){if(this._disposed){this.id;return}var i,o,s;if(we(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ia]=!0,!this._model||r){var l=new tGe(this._api),u=this._theme,c=this._model=new ste;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},tD);var d={seriesTransition:s,optionChanged:!0};if(a)this[Ka]={silent:i,updateParams:d},this[ia]=!1,this.getZr().wakeUp();else{try{zh(this),Pu.update.call(this,null,d)}catch(f){throw this[Ka]=null,this[ia]=!1,f}this._ssr||this._zr.flush(),this[Ka]=null,this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ot.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var r=this._zr.painter;return r.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ot.svgSupported){var t=this._zr,r=t.storage.getDisplayList();return M(r,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var r=t.excludeComponents,a=this._model,i=[],o=this;M(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var r=t.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(wj[a]){var l=s,u=s,c=-s,d=-s,f=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();M(p1,function(_,S){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Ee(t)),w=_.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),d=o(w.bottom,d),f.push({dom:C,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,d*=h;var p=c-l,g=d-u,m=Mc.createCanvas(),y=E$(m,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:g}),r){var b="";return M(f,function(_){var S=_.left-l,C=_.top-u;b+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=b,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new rt({shape:{x:0,y:0,width:p,height:g},style:{fill:t.connectedBackgroundColor}})),M(f,function(_){var S=new Xr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,r){return G4(this,"convertToPixel",t,r)},e.prototype.convertFromPixel=function(t,r){return G4(this,"convertFromPixel",t,r)},e.prototype.containPixel=function(t,r){if(this._disposed){this.id;return}var a=this._model,i,o=s1(a,t);return M(o,function(s,l){l.indexOf("Models")>=0&&M(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var d=this._chartsMap[u.__viewId];d&&d.containPoint&&(i=i||d.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(t,r){var a=this._model,i=s1(a,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?y8(s,l,r):D0(s,r)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;M(dKe,function(r){var a=function(i){var o=t.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&lf(s,function(p){var g=De(p);if(g&&g.dataIndex!=null){var m=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=K({},g.eventData),!0},!0),l){var c=l.componentType,d=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",d=l.seriesIndex);var f=c&&d!=null&&o.getComponent(c,d),h=f&&t[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=i,l.type=r,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},t.trigger(r,l)}};a.zrEventfulCallAtLast=!0,t._zr.on(r,a,t)}),M(h1,function(r,a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),M(["selectchanged"],function(r){t._messageCenter.on(r,function(a){this.trigger(r,a)},t)}),bYe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&LJ(this.getDom(),C8,"");var r=this,a=r._api,i=r._model;M(r._componentsViews,function(o){o.dispose(i,a)}),M(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete p1[r.id]},e.prototype.resize=function(t){if(!this[ia]){if(this._disposed){this.id;return}this._zr.resize(t);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=t&&t.silent;this[Ka]&&(i==null&&(i=this[Ka].silent),a=!0,this[Ka]=null),this[ia]=!0;try{a&&zh(this),Pu.update.call(this,{type:"resize",animation:K({duration:0},t&&t.animation)})}catch(o){throw this[ia]=!1,o}this[ia]=!1,rm.call(this,i),am.call(this,i)}}},e.prototype.showLoading=function(t,r){if(this._disposed){this.id;return}if(we(t)&&(r=t,t=""),t=t||"default",this.hideLoading(),!!nD[t]){var a=nD[t](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var r=K({},t);return r.type=h1[t.type],r},e.prototype.dispatchAction=function(t,r){if(this._disposed){this.id;return}if(we(r)||(r={silent:!!r}),!!dC[t.type]&&this._model){if(this[ia]){this._pendingActions.push(t);return}var a=r.silent;K4.call(this,t,a);var i=r.flush;i?this._zr.flush():i!==!1&&ot.browser.weChat&&this._throttledZrFlush(),rm.call(this,a),am.call(this,a)}},e.prototype.updateLabelLayout=function(){jo.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var r=t.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){zh=function(d){var f=d._scheduler;f.restorePipelines(d._model),f.prepareStageTasks(),W4(d,!0),W4(d,!1),f.plan()},W4=function(d,f){for(var h=d._model,p=d._scheduler,g=f?d._componentsViews:d._chartsViews,m=f?d._componentsMap:d._chartsMap,y=d._zr,b=d._api,_=0;_f.get("hoverLayerThreshold")&&!ot.node&&!ot.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=d._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(d,f){var h=d.get("blendMode")||null;f.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(d,f){if(!d.preventAutoZ){var h=d.get("z")||0,p=d.get("zlevel")||0;f.eachRendered(function(g){return l(g,h,p,-1/0),!0})}}function l(d,f,h,p){var g=d.getTextContent(),m=d.getTextGuideLine(),y=d.isGroup;if(y)for(var b=d.childrenRef(),_=0;_0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Wp(y))return;if(y instanceof Ue&&xUe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(p){y.stateTransition=m;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}y.__dirty&&a(y)}})}Sj=function(d){return new(function(f){W(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return d._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var g=p.__ecComponentInfo;if(g!=null)return d._model.getComponent(g.mainType,g.index);p=p.parent}},h.prototype.enterEmphasis=function(p,g){au(p,g),Gi(d)},h.prototype.leaveEmphasis=function(p,g){iu(p,g),Gi(d)},h.prototype.enterBlur=function(p){nee(p),Gi(d)},h.prototype.leaveBlur=function(p){Y9(p),Gi(d)},h.prototype.enterSelect=function(p){ree(p),Gi(d)},h.prototype.leaveSelect=function(p){aee(p),Gi(d)},h.prototype.getModel=function(){return d.getModel()},h.prototype.getViewOfComponentModel=function(p){return d.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return d.getViewOfSeriesModel(p)},h}(lte))(d)},rne=function(d){function f(h,p){for(var g=0;g=0)){xj.push(t);var i=$te.wrapStageHandler(t,a);i.__prio=e,i.__raw=t,n.push(i)}}function cne(n,e){nD[n]=e}function yKe(n,e,t){var r=XYe("registerMap");r&&r(n,e,t)}var bKe=PGe;fh(_8,eYe);fh(Zx,tYe);fh(Zx,nYe);fh(_8,mYe);fh(Zx,yYe);fh(qte,YYe);lne(cte);une(JYe,uGe);cne("default",rYe);cl({type:Sf,event:Sf,update:Sf},Yn);cl({type:T2,event:T2,update:T2},Yn);cl({type:l1,event:l1,update:l1},Yn);cl({type:E2,event:E2,update:E2},Yn);cl({type:u1,event:u1,update:u1},Yn);sne("light",pYe);sne("dark",gYe);var Tj=[],_Ke={registerPreprocessor:lne,registerProcessor:une,registerPostInit:pKe,registerPostUpdate:gKe,registerUpdateLifecycle:w8,registerAction:cl,registerCoordinateSystem:vKe,registerLayout:mKe,registerVisual:fh,registerTransform:bKe,registerLoading:cne,registerMap:yKe,registerImpl:ZYe,PRIORITY:lKe,ComponentModel:it,ComponentView:On,SeriesModel:pn,ChartView:Qt,registerComponentModel:function(n){it.registerClass(n)},registerComponentView:function(n){On.registerClass(n)},registerSeriesModel:function(n){pn.registerClass(n)},registerChartView:function(n){Qt.registerClass(n)},registerSubTypeDefaulter:function(n,e){it.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){UBe(n,e)}};function He(n){if(X(n)){M(n,function(e){He(e)});return}Be(Tj,n)>=0||(Tj.push(n),me(n)&&(n={install:n}),n.install(_Ke))}function im(n){return n==null?0:n.length||1}function Ej(n){return n}var SKe=function(){function n(e,t,r,a,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||Ej,this._newKeyGetter=a||Ej,this.context=i,this._diffModeMultiple=o==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,r={},a=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(d===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(d===1&&f===1)this._update&&this._update(c,u),a[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s30}var om=we,Du=J,IKe=typeof Int32Array>"u"?Array:Int32Array,PKe="e\0\0",Oj=-1,DKe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AKe=["_approximateExtent"],Ij,i_,sm,lm,q4,o_,Q4,MKe=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;fne(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=t)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Eo;if(l&&!a.pure)for(var u=[],c=e;c0},n.prototype.ensureUniqueItemVisual=function(e,t){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[t];return i==null&&(i=this.getVisual(t),X(i)?i=i.slice():om(i)&&(i=K({},i)),a[t]=i),i},n.prototype.setItemVisual=function(e,t,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,om(t)?K(a,t):a[t]=r},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){om(e)?K(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?K(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var r=this.hostModel&&this.hostModel.seriesIndex;LP(r,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){M(this._graphicEls,function(r,a){r&&e&&e.call(t,r,a)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:Du(this.dimensions,this._getDimInfo,this),this.hostModel)),q4(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var r=this[e];me(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return t.apply(this,[a].concat(D9(arguments)))})},n.internalField=function(){Ij=function(e){var t=e._invertedIndicesMap;M(t,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=t[a]=new IKe(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[t]=l}}}(),n}();const ka=MKe;function A0(n,e){c8(n)||(n=d8(n)),e=e||{};var t=e.coordDimensions||[],r=e.dimensionsDefine||n.dimensionsDefine||[],a=ge(),i=[],o=LKe(n,t,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&gne(o),l=r===n.dimensionsDefine,u=l?pne(n):hne(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,o));for(var d=ge(c),f=new Ste(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function LKe(n,e,t,r){var a=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,r||0);return M(e,function(i){var o;we(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function kKe(n,e,t){if(t||e.hasKey(n)){for(var r=0;e.hasKey(n+r);)r++;n+=r}return e.set(n,!0),n}var NKe=function(){function n(e){this.coordSysDims=[],this.axisMap=ge(),this.categoryAxisMap=ge(),this.coordSysName=e}return n}();function FKe(n){var e=n.get("coordinateSystem"),t=new NKe(e),r=$Ke[e];if(r)return r(n,t,t.axisMap,t.categoryAxisMap),t}var $Ke={cartesian2d:function(n,e,t,r){var a=n.getReferringComponents("xAxis",rr).models[0],i=n.getReferringComponents("yAxis",rr).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",i),Bh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Bh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,r){var a=n.getReferringComponents("singleAxis",rr).models[0];e.coordSysDims=["single"],t.set("single",a),Bh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(n,e,t,r){var a=n.getReferringComponents("polar",rr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Bh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Bh(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,r){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,r){var a=n.ecModel,i=a.getComponent("parallel",n.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];t.set(c,u),Bh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Bh(n){return n.get("type")==="category"}function VKe(n,e,t){t=t||{};var r=t.byIndex,a=t.stackedCoordDimension,i,o,s;jKe(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,d,f;if(M(i,function(b,_){ce(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){d="__\0ecstackresult_"+n.id,f="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,g=0;M(i,function(b){b.coordDim===h&&g++});var m={name:d,coordDim:h,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:f,coordDim:f,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,p),y.storeDimIndex=s.ensureCalculationDimension(d,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(i.push(m),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function jKe(n){return!fne(n.schema)}function Nc(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function vne(n,e){return Nc(n,e)?n.getCalculationInfo("stackResultDimension"):e}function zKe(n,e){var t=n.get("coordinateSystem"),r=P0.get(t),a;return e&&e.coordSysDims&&(a=J(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=hC(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function BKe(n,e,t){var r,a;return t&&M(n,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(n[r].otherDims.itemName=0),r}function fu(n,e,t){t=t||{};var r=e.getSourceManager(),a,i=!1;n?(i=!0,a=d8(n)):(a=r.getSource(),i=a.sourceFormat===Eo);var o=FKe(e),s=zKe(e,o),l=t.useEncodeDefaulter,u=me(l)?l:l?Ae(nte,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},d=A0(a,c),f=BKe(d.dimensions,t.createInvertedIndices,o),h=i?null:r.getSharedDataStore(d),p=VKe(e,{schema:d,store:h}),g=new ka(d,e);g.setCalculationInfo(p);var m=f!=null&&HKe(a)?function(y,b,_,S){return S===f?_:this.defaultDimValueGetter(y,b,_,S)}:null;return g.hasItemOption=!1,g.initData(i?a:h,null,m),g}function HKe(n){if(n.sourceFormat===Eo){var e=UKe(n.data||[]);return!X(lv(e))}}function UKe(n){for(var e=0;et[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();Px(mne);const hu=mne;var WKe=0,GKe=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++WKe}return n.createByAxisModel=function(e){var t=e.option,r=t.data,a=r&&J(r,YKe);return new n({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,r=this._needCollect;if(!ce(e)&&!r)return e;if(r&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(r?(t=this.categories.length,this.categories[t]=e,a.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ge(this.categories))},n}();function YKe(n){return we(n)&&n.value!=null?n.value:n+""}const rD=GKe;function aD(n){return n.type==="interval"||n.type==="log"}function KKe(n,e,t,r){var a={},i=n[1]-n[0],o=a.interval=EJ(i/e,!0);t!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=yne(o),l=a.niceTickExtent=[Ln(Math.ceil(n[0]/o)*o,s),Ln(Math.floor(n[1]/o)*o,s)];return ZKe(l,n),a}function J4(n){var e=Math.pow(10,V9(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Ln(t*e)}function yne(n){return js(n)+2}function Pj(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function ZKe(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Pj(n,0,e),Pj(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Xx(n,e){return n>=e[0]&&n<=e[1]}function qx(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Qx(n,e){return n*(e[1]-e[0])+e[0]}var bne=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new rD({})),X(a)&&(a=new rD({categories:J(a,function(i){return we(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(t){return t==null?NaN:ce(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Xx(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),qx(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Qx(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],r=this._extent,a=r[0];a<=r[1];)t.push({value:a}),a++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(hu);hu.registerClass(bne);const T8=bne;var xd=Ln,_ne=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Xx(t,this._extent)},e.prototype.normalize=function(t){return qx(t,this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.prototype.setExtent=function(t,r){var a=this._extent;isNaN(t)||(a[0]=parseFloat(t)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(t){var r=this._extent;t[0]r[1]&&(r[1]=t[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=yne(t)},e.prototype.getTicks=function(t){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(t?s.push({value:xd(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(t){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}t[r]=i}}return t}function wne(n){var e=QKe(n),t=[];return M(n,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),d=i.scale.getExtent(),f=Math.abs(d[1]-d[0]);s=u?c/f*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=ie(r.get("barWidth"),s),g=ie(r.get("barMaxWidth"),s),m=ie(r.get("barMinWidth")||(Ine(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:O8(i),stackId:E8(r)})}),xne(t)}function xne(n){var e={};M(n,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var d=r.barMaxWidth;d&&(l[u].maxWidth=d);var f=r.barMinWidth;f&&(l[u].minWidth=f);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=ie(s,o),c=ie(r.gap,1),d=r.remainedWidth,f=r.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),M(i,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),y.width=S,d-=S+c*S,f--}else{var S=h;b&&bS&&(S=_),S!==h&&(y.width=S,d-=S+c*S,f--)}}),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p=0,g;M(i,function(y,b){y.width||(y.width=h),g=y,p+=y.width*(1+c)}),g&&(p-=g.width*c);var m=-p/2;M(i,function(y,b){t[a][b]=t[a][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),t}function JKe(n,e,t){if(n&&e){var r=n[O8(e)];return r!=null&&t!=null?r[E8(t)]:r}}function Tne(n,e){var t=Cne(n,e),r=wne(t);M(t,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=E8(a),u=r[O8(s)][l],c=u.offset,d=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:d})})}function Ene(n){return{seriesType:n,plan:yv(),reset:function(e){if(One(e)){var t=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),d=Nc(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),h=eZe(a,i),p=Ine(e),g=e.get("barMinHeight")||0,m=c&&t.getDimensionIndex(c),y=t.getLayout("size"),b=t.getLayout("offset");return{progress:function(_,S){for(var C=_.count,w=p&&Bs(C*3),T=p&&l&&Bs(C*3),E=p&&Bs(C),O=r.master.getRect(),I=f?O.width:O.height,P,A=S.getStore(),R=0;(P=_.next())!=null;){var L=A.get(d?m:o,P),k=A.get(s,P),N=h,z=void 0;d&&(z=+L-A.get(o,P));var F=void 0,j=void 0,U=void 0,G=void 0;if(f){var Y=r.dataToPoint([L,k]);if(d){var Q=r.dataToPoint([z,k]);N=Q[0]}F=N,j=Y[1]+b,U=Y[0]-N,G=y,Math.abs(U)>>1;n[a][1]a&&(this._approxInterval=a);var s=s_.length,l=Math.min(tZe(s_,this._approxInterval,0,s),s-1);this._interval=s_[l][1],this._minLevelUnit=s_[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return lt(t)?t:+tl(t)},e.prototype.contain=function(t){return Xx(this.parse(t),this._extent)},e.prototype.normalize=function(t){return qx(this.parse(t),this._extent)},e.prototype.scale=function(t){return Qx(t,this._extent)},e.type="time",e}(Fc),s_=[["second",r8],["minute",a8],["hour",d1],["quarter-day",d1*6],["half-day",d1*12],["day",fo*1.2],["half-week",fo*3.5],["week",fo*7],["month",fo*31],["quarter",fo*95],["half-year",yV/2],["year",yV]];function nZe(n,e,t,r){var a=tl(e),i=tl(t),o=function(p){return _V(a,p,r)===_V(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},d=function(){return c()&&o("minute")},f=function(){return d()&&o("second")},h=function(){return f()&&o("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return f();case"millisecond":return h()}}function rZe(n,e){return n/=fo,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function aZe(n){var e=30*fo;return n/=e,n>6?6:n>3?3:n>2?2:1}function iZe(n){return n/=d1,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Dj(n,e){return n/=e?a8:r8,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function oZe(n){return EJ(n,!0)}function sZe(n,e,t){var r=new Date(n);switch(Gp(e)){case"year":case"month":r[zee(t)](0);case"day":r[Bee(t)](1);case"hour":r[Hee(t)](0);case"minute":r[Uee(t)](0);case"second":r[Wee(t)](0),r[Gee(t)](0)}return r.getTime()}function lZe(n,e,t,r){var a=1e4,i=Vee,o=0;function s(I,P,A,R,L,k,N){for(var z=new Date(P),F=P,j=z[R]();F1&&k===0&&A.unshift({value:A[0].value-F})}}for(var k=0;k=r[0]&&b<=r[1]&&d++)}var _=(r[1]-r[0])/e;if(d>_*1.5&&f>_/1.5||(u.push(m),d>_||n===i[h]))break}c=[]}}}for(var S=Pt(J(u,function(I){return Pt(I,function(P){return P.value>=r[0]&&P.value<=r[1]&&!P.notAdd})}),function(I){return I.length>0}),C=[],w=S.length-1,h=0;h0;)i*=10;var s=[Ln(dZe(r[0]/i)*i),Ln(cZe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){g1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=No(t)/No(this.base),Xx(t,this._extent)},e.prototype.normalize=function(t){return t=No(t)/No(this.base),qx(t,this._extent)},e.prototype.scale=function(t){return t=Qx(t,this._extent),l_(this.base,t)},e.type="log",e}(hu),Ane=I8.prototype;Ane.getMinorTicks=g1.getMinorTicks;Ane.getLabel=g1.getLabel;function u_(n,e){return uZe(n,js(e))}hu.registerClass(I8);const fZe=I8;var hZe=function(){function n(e,t,r){this._prepareParams(e,t,r)}return n.prototype._prepareParams=function(e,t,r){r[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:d}},n.prototype.modifyDataMinMax=function(e,t){this[gZe[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var r=pZe[e];this[r]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),pZe={min:"_determinedMin",max:"_determinedMax"},gZe={min:"_dataMin",max:"_dataMax"};function Mne(n,e,t){var r=n.rawExtentInfo;return r||(r=new hZe(n,e,t),n.rawExtentInfo=r,r)}function c_(n,e){return e==null?null:ny(e)?NaN:n.parse(e)}function Rne(n,e){var t=n.type,r=Mne(n,e,n.getExtent()).calculate();n.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&t==="time"){var s=Cne("bar",o),l=!1;if(M(s,function(d){l=l||d.getBaseAxis()===e.axis}),l){var u=wne(s),c=vZe(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function vZe(n,e,t,r){var a=t.axis.getExtent(),i=a[1]-a[0],o=JKe(r,t.axis);if(o===void 0)return{min:n,max:e};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,d=1-(s+l)/i,f=c/d-c;return e+=f*(l/u),n-=f*(s/u),{min:n,max:e}}function Sg(n,e){var t=e,r=Rne(n,t),a=r.extent,i=t.get("splitNumber");n instanceof fZe&&(n.base=t.get("logBase"));var o=n.type,s=t.get("interval"),l=o==="interval"||o==="time";n.setExtent(a[0],a[1]),n.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Jx(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new T8({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Dne({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hu.getClass(e)||Fc)}}function mZe(n){var e=n.scale.getExtent(),t=e[0],r=e[1];return!(t>0&&r>0||t<0&&r<0)}function M0(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(r){return function(a,i){return n.scale.getFormattedLabel(a,i,r)}}(e):ce(e)?function(r){return function(a){var i=n.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):me(e)?function(r){return function(a,i){return t!=null&&(i=a.value-t),r(P8(n,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return n.scale.getLabel(r)}}function P8(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function yZe(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var r,a,i=t.getExtent();t instanceof T8?a=t.count():(r=t.getTicks(),a=r.length);var o=n.getLabelModel(),s=M0(n),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;cn[1]&&(n[1]=a[1])})}var R0=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),SZe=1e-8;function Mj(n,e){return Math.abs(n-e)a&&(r=o,a=l)}if(r)return wZe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var r=this._rect;if(r&&!t)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return M(o,function(s){s.type==="polygon"?Rj(s.exterior,a,i,t):M(s.points,function(l){Rj(l,a,i,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]),t||(this._rect=r),r},e.prototype.contain=function(t){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(t[0],t[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/t,l/t])}return r}function EZe(n,e){return n=TZe(n),J(Pt(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var r=t.properties,a=t.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new Lj(o[0],o.slice(1)));break;case"MultiPolygon":M(a.coordinates,function(l){l[0]&&i.push(new Lj(l[0],l.slice(1)))});break;case"LineString":i.push(new kj([a.coordinates]));break;case"MultiLineString":i.push(new kj(a.coordinates))}var s=new Nne(r[e||"name"],i,r.cp);return s.properties=r,s})}var yy=at();function OZe(n){return n.type==="category"?PZe(n):AZe(n)}function IZe(n,e){return n.type==="category"?DZe(n,e):{ticks:J(n.scale.getTicks(),function(t){return t.value})}}function PZe(n){var e=n.getLabelModel(),t=$ne(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function $ne(n,e){var t=Vne(n,"labels"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;return me(r)?i=Hne(n,r):(o=r==="auto"?MZe(n):r,i=Bne(n,o)),zne(t,r,{labels:i,labelCategoryInterval:o})}function DZe(n,e){var t=Vne(n,"ticks"),r=D8(e),a=jne(t,r);if(a)return a;var i,o;if((!e.get("show")||n.scale.isBlank())&&(i=[]),me(r))i=Hne(n,r,!0);else if(r==="auto"){var s=$ne(n,n.getLabelModel());o=s.labelCategoryInterval,i=J(s.labels,function(l){return l.tickValue})}else o=r,i=Bne(n,o,!0);return zne(t,r,{ticks:i,tickCategoryInterval:o})}function AZe(n){var e=n.scale.getTicks(),t=M0(n);return{labels:J(e,function(r,a){return{level:r.level,formattedLabel:t(r,a),rawLabel:n.scale.getLabel(r),tickValue:r.value}})}}function Vne(n,e){return yy(n)[e]||(yy(n)[e]=[])}function jne(n,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=i[1];l+=s){var p=0,g=0,m=C0(t({value:l}),e.font,"center","top");p=m.width*1.3,g=m.height*1.3,f=Math.max(f,p,7),h=Math.max(h,g,7)}var y=f/c,b=h/d;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),S=yy(n.model),C=n.getExtent(),w=S.lastAutoInterval,T=S.lastTickCount;return w!=null&&T!=null&&Math.abs(w-_)<=1&&Math.abs(T-o)<=1&&w>_&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=C[0],S.axisExtent1=C[1]),_}function LZe(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function Bne(n,e,t){var r=M0(n),a=n.scale,i=a.getExtent(),o=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=Lne(n),f=o.get("showMinLabel")||d,h=o.get("showMaxLabel")||d;f&&u!==i[0]&&g(i[0]);for(var p=u;p<=i[1];p+=l)g(p);h&&p-l!==i[1]&&g(i[1]);function g(m){var y={value:m};s.push(t?m:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:m})}return s}function Hne(n,e,t){var r=n.scale,a=M0(n),i=[];return M(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var Nj=[0,1],kZe=function(){function n(e,t,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=r||[0,0]}return n.prototype.contain=function(e){var t=this._extent,r=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=r&&e<=a},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return xJ(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var r=this._extent;r[0]=e,r[1]=t},n.prototype.dataToCoord=function(e,t){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count())),xt(e,Nj,r,t)},n.prototype.coordToData=function(e,t){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),Fj(r,a.count()));var i=xt(e,r,Nj,t);return this.scale.scale(i)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),r=IZe(this,t),a=r.ticks,i=J(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return NZe(this,i,o,e.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var r=this.scale.getMinorTicks(t),a=J(r,function(i){return J(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},n.prototype.getViewLabels=function(){return OZe(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},n.prototype.calculateCategoryInterval=function(){return RZe(this)},n}();function Fj(n,e){var t=n[1]-n[0],r=e,a=t/r/2;n[0]+=a,n[1]-=a}function NZe(n,e,t,r){var a=e.length;if(!n.onBand||t||!a)return;var i=n.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;M(e,function(h){h.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var d=i[0]>i[1];f(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&f(i[0],e[0].coord)&&e.unshift({coord:i[0]}),f(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&f(o.coord,i[1])&&e.push({coord:i[1]});function f(h,p){return h=Ln(h),p=Ln(p),d?h>p:ha&&(a+=um);var h=Math.atan2(s,o);if(h<0&&(h+=um),h>=r&&h<=a||h+um>=r&&h+um<=a)return l[0]=c,l[1]=d,u-t;var p=t*Math.cos(r)+n,g=t*Math.sin(r)+e,m=t*Math.cos(a)+n,y=t*Math.sin(a)+e,b=(p-o)*(p-o)+(g-s)*(g-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=p,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function gC(n,e,t,r,a,i,o,s){var l=a-n,u=i-e,c=t-n,d=r-e,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=o[0]=n+p*c,m=o[1]=e+p*d;return Math.sqrt((g-a)*(g-a)+(m-i)*(m-i))}function Une(n,e,t,r,a,i,o){t<0&&(n=n+t,t=-t),r<0&&(e=e+r,r=-r);var s=n+t,l=e+r,u=o[0]=Math.min(Math.max(a,n),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Bo=[];function jZe(n,e,t){var r=Une(e.x,e.y,e.width,e.height,n.x,n.y,Bo);return t.set(Bo[0],Bo[1]),r}function zZe(n,e,t){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,d=n.x,f=n.y,h=0;h0){e=e/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Ko,Kt),Le.sub(ks,Wn,Kt);var t=Hs.len(),r=ks.len();if(!(t<.001||r<.001)){Hs.scale(1/t),ks.scale(1/r);var a=Hs.dot(ks),i=Math.cos(e);if(i1&&Le.copy(Da,Wn),Da.toArray(n[1])}}}}function BZe(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ko.fromArray(n[0]),Kt.fromArray(n[1]),Wn.fromArray(n[2]),Le.sub(Hs,Kt,Ko),Le.sub(ks,Wn,Kt);var r=Hs.len(),a=ks.len();if(!(r<.001||a<.001)){Hs.scale(1/r),ks.scale(1/a);var i=Hs.dot(e),o=Math.cos(t);if(i=l)Le.copy(Da,Wn);else{Da.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var d=Wn.x!==Kt.x?(Da.x-Kt.x)/(Wn.x-Kt.x):(Da.y-Kt.y)/(Wn.y-Kt.y);if(isNaN(d))return;d<0?Le.copy(Da,Kt):d>1&&Le.copy(Da,Wn)}Da.toArray(n[1])}}}}function Vj(n,e,t,r){var a=t==="normal",i=a?n:n.ensureState(t);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?n.useStyle(s):i.style=s}function HZe(n,e){var t=e.smooth,r=e.points;if(r)if(n.moveTo(r[0][0],r[0][1]),t>0&&r.length>=3){var a=qu(r[0],r[1]),i=qu(r[1],r[2]);if(!a||!i){n.lineTo(r[1][0],r[1][1]),n.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*t,s=y2([],r[1],r[0],o/a),l=y2([],r[1],r[2],o/i),u=y2([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&C(-c/o,0,o);var g=n[0],m=n[o-1],y,b;_(),y<0&&w(-y,.8),b<0&&w(b,.8),_(),S(y,b,1),S(b,y,-1),_(),y<0&&T(-y),b<0&&T(b);function _(){y=g.rect[e]-r,b=a-m.rect[e]-m.rect[t]}function S(E,O,I){if(E<0){var P=Math.min(O,-E);if(P>0){C(P*I,0,o);var A=P+E;A<0&&w(-A*I,1)}else w(-E*I,1)}}function C(E,O,I){E!==0&&(u=!0);for(var P=O;P0)for(var A=0;A0;A--){var N=I[A-1]*k;C(-N,A,o)}}}function T(E){var O=E<0?-1:1;E=Math.abs(E);for(var I=Math.ceil(E/(o-1)),P=0;P0?C(I,0,P+1):C(-I,o-P-1,o),E-=I,E<=0)return}return u}function UZe(n,e,t,r){return Yne(n,"x","width",e,t,r)}function Kne(n,e,t,r){return Yne(n,"y","height",e,t,r)}function Zne(n){var e=[];n.sort(function(g,m){return m.priority-g.priority});var t=new $e(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),Be(f,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),ft(r,u,t,l)}else if(r.attr(u),!fv(r).valueAnimation){var d=Ne(r.style.opacity,1);r.style.opacity=0,an(r,{style:{opacity:d}},t,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};d_(h,u,f_),d_(h,r.states.select,f_)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};d_(p,u,f_),d_(p,r.states.emphasis,f_)}Lee(r,l,c,t,t)}if(a&&!a.ignore&&!a.invisible){var i=YZe(a),o=i.oldLayout,g={points:a.shape.points};o?(a.attr({shape:o}),ft(a,{shape:g},t)):(a.setShape(g),a.style.strokePercent=0,an(a,{style:{strokePercent:1}},t)),i.oldLayout=g}},n}();const ZZe=KZe;var rE=at();function XZe(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){var a=rE(t).labelManager;a||(a=rE(t).labelManager=new ZZe),a.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,r){var a=rE(t).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var aE=Math.sin,iE=Math.cos,Xne=Math.PI,Ed=Math.PI*2,qZe=180/Xne,QZe=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,r,a,i,o){this._add("C",e,t,r,a,i,o)},n.prototype.quadraticCurveTo=function(e,t,r,a){this._add("Q",e,t,r,a)},n.prototype.arc=function(e,t,r,a,i,o){this.ellipse(e,t,r,r,0,a,i,o)},n.prototype.ellipse=function(e,t,r,a,i,o,s,l){var u=s-o,c=!l,d=Math.abs(u),f=nc(d-Ed)||(c?u>=Ed:-u>=Ed),h=u>0?u%Ed:u%Ed+Ed,p=!1;f?p=!0:nc(d)?p=!1:p=h>=Xne==!!c;var g=e+r*iE(o),m=t+a*aE(o);this._start&&this._add("M",g,m);var y=Math.round(i*qZe);if(f){var b=1/this._p,_=(c?1:-1)*(Ed-b);this._add("A",r,a,y,1,+c,e+r*iE(o+_),t+a*aE(o+_)),b>.01&&this._add("A",r,a,y,0,+c,g,m)}else{var S=e+r*iE(s),C=t+a*aE(s);this._add("A",r,a,y,+p,+c,S,C)}},n.prototype.rect=function(e,t,r,a){this._add("M",e,t),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,r,a,i,o,s,l,u){for(var c=[],d=this._p,f=1;f"}function sXe(n){return""}function R8(n,e){e=e||{};var t=e.newline?` -`:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return oXe(o,s)+(o!=="style"?Qa(l):l||"")+(i?""+t+J(i,function(u){return r(u)}).join(t)+t:"")+sXe(o)}return r(n)}function lXe(n,e,t){t=t||{};var r=t.newline?` -`:"",a=" {"+r,i=r+"}",o=J(Ye(n),function(l){return l+a+J(Ye(n[l]),function(u){return u+":"+n[l][u]+";"}).join(r)+i}).join(r),s=J(Ye(e),function(l){return"@keyframes "+l+a+J(Ye(e[l]),function(u){return u+a+J(Ye(e[l][u]),function(c){var d=e[l][u][c];return c==="d"&&(d='path("'+d+'")'),c+":"+d+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function sD(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zj(n,e,t,r){return br("svg","root",{width:n,height:e,xmlns:Qne,"xmlns:xlink":Jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+n+" "+e:!1},t)}var Bj={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Vd="transform-origin";function uXe(n,e,t){var r=K({},n.shape);K(r,e),n.buildPath(t,r);var a=new qne;return a.reset(hJ(n)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function cXe(n,e){var t=e.originX,r=e.originY;(t||r)&&(n[Vd]=t+"px "+r+"px")}var dXe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function tre(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function fXe(n,e,t){var r=n.shape.paths,a={},i,o;if(M(r,function(l){var u=sD(t.zrId);u.animation=!0,eT(l,{},u,!0);var c=u.cssAnims,d=u.cssNodes,f=Ye(c),h=f.length;if(h){o=f[h-1];var p=c[o];for(var g in p){var m=p[g];a[g]=a[g]||{d:""},a[g].d+=m.d||""}for(var y in d){var b=d[y].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){e.d=!1;var s=tre(a,t);return i.replace(o,s)}}function Hj(n){return ce(n)?Bj[n]?"cubic-bezier("+Bj[n]+")":k9(n)?n:"":""}function eT(n,e,t,r){var a=n.animators,i=a.length,o=[];if(n instanceof Q9){var s=fXe(n,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ee=tre(T,t);return ee+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var by=Math.round;function nre(n){return n&&ce(n.src)}function rre(n){return n&&me(n.toDataURL)}function L8(n,e,t,r){rXe(function(a,i){var o=a==="fill"||a==="stroke";o&&fJ(i)?ire(e,n,a,r):o&&N9(i)?ore(t,n,a,r):n[a]=i},e,t,!1),bXe(t,n,r)}function Uj(n){return nc(n[0]-1)&&nc(n[1])&&nc(n[2])&&nc(n[3]-1)}function hXe(n){return nc(n[4])&&nc(n[5])}function k8(n,e,t){if(e&&!(hXe(e)&&Uj(e))){var r=t?10:1e4;n.transform=Uj(e)?"translate("+by(e[4]*r)/r+" "+by(e[5]*r)/r+")":dBe(e)}}function Wj(n,e,t){for(var r=n.points,a=[],i=0;i"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Na(f,m),Na(h,m)}else if(f==null||h==null){var y=function(I,P){if(I){var A=I.elm,R=f||P.width,L=h||P.height;I.tag==="pattern"&&(u?(L=1,R/=i.width):c&&(R=1,L/=i.height)),I.attrs.width=R,I.attrs.height=L,A&&(A.setAttribute("width",R),A.setAttribute("height",L))}},b=H9(p,null,n,function(I){l||y(w,I),y(d,I)});b&&b.width&&b.height&&(f=f||b.width,h=h||b.height)}d=br("image","img",{href:p,width:f,height:h}),o.width=f,o.height=h}else a.svgElement&&(d=Ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(d){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var C=pJ(a);C&&(o.patternTransform=C);var w=br("pattern","",o,[d]),T=R8(w),E=r.patternCache,O=E[T];O||(O=r.zrId+"-p"+r.patternIdx++,E[T]=O,o.id=O,w=r.defs[O]=br("pattern",O,o,[d])),e[t]=Ox(O)}}function _Xe(n,e,t){var r=t.clipPathCache,a=t.defs,i=r[n.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};r[n.id]=i,a[i]=br("clipPath",i,o,[are(n,t)])}e["clip-path"]=Ox(i)}function Kj(n){return document.createTextNode(n)}function Yd(n,e,t){n.insertBefore(e,t)}function Zj(n,e){n.removeChild(e)}function Xj(n,e){n.appendChild(e)}function sre(n){return n.parentNode}function lre(n){return n.nextSibling}function oE(n,e){n.textContent=e}var qj=58,SXe=120,CXe=br("","");function lD(n){return n===void 0}function Os(n){return n!==void 0}function wXe(n,e,t){for(var r={},a=e;a<=t;++a){var i=n[a].key;i!==void 0&&(r[i]=a)}return r}function Nm(n,e){var t=n.key===e.key,r=n.tag===e.tag;return r&&t}function _y(n){var e,t=n.children,r=n.tag;if(Os(r)){var a=n.elm=ere(r);if(N8(CXe,n),X(t))for(e=0;ei?(p=t[l+1]==null?null:t[l+1].elm,ure(n,p,t,a,l)):mC(n,e,r,i))}function rp(n,e){var t=e.elm=n.elm,r=n.children,a=e.children;n!==e&&(N8(n,e),lD(e.text)?Os(r)&&Os(a)?r!==a&&xXe(t,r,a):Os(a)?(Os(n.text)&&oE(t,""),ure(t,null,a,0,a.length-1)):Os(r)?mC(t,r,0,r.length-1):Os(n.text)&&oE(t,""):n.text!==e.text&&(Os(r)&&mC(t,r,0,r.length-1),oE(t,e.text)))}function TXe(n,e){if(Nm(n,e))rp(n,e);else{var t=n.elm,r=sre(t);_y(e),r!==null&&(Yd(r,e.elm,lre(t)),mC(r,[n],0,0))}return e}var EXe=0,OXe=function(){function n(e,t,r){if(this.type="svg",this.refreshHover=Qj(),this.configLayer=Qj(),this.storage=t,this._opts=r=K({},r),this.root=e,this._id="zr"+EXe++,this._oldVNode=zj(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ere("svg");N8(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",TXe(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return Yj(e,sD(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=sD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=IXe(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=br("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=J(Ye(i.defs),function(f){return i.defs[f]});if(u.length&&o.push(br("defs","defs",{},u)),e.animation){var c=lXe(i.cssNodes,i.cssAnims,{newline:!0});if(c){var d=br("style","stl",{},[],c);o.push(d)}}return zj(r,a,o,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},R8(this.renderToVNode({animation:Ne(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ne(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[g]===l[g]);g--);for(var m=p-1;m>g;m--)o--,s=i[o-1];for(var y=g+1;y=s)}}for(var d=this.__startIndex;d15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)E=m.__endIndex;else for(var I=h.dpr,P=0;P0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},n.prototype.eachLayer=function(e,t){for(var r=this._zlevelList,a=0;a0?h_:0),this._needsManuallyCompositing),c.__builtin__||I9("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),i=c),a.__dirty&Ei&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(d,f){!d.__used&&d.getElementCount()>0&&(d.__dirty=!0,d.__startIndex=d.__endIndex=d.__drawIndex=0),d.__dirty&&d.__drawIndex<0&&(d.__drawIndex=d.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var r=this._layerConfig;r[e]?Fe(r[e],t,!0):r[e]=t;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(pn);const VXe=$Xe;function Cg(n,e){var t=n.mapDimensionsAll("defaultedLabel"),r=t.length;if(r===1){var a=bg(n,e,t[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var jXe=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;return o.updateData(t,r,a,i),o}return e.prototype._createSymbol=function(t,r,a,i,o){this.removeAll();var s=ir(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=zXe,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){au(this.childAt(0))},e.prototype.downplay=function(){iu(this.childAt(0))},e.prototype.setZ=function(t,r){var a=this.childAt(0);a.zlevel=t,a.z=r},e.prototype.setDraggable=function(t,r){var a=this.childAt(0);a.draggable=t,a.cursor=!r&&t?"move":a.cursor},e.prototype.updateData=function(t,r,a,i){this.silent=!1;var o=t.getItemVisual(r,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var d=t.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,t,r,l,d)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):ft(f,h,s,r),rs(f)}if(this._updateCommon(t,r,l,a,i),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,an(f,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,r,a,i,o){var s=this.childAt(0),l=t.hostModel,u,c,d,f,h,p,g,m,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,d=i.selectItemStyle,f=i.focus,h=i.blurScope,g=i.labelStatesModels,m=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var b=i&&i.itemModel?i.itemModel:t.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),d=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),f=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),g=wr(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var S=t.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=dh(t.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),y&&s.attr("cursor",y);var w=t.getItemVisual(r,"style"),T=w.fill;if(s instanceof Xr){var E=s.style;s.useStyle(K({image:E.image,x:E.x,y:E.y,width:E.width,height:E.height},w))}else s.__isEmptyBrush?s.useStyle(K({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var O=t.getItemVisual(r,"liftZ"),I=this._z2;O!=null?I==null&&(this._z2=s.z2,s.z2+=O):I!=null&&(s.z2=I,this._z2=null);var P=o&&o.useNameLabel;Zr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:T,defaultOpacity:w.opacity});function A(k){return P?t.getName(k):Cg(t,k)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=d,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),En(this,f,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,r,a){var i=this.childAt(0),o=De(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&Lc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Lc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,r){return _v(t.getItemVisual(r,"symbolSize"))},e}(Oe);function zXe(n,e){this.parent.drift(n,e)}const L0=jXe;function lE(n,e,t,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(t))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function tz(n){return n!=null&&!we(n)&&(n={isIgnore:n}),n||{}}function nz(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:wr(e),cursorStyle:e.get("cursor")}}var BXe=function(){function n(e){this.group=new Oe,this._SymbolCtor=e||L0}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=tz(t);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=nz(e),u={disableAnimation:s},c=t.getSymbolPoint||function(d){return e.getItemLayout(d)};i||r.removeAll(),e.diff(i).add(function(d){var f=c(d);if(lE(e,f,d,t)){var h=new o(e,d,l,u);h.setPosition(f),e.setItemGraphicEl(d,h),r.add(h)}}).update(function(d,f){var h=i.getItemGraphicEl(f),p=c(d);if(!lE(e,p,d,t)){r.remove(h);return}var g=e.getItemVisual(d,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==g)r.remove(h),h=new o(e,d,l,u),h.setPosition(p);else{h.updateData(e,d,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):ft(h,y,a)}r.add(h),e.setItemGraphicEl(d,h)}).remove(function(d){var f=i.getItemGraphicEl(d);f&&f.fadeOut(function(){r.remove(f)},a)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=nz(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,r){this._progressiveEls=[],r=tz(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?t=r[0]:r[1]<0&&(t=r[1]),t}function fre(n,e,t,r){var a=NaN;n.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=n.valueStart);var i=n.baseDataOffset,o=[];return o[i]=t.get(n.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function UXe(n,e){var t=[];return e.diff(n).add(function(r){t.push({cmd:"+",idx:r})}).update(function(r,a){t.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){t.push({cmd:"-",idx:r})}).execute(),t}function WXe(n,e,t,r,a,i,o,s){for(var l=UXe(n,e),u=[],c=[],d=[],f=[],h=[],p=[],g=[],m=dre(a,e,o),y=n.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_=a||g<0)break;if(Tf(y,b)){if(l){g+=i;continue}break}if(g===t)n[i>0?"moveTo":"lineTo"](y,b),d=y,f=b;else{var _=y-u,S=b-c;if(_*_+S*S<.5){g+=i;continue}if(o>0){for(var C=g+i,w=e[C*2],T=e[C*2+1];w===y&&T===b&&m=r||Tf(w,T))h=y,p=b;else{I=w-u,P=T-c;var L=y-u,k=w-y,N=b-c,z=T-b,F=void 0,j=void 0;if(s==="x"){F=Math.abs(L),j=Math.abs(k);var U=I>0?1:-1;h=y-U*F*o,p=b,A=y+U*j*o,R=b}else if(s==="y"){F=Math.abs(N),j=Math.abs(z);var G=P>0?1:-1;h=y,p=b-G*F*o,A=y,R=b+G*j*o}else F=Math.sqrt(L*L+N*N),j=Math.sqrt(k*k+z*z),O=j/(j+F),h=y-I*o*(1-O),p=b-P*o*(1-O),A=y+I*o*O,R=b+P*o*O,A=Au(A,Mu(w,y)),R=Au(R,Mu(T,b)),A=Mu(A,Au(w,y)),R=Mu(R,Au(T,b)),I=A-y,P=R-b,h=y-I*F/j,p=b-P*F/j,h=Au(h,Mu(u,y)),p=Au(p,Mu(c,b)),h=Mu(h,Au(u,y)),p=Mu(p,Au(c,b)),I=y-h,P=b-p,A=y+I*j/F,R=b+P*j/F}n.bezierCurveTo(d,f,h,p,y,b),d=A,f=R}else n.lineTo(y,b)}u=y,c=b,g+=i}return m}var hre=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),GXe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hre},e.prototype.buildPath=function(t,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Tf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[d++],p=i[d++],g=i[d++],m=i[d++],y=i[d++],b=i[d++];var C=u?WS(s,h,g,y,t,c):WS(l,p,m,b,t,c);if(C>0)for(var w=0;w=0){var S=u?vr(l,p,m,b,T):vr(s,h,g,y,T);return u?[t,S]:[S,t]}}s=y,l=b;break}}},e}(Ue),YXe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(hre),pre=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new YXe},e.prototype.buildPath=function(t,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Tf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function XXe(n,e,t){var r=n.getVisual("visualMeta");if(!(!r||!r.length||!n.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=n.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=J(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,d=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var f=ZXe(u,a==="x"?t.getWidth():t.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,g=f[0].coord-p,m=f[h-1].coord+p,y=m-g;if(y<.001)return"transparent";M(f,function(_){_.offset=(_.coord-g)/y}),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var b=new T0(0,0,0,0,f,!0);return b[a]=g,b[a+"2"]=m,b}}}function qXe(n,e,t){var r=n.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(a&&QXe(i,e))){var o=e.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function QXe(n,e){var t=n.getExtent(),r=Math.abs(t[1]-t[0])/n.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function JXe(n,e){return isNaN(n)||isNaN(e)}function eqe(n){for(var e=n.length/2;e>0&&JXe(n[e*2-2],n[e*2-1]);e--);return e-1}function sz(n,e){return[n[e*2],n[e*2+1]]}function tqe(n,e,t){for(var r=n.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function mre(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var U=g.getState("emphasis").style;U.lineWidth=+g.style.lineWidth+1}De(g).seriesIndex=t.seriesIndex,En(g,z,F,j);var G=oz(t.get("smooth")),Y=t.get("smoothMonotone");if(g.setShape({smooth:G,smoothMonotone:Y,connectNulls:E}),m){var Q=l.getCalculationInfo("stackedOnSeries"),Z=0;m.useStyle(_e(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(Z=oz(Q.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:Z,smoothMonotone:Y,connectNulls:E}),Kr(m,t,"areaStyle"),De(m).seriesIndex=t.seriesIndex,En(m,z,F,j)}var ae=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=d,this._step=P,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,g),m&&this.packEventData(t,m))},e.prototype.packEventData=function(t,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],d=l[s*2+1];if(isNaN(c)||isNaN(d)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,d))return;var f=t.get("zlevel")||0,h=t.get("z")||0;u=new L0(o,s),u.x=c,u.y=d,u.setZ(f,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=f,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,t,r,a,i)},e.prototype.downplay=function(t,r,a,i){var o=t.getData(),s=jf(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,t,r,a,i)},e.prototype._changePolyState=function(t){var r=this._polygon;JS(this._polyline,t),r&&JS(r,t)},e.prototype._newPolyline=function(t){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new GXe({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(t,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new pre({shape:{points:t,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,c=u.get("animationDuration");me(c)&&(c=c(null));var d=u.get("animationDelay")||0,f=me(d)?d(null):d;t.eachItemGraphicEl(function(h,p){var g=h;if(g){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(a)if(o){var S=a,C=r.pointToCoord(m);i?(y=S.startAngle,b=S.endAngle,_=-C[1]/180*Math.PI):(y=S.r0,b=S.r,_=C[0])}else{var w=a;i?(y=w.x,b=w.x+w.width,_=h.x):(y=w.y+w.height,b=w.y,_=h.y)}var T=b===y?0:(_-y)/(b-y);l&&(T=1-T);var E=me(d)?d(p):c*T+f,O=g.getSymbolPath(),I=O.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:E}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:E}),O.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,r,a){var i=t.getModel("endLabel");if(mre(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new st({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=eqe(l);c>=0&&(Zr(s,wr(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:c,defaultText:function(d,f,h){return h!=null?cre(o,h):Cg(o,d)},enableTextSetter:!0},nqe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var d=a.getLayout("points"),f=a.hostModel,h=f.get("connectNulls"),p=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,S=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,C=(y?g:0)*(b?-1:1),w=(y?0:-g)*(b?-1:1),T=y?"x":"y",E=tqe(d,S,T),O=E.range,I=O[1]-O[0],P=void 0;if(I>=1){if(I>1&&!h){var A=sz(d,O[0]);u.attr({x:A[0]+C,y:A[1]+w}),o&&(P=f.getRawValue(O[0]))}else{var A=c.getPointOn(S,T);A&&u.attr({x:A[0]+C,y:A[1]+w});var R=f.getRawValue(O[0]),L=f.getRawValue(O[1]);o&&(P=kJ(a,p,R,L,E.t))}i.lastFrameIndex=O[0]}else{var k=t===1||i.lastFrameIndex>0?O[0]:0,A=sz(d,k);o&&(P=f.getRawValue(k)),u.attr({x:A[0]+C,y:A[1]+w})}if(o){var N=fv(u);typeof N.setLabelText=="function"&&N.setLabelText(P)}}},e.prototype._doUpdateAnimation=function(t,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,d=t.hostModel,f=WXe(this._data,t,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=f.current,p=f.stackedOnCurrent,g=f.next,m=f.stackedOnNext;if(o&&(h=Ru(f.current,a,o,l),p=Ru(f.stackedOnCurrent,a,o,l),g=Ru(f.next,a,o,l),m=Ru(f.stackedOnNext,a,o,l)),iz(h,g)>3e3||c&&iz(p,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var y={shape:{points:g}};f.current!==h&&(y.shape.__points=f.next),u.stopAnimation(),ft(u,y,d),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),ft(c,{shape:{stackedOnPoints:m}},d),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=f.status,S=0;S<_.length;S++){var C=_[S].cmd;if(C==="="){var w=t.getItemGraphicEl(_[S].idx1);w&&b.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,E=0;Ee&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),d=r.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(d||1),h=Math.round(s/f);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;ce(i)?p=iqe[i]:me(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,oqe))}}}}}function sqe(n){n.registerChartView(aqe),n.registerSeriesModel(VXe),n.registerLayout(N0("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",r)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("line"))}var bre=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)M(i.getAxes(),function(f,h){if(f.type==="category"&&r!=null){var p=f.getTicksCoords(),g=o[h],m=r[h]==="x1"||r[h]==="y1";if(m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=f.toGlobalCoord(f.getExtent()[m?1:0]);return}for(var y=void 0,b=void 0,_=1,S=0;Sg){b=(C+y)/2;break}S===1&&(_=w-p[0].tickValue)}b==null&&(y?y&&(b=p[p.length-1].coord):b=p[0].coord),s[h]=f.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),d=i.getBaseAxis().isHorizontal()?0:1;s[d]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(pn);pn.registerClass(bre);const yC=bre;var lqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return fu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>t&&(t=r),t},e.prototype.brushSelector=function(t,r,a){return a.rect(r.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Xc(yC.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(yC);const uqe=lqe;var cqe=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),dqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new cqe},e.prototype.buildPath=function(t,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,d=r.endAngle,f=r.clockwise,h=Math.PI*2,p=f?d-cMath.PI/2&&cs)return!0;s=d}return!1},e.prototype._isOrderDifferentInView=function(t,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,r,a,i){if(this._isOrderChangedWithinSameData(t,r,a)){var o=this._dataSort(t,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,r,a){var i=r.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(t,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var r=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){cy(i,t,De(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Qt),lz={cartesian2d:function(n,e){var t=e.width<0?-1:1,r=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=n.x+n.width,i=n.y+n.height,o=cE(e.x,n.x),s=dE(e.x+e.width,a),l=cE(e.y,n.y),u=dE(e.y+e.height,i),c=sa?s:o,e.y=d&&l>i?u:l,e.width=c?0:s-o,e.height=d?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||d},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}var a=dE(e.r,n.r),i=cE(e.r0,n.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},uz={cartesian2d:function(n,e,t,r,a,i,o,s,l){var u=new rt({shape:K({},r),z2:1});if(u.__dataIndex=t,u.name="item",i){var c=u.shape,d=a?"height":"width";c[d]=0}return u},polar:function(n,e,t,r,a,i,o,s,l){var u=!a&&l?bC:fi,c=new u({shape:r,z2:1});c.name="item";var d=_re(a);if(c.calculateTextPosition=fqe(d,{isRoundCap:u===bC}),i){var f=c.shape,h=a?"r":"endAngle",p={};f[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?ft:an)(c,{shape:p},i)}return c}};function vqe(n,e){var t=n.get("realtimeSort",!0),r=e.getBaseAxis();if(t&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function cz(n,e,t,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?ft:an)(t,{shape:l},e,a,null);var c=e?n.baseAxis.model:null;(o?ft:an)(t,{shape:u},c,a)}function dz(n,e){for(var t=0;t0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(n,e,t){var r=n.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function bqe(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function _re(n){return function(e){var t=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+t;default:return r}}}(n)}function hz(n,e,t,r,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var c=n.shape,d=df(r.getModel("itemStyle"),c,!0);K(c,d),n.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;n.setShape("r",u)}n.useStyle(l);var f=r.getShallow("cursor");f&&n.attr("cursor",f);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=wr(r);Zr(n,p,{labelFetcher:i,labelDataIndex:t,defaultText:Cg(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=n.getTextContent();if(s&&g){var m=r.get(["label","position"]);n.textConfig.inside=m==="middle"?!0:null,hqe(n,m==="outside"?h:m,_re(o),r.get(["label","rotate"]))}Ree(g,p,i.getRawValue(t),function(b){return cre(e,b)});var y=r.getModel(["emphasis"]);En(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(n,r),bqe(a)&&(n.style.fill="none",n.style.stroke="none",M(n.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function _qe(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var r=n.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var Sqe=function(){function n(){}return n}(),pz=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Sqe},e.prototype.buildPath=function(t,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?t:null},30,!1);function Cqe(n,e,t){for(var r=n.baseDimIdx,a=1-r,i=n.shape.points,o=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,d=i.length/3;c=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[c]}return-1}function Sre(n,e,t){if(hh(t,"cartesian2d")){var r=e,a=t.getArea();return{x:n?r.x:a.x,y:n?a.y:r.y,width:n?r.width:a.width,height:n?a.height:r.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:n?a.r0:i.r0,r:n?a.r:i.r,startAngle:n?i.startAngle:0,endAngle:n?i.endAngle:Math.PI*2}}}function wqe(n,e,t){var r=n.type==="polar"?fi:rt;return new r({shape:Sre(e,t,n),silent:!0,z2:0})}const xqe=gqe;function Tqe(n){n.registerChartView(xqe),n.registerSeriesModel(uqe),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,yre("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var m_=Math.PI*2,mz=Math.PI/180;function Cre(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wre(n,e){var t=Cre(n,e),r=n.get("center"),a=n.get("radius");X(a)||(a=[0,a]);var i=ie(t.width,e.getWidth()),o=ie(t.height,e.getHeight()),s=Math.min(i,o),l=ie(a[0],s/2),u=ie(a[1],s/2),c,d,f=n.coordinateSystem;if(f){var h=f.dataToPoint(r);c=h[0]||0,d=h[1]||0}else X(r)||(r=[r,r]),c=ie(r[0],i)+t.x,d=ie(r[1],o)+t.y;return{cx:c,cy:d,r0:l,r:u}}function Eqe(n,e,t){e.eachSeriesByType(n,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Cre(r,t),s=wre(r,t),l=s.cx,u=s.cy,c=s.r,d=s.r0,f=-r.get("startAngle")*mz,h=r.get("minAngle")*mz,p=0;a.each(i,function(I){!isNaN(I)&&p++});var g=a.getSum(i),m=Math.PI/(g||p)*2,y=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=m_,w=0,T=f,E=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,P){var A;if(isNaN(I)){a.setItemLayout(P,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:d,r:b?NaN:c});return}b!=="area"?A=g===0&&_?m:I*m:A=m_/p,At?y:m,C=Math.abs(_.label.y-t);if(C>=S.maxY){var w=_.label.x-e-_.len2*a,T=r+_.len,E=Math.abs(w)n.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var g=r.getBoundingRect();i.width=g.width;var m=(r.style.margin||0)+2.1;i.height=g.height+m,i.y-=(i.height-d)/2}}}function fE(n){return n.position==="center"}function Pqe(n){var e=n.getData(),t=[],r,a,i=!1,o=(n.get("minShowLabelAngle")||0)*Oqe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}e.each(function(w){var T=e.getItemGraphicEl(w),E=T.shape,O=T.getTextContent(),I=T.getTextGuideLine(),P=e.getItemModel(w),A=P.getModel("label"),R=A.get("position")||P.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),k=A.get("alignTo"),N=ie(A.get("edgeDistance"),u),z=A.get("bleedMargin"),F=P.getModel("labelLine"),j=F.get("length");j=ie(j,u);var U=F.get("length2");if(U=ie(U,u),Math.abs(E.endAngle-E.startAngle)0?"right":"left":Y>0?"left":"right"}var Je=Math.PI,Ve=0,Rt=A.get("rotate");if(lt(Rt))Ve=Rt*(Je/180);else if(R==="center")Ve=0;else if(Rt==="radial"||Rt===!0){var $n=Y<0?-G+Je:-G;Ve=$n}else if(Rt==="tangential"&&R!=="outside"&&R!=="outer"){var Vn=Math.atan2(Y,Q);Vn<0&&(Vn=Je*2+Vn);var on=Q>0;on&&(Vn=Je+Vn),Ve=Vn-Je}if(i=!!Ve,O.x=Z,O.y=ae,O.rotation=Ve,O.setStyle({verticalAlign:"middle"}),ne){O.setStyle({align:ee});var Ba=O.states.select;Ba&&(Ba.x+=O.x,Ba.y+=O.y)}else{var wn=O.getBoundingRect().clone();wn.applyTransform(O.getComputedTransform());var mi=(O.style.margin||0)+2.1;wn.y-=mi/2,wn.height+=mi,t.push({label:O,labelLine:I,position:R,len:j,len2:U,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new Le(Y,Q),linePoints:se,textAlign:ee,labelDistance:L,labelAlignTo:k,edgeDistance:N,bleedMargin:z,rect:wn,unconstrainedWidth:wn.width,labelStyleWidth:O.style.width})}T.setTextConfig({inside:ne})}}),!i&&n.get("avoidLabelOverlap")&&Iqe(t,r,a,l,u,f,c,d);for(var g=0;g0){for(var c=o.getItemLayout(0),d=1;isNaN(c&&c.startAngle)&&d=i.r0}},e.type="pie",e}(Qt);const Mqe=Aqe;function Sv(n,e,t){e=X(e)&&{coordDimensions:e}||K({encodeDefine:n.getEncode()},e);var r=n.getSource(),a=A0(r,e).dimensions,i=new ka(a,n);return i.initData(r,t),i}var Rqe=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,t)},n}();const $0=Rqe;var Lqe=at(),kqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype.getDataParams=function(t){var r=this.getData(),a=Lqe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=YBe(o,r.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(pn);const Nqe=kqe;function Fqe(n){return{seriesType:n,reset:function(e,t){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(lt(o)&&!isNaN(o)&&o<0)})}}}function $qe(n){n.registerChartView(Mqe),n.registerSeriesModel(Nqe),zte("pie",n.registerAction),n.registerLayout(Ae(Eqe,"pie")),n.registerProcessor(F0("pie")),n.registerProcessor(Fqe("pie"))}var Vqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(pn);const jqe=Vqe;var Tre=4,zqe=function(){function n(){}return n}(),Bqe=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new zqe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]=0;u--){var c=u*2,d=i[c]-s/2,f=i[c+1]-l/2;if(t>=d&&r>=f&&t<=d+s&&r<=f+l)return u}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,d=-1/0,f=0;f=0&&(u.dataIndex=d+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const Uqe=Hqe;var Wqe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=N0("").reset(t,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Uqe:new k0,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Qt);const Gqe=Wqe;var Yqe=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(it);const Kqe=Yqe;var cD=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(it);or(cD,R0);var Ere={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Zqe=Fe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ere),F8=Fe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ere),Xqe=Fe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},F8),qqe=_e({logBase:10},F8);const Ore={category:Zqe,value:F8,time:Xqe,log:qqe};var Qqe={value:1,category:1,time:1,log:1};function wg(n,e,t,r){M(Qqe,function(a,i){var o=Fe(Fe({},Ore[i],!0),r,!0),s=function(l){W(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,d){var f=hy(this),h=f?gv(c):{},p=d.getTheme();Fe(c,p.get(i+"Axis")),Fe(c,this.getDefaultOption()),c.type=bz(c),f&&kc(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rD.createByAxisModel(this))},u.prototype.getCategories=function(c){var d=this.option;if(d.type==="category")return c?d.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",bz)}function bz(n){return n.type||(n.data?"category":"value")}var Jqe=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Pt(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const eQe=Jqe;var dD=["x","y"];function _z(n){return n.type==="interval"||n.type==="time"}var tQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=dD,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!_z(t)||!_z(r))){var a=t.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,d=(s[1]-o[1])/u,f=o[0]-a[0]*c,h=o[1]-i[0]*d,p=this._transform=[c,0,0,d,f,h];this._invTransform=sv([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,r){var a=this.dataToPoint(t),i=this.dataToPoint(r),o=this.getArea(),s=new $e(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,r,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Wr(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(t,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(t,r){var a=[];if(this._invTransform)return Wr(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),r),a[1]=o.coordToData(o.toLocalCoord(t[1]),r),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(r[0],r[1]),o=Math.max(t[0],t[1])-a,s=Math.max(r[0],r[1])-i;return new $e(a,i,o,s)},e}(eQe),nQe=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),t&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(t,r){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(cs);const rQe=nQe;function fD(n,e,t){t=t||{};var r=n.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}i.position=[u==="y"?p[f[l]]:d[0],u==="x"?p[f[l]]:d[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=m[s],i.labelOffset=o?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Lr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function Sz(n){return n.get("coordinateSystem")==="cartesian2d"}function Cz(n){var e={xAxisModel:null,yAxisModel:null};return M(e,function(t,r){var a=r.replace(/Model$/,""),i=n.getReferringComponents(a,rr).models[0];e[r]=i}),e}var hE=Math.log;function Ire(n,e,t){var r=Fc.prototype,a=r.getTicks.call(t),i=r.getTicks.call(t,!0),o=a.length-1,s=r.getInterval.call(t),l=Rne(n,e),u=l.extent,c=l.fixMin,d=l.fixMax;if(n.type==="log"){var f=hE(n.base);u=[hE(u[0])/f,hE(u[1])/f]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:d});var h=r.getExtent.call(n);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(n),g=u[0],m=u[1];if(c&&d)p=(m-g)/o;else if(c)for(m=u[0]+p*o;mu[0]&&isFinite(g)&&isFinite(u[0]);)p=J4(p),g=u[1]-p*o;else{var y=n.getTicks().length-1;y>o&&(p=J4(p));var b=p*o;m=Math.ceil(u[1]/p)*p,g=Ln(m-b),g<0&&u[0]>=0?(g=0,m=Ln(b)):m>0&&u[1]<=0&&(m=0,g=-Ln(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(n,g+p*_,m+p*S),r.setInterval.call(n,p),(_||S)&&r.setNiceExtent.call(n,g+p,m-p)}var aQe=function(){function n(e,t,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dD,this._initCartesian(e,t,r),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Ye(o),u=l.length;if(u){for(var c=[],d=u-1;d>=0;d--){var f=+l[d],h=o[f],p=h.model,g=h.scale;aD(g)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Sg(g,p),aD(g)&&(s=h))}c.length&&(s||(s=c.pop(),Sg(s.scale,s.model)),M(c,function(m){Ire(m.scale,m.model,s.scale)}))}}a(r.x),a(r.y);var i={};M(r.x,function(o){wz(r,"y",o,i)}),M(r.y,function(o){wz(r,"x",o,i)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=hr(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=yZe(u);if(c){var d=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[d]-=c[d]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(s,function(u){var c=u.isHorizontal(),d=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(d[f],d[1-f]),iQe(u,c?o.x:o.y)})}},n.prototype.getAxis=function(e,t){var r=this._axesMap[e];if(r!=null)return r[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var r="x"+e+"y"+t;return this._coordsMap[r]}we(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):qS(a-rc)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),Tz={axisLine:function(n,e,t,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Wr(s,s,o),Wr(l,l,o));var c=K({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new kr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});yg(d.shape,d.style.lineWidth),d.anid="line",t.add(d);var f=e.get(["axisLine","symbol"]);if(f!=null){var h=e.get(["axisLine","symbolSize"]);ce(f)&&(f=[f,f]),(ce(h)||lt(h))&&(h=[h,h]);var p=dh(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],m=h[1];M([{rotate:n.rotation+Math.PI/2,offset:p[0],r:0},{rotate:n.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(f[b]!=="none"&&f[b]!=null){var _=ir(f[b],-g/2,-m/2,g,m,c.stroke,!0),S=y.r+y.offset,C=u?l:s;_.attr({rotation:y.rotate,x:C[0]+S*Math.cos(n.rotation),y:C[1]-S*Math.sin(n.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(n,e,t,r){var a=uQe(t,r,e,n),i=dQe(t,r,e,n);if(lQe(e,i,a),cQe(t,r,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Gne(J(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Zne(o)}},axisName:function(n,e,t,r){var a=Lr(n.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,d=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Oz(i)?n.labelOffset+o*l:0],f,h=e.get("nameRotate");h!=null&&(h=h*rc/180);var p;Oz(i)?f=Ef.innerTextLayout(n.rotation,h??n.rotation,o):(f=sQe(n.rotation,i,h||0,u),p=n.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(f.rotation)),!isFinite(p)&&(p=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Lr(n.nameTruncateMaxWidth,m.maxWidth,p),_=new st({x:d[0],y:d[1],rotation:f.rotation,silent:Ef.isLabelSilent(e),style:Zt(s,{text:a,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(dv({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=Ef.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,De(_).eventData=S}r.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function sQe(n,e,t,r){var a=TJ(t-n),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qS(a-rc/2)?(o=l?"bottom":"top",i="center"):qS(a-rc*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",arc/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function lQe(n,e,t){if(!Lne(n.axis)){var r=n.get(["axisLabel","showMinLabel"]),a=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],d=t[t.length-1],f=t[t.length-2];r===!1?(Yi(i),Yi(u)):Ez(i,o)&&(r?(Yi(o),Yi(c)):(Yi(i),Yi(u))),a===!1?(Yi(s),Yi(d)):Ez(l,s)&&(a?(Yi(l),Yi(f)):(Yi(s),Yi(d)))}}function Yi(n){n&&(n.ignore=!0)}function Ez(n,e){var t=n&&n.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!t||!r)){var a=Ex([]);return uh(a,a,-n.rotation),t.applyTransform(Bl([],a,n.getLocalTransform())),r.applyTransform(Bl([],a,e.getLocalTransform())),t.intersect(r)}}function Oz(n){return n==="middle"||n==="center"}function Pre(n,e,t,r,a){for(var i=[],o=[],s=[],l=0;l=0||n===e}function mQe(n){var e=$8(n);if(e){var t=e.axisPointerModel,r=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=r.parse(o));var s=hD(t);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var g=l;p.color!=null&&(g=_e({color:p.color},l));var m=Fe(Ee(p),{boundaryGap:t,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:d,nameTextStyle:g,triggerEvent:f},!1);if(ce(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else me(c)&&(m.name=c(m.name,m));var b=new Xt(m,null,this.ecModel);return or(b,R0.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Fe({lineStyle:{color:"#bbb"}},cm.axisLine),axisLabel:y_(cm.axisLabel,!1),axisTick:y_(cm.axisTick,!1),splitLine:y_(cm.splitLine,!0),splitArea:y_(cm.splitArea,!0),indicator:[]},e}(it);const RQe=MQe;var LQe=["axisLine","axisTickLabel","axisName"],kQe=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes(),i=J(a,function(o){var s=o.model.get("showName")?o.name:"",l=new su(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});M(i,function(o){M(LQe,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var r=t.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),d=s.get("show"),f=l.get("color"),h=u.get("color"),p=X(f)?f:[f],g=X(h)?h:[h],m=[],y=[];function b(k,N,z){var F=z%N.length;return k[F]=k[F]||[],F}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,C=r.cy,w=0;w<_.length;w++){if(c){var T=b(m,p,w);m[T].push(new rl({shape:{cx:S,cy:C,r:_[w].coord}}))}if(d&&w<_.length-1){var T=b(y,g,w);y[T].push(new kx({shape:{cx:S,cy:C,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var E,O=J(a,function(k,N){var z=k.getTicksCoords();return E=E==null?z.length-1:Math.min(z.length-1,E),J(z,function(F){return r.coordToPoint(F.coord,N)})}),I=[],w=0;w<=E;w++){for(var P=[],A=0;A3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;vE(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var d=Math.abs(i),f=(i>0?1:-1)*(d>3?.4:d>1?.15:.05);vE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Rz(this._zr,"globalPan")){var r=t.pinchScale>1?1.1:1/1.1;vE(this,"zoom",null,t,{scale:r,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(To);function vE(n,e,t,r,a){n.pointerChecker&&n.pointerChecker(r,a.originX,a.originY)&&(nu(r.event),kre(n,e,t,r,a))}function kre(n,e,t,r,a){a.isAvailableBehavior=fe(M2,null,t,r),n.trigger(e,a)}function M2(n,e,t){var r=t[n];return!n||r&&(!ce(r)||e.event[r+"Key"])}const V0=WQe;function j8(n,e,t){var r=n.target;r.x+=e,r.y+=t,r.dirty()}function z8(n,e,t,r){var a=n.target,i=n.zoomLimit,o=n.zoom=n.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/n.zoom;n.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var GQe={axisPointer:1,tooltip:1,brush:1};function nT(n,e,t){var r=e.getComponentByElement(n.topTarget),a=r&&r.coordinateSystem;return r&&r!==t&&!GQe.hasOwnProperty(r.mainType)&&a&&a.model!==t}function Nre(n){if(ce(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var mE,_C={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Lz=Ye(_C),SC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},kz=Ye(SC),YQe=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var r=Nre(e);this._defsUsePending=[];var a=new Oe;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||t.width),l=parseFloat(r.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),_i(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;XQe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,d;if(o){var f=rT(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(d=$re(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=a;a=new Oe,a.add(h),h.scaleX=h.scaleY=d.scale,h.x=d.x,h.y=d.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new rt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:d,named:i}},n.prototype._parseNode=function(e,t,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var c=mE[s];if(c&&he(mE,s)){l=c.call(this,e,t);var d=e.getAttribute("name");if(d){var f={name:d,namedFrom:null,svgNodeTagLower:s,el:l};r.push(f),s==="g"&&(u=f)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var h=Nz[s];if(h&&he(Nz,s)){var p=h.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=p)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,i,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},n.prototype._parseText=function(e,t){var r=new sy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),KQe(r,t);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,t.add(r),r},n.internalField=function(){mE={g:function(e,t){var r=new Oe;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r},rect:function(e,t){var r=new rt;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,t){var r=new rl;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,t){var r=new kr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,t){var r=new X9;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new hi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var r=e.getAttribute("points"),a;r&&(a=Vz(r));var i=new vi({shape:{points:a||[]},silent:!0});return Ki(t,i),_i(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var r=new Xr;return Ki(t,r),_i(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,t){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Oe;return Ki(t,s),_i(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var r=e.getAttribute("d")||"",a=dee(r);return Ki(t,a),_i(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),n}(),Nz={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),r=parseInt(n.getAttribute("x2")||"10",10),a=parseInt(n.getAttribute("y2")||"0",10),i=new T0(e,t,r,a);return Fz(n,i),$z(n,i),i},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),r=parseInt(n.getAttribute("r")||"0",10),a=new xee(e,t,r);return Fz(n,a),$z(n,a),a}};function Fz(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function $z(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var r=t.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Fre(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Ki(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),_e(e.__inheritedStyle,n.__inheritedStyle))}function Vz(n){for(var e=rT(n),t=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=rT(o);switch(a=a||wo(),s){case"translate":Js(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":L9(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":uh(a,a,-parseFloat(l[0])*yE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yE);Bl(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var zz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Fre(n,e,t){var r=n.getAttribute("style");if(r){zz.lastIndex=0;for(var a;(a=zz.exec(r))!=null;){var i=a[1],o=he(_C,i)?_C[i]:null;o&&(e[o]=a[2]);var s=he(SC,i)?SC[i]:null;s&&(t[s]=a[2])}}}function eJe(n,e,t){for(var r=0;r0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,t,r),this._updateMapSelectHandler(e,u,r,a)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=ge(),r=ge(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function d(h){for(var p=[],g=!u&&l&&l.project,m=0;m=0)&&(f=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Zr(e,wr(r),{labelFetcher:f,labelDataIndex:d,defaultText:t},h);var p=e.getTextContent();if(p&&(Vre(p).ignore=p.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Gz(n,e,t,r,a,i){n.data?n.data.setItemGraphicEl(i,e):De(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:r&&r.option||{}}}function Yz(n,e,t,r,a){n.data||dv({el:e,componentModel:a,itemName:t,itemTooltipOption:r.get("tooltip")})}function Kz(n,e,t,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return En(e,o,i.get("blurScope"),i.get("disabled")),n.isGeo&&CUe(e,a,t),o}function Zz(n,e,t){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),M(n,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(pn);const CJe=SJe;function wJe(n,e){var t={};return M(n,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),n[0].map(n[0].mapDimension("value"),function(r,a){for(var i="ec-"+n[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,c=0;c1?(S.width=_,S.height=_/m):(S.height=_,S.width=_*m),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=n.getBoxLayoutParams();C.aspect=m,S=hr(C,{width:p,height:g})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function IJe(n,e){M(e.get("geoCoord"),function(t,r){n.addGeoCoord(r,t)})}var PJe=function(){function n(){this.dimensions=zre}return n.prototype.create=function(e,t){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Jz(l+s,l,K({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=eB,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),M(i,function(o,s){var l=J(o,function(c){return c.get("nameMap")}),u=new Jz(s,s,K({nameMap:P9(l)},a(o[0])));u.zoomLimit=Lr.apply(null,J(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=eB,u.resize(o[0],t),M(o,function(c){c.coordinateSystem=u,IJe(u,c)})}),r},n.prototype.getFilledRegions=function(e,t,r,a){for(var i=(e||[]).slice(),o=ge(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function $Je(n,e){var t=n.isExpand?n.children:[],r=n.parentNode.children,a=n.hierNode.i?r[n.hierNode.i-1]:null;if(t.length){zJe(n);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(n.hierNode.prelim=a.hierNode.prelim+e(n,a),n.hierNode.modifier=n.hierNode.prelim-i):n.hierNode.prelim=i}else a&&(n.hierNode.prelim=a.hierNode.prelim+e(n,a));n.parentNode.hierNode.defaultAncestor=BJe(n,a,n.parentNode.hierNode.defaultAncestor||r[0],e)}function VJe(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function nB(n){return arguments.length?n:WJe}function Fm(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function jJe(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function zJe(n){for(var e=n.children,t=e.length,r=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function BJe(n,e,t,r){if(e){for(var a=n,i=n,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,d=s.hierNode.modifier;s=bE(s),i=_E(i),s&&i;){a=bE(a),o=_E(o),a.hierNode.ancestor=n;var f=s.hierNode.prelim+d-i.hierNode.prelim-u+r(s,i);f>0&&(UJe(HJe(s,n,t),n,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!bE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),i&&!_E(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,t=n)}return t}function bE(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function _E(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function HJe(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function UJe(n,e,t){var r=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=r}function WJe(n,e){return n.parentNode===e.parentNode?1:2}var GJe=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),YJe=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GJe},e.prototype.buildPath=function(t,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,d=1-c,f=ie(r.forkPosition,1),h=[];h[c]=o[c],h[d]=o[d]+(l[d]-o[d])*f,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[c]=s[c],t.lineTo(h[0],h[1]),h[c]=l[c],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;pb.x,C||(S=S-Math.PI));var T=C?"left":"right",E=s.getModel("label"),O=E.get("rotate"),I=O*(Math.PI/180),P=m.getTextContent();P&&(m.setTextConfig({position:E.get("position")||T,rotation:O==null?-S:I,origin:"center"}),P.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),R=A==="relative"?HS(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;R&&(De(t).focus=R),ZJe(a,o,c,t,p,h,g,r),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var k=o.parentNode&&n.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===x0||JS(t.__edge,L)}})}function ZJe(n,e,t,r,a,i,o,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),d=n.getOrient(),f=n.get(["lineStyle","curveness"]),h=n.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=r.__edge=new Nx({shape:vD(c,d,f,a,a)})),ft(g,{shape:vD(c,d,f,i,o)},n));else if(u==="polyline"&&c==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;bt&&(t=a.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,a=r.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex);return r.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var r=t.getData().tree.root,a=n.targetNode;if(ce(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=n.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function Kre(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function G8(n,e){var t=Kre(n);return Be(t,e)>=0}function aT(n,e){for(var t=[];n;){var r=n.dataIndex;t.push({name:n.name,dataIndex:r,value:e.getRawValue(r)}),n=n.parentNode}return t.reverse(),t}var oet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var r={name:t.name,children:t.data},a=t.leaves||{},i=new Xt(a,this,this.ecModel),o=W8.createTree(r,this,s);function s(d){d.wrapMethod("getItemModel",function(f,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(f.parentModel=i),f})}var l=0;o.eachNode("preorder",function(d){d.depth>l&&(l=d.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(d){var f=d.hostTree.data.getRawDataItem(d.dataIndex);d.isExpand=f&&f.collapsed!=null?!f.collapsed:d.depth<=c}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(pn);const set=oet;function uet(n,e,t){for(var r=[n],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)t.push(a[i])}}function cet(n,e){n.eachSeriesByType("tree",function(t){det(t,e)})}function det(n,e){var t=jJe(n,e);n.layoutInfo=t;var r=n.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=nB(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=nB());var s=n.getData().tree.root,l=s.children[0];if(l){FJe(s),uet(l,$Je,o),s.hierNode.modifier=-l.hierNode.prelim,fm(l,VJe);var u=l,c=l,d=l;fm(l,function(_){var S=_.getLayout().x;Sc.getLayout().x&&(c=_),_.depth>d.depth&&(d=_)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,p=0,g=0,m=0,y=0;if(r==="radial")p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=(_.depth-1)*g;var S=Fm(m,y);_.setLayout({x:S.x,y:S.y,rawX:m,rawY:y},!0)});else{var b=n.getOrient();b==="RL"||b==="LR"?(g=i/(c.getLayout().x+f+h),p=a/(d.depth-1||1),fm(l,function(_){y=(_.getLayout().x+h)*g,m=b==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(p=a/(c.getLayout().x+f+h),g=i/(d.depth-1||1),fm(l,function(_){m=(_.getLayout().x+h)*p,y=b==="TB"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)}))}}}function fet(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),r=t.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");K(s,o)})})}function het(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,r){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function pet(n){n.registerChartView(XJe),n.registerSeriesModel(set),n.registerLayout(cet),n.registerVisual(fet),het(n)}var sB=["treemapZoomToNode","treemapRender","treemapMove"];function get(n){for(var e=0;e1;)i=i.parentNode;var o=WP(n.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var vet=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Xre(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Xt({itemStyle:o},this,r);i=t.levels=met(i,r);var l=J(i||[],function(d){return new Xt(d,s,r)},this),u=W8.createTree(a,this,c);function c(d){d.wrapMethod("getItemModel",function(f,h){var p=u.getNodeByDataIndex(h),g=p?l[p.depth]:null;return f.parentModel=g||s,f})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,r,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treeAncestors=aT(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},K(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var r=this._idIndexMap;r||(r=this._idIndexMap=ge(),this._idIndexMapCount=0);var a=r.get(t);return a==null&&r.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(pn);function Xre(n){var e=0;M(n.children,function(r){Xre(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}function met(n,e){var t=kt(e.get("color")),r=kt(e.get(["aria","decal","decals"]));if(t){n=n||[];var a,i;M(n,function(s){var l=new Xt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=n[0]||(n[0]={});return a||(o.color=t.slice()),!i&&r&&(o.decal=r.slice()),n}}const yet=vet;var bet=8,lB=8,SE=5,_et=function(){function n(e){this.group=new Oe,e.add(this.group)}return n.prototype.render=function(e,t,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),d={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,d,u),this._renderContent(e,d,s,l,u,c,a),Wx(o,d.pos,d.box)}},n.prototype._prepare=function(e,t,r){for(var a=e;a;a=a.parentNode){var i=dr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+bet*2,t.emptyItemWidth);t.totalWidth+=s+lB,t.renderList.push({node:a,text:i,width:s})}},n.prototype._renderContent=function(e,t,r,a,i,o,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),d=AWe(t.pos,t.box),f=t.totalWidth,h=t.renderList,p=a.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var m=h[g],y=m.node,b=m.width,_=m.text;f>d.width&&(f-=b-u,b=u,_=null);var S=new hi({shape:{points:Cet(l,0,b,c,g===h.length-1,g===0)},style:_e(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new st({style:Zt(i,{text:_})}),textConfig:{position:"inside"},z2:uv*1e4,onclick:Ae(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Zt(o,{text:_}),S.ensureState("emphasis").style=p,En(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),wet(S,e,y),l+=b+lB}},n.prototype.remove=function(){this.group.removeAll()},n}();function Cet(n,e,t,r,a,i){var o=[[a?n:n-SE,e],[n+t,e],[n+t,e+r],[a?n:n-SE,e+r]];return!i&&o.splice(2,0,[n+t+SE,e+r/2]),!a&&o.push([n,e+r/2]),o}function wet(n,e,t){De(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&aT(t,e)}}const xet=_et;var Tet=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:r,delay:a,easing:i}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,r=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;acB||Math.abs(t.dy)>cB)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var r=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new $e(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wo();Js(u,u,[-r,-a]),L9(u,u,[t.scale,t.scale]),Js(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var r=this;t.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&iC(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,r,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new xet(this.group))).render(t,r,a.node,function(o){i._state!=="animating"&&(G8(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=hm(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Qt);function hm(){return{nodeGroup:[],background:[],content:[]}}function Aet(n,e,t,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),d=n.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,g=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,S=c.upperHeight,C=_&&_.length,w=f.getModel("itemStyle"),T=f.getModel(["emphasis","itemStyle"]),E=f.getModel(["blur","itemStyle"]),O=f.getModel(["select","itemStyle"]),I=w.get("borderRadius")||0,P=Z("nodeGroup",mD);if(!P)return;if(l.add(P),P.x=c.x||0,P.y=c.y||0,P.markRedraw(),CC(P).nodeWidth=h,CC(P).nodeHeight=p,c.isAboveViewRoot)return P;var A=Z("background",uB,u,Iet);A&&j(P,A,C&&c.upperLabelHeight);var R=f.getModel("emphasis"),L=R.get("focus"),k=R.get("blurScope"),N=R.get("disabled"),z=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)uy(P)&&of(P,!1),A&&(of(A,!N),d.setItemGraphicEl(o.dataIndex,A),FP(A,z,k));else{var F=Z("content",uB,u,Pet);F&&U(P,F),A.disableMorphing=!0,A&&uy(A)&&of(A,!1),of(P,!N),d.setItemGraphicEl(o.dataIndex,P),FP(P,z,k)}return P;function j(ee,ne,re){var te=De(ne);if(te.dataIndex=o.dataIndex,te.seriesIndex=n.seriesIndex,ne.setShape({x:0,y:0,width:h,height:p,r:I}),m)G(ne);else{ne.invisible=!1;var oe=o.getVisual("style"),pe=oe.stroke,We=hB(w);We.fill=pe;var Ce=zd(T);Ce.fill=T.get("borderColor");var Je=zd(E);Je.fill=E.get("borderColor");var Ve=zd(O);if(Ve.fill=O.get("borderColor"),re){var Rt=h-2*g;Y(ne,pe,oe.opacity,{x:g,y:0,width:Rt,height:S})}else ne.removeTextContent();ne.setStyle(We),ne.ensureState("emphasis").style=Ce,ne.ensureState("blur").style=Je,ne.ensureState("select").style=Ve,Bf(ne)}ee.add(ne)}function U(ee,ne){var re=De(ne);re.dataIndex=o.dataIndex,re.seriesIndex=n.seriesIndex;var te=Math.max(h-2*g,0),oe=Math.max(p-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:te,height:oe,r:I}),m)G(ne);else{ne.invisible=!1;var pe=o.getVisual("style"),We=pe.fill,Ce=hB(w);Ce.fill=We,Ce.decal=pe.decal;var Je=zd(T),Ve=zd(E),Rt=zd(O);Y(ne,We,pe.opacity,null),ne.setStyle(Ce),ne.ensureState("emphasis").style=Je,ne.ensureState("blur").style=Ve,ne.ensureState("select").style=Rt,Bf(ne)}ee.add(ne)}function G(ee){!ee.invisible&&i.push(ee)}function Y(ee,ne,re,te){var oe=f.getModel(te?fB:dB),pe=dr(f.get("name"),null),We=oe.getShallow("show");Zr(ee,wr(f,te?fB:dB),{defaultText:We?pe:null,inheritColor:ne,defaultOpacity:re,labelFetcher:n,labelDataIndex:o.dataIndex});var Ce=ee.getTextContent();if(Ce){var Je=Ce.style,Ve=A9(Je.padding||0);te&&(ee.setTextConfig({layoutRect:te}),Ce.disableLabelLayout=!0),Ce.beforeUpdate=function(){var $n=Math.max((te?te.width:ee.shape.width)-Ve[1]-Ve[3],0),Vn=Math.max((te?te.height:ee.shape.height)-Ve[0]-Ve[2],0);(Je.width!==$n||Je.height!==Vn)&&Ce.setStyle({width:$n,height:Vn})},Je.truncateMinChar=2,Je.lineOverflow="truncate",Q(Je,te,c);var Rt=Ce.getState("emphasis");Q(Rt?Rt.style:null,te,c)}}function Q(ee,ne,re){var te=ee?ee.text:null;if(!ne&&re.isLeafRoot&&te!=null){var oe=n.get("drillDownIcon",!0);ee.text=oe?oe+" "+te:te}}function Z(ee,ne,re,te){var oe=b!=null&&t[ee][b],pe=a[ee];return oe?(t[ee][b]=null,ae(pe,oe)):m||(oe=new ne,oe instanceof xo&&(oe.z2=Met(re,te)),se(pe,oe)),e[ee][y]=oe}function ae(ee,ne){var re=ee[y]={};ne instanceof mD?(re.oldX=ne.x,re.oldY=ne.y):re.oldShape=K({},ne.shape)}function se(ee,ne){var re=ee[y]={},te=o.parentNode,oe=ne instanceof Oe;if(te&&(!r||r.direction==="drillDown")){var pe=0,We=0,Ce=a.background[te.getRawIndex()];!r&&Ce&&Ce.oldShape&&(pe=Ce.oldShape.width,We=Ce.oldShape.height),oe?(re.oldX=0,re.oldY=We):re.oldShape={x:pe,y:We,width:0,height:0}}re.fadein=!oe}}function Met(n,e){return n*Oet+e}const Ret=Det;var wy=M,Let=we,wC=-1,Y8=function(){function n(e){var t=e.mappingMethod,r=e.type,a=this.option=Ee(e);this.type=r,this.mappingMethod=t,this._normalizeData=Fet[t];var i=n.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(CE(a),ket(a)):t==="category"?a.categories?Net(a):CE(a,!0):(Na(t!=="linear"||a.dataExtent),CE(a))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return fe(this._normalizeData,this)},n.listVisualTypes=function(){return Ye(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,r){we(e)?M(e,t,r):t.call(r,e)},n.mapVisual=function(e,t,r){var a,i=X(e)?[]:we(e)?{}:(a=!0,null);return n.eachVisual(e,function(o,s){var l=t.call(r,o,s);a?i=l:i[s]=l}),i},n.retrieveVisuals=function(e){var t={},r;return e&&wy(n.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],r=!0)}),r?t:null},n.prepareVisualTypes=function(e){if(X(e))e=e.slice();else if(Let(e)){var t=[];wy(e,function(r,a){t.push(a)}),e=t}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,r){for(var a,i=1/0,o=0,s=t.length;o=0;i--)r[i]==null&&(delete t[e[i]],e.pop())}function CE(n,e){var t=n.visual,r=[];we(t)?wy(t,function(i){r.push(i)}):t!=null&&r.push(t);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(n.type)&&(r[1]=r[0]),qre(n,r)}function __(n){return{applyVisual:function(e,t,r){var a=this.mapValueToVisual(e);r("color",n(t("color"),a))},_normalizedToVisual:yD([0,1])}}function pB(n){var e=this.option.visual;return e[Math.round(xt(n,[0,1],[0,e.length-1],!0))]||{}}function pm(n){return function(e,t,r){r(n,this.mapValueToVisual(e))}}function $m(n){var e=this.option.visual;return e[this.option.loop&&n!==wC?n%e.length:n]}function Bd(){return this.option.visual[0]}function yD(n){return{linear:function(e){return xt(e,n,this.option.visual,!0)},category:$m,piecewise:function(e,t){var r=bD.call(this,t);return r==null&&(r=xt(e,n,this.option.visual,!0)),r},fixed:Bd}}function bD(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var r=Y8.findPieceIndex(n,t),a=t[r];if(a&&a.visual)return a.visual[this.type]}}function qre(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=J(e,function(t){var r=ki(t);return r||[0,0,0,1]})),e}var Fet={linear:function(n){return xt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=Y8.findPieceIndex(n,e,!0);if(t!=null)return xt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??wC},fixed:Yn};function S_(n,e,t){return n?e<=t:e=t.length||g===t[g.depth]){var y=Het(a,l,g,m,p,r);Jre(g,y,t,r)}})}}}function jet(n,e,t){var r=K({},e),a=t.designatedVisualItemStyle;return M(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=n.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function gB(n){var e=wE(n,"color");if(e){var t=wE(n,"colorAlpha"),r=wE(n,"colorSaturation");return r&&(e=a1(e,null,null,r)),t&&(e=GS(e,t)),e}}function zet(n,e){return e!=null?a1(e,null,null,n):null}function wE(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function Bet(n,e,t,r,a,i){if(!(!i||!i.length)){var o=xE(e,"color")||a.color!=null&&a.color!=="none"&&(xE(e,"colorAlpha")||xE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),d={type:o.name,dataExtent:u,visual:o.range};d.type==="color"&&(c==="index"||c==="id")?(d.mappingMethod="category",d.loop=!0):d.mappingMethod="linear";var f=new Gr(d);return Qre(f).drColorMappingBy=c,f}}}function xE(n,e){var t=n.get(e);return X(t)&&t.length?{name:e,range:t}:null}function Het(n,e,t,r,a,i){var o=K({},e);if(a){var s=a.type,l=s==="color"&&Qre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var xy=Math.max,xC=Math.min,vB=Lr,K8=M,eae=["itemStyle","borderWidth"],Uet=["itemStyle","gapWidth"],Wet=["upperLabel","show"],Get=["upperLabel","height"];const Yet={seriesType:"treemap",reset:function(n,e,t,r){var a=t.getWidth(),i=t.getHeight(),o=n.option,s=hr(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=ie(vB(s.width,l[0]),a),c=ie(vB(s.height,l[1]),i),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Cy(r,f,n),p=d==="treemapRender"||d==="treemapMove"?r.rootRect:null,g=n.getViewRoot(),m=Kre(g);if(d!=="treemapMove"){var y=d==="treemapZoomToNode"?Jet(n,h,g,u,c):p?[p.width,p.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(S),tae(g,_,!1,0),S=g.getLayout(),K8(m,function(w,T){var E=(m[T+1]||g).getValue();w.setLayout(K({dataExtent:[E,E],borderWidth:0,upperHeight:0},S))})}var C=n.getData().tree.root;C.setLayout(ett(s,p,h),!0),n.setLayoutInfo(s),nae(C,new $e(-s.x,-s.y,a,i),m,g,0)}};function tae(n,e,t,r){var a,i;if(!n.isRemoved()){var o=n.getLayout();a=o.width,i=o.height;var s=n.getModel(),l=s.get(eae),u=s.get(Uet)/2,c=rae(s),d=Math.max(l,c),f=l-u,h=d-u;n.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),a=xy(a-2*f,0),i=xy(i-f-h,0);var p=a*i,g=Ket(n,s,p,e,t,r);if(g.length){var m={x:f,y:h,width:a,height:i},y=xC(a,i),b=1/0,_=[];_.area=0;for(var S=0,C=g.length;S=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Qet(n,e,t){for(var r=0,a=1/0,i=0,o=void 0,s=n.length;ir&&(r=o));var l=n.area*n.area,u=e*e*t;return l?xy(u*r/l,l/(u*a)):1/0}function mB(n,e,t,r,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],c=e?n.area/e:0;(a||c>t[l[o]])&&(c=t[l[o]]);for(var d=0,f=n.length;dI$&&(u=I$),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(C[0]=-C[0],C[1]=-C[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var E=-Math.atan2(S[1],S[0]);d[0].8?"left":f[0]<-.8?"right":"center",g=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":i.x=-f[0]*y+c[0],i.y=-f[1]*b+c[1],p=f[0]>.8?"right":f[0]<-.8?"left":"center",g=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+O,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-O;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+O,p="center",i.originY=-O;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+d[0],i.y=d[1]+O,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-O;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||g,align:i.__align||p})}},e}(Oe);const Q8=btt;var _tt=function(){function n(e){this.group=new Oe,this._LineCtor=e||Q8}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=wB(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=wB(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function r(s){!s.isGroup&&!Stt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function wB(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:wr(e)}}function xB(n){return isNaN(n[0])||isNaN(n[1])}function PE(n){return n&&!xB(n[0])&&!xB(n[1])}const J8=_tt;var DE=[],AE=[],ME=[],Wh=Mr,RE=yf,TB=Math.abs;function EB(n,e,t){for(var r=n[0],a=n[1],i=n[2],o=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){DE[0]=Wh(r[0],a[0],i[0],c),DE[1]=Wh(r[1],a[1],i[1],c);var d=TB(RE(DE,e)-l);d=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function LE(n,e){var t=[],r=ry,a=[[],[],[]],i=[[],[]],o=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),d=s.getVisual("toSymbol");u.__original||(u.__original=[zl(u[0]),zl(u[1])],u[2]&&u.__original.push(zl(u[2])));var f=u.__original;if(u[2]!=null){if(Oa(a[0],f[0]),Oa(a[1],f[2]),Oa(a[2],f[1]),c&&c!=="none"){var h=jm(s.node1),p=EB(a,f[0],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],r(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(d&&d!=="none"){var h=jm(s.node2),p=EB(a,f[1],h*e);r(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],r(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Oa(u[0],a[0]),Oa(u[1],a[2]),Oa(u[2],a[1])}else{if(Oa(i[0],f[0]),Oa(i[1],f[1]),rf(o,i[1],i[0]),ov(o,o),c&&c!=="none"){var h=jm(s.node1);uP(i[0],i[0],o,h*e)}if(d&&d!=="none"){var h=jm(s.node2);uP(i[1],i[1],o,-h*e)}Oa(u[0],i[0]),Oa(u[1],i[1])}})}function OB(n){return n.type==="view"}var Ctt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){var a=new k0,i=new J8,o=this.group;this._controller=new V0(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,r,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(OB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ft(u,c,t)}LE(t.getGraph(),Vm(t));var d=t.getData();s.updateData(d);var f=t.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(t,r,a),clearTimeout(this._layoutTimeout);var h=t.forceLayout,p=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var g=t.get("layout");d.graph.eachNode(function(_){var S=_.dataIndex,C=_.getGraphicEl(),w=_.getModel();if(C){C.off("drag").off("dragend");var T=w.get("draggable");T&&C.on("drag",function(O){switch(g){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(S),d.setItemLayout(S,[C.x,C.y]);break;case"circular":d.setItemLayout(S,[C.x,C.y]),_.setLayout({fixed:!0},!0),q8(t,"symbolSize",_,[O.offsetX,O.offsetY]),i.updateLayout(t);break;case"none":default:d.setItemLayout(S,[C.x,C.y]),X8(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(T,!!w.get("cursor"));var E=w.get(["emphasis","focus"]);E==="adjacency"&&(De(C).focus=_.getAdjacentDataIndices())}}),d.graph.eachEdge(function(_){var S=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(De(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=d.getLayout("cx"),b=d.getLayout("cy");d.graph.eachNode(function(_){sae(_,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,r){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,d){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,d)&&!nT(u,a,t)}),!OB(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){j8(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){z8(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),LE(t.getGraph(),Vm(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,r=t.getData(),a=Vm(t);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){LE(t.getGraph(),Vm(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Qt);const wtt=Ctt;function Gh(n){return"_EC_"+n}var xtt=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var r=this._nodesMap;if(!r[Gh(e)]){var a=new Hd(e,t);return a.hostGraph=this,this.nodes.push(a),r[Gh(e)]=a,a}},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Gh(e)]},n.prototype.addEdge=function(e,t,r){var a=this._nodesMap,i=this._edgesMap;if(lt(e)&&(e=this.nodes[e]),lt(t)&&(t=this.nodes[t]),e instanceof Hd||(e=a[Gh(e)]),t instanceof Hd||(t=a[Gh(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new uae(e,t,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof Hd&&(e=e.id),t instanceof Hd&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(t,r[i],i)},n.prototype.eachEdge=function(e,t){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(t,r[i],i)},n.prototype.breadthFirstTraverse=function(e,t,r,a){if(t instanceof Hd||(t=this._nodesMap[Gh(t)]),!!t){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[n][e].setItemVisual(this.dataIndex,t,r)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,r){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,r)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}or(Hd,cae("hostGraph","data"));or(uae,cae("hostGraph","edgeData"));const Ttt=xtt;function dae(n,e,t,r,a){for(var i=new Ttt(r),o=0;o "+f)),u++)}var h=t.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=fu(n,t);else{var g=P0.get(h),m=g?g.dimensions||[]:[];Be(m,"value")<0&&m.concat(["value"]);var y=A0(n,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;p=new ka(y,t),p.initData(n)}var b=new ka(["value"],t);return b.initData(l,s),a&&a(p,b),Gre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Ett=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new $0(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),Vf(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,r){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){stt(this);var s=dae(i,a,this,!0,l);return M(s.edges,function(u){ltt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var g=o._categoriesModels,m=p.getShallow("category"),y=g[m];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var d=Xt.prototype.getModel;function f(p,g){var m=d.call(this,p,g);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=f,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var g=p.slice();return p[0]==="label"?g[0]="edgeLabel":p[1]==="label"&&(g[1]="edgeLabel"),g}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),xr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var d=Ate({series:this,dataIndex:t,multipleSeries:r});return d},e.prototype._updateCategoriesData=function(){var t=J(this.option.categories||[],function(a){return a.value!=null?a:K({value:0},a)}),r=new ka(["value"],this);r.initData(t),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Ott=Ett;var Itt={type:"graphRoam",event:"graphRoam",update:"none"};function Ptt(n){n.registerChartView(wtt),n.registerSeriesModel(Ott),n.registerProcessor(ntt),n.registerVisual(rtt),n.registerVisual(att),n.registerLayout(utt),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,dtt),n.registerLayout(htt),n.registerCoordinateSystem("graphView",{dimensions:j0.dimensions,create:gtt}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Yn),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Yn),n.registerAction(Itt,function(e,t,r){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=H8(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var Dtt=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),Att=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Dtt},e.prototype.buildPath=function(t,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(r.x+a(l)*s,r.y+i(l)*s),t.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),t.lineTo(r.x-a(l)*s,r.y-i(l)*s),t.lineTo(u,c)},e}(Ue);const Mtt=Att;function Rtt(n,e){var t=n.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=ie(t[0],e.getWidth()),s=ie(t[1],e.getHeight()),l=ie(n.get("radius"),i/2);return{cx:o,cy:s,r:l}}function w_(n,e){var t=n==null?"":n+"";return e&&(ce(e)?t=e.replace("{value}",t):me(e)&&(t=e(n))),t}var Ltt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=Rtt(t,a);this._renderMain(t,r,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,r,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,d=t.getModel("axisLine"),f=d.get("roundCap"),h=f?bC:fi,p=d.get("show"),g=d.getModel("lineStyle"),m=g.get("width"),y=[u,c];zJ(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,S=[],C=0;p&&C=O&&(I===0?0:i[I-1][0])Math.PI/2&&(Z+=Math.PI)):Q==="tangential"?Z=-E-Math.PI/2:lt(Q)&&(Z=Q*Math.PI/180),Z===0?d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:U}),silent:!0})):d.add(new st({style:Zt(_,{text:j,x:G,y:Y,verticalAlign:"middle",align:"center"},{inheritColor:U}),silent:!0,originX:G,originY:Y,rotation:Z}))}if(b.get("show")&&N!==S){var z=b.get("distance");z=z?z+c:c;for(var ae=0;ae<=C;ae++){L=Math.cos(E),k=Math.sin(E);var se=new kr({shape:{x1:L*(p-z)+f,y1:k*(p-z)+h,x2:L*(p-T-z)+f,y2:k*(p-T-z)+h},silent:!0,style:A});A.stroke==="auto"&&se.setStyle({stroke:i((N+ae/C)/S)}),d.add(se),E+=I}E-=I}else E+=O}},e.prototype._renderPointer=function(t,r,a,i,o,s,l,u,c){var d=this.group,f=this._data,h=this._progressEls,p=[],g=t.get(["pointer","show"]),m=t.getModel("progress"),y=m.get("show"),b=t.getData(),_=b.mapDimension("value"),S=+t.get("min"),C=+t.get("max"),w=[S,C],T=[s,l];function E(I,P){var A=b.getItemModel(I),R=A.getModel("pointer"),L=ie(R.get("width"),o.r),k=ie(R.get("length"),o.r),N=t.get(["pointer","icon"]),z=R.get("offsetCenter"),F=ie(z[0],o.r),j=ie(z[1],o.r),U=R.get("keepAspect"),G;return N?G=ir(N,F-L/2,j-k,L,k,null,U):G=new Mtt({shape:{angle:-Math.PI/2,width:L,r:k,x:F,y:j}}),G.rotation=-(P+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function O(I,P){var A=m.get("roundCap"),R=A?bC:fi,L=m.get("overlap"),k=L?m.get("width"):c/b.count(),N=L?o.r-k:o.r-(I+1)*k,z=L?o.r:o.r-I*k,F=new R({shape:{startAngle:s,endAngle:P,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:z}});return L&&(F.z2=C-b.get(_,I)%C),F}(y||g)&&(b.diff(f).add(function(I){var P=b.get(_,I);if(g){var A=E(I,s);an(A,{rotation:-((isNaN(+P)?T[0]:xt(P,w,T,!0))+Math.PI/2)},t),d.add(A),b.setItemGraphicEl(I,A)}if(y){var R=O(I,s),L=m.get("clip");an(R,{shape:{endAngle:xt(P,w,T,L)}},t),d.add(R),LP(t.seriesIndex,b.dataType,I,R),p[I]=R}}).update(function(I,P){var A=b.get(_,I);if(g){var R=f.getItemGraphicEl(P),L=R?R.rotation:s,k=E(I,L);k.rotation=L,ft(k,{rotation:-((isNaN(+A)?T[0]:xt(A,w,T,!0))+Math.PI/2)},t),d.add(k),b.setItemGraphicEl(I,k)}if(y){var N=h[P],z=N?N.shape.endAngle:s,F=O(I,z),j=m.get("clip");ft(F,{shape:{endAngle:xt(A,w,T,j)}},t),d.add(F),LP(t.seriesIndex,b.dataType,I,F),p[I]=F}}).execute(),b.each(function(I){var P=b.getItemModel(I),A=P.getModel("emphasis"),R=A.get("focus"),L=A.get("blurScope"),k=A.get("disabled");if(g){var N=b.getItemGraphicEl(I),z=b.getItemVisual(I,"style"),F=z.fill;if(N instanceof Xr){var j=N.style;N.useStyle(K({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},z))}else N.useStyle(z),N.type!=="pointer"&&N.setColor(F);N.setStyle(P.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(xt(b.get(_,I),w,[0,1],!0))),N.z2EmphasisLift=0,Kr(N,P),En(N,R,L,k)}if(y){var U=p[I];U.useStyle(b.getItemVisual(I,"style")),U.setStyle(P.getModel(["progress","itemStyle"]).getItemStyle()),U.z2EmphasisLift=0,Kr(U,P),En(U,R,L,k)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,r){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ir(s,r.cx-o/2+ie(l[0],r.r),r.cy-o/2+ie(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,r,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),d=+t.get("max"),f=new Oe,h=[],p=[],g=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new st({silent:!0}),p[y]=new st({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],p[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),S=new Oe,C=i(xt(_,[c,d],[0,1],!0)),w=b.getModel("title");if(w.get("show")){var T=w.get("offsetCenter"),E=o.cx+ie(T[0],o.r),O=o.cy+ie(T[1],o.r),I=h[y];I.attr({z2:m?0:2,style:Zt(w,{x:E,y:O,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(I)}var P=b.getModel("detail");if(P.get("show")){var A=P.get("offsetCenter"),R=o.cx+ie(A[0],o.r),L=o.cy+ie(A[1],o.r),k=ie(P.get("width"),o.r),N=ie(P.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:C,I=p[y],F=P.get("formatter");I.attr({z2:m?0:2,style:Zt(P,{x:R,y:L,text:w_(_,F),width:isNaN(k)?null:k,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Ree(I,{normal:P},_,function(U){return w_(U,F)}),g&&Lee(I,y,l,t,{getFormattedLabel:function(U,G,Y,Q,Z,ae){return w_(ae?ae.interpolatedValue:_,F)}}),S.add(I)}f.add(S)}),this.group.add(f),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Qt);const ktt=Ltt;var Ntt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,r){return Sv(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(pn);const Ftt=Ntt;function $tt(n){n.registerChartView(ktt),n.registerSeriesModel(Ftt)}var Vtt=["itemStyle","opacity"],jtt=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=a,o=new vi,s=new st;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,r,!0),a}return e.prototype.updateData=function(t,r,a){var i=this,o=t.hostModel,s=t.getItemModel(r),l=t.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Vtt);c=c??1,a||rs(i),i.useStyle(t.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,an(i,{style:{opacity:c}},o,r)):ft(i,{style:{opacity:c},shape:{points:l.points}},o,r),Kr(i,s),this._updateLabel(t,r),En(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(r),u=t.getItemLayout(r),c=u.label,d=t.getItemVisual(r,"style"),f=d.fill;Zr(o,wr(l),{labelFetcher:t.hostModel,labelDataIndex:r,defaultOpacity:d.opacity,defaultText:t.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Le(h[0][0],h[0][1]):null},ft(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),A8(a,M8(l),{stroke:f})},e}(hi),ztt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new jtt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);cy(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Qt);const Btt=ztt;var Htt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new $0(fe(this.getData,this),fe(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,r){return Sv(this,{coordDimensions:["value"],encodeDefaulter:Ae(s8,this)})},e.prototype._defaultLabelLine=function(t){Vf(t,"labelLine",["show"]);var r=t.labelLine,a=t.emphasis.labelLine;r.show=r.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var r=this.getData(),a=n.prototype.getDataParams.call(this,t),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Utt=Htt;function Wtt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Gtt(n,e){for(var t=n.mapDimension("value"),r=n.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=n.count();odnt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!NE(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),r=t.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function NE(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const pnt=fnt;var gnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var r=this.option;t&&Fe(r,t,!0),this._initDimensions()},e.prototype.contains=function(t,r){var a=t.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){M(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){t.hasOwnProperty(r)&&(this.option[r]=t[r])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],r=this.parallelAxisIndex=[],a=Pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);M(a,function(i){t.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(it);const vnt=gnt;var mnt=function(n){W(e,n);function e(t,r,a,i,o){var s=n.call(this,t,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(cs);const ynt=mnt;function gh(n,e,t,r,a,i){n=n||0;var o=t[1]-t[0];if(a!=null&&(a=Yh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Yh(s,[0,o]),a=i=Yh(s,[a,i]),r=0}e[0]=Yh(e[0],t),e[1]=Yh(e[1],t);var l=FE(e,r);e[r]+=n;var u=a||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Yh(e[r],c);var d;return d=FE(e,r),a!=null&&(d.sign!==l.sign||d.spani&&(e[1-r]=e[r]+d.sign*i),e}function FE(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Yh(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var $E=M,hae=Math.min,pae=Math.max,DB=Math.floor,bnt=Math.ceil,AB=Ln,_nt=Math.PI,Snt=function(){function n(e,t,r){this.type="parallel",this._axesMap=ge(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,r)}return n.prototype._init=function(e,t,r){var a=e.dimensions,i=e.parallelAxisIndex;$E(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(o,new ynt(o,Jx(u),[0,0],u.get("type"),l)),d=c.type==="category";c.onBand=d&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),r=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+t.axisLength&&s>=a&&s<=a+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var a=r.getData();$E(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Sg(o.scale,o.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=hr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,c=x_(e.get("axisExpandWidth"),l),d=x_(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=x_(h[1]-h[0],l),h[1]=h[0]+p;else{p=x_(c*(d-1),l);var g=e.get("axisExpandCenter")||DB(u/2);h=[c*g-p/2],h[1]=h[0]+p}var m=(s-p)/(u-d);m<3&&(m=0);var y=[DB(AB(h[0]/c,1))+1,bnt(AB(h[1]/c,1))-1],b=m/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[r[o]],layoutLength:s,axisBase:t[r[1-o]],axisLength:t[a[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),$E(r,function(o,s){var l=(a.axisExpandable?wnt:Cnt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:_nt/2,vertical:0},d=[u[i].x+e.x,u[i].y+e.y],f=c[i],h=wo();uh(h,h,f),Js(h,h,d),this._axesLayout[o]={position:d,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];M(o,function(m){s.push(e.mapDimension(m)),l.push(i.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-d[0])?(u="jump",l=s-i*(1-d[2])):(l=s-i*d[1])>=0&&(l=s-i*(1-d[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?gh(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[pae(0,p-h/2)],a[1]=hae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},n}();function x_(n,e){return hae(pae(n,e[0]),e[1])}function Cnt(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function wnt(n,e){var t=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return n=0;a--)go(r[a])},e.prototype.getActiveState=function(t){var r=this.activeIntervals;if(!r.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=r.length;iDnt}function Sae(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function Cae(n,e,t,r){var a=new Oe;return a.add(new rt({name:"main",style:rM(t),silent:!0,draggable:!0,cursor:"move",drift:Ae(kB,n,e,a,["n","s","w","e"]),ondragend:Ae(Wf,e,{isEnd:!0})})),M(r,function(i){a.add(new rt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Ae(kB,n,e,a,i),ondragend:Ae(Wf,e,{isEnd:!0})}))}),a}function wae(n,e,t,r){var a=r.brushStyle.lineWidth||0,i=xg(a,Ant),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,c=t[0][1],d=t[1][1],f=c-i+a/2,h=d-i+a/2,p=c-o,g=d-s,m=p+a,y=g+a;Sl(n,e,"main",o,s,p,g),r.transformable&&(Sl(n,e,"w",l,u,i,y),Sl(n,e,"e",f,u,i,y),Sl(n,e,"n",l,u,m,i),Sl(n,e,"s",l,h,m,i),Sl(n,e,"nw",l,u,i,i),Sl(n,e,"ne",f,u,i,i),Sl(n,e,"sw",l,h,i,i),Sl(n,e,"se",f,h,i,i))}function xD(n,e){var t=e.__brushOption,r=t.transformable,a=e.childAt(0);a.useStyle(rM(t)),a.attr({silent:!r,cursor:r?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?TD(n,i[0]):$nt(n,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?Rnt[s]+"-resize":null})})}function Sl(n,e,t,r,a,i,o){var s=e.childOfName(t);s&&s.setShape(jnt(aM(n,e,[[r,a],[r+i,a+o]])))}function rM(n){return _e({strokeNoScale:!0},n.brushStyle)}function xae(n,e,t,r){var a=[Ey(n,t),Ey(e,r)],i=[xg(n,t),xg(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function Fnt(n){return wf(n.group)}function TD(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=$x(t[e],Fnt(n));return r[a]}function $nt(n,e){var t=[TD(n,e[0]),TD(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function kB(n,e,t,r,a,i){var o=t.__brushOption,s=n.toRectRange(o.range),l=Tae(e,a,i);M(r,function(u){var c=Mnt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=n.fromRectRange(xae(s[0][0],s[1][0],s[0][1],s[1][1])),eM(e,t),Wf(e,{isEnd:!1})}function Vnt(n,e,t,r){var a=e.__brushOption.range,i=Tae(n,t,r);M(a,function(o){o[0]+=i[0],o[1]+=i[1]}),eM(n,e),Wf(n,{isEnd:!1})}function Tae(n,e,t){var r=n.group,a=r.transformCoordToLocal(e,t),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function aM(n,e,t){var r=_ae(n,e);return r&&r!==Uf?r.clipPath(t,n._transform):Ee(t)}function jnt(n){var e=Ey(n[0][0],n[1][0]),t=Ey(n[0][1],n[1][1]),r=xg(n[0][0],n[1][0]),a=xg(n[0][1],n[1][1]);return{x:e,y:t,width:r-e,height:a-t}}function znt(n,e,t){if(!(!n._brushType||Hnt(n,e.offsetX,e.offsetY))){var r=n._zr,a=n._covers,i=nM(n,e,t);if(!n._dragging)for(var o=0;or.getWidth()||t<0||t>r.getHeight()}var oT={lineX:$B(0),lineY:$B(1),rect:{createCover:function(n,e){function t(r){return r}return Cae({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=Sae(n);return xae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,r){wae(n,e,t,r)},updateCommon:xD,contain:OD},polygon:{createCover:function(n,e){var t=new Oe;return t.add(new vi({name:"main",style:rM(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new hi({name:"main",draggable:!0,drift:Ae(Vnt,n,e),ondragend:Ae(Wf,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,r){e.childAt(0).setShape({points:aM(n,e,t)})},updateCommon:xD,contain:OD}};function $B(n){return{createCover:function(e,t){return Cae({toRectRange:function(r){var a=[r,[0,100]];return n&&a.reverse(),a},fromRectRange:function(r){return r[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=Sae(e),r=Ey(t[0][n],t[1][n]),a=xg(t[0][n],t[1][n]);return[r,a]},updateCoverShape:function(e,t,r,a){var i,o=_ae(e,t);if(o!==Uf&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(n);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[r,i];n&&l.reverse(),wae(e,t,l,a)},updateCommon:xD,contain:OD}}const iM=knt;function Oae(n){return n=oM(n),function(e){return Pee(e,n)}}function Iae(n,e){return n=oM(n),function(t){var r=e??t,a=r?n.width:n.height,i=r?n.x:n.y;return[i,i+(a||0)]}}function Pae(n,e,t){var r=oM(n);return function(a,i){return r.contain(i[0],i[1])&&!nT(a,e,t)}}function oM(n){return $e.create(n)}var Unt=["axisLine","axisTickLabel","axisName"],Wnt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){n.prototype.init.apply(this,arguments),(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this))},e.prototype.render=function(t,r,a,i){if(!Gnt(t,r,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!t.get("show")){var s=Knt(t,r),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,d=t.axis.dim,f=l.getAxisLayout(d),h=K({strokeContainThreshold:c},f),p=new su(t,h);M(Unt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,t,s,c,a),E0(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),d=$e.create({x:l[0],y:-o/2,width:u,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Oae(d),isTargetByCursor:Pae(d,s,i),getLinearBrushOtherExtent:Iae(d,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Ynt(a))},e.prototype._onBrush=function(t){var r=t.areas,a=this.axisModel,i=a.axis,o=J(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(On);function Gnt(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function Ynt(n){var e=n.axis;return J(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Knt(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const Znt=Wnt;var Xnt={type:"axisAreaSelect",event:"axisAreaSelected"};function qnt(n){n.registerAction(Xnt,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Qnt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Dae(n){n.registerComponentView(pnt),n.registerComponentModel(vnt),n.registerCoordinateSystem("parallel",Ont),n.registerPreprocessor(lnt),n.registerComponentModel(MB),n.registerComponentView(Znt),wg(n,"parallel",MB,Qnt),qnt(n)}function Jnt(n){He(Dae),n.registerChartView(ent),n.registerSeriesModel(ant),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,snt)}var ert=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),trt=function(n){W(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new ert},e.prototype.buildPath=function(t,r){var a=r.extent;t.moveTo(r.x1,r.y1),t.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(t.lineTo(r.x2+a,r.y2),t.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(t.lineTo(r.x2,r.y2+a),t.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),t.closePath()},e.prototype.highlight=function(){au(this)},e.prototype.downplay=function(){iu(this)},e}(Ue),nrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,r,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,d=t.getData(),f=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var g=new trt,m=De(g);m.dataIndex=p.dataIndex,m.seriesIndex=t.seriesIndex,m.dataType="edge";var y=p.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),S=p.node1.getLayout(),C=p.node1.getModel(),w=C.get("localX"),T=C.get("localY"),E=p.node2.getLayout(),O=p.node2.getModel(),I=O.get("localX"),P=O.get("localY"),A=p.getLayout(),R,L,k,N,z,F,j,U;g.shape.extent=Math.max(1,A.dy),g.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:S.x)+A.sy,L=(T!=null?T*c:S.y)+S.dy,k=(I!=null?I*u:E.x)+A.ty,N=P!=null?P*c:E.y,z=R,F=L*(1-_)+N*_,j=k,U=L*_+N*(1-_)):(R=(w!=null?w*u:S.x)+S.dx,L=(T!=null?T*c:S.y)+A.sy,k=I!=null?I*u:E.x,N=(P!=null?P*c:E.y)+A.ty,z=R*(1-_)+k*_,F=L,j=R*_+k*(1-_),U=N),g.setShape({x1:R,y1:L,x2:k,y2:N,cpx1:z,cpy1:F,cpx2:j,cpy2:U}),g.useStyle(b.getItemStyle()),VB(g.style,h,p);var G=""+y.get("value"),Y=wr(y,"edgeLabel");Zr(g,Y,{labelFetcher:{getFormattedLabel:function(ae,se,ee,ne,re,te){return t.getFormattedLabel(ae,se,"edge",ne,Ks(re,Y.normal&&Y.normal.get("formatter"),G),te)}},labelDataIndex:p.dataIndex,defaultText:G}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");Kr(g,y,"lineStyle",function(ae){var se=ae.getItemStyle();return VB(se,h,p),se}),s.add(g),f.setItemGraphicEl(p.dataIndex,g);var Z=Q.get("focus");En(g,Z==="adjacency"?p.getAdjacentDataIndices():Z==="trajectory"?p.getTrajectoryDataIndices():Z,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var g=p.getLayout(),m=p.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),S=new rt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy},style:m.getModel("itemStyle").getItemStyle(),z2:10});Zr(S,wr(m),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),Kr(S,m),s.add(S),d.setItemGraphicEl(p.dataIndex,S),De(S).dataType="node";var C=_.get("focus");En(S,C==="adjacency"?p.getAdjacentDataIndices():C==="trajectory"?p.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),d.eachItemGraphicEl(function(p,g){var m=d.getItemModel(g);m.get("draggable")&&(p.drift=function(y,b){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:d.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(rrt(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Qt);function VB(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var r=t.node1.getVisual("color"),a=t.node2.getVisual("color");ce(r)&&ce(a)&&(n.fill=new T0(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function rrt(n,e,t){var r=new rt({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return an(r,{shape:{width:n.width+20}},e,t),r}const art=nrt;var irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Xt(o[l],this,r));if(i&&a){var u=dae(i,a,this,!0,c);return u.data}function c(d,f){d.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getData().getItemLayout(p);if(m){var y=m.depth,b=g.levelModels[y];b&&(h.parentModel=b)}return h}),f.wrapMethod("getItemModel",function(h,p){var g=h.parentModel,m=g.getGraph().getEdgeByIndex(p),y=m.node1.getLayout();if(y){var b=y.depth,_=g.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,r){var a=this.option.data||this.option.nodes,i=a[t];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(t),d=c.getLayout().value,f=this.getDataParams(t,a).data.name;return xr("nameValue",{name:f!=null?f+"":null,value:d,noValue:i(d)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,r){var a=n.prototype.getDataParams.call(this,t,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(pn);const ort=irt;function srt(n,e){n.eachSeriesByType("sankey",function(t){var r=t.get("nodeWidth"),a=t.get("nodeGap"),i=lrt(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,c=l.edges;crt(u);var d=Pt(u,function(g){return g.getLayout().value===0}),f=d.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),p=t.get("nodeAlign");urt(u,c,r,a,o,s,f,h,p)})}function lrt(n,e){return hr(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function urt(n,e,t,r,a,i,o,s,l){drt(n,e,t,a,i,s,l),grt(n,e,i,a,r,o,s),xrt(n,s)}function crt(n){M(n,function(e){var t=xc(e.outEdges,TC),r=xc(e.inEdges,TC),a=e.getValue()||0,i=Math.max(t,r,a);e.setLayout({value:i},!0)})}function drt(n,e,t,r,a,i,o){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;y&&m.depth>h&&(h=m.depth),g.setLayout({depth:y?m.depth:d},!0),i==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var b=0;bd-1?h:d-1;o&&o!=="left"&&frt(n,o,i,T);var E=i==="vertical"?(a-t)/T:(r-t)/T;prt(n,E,i)}function Aae(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function frt(n,e,t,r){if(e==="right"){for(var a=[],i=n,o=0;i.length;){for(var s=0;s0;i--)l*=.99,yrt(s,l,o),VE(s,a,t,r,o),wrt(s,l,o),VE(s,a,t,r,o)}function vrt(n,e){var t=[],r=e==="vertical"?"y":"x",a=DP(n,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),M(a.keys,function(i){t.push(a.buckets.get(i))}),t}function mrt(n,e,t,r,a,i){var o=1/0;M(n,function(s){var l=s.length,u=0;M(s,function(d){u+=d.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(t-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[f]+e;var p=a==="vertical"?r:t;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=d-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[f]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function yrt(n,e,t){M(n.slice().reverse(),function(r){M(r,function(a){if(a.outEdges.length){var i=xc(a.outEdges,brt,t)/xc(a.outEdges,TC);if(isNaN(i)){var o=a.outEdges.length;i=o?xc(a.outEdges,_rt,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-$c(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-$c(a,t))*e;a.setLayout({y:l},!0)}}})})}function brt(n,e){return $c(n.node2,e)*n.getValue()}function _rt(n,e){return $c(n.node2,e)}function Srt(n,e){return $c(n.node1,e)*n.getValue()}function Crt(n,e){return $c(n.node1,e)}function $c(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function TC(n){return n.getValue()}function xc(n,e,t){for(var r=0,a=n.length,i=-1;++io&&(o=l)}),M(r,function(s){var l=new Gr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&M(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function Ert(n){n.registerChartView(art),n.registerSeriesModel(ort),n.registerLayout(srt),n.registerVisual(Trt),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Mae=function(){function n(){}return n.prototype.getInitialData=function(e,t){var r,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,d=this._baseAxisDim=u[c],f=u[1-c],h=[a,i],p=h[c].get("type"),g=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];M(m,function(S,C){var w;X(S)?(w=S.slice(),S.unshift(C)):X(S.value)?(w=K({},S),w.value=w.value.slice(),S.value.unshift(C)):w=S,y.push(w)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:d,type:hC(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:hC(g),dimsDef:b.slice()}];return Sv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Ae(nte,_,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),Rae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(pn);or(Rae,Mae,!0);const Ort=Rae;var Irt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),d=jB(c,i,u,l,!0);i.setItemGraphicEl(u,d),o.add(d)}}).update(function(u,c){var d=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(d);return}var f=i.getItemLayout(u);d?(rs(d),Lae(f,d,i,u)):d=jB(f,i,u,l),o.add(d),i.setItemGraphicEl(u,d)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(t){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Qt),Prt=function(){function n(){}return n}(),Drt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Prt},e.prototype.buildPath=function(t,r){var a=r.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();ig){var S=[y,_];r.push(S)}}}return{boxData:t,outliers:r}}var $rt={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==va){var r="";mt(r)}var a=Frt(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function Vrt(n){n.registerSeriesModel(Ort),n.registerChartView(Mrt),n.registerLayout(Rrt),n.registerTransform($rt)}var jrt=["color","borderColor"],zrt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,r,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,r):this._incrementalRenderNormal(t,r)},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var r=t.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(t){var r=t.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var d=r.getItemLayout(c);if(s&&zB(u,d))return;var f=jE(d,c,!0);an(f,{shape:{points:d.ends}},t,c),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}}).update(function(c,d){var f=a.getItemGraphicEl(d);if(!r.hasValue(c)){i.remove(f);return}var h=r.getItemLayout(c);if(s&&zB(u,h)){i.remove(f);return}f?(ft(f,{shape:{points:h.ends}},t,c),rs(f)):f=jE(h),zE(f,r,c,o),i.add(f),r.setItemGraphicEl(c,f)}).remove(function(c){var d=a.getItemGraphicEl(c);d&&i.remove(d)}).execute(),this._data=r},e.prototype._renderLarge=function(t){this._clear(),BB(t,this.group);var r=t.get("clip",!0)?tT(t.coordinateSystem,!1,t):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=jE(s);zE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,r){BB(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Qt),Brt=function(){function n(){}return n}(),Hrt=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Brt},e.prototype.buildPath=function(t,r){var a=r.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(Ue);function jE(n,e,t){var r=n.ends;return new Hrt({shape:{points:t?Urt(r,n):r},z2:100})}function zB(n,e){for(var t=!0,r=0;r0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(jrt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const Grt=zrt;var kae=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,r,a){var i=r.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(pn);or(kae,Mae,!0);const Yrt=kae;function Krt(n){!n||!X(n.series)||M(n.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Zrt=["itemStyle","borderColor"],Xrt=["itemStyle","borderColor0"],qrt=["itemStyle","borderColorDoji"],Qrt=["itemStyle","color"],Jrt=["itemStyle","color0"],eat={seriesType:"candlestick",plan:yv(),performRawSeries:!0,reset:function(n,e){function t(i,o){return o.get(i>0?Qrt:Jrt)}function r(i,o){return o.get(i===0?qrt:i>0?Zrt:Xrt)}if(!e.isSeriesFiltered(n)){var a=n.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=r(u,l)||c.fill;var d=o.ensureUniqueItemVisual(s,"style");K(d,c)}}}}}};const tat=eat;var nat={seriesType:"candlestick",plan:yv(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),r=rat(n,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=J(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],c=l[1],d=l[2],f=l[3];if(t.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?p:h};function h(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var _=b.get(s,y),S=b.get(u,y),C=b.get(c,y),w=b.get(d,y),T=b.get(f,y),E=Math.min(S,C),O=Math.max(S,C),I=z(E,_),P=z(O,_),A=z(w,_),R=z(T,_),L=[];F(L,P,0),F(L,I,1),L.push(U(R),U(P),U(A),U(I));var k=m.getItemModel(y),N=!!k.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:HB(b,y,S,C,c,N),initBaseline:S>C?P[i]:I[i],ends:L,brushRect:j(w,T,_)})}function z(G,Y){var Q=[];return Q[a]=Y,Q[i]=G,isNaN(Y)||isNaN(G)?[NaN,NaN]:e.dataToPoint(Q)}function F(G,Y,Q){var Z=Y.slice(),ae=Y.slice();Z[a]=O2(Z[a]+r/2,1,!1),ae[a]=O2(ae[a]-r/2,1,!0),Q?G.push(Z,ae):G.push(ae,Z)}function j(G,Y,Q){var Z=z(G,Q),ae=z(Y,Q);return Z[a]-=r/2,ae[a]-=r/2,{x:Z[0],y:Z[1],width:r,height:ae[1]-Z[1]}}function U(G){return G[a]=O2(G[a],1),G}}function p(g,m){for(var y=Bs(g.count*4),b=0,_,S=[],C=[],w,T=m.getStore(),E=!!n.get(["itemStyle","borderColorDoji"]);(w=g.next())!=null;){var O=T.get(s,w),I=T.get(u,w),P=T.get(c,w),A=T.get(d,w),R=T.get(f,w);if(isNaN(O)||isNaN(A)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=HB(T,w,I,P,c,E),S[a]=O,S[i]=A,_=e.dataToPoint(S,null,C),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,S[i]=R,_=e.dataToPoint(S,null,C),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function HB(n,e,t,r,a,i){var o;return t>r?o=-1:t0?n.get(a,e-1)<=r?1:-1:1,o}function rat(n,e){var t=n.getBaseAxis(),r,a=t.type==="category"?t.getBandWidth():(r=t.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=ie(Ne(n.get("barMaxWidth"),a),a),o=ie(Ne(n.get("barMinWidth"),1),a),s=n.get("barWidth");return s!=null?ie(s,a):Math.max(Math.min(a/2,i),o)}const aat=nat;function iat(n){n.registerChartView(Grt),n.registerSeriesModel(Yrt),n.registerPreprocessor(Krt),n.registerVisual(tat),n.registerLayout(aat)}function UB(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var oat=function(n){W(e,n);function e(t,r){var a=n.call(this)||this,i=new L0(t,r),o=new Oe;return a.add(i),a.add(o),a.updateData(t,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var r=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var f=void 0;me(d)?f=d(a):f=d,i.__t>0&&(f=-s*i.__t),this._animateSymbol(i,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,r,a,i,o){if(r>0){t.__t=0;var s=this,l=t.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return qu(t.__p1,t.__cp1)+qu(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,r){t.__p1=r[0],t.__p2=r[1],t.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(t,r,a){this.childAt(0).updateData(t,r,a),this._updateEffectSymbol(t,r)},e.prototype._updateSymbolPosition=function(t){var r=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Mr,c=mP;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var d=t.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),f=t.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);t.rotation=-Math.atan2(f,d)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),d=a[l],f=a[l+1];t.x=d[0]*(1-c)+c*f[0],t.y=d[1]*(1-c)+c*f[1];var h=t.__t<1?f[0]-d[0]:d[0]-f[0],p=t.__t<1?f[1]-d[1]:d[1]-f[1];t.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,t.ignore=!1}},e}(Nae);const vat=gat;var mat=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),yat=function(n){W(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new mat},e.prototype.buildPath=function(t,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){t.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+d)/2-(c-f)*i,p=(c+f)/2-(d-u)*i;t.quadraticCurveTo(h,p,d,f)}else t.lineTo(d,f)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var d=i[u++],f=i[u++],h=1;h0){var m=(d+p)/2-(f-g)*o,y=(f+g)/2-(p-d)*o;if(BJ(d,f,m,y,p,g,s,t,r))return l}else if(zu(d,f,p,g,s,t,r))return l;l++}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),i=this.getBoundingRect();if(t=a[0],r=a[1],i.contain(t,r)){var o=this.hoverDataIdx=this.findDataIndex(t,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const _at=bat;var Sat={seriesType:"lines",plan:yv(),reset:function(n){var e=n.coordinateSystem;if(e){var t=n.get("polyline"),r=n.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(t){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var d=t.get("clip",!0)&&tT(t.coordinateSystem,!1,t);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._lineDraw.incrementalUpdate(t,r.getData()),this._finished=t.end===r.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,r,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=$ae.reset(t,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new _at:new J8(o?i?vat:Fae:i?Nae:Q8),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var r=t.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(t,r){this.remove(t,r)},e.type="lines",e}(Qt);const wat=Cat;var xat=typeof Uint32Array>"u"?Array:Uint32Array,Tat=typeof Float64Array>"u"?Array:Float64Array;function WB(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(n.data=J(e,function(t){var r=[t[0].coord,t[1].coord],a={coords:r};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),P9([a,t[0],t[1]])}))}var Eat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],WB(t);var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(WB(t),t.data){var r=this._processFlatCoordsArray(t.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(t.data=new Float32Array(r.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var r=this._processFlatCoordsArray(t.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=HS(this._flatCoords,r.flatCoords),this._flatCoordsOffset=HS(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),t.data=new Float32Array(r.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var r=this.getData().getItemModel(t),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),r=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(pn);const Oat=Eat;function T_(n){return n instanceof Array||(n=[n,n]),n}var Iat={seriesType:"lines",reset:function(n){var e=T_(n.get("symbol")),t=T_(n.get("symbolSize")),r=n.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",t&&t[0]),r.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=T_(s.getShallow("symbol",!0)),u=T_(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const Pat=Iat;function Dat(n){n.registerChartView(wat),n.registerSeriesModel(Oat),n.registerLayout($ae),n.registerVisual(Pat)}var Aat=256,Mat=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Mc.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=r;for(var p=0;p0){var A=o(_)?l:u;_>0&&(_=_*I+E),C[w++]=A[P],C[w++]=A[P+1],C[w++]=A[P+2],C[w++]=A[P+3]*_*256}else w+=4}return f.putImageData(S,0,0),d},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Mc.createCanvas()),t=this.pointSize+this.blurSize,r=t*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},n.prototype._getGradient=function(e,t){for(var r=this._gradientPixels,a=r[t]||(r[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},n}();const Rat=Mat;function Lat(n,e,t){var r=n[1]-n[0];e=J(e,function(o){return{interval:[(o.interval[0]-n[0])/r,(o.interval[1]-n[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function GB(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Nat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):GB(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,r,a,i){var o=r.coordinateSystem;o&&(GB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Zc(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,r,a,i,o){var s=t.coordinateSystem,l=hh(s,"cartesian2d"),u,c,d,f;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,d=h.scale.getExtent(),f=p.scale.getExtent()}for(var g=this.group,m=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),b=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),C=wr(t),w=t.getModel("emphasis"),T=w.get("focus"),E=w.get("blurScope"),O=w.get("disabled"),I=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],P=a;Pd[1]||kf[1])continue;var N=s.dataToPoint([L,k]);A=new rt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(I[1],P)))continue;A=new rt({z2:1,shape:s.dataToRect([m.get(I[0],P)]).contentShape,style:R})}if(m.hasItemOption){var z=m.getItemModel(P),F=z.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),b=z.getModel(["blur","itemStyle"]).getItemStyle(),_=z.getModel(["select","itemStyle"]).getItemStyle(),S=z.get(["itemStyle","borderRadius"]),T=F.get("focus"),E=F.get("blurScope"),O=F.get("disabled"),C=wr(z)}A.shape.r=S;var j=t.getRawValue(P),U="-";j&&j[2]!=null&&(U=j[2]+""),Zr(A,C,{labelFetcher:t,labelDataIndex:P,defaultOpacity:R.opacity,defaultText:U}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,En(A,T,E,O),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),g.add(A),m.setItemGraphicEl(P,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new Rat;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=t.getViewRect().clone(),d=t.getRoamTransform();c.applyTransform(d);var f=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),g=Math.min(c.height+c.y,i.getHeight()),m=p-f,y=g-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(T,E,O){var I=t.dataToPoint([T,E]);return I[0]-=f,I[1]-=h,I.push(O),I}),S=a.getExtent(),C=a.type==="visualMap.continuous"?kat(S,a.option.range):Lat(S,a.getPieceList(),a.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var w=new Xr({style:{width:m,height:y,x:f,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Qt);const Fat=Nat;var $at=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,r){return fu(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=P0.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(pn);const Vat=$at;function jat(n){n.registerChartView(Fat),n.registerSeriesModel(Vat)}var zat=["itemStyle","borderWidth"],YB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UE=new rl,Bat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),d=l.master.getRect(),f={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[d.x,d.x+d.width],[d.y,d.y+d.height]],isHorizontal:c,valueDim:YB[+c],categoryDim:YB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=ZB(o,h),g=KB(o,h,p,f),m=XB(o,f,g);o.setItemGraphicEl(h,m),i.add(m),QB(m,f,g)}}).update(function(h,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(g);return}var m=ZB(o,h),y=KB(o,h,m,f),b=Uae(o,y);g&&b!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(h,null),g=null),g?Zat(g,f,y):g=XB(o,f,y,!0),o.setItemGraphicEl(h,g),g.__pictorialSymbolMeta=y,i.add(g),QB(g,f,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&qB(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,r){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){qB(i,De(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Qt);function KB(n,e,t,r){var a=n.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,d=t.isAnimationEnabled(),f={dataIndex:e,layout:a,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?t:null,hoverScale:d&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Hat(t,i,a,r,f),Uat(n,e,a,i,o,f.boundingLength,f.pxSign,c,r,f),Wat(t,f.symbolScale,u,r,f);var h=f.symbolSize,p=dh(t.get("symbolOffset"),h);return Gat(t,h,a,i,o,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function Hat(n,e,t,r,a){var i=r.valueDim,o=n.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),c;if(X(o)){var d=[WE(s,o[0])-l,WE(s,o[1])-l];d[1]0?1:-1}function WE(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function Uat(n,e,t,r,a,i,o,s,l,u){var c=l.valueDim,d=l.categoryDim,f=Math.abs(t[d.wh]),h=n.getItemVisual(e,"symbolSize"),p;X(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[d.index]=ie(p[d.index],f),p[c.index]=ie(p[c.index],r?f:Math.abs(i)),u.symbolSize=p;var g=u.symbolScale=[p[0]/s,p[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function Wat(n,e,t,r,a){var i=n.get(zat)||0;i&&(UE.attr({scaleX:e[0],scaleY:e[1],rotation:t}),UE.updateTransform(),i/=UE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Gat(n,e,t,r,a,i,o,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,g=Math.max(e[h.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Lr(n.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ie(b,e[h.index]),C=Math.max(g+S*2,0),w=_?0:S*2,T=OJ(r),E=T?r:JB((y+w)/C),O=y-E*g;S=O/2/(_?E:Math.max(E-1,1)),C=g+S*2,w=_?0:S*2,!T&&r!=="fixed"&&(E=u?JB((Math.abs(u)+w)/C):0),m=E*C-w,d.repeatTimes=E,d.symbolMargin=S}var I=p*(m/2),P=d.pathPosition=[];P[f.index]=t[f.wh]/2,P[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(P[0]+=i[0],P[1]+=i[1]);var A=d.bundlePosition=[];A[f.index]=t[f.xy],A[h.index]=t[h.xy];var R=d.barRectShape=K({},t);R[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(P[h.index]+I)),R[f.wh]=t[f.wh];var L=d.clipShape={};L[f.xy]=-t[f.xy],L[f.wh]=c.ecSize[f.wh],L[h.xy]=0,L[h.wh]=t[h.wh]}function Vae(n){var e=n.symbolPatternSize,t=ir(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function jae(n,e,t,r){var a=n.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,d=i[e.valueDim.index]+o+t.symbolMargin*2;for(sM(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c0:y<0)&&(b=u-1-g),m[l.index]=d*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function zae(n,e,t,r){var a=n.__pictorialBundle,i=n.__pictorialMainPath;i?Kp(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,r):(i=n.__pictorialMainPath=Vae(t),a.add(i),Kp(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,r))}function Bae(n,e,t){var r=K({},e.barRectShape),a=n.__pictorialBarRect;a?Kp(a,null,{shape:r},e,t):(a=n.__pictorialBarRect=new rt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,n.add(a))}function Hae(n,e,t,r){if(t.symbolClip){var a=n.__pictorialClipPath,i=K({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)ft(a,{shape:i},s,l);else{i[o.wh]=0,a=new rt({shape:i}),n.__pictorialBundle.setClipPath(a),n.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],I0[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function ZB(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=Yat,t.isAnimationEnabled=Kat,t}function Yat(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function Kat(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function XB(n,e,t,r){var a=new Oe,i=new Oe;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?jae(a,e,t):zae(a,e,t),Bae(a,t,r),Hae(a,e,t,r),a.__pictorialShapeStr=Uae(n,t),a.__pictorialSymbolMeta=t,a}function Zat(n,e,t){var r=t.animationModel,a=t.dataIndex,i=n.__pictorialBundle;ft(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},r,a),t.symbolRepeat?jae(n,e,t,!0):zae(n,e,t,!0),Bae(n,t,!0),Hae(n,e,t,!0)}function qB(n,e,t,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];sM(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(t=null),M(i,function(o){Lc(o,{scaleX:0,scaleY:0},t,e,function(){r.parent&&r.parent.remove(r)})}),n.setItemGraphicEl(e,null)}function Uae(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function sM(n,e,t){M(n.__pictorialBundle.children(),function(r){r!==n.__pictorialBarRect&&e.call(t,r)})}function Kp(n,e,t,r,a,i){e&&n.attr(e),r.symbolClip&&!a?t&&n.attr(t):t&&I0[a?"updateProps":"initProps"](n,t,r.animationModel,r.dataIndex,i)}function QB(n,e,t){var r=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),d=i.get("blurScope"),f=i.get("scale");sM(n,function(g){if(g instanceof Xr){var m=g.style;g.useStyle(K({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=o,f&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=n.__pictorialBarRect;Zr(p,wr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Cg(e.seriesModel.getData(),r),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),En(n,c,d,i.get("disabled"))}function JB(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const Xat=Bat;var qat=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Xc(yC.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(yC);const Qat=qat;function Jat(n){n.registerChartView(Xat),n.registerSeriesModel(Qat),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,Ae(Tne,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ene("pictorialBar"))}var eit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,r,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,d=u.boundaryGap;s.x=0,s.y=c.y+d[0];function f(m){return m.name}var h=new ou(this._layersSeries||[],l,f,f),p=[];h.add(fe(g,this,"add")).update(fe(g,this,"update")).remove(fe(g,this,"remove")).execute();function g(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var S=[],C=[],w,T=l[y].indices,E=0;Ei&&(i=s),r.push(s)}for(var u=0;ui&&(i=d)}return{y0:a,max:i}}function sit(n){n.registerChartView(nit),n.registerSeriesModel(ait),n.registerLayout(iit),n.registerProcessor(F0("themeRiver"))}var lit=2,uit=4,cit=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this)||this;o.z2=lit,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new st({z2:uit,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,r,a,i),o}return e.prototype.updateData=function(t,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),d=K({},c);d.label=null;var f=r.getVisual("style");f.lineJoin="bevel";var h=r.getVisual("decal");h&&(f.decal=_g(h,o));var p=df(l.getModel("itemStyle"),d,!0);K(d,p),M(Fa,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var C=df(S,d);C&&(_.shape=C)}),t?(s.setShape(d),s.shape.r=c.r0,an(s,{shape:{r:c.r}},a,r.dataIndex)):(ft(s,{shape:d},a),rs(s)),s.useStyle(f),this._updateLabel(a);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;En(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),d=this,f=d.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,g=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,A="center"):A==="left"?(I=o.r0+P,l>Math.PI/2&&(A="right")):A==="right"&&(I=o.r-P,l>Math.PI/2&&(A="left")),S.style.align=A,S.style.verticalAlign=m(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var R=m(b,"rotate"),L=0;R==="radial"?(L=Yo(-l),L>Math.PI/2&&LMath.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):lt(R)&&(L=R*Math.PI/180),S.rotation=Yo(L)});function m(y,b){var _=y.get(b);return _??i.get(b)}f.dirtyStyle()},e}(fi);const tH=cit;var ID="sunburstRootToNode",nH="sunburstHighlight",dit="sunburstUnhighlight";function fit(n){n.registerAction({type:ID,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=Cy(e,[ID],a);if(o){var s=a.getViewRoot();s&&(e.direction=G8(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),n.registerAction({type:nH,update:"none"},function(e,t,r){e=K({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Cy(e,[nH],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(K(e,{type:"highlight"}))}),n.registerAction({type:dit,update:"updateView"},function(e,t,r){e=K({},e),r.dispatchAction(K(e,{type:"downplay"}))})}var hit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=r;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,d=t.get("renderLabelForZeroData"),f=[];u.eachNode(function(b){f.push(b)});var h=this._oldChildren||[];p(f,h),y(l,u),this._initEvents(),this._oldChildren=f;function p(b,_){if(b.length===0&&_.length===0)return;new ou(_,b,S,S).add(C).update(C).remove(Ae(C,null)).execute();function S(w){return w.getId()}function C(w,T){var E=w==null?null:b[w],O=T==null?null:_[T];g(E,O)}}function g(b,_){if(!d&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,t,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var S=new tH(b,t,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,t,r,a):(o.virtualPiece=new tH(b,t,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";iC(u,c)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ID,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Qt);const pit=hit;var git=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,r){var a={name:t.name,children:t.data};Wae(a);var i=this._levelModels=J(t.levels||[],function(l){return new Xt(l,this,r)},this),o=W8.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var d=o.getNodeByDataIndex(c),f=i[d.depth];return f&&(u.parentModel=f),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var r=n.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return r.treePathInfo=aT(a,this),r},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var r=this.getRawData().tree.root;(!t||t!==r&&!r.contains(t))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Zre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(pn);function Wae(n){var e=0;M(n.children,function(r){Wae(r);var a=r.value;X(a)&&(a=a[0]),e+=a});var t=n.value;X(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),X(n.value)?n.value[0]=t:n.value=t}const vit=git;var rH=Math.PI/180;function mit(n,e,t){e.eachSeriesByType(n,function(r){var a=r.get("center"),i=r.get("radius");X(i)||(i=[0,i]),X(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=ie(a[0],o),c=ie(a[1],s),d=ie(i[0],l/2),f=ie(i[1],l/2),h=-r.get("startAngle")*rH,p=r.get("minAngle")*rH,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Gae(m,b);var _=0;M(m.children,function(N){!isNaN(N.getValue())&&_++});var S=m.getValue(),C=Math.PI/(S||_)*2,w=m.depth>0,T=m.height-(w?-1:1),E=(f-d)/(T||1),O=r.get("clockwise"),I=r.get("stillShowZeroSum"),P=O?1:-1,A=function(N,z){if(N){var F=z;if(N!==g){var j=N.getValue(),U=S===0&&I?C:j*C;U1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&ce(s)&&(s=_P(s,(r.depth-1)/(i-1)*.5)),s}n.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");K(u,l)})})}function _it(n){n.registerChartView(pit),n.registerSeriesModel(vit),n.registerLayout(Ae(mit,"sunburst")),n.registerProcessor(Ae(F0,"sunburst")),n.registerVisual(bit),fit(n)}var aH={color:"fill",borderColor:"stroke"},Sit={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ul=at(),Cit=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,r){return fu(null,this)},e.prototype.getDataParams=function(t,r,a){var i=n.prototype.getDataParams.call(this,t,r);return a&&(i.info=Ul(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(pn);const wit=Cit;function xit(n,e){return e=e||[0,0],J(["x","y"],function(t,r){var a=this.getAxis(t),i=e[r],o=n[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function Tit(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(xit,n)}}}function Eit(n,e){return e=e||[0,0],J([0,1],function(t){var r=e[t],a=n[t]/2,i=[],o=[];return i[t]=r-a,o[t]=r+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function Oit(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Eit,n)}}}function Iit(n,e){var t=this.getAxis(),r=e instanceof Array?e[0]:e,a=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(r-a)-t.dataToCoord(r+a))}function Pit(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:fe(Iit,n)}}}function Dit(n,e){return e=e||[0,0],J(["Radius","Angle"],function(t,r){var a="get"+t+"Axis",i=this[a](),o=e[r],s=n[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function Ait(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=n.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:fe(Dit,n)}}}function Mit(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(r,a){return n.dataToPoint(r,a)}}}}function Yae(n,e,t,r){return n&&(n.legacy||n.legacy!==!1&&!t&&!r&&e!=="tspan"&&(e==="text"||he(n,"text")))}function Kae(n,e,t){var r=n,a,i,o;if(e==="text")o=r;else{o={},he(r,"text")&&(o.text=r.text),he(r,"rich")&&(o.rich=r.rich),he(r,"textFill")&&(o.fill=r.textFill),he(r,"textStroke")&&(o.stroke=r.textStroke),he(r,"fontFamily")&&(o.fontFamily=r.fontFamily),he(r,"fontSize")&&(o.fontSize=r.fontSize),he(r,"fontStyle")&&(o.fontStyle=r.fontStyle),he(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=he(r,"textPosition");t?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),he(r,"textPosition")&&(a.position=r.textPosition),he(r,"textOffset")&&(a.offset=r.textOffset),he(r,"textRotation")&&(a.rotation=r.textRotation),he(r,"textDistance")&&(a.distance=r.textDistance)}return iH(o,n),M(o.rich,function(l){iH(l,l)}),{textConfig:a,textContent:i}}function iH(n,e){e&&(e.font=e.textFont||e.font,he(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),he(e,"textAlign")&&(n.align=e.textAlign),he(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),he(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),he(e,"textWidth")&&(n.width=e.textWidth),he(e,"textHeight")&&(n.height=e.textHeight),he(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),he(e,"textPadding")&&(n.padding=e.textPadding),he(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),he(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),he(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),he(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),he(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),he(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),he(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function oH(n,e,t){var r=n;r.textPosition=r.textPosition||t.position||"inside",t.offset!=null&&(r.textOffset=t.offset),t.rotation!=null&&(r.textRotation=t.rotation),t.distance!=null&&(r.textDistance=t.distance);var a=r.textPosition.indexOf("inside")>=0,i=n.fill||"#000";sH(r,e);var o=r.textFill==null;return a?o&&(r.textFill=t.insideFill||"#fff",!r.textStroke&&t.insideStroke&&(r.textStroke=t.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=n.fill||t.outsideFill||"#000"),!r.textStroke&&t.outsideStroke&&(r.textStroke=t.outsideStroke)),r.text=e.text,r.rich=e.rich,M(e.rich,function(s){sH(s,s)}),r}function sH(n,e){e&&(he(e,"fill")&&(n.textFill=e.fill),he(e,"stroke")&&(n.textStroke=e.fill),he(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),he(e,"font")&&(n.font=e.font),he(e,"fontStyle")&&(n.fontStyle=e.fontStyle),he(e,"fontWeight")&&(n.fontWeight=e.fontWeight),he(e,"fontSize")&&(n.fontSize=e.fontSize),he(e,"fontFamily")&&(n.fontFamily=e.fontFamily),he(e,"align")&&(n.textAlign=e.align),he(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),he(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),he(e,"width")&&(n.textWidth=e.width),he(e,"height")&&(n.textHeight=e.height),he(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),he(e,"padding")&&(n.textPadding=e.padding),he(e,"borderColor")&&(n.textBorderColor=e.borderColor),he(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),he(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),he(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),he(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),he(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),he(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),he(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),he(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),he(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),he(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}var Zae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lH=Ye(Zae);Qs(el,function(n,e){return n[e]=1,n},{});el.join(", ");var EC=["","style","shape","extra"],Tg=at();function lM(n,e,t,r,a){var i=n+"Animation",o=cv(n,r,a)||{},s=Tg(e).userDuring;return o.duration>0&&(o.during=s?fe(Fit,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=n),K(o,t[i]),o}function R2(n,e,t,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=t.isAnimationEnabled(),l=Tg(n),u=e.style;l.userDuring=e.during;var c={},d={};if(Vit(n,e,d),cH("shape",e,d),cH("extra",e,d),!i&&s&&($it(n,e,c),uH("shape",n,e,c),uH("extra",n,e,c),jit(n,e,u,c)),d.style=u,Rit(n,d,o),kit(n,e),s)if(i){var f={};M(EC,function(p){var g=p?e[p]:e;g&&g.enterFrom&&(p&&(f[p]=f[p]||{}),K(p?f[p]:f,g.enterFrom))});var h=lM("enter",n,e,t,a);h.duration>0&&n.animateFrom(f,h)}else Lit(n,e,a||0,t,c);Xae(n,e),u?n.dirty():n.markRedraw()}function Xae(n,e){for(var t=Tg(n).leaveToProps,r=0;r0&&n.animateFrom(a,i)}}function kit(n,e){he(e,"silent")&&(n.silent=e.silent),he(e,"ignore")&&(n.ignore=e.ignore),n instanceof xo&&he(e,"invisible")&&(n.invisible=e.invisible),n instanceof Ue&&he(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var ws={},Nit={setTransform:function(n,e){return ws.el[n]=e,this},getTransform:function(n){return ws.el[n]},setShape:function(n,e){var t=ws.el,r=t.shape||(t.shape={});return r[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){var e=ws.el.shape;if(e)return e[n]},setStyle:function(n,e){var t=ws.el,r=t.style;return r&&(r[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){var e=ws.el.style;if(e)return e[n]},setExtra:function(n,e){var t=ws.el.extra||(ws.el.extra={});return t[n]=e,this},getExtra:function(n){var e=ws.el.extra;if(e)return e[n]}};function Fit(){var n=this,e=n.el;if(e){var t=Tg(e).userDuring,r=n.userDuring;if(t!==r){n.el=n.userDuring=null;return}ws.el=e,r(Nit)}}function uH(n,e,t,r){var a=t[n];if(a){var i=e[n],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=r[n]={}),Of(l))K(o,i);else for(var u=kt(l),c=0;c=0){!o&&(o=r[n]={});for(var h=Ye(i),c=0;c=0)){var f=n.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});for(var p=Ye(t),u=0;u=0?e.getStore().get(z,k):void 0}var F=e.get(N.name,k),j=N&&N.ordinalMeta;return j?j.categories[F]:F}function w(L,k){k==null&&(k=u);var N=e.getItemVisual(k,"style"),z=N&&N.fill,F=N&&N.opacity,j=b(k,ac).getItemStyle();z!=null&&(j.fill=z),F!=null&&(j.opacity=F);var U={inheritColor:ce(z)?z:"#000"},G=_(k,ac),Y=Zt(G,null,U,!1,!0);Y.text=G.getShallow("show")?Ne(n.getFormattedLabel(k,ac),Cg(e,k)):null;var Q=rC(G,U,!1);return O(L,j),j=oH(j,Y,Q),L&&E(j,L),j.legacy=!0,j}function T(L,k){k==null&&(k=u);var N=b(k,Wl).getItemStyle(),z=_(k,Wl),F=Zt(z,null,null,!0,!0);F.text=z.getShallow("show")?Ks(n.getFormattedLabel(k,Wl),n.getFormattedLabel(k,ac),Cg(e,k)):null;var j=rC(z,null,!0);return O(L,N),N=oH(N,F,j),L&&E(N,L),N.legacy=!0,N}function E(L,k){for(var N in k)he(k,N)&&(L[N]=k[N])}function O(L,k){L&&(L.textFill&&(k.textFill=L.textFill),L.textPosition&&(k.textPosition=L.textPosition))}function I(L,k){if(k==null&&(k=u),he(aH,L)){var N=e.getItemVisual(k,"style");return N?N[aH[L]]:null}if(he(Sit,L))return e.getItemVisual(k,L)}function P(L){if(i.type==="cartesian2d"){var k=i.getBaseAxis();return qKe(_e({axis:k},L))}}function A(){return t.getCurrentSeriesIndices()}function R(L){return Mee(L,t)}}function qit(n){var e={};return M(n.dimensions,function(t){var r=n.getDimensionInfo(t);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=n.getDimensionIndex(t)}}),e}function ZE(n,e,t,r,a,i,o){if(!r){i.remove(e);return}var s=hM(n,e,t,r,a,i);return s&&o.setItemGraphicEl(t,s),s&&En(s,r.focus,r.blurScope,r.emphasisDisabled),s}function hM(n,e,t,r,a,i){var o=-1,s=e;e&&eie(e,r,a)&&(o=Be(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=dM(r),s&&Git(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Zi.normal.cfg=Zi.normal.conOpt=Zi.emphasis.cfg=Zi.emphasis.conOpt=Zi.blur.cfg=Zi.blur.conOpt=Zi.select.cfg=Zi.select.conOpt=null,Zi.isLegacy=!1,Jit(u,t,r,a,l,Zi),Qit(u,t,r,a,l),fM(n,u,t,r,Zi,a,l),he(r,"info")&&(Ul(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function eie(n,e,t){var r=Ul(n),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&aot(i)&&tie(i)!==r.customPathData||a==="image"&&he(o,"image")&&o.image!==r.customImagePath}function Qit(n,e,t,r,a){var i=t.clipPath;if(i===!1)n&&n.getClipPath()&&n.removeClipPath();else if(i){var o=n.getClipPath();o&&eie(o,i,r)&&(o=null),o||(o=dM(i),n.setClipPath(o)),fM(null,o,e,i,null,r,a)}}function Jit(n,e,t,r,a,i){if(!n.isGroup){fH(t,null,i),fH(t,Wl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(o===!1)c&&n.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=dM(o),n.setTextContent(c)),fM(null,c,e,o,null,r,a);for(var d=o&&o.style,f=0;f=c;h--){var p=e.childAt(h);tot(e,p,a)}}}function tot(n,e,t){e&&sT(e,Ul(n).option,t)}function not(n){new ou(n.oldChildren,n.newChildren,hH,hH,n).add(pH).update(pH).remove(rot).execute()}function hH(n,e){var t=n&&n.name;return t??Uit+e}function pH(n,e){var t=this.context,r=n!=null?t.newChildren[n]:null,a=e!=null?t.oldChildren[e]:null;hM(t.api,a,t.dataIndex,r,t.seriesModel,t.group)}function rot(n){var e=this.context,t=e.oldChildren[n];t&&sT(t,Ul(t).option,e.seriesModel)}function tie(n){return n&&(n.pathData||n.d)}function aot(n){return n&&(he(n,"pathData")||he(n,"d"))}function iot(n){n.registerChartView(Kit),n.registerSeriesModel(wit)}var Kd=at(),gH=Ee,XE=fe,oot=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,r,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var d=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),r.getZr().add(s);else{var f=Ae(vH,t,d);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,t)}yH(s,t,!0),this._renderHandle(i)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var r=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=$8(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},n.prototype.makeElOption=function(e,t,r,a,i){},n.prototype.createPointerEl=function(e,t,r,a){var i=t.pointer;if(i){var o=Kd(e).pointerEl=new I0[i.type](gH(t.pointer));e.add(o)}},n.prototype.createLabelEl=function(e,t,r,a){if(t.label){var i=Kd(e).labelEl=new st(gH(t.label));e.add(i),mH(i,a)}},n.prototype.updatePointerEl=function(e,t,r){var a=Kd(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),r(a,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,r,a){var i=Kd(e).labelEl;i&&(i.setStyle(t.label.style),r(i,{x:t.label.x,y:t.label.y}),mH(i,a))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=O0(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nu(u.event)},onmousedown:XE(this._onHandleDragMove,this,0,0),drift:XE(this._onHandleDragMove,this),ondragend:XE(this._onHandleDragEnd,this)}),r.add(a)),yH(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");X(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,bv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){vH(this._axisPointerModel,!t&&this._moveAnimation,this._handle,qE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(qE(r),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(qE(a)),Kd(r).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),r=this._group,a=this._handle;t&&r&&(this._lastGraphicKey=null,r&&t.remove(r),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),gy(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}},n}();function vH(n,e,t,r){nie(Kd(t).lastProp,r)||(Kd(t).lastProp=r,e?ft(t,r,n):(t.stopAnimation(),t.attr(r)))}function nie(n,e){if(we(n)&&we(e)){var t=!0;return M(e,function(r,a){t=t&&nie(n[a],r)}),!!t}else return n===e}function mH(n,e){n[e.get(["label","show"])?"show":"hide"]()}function qE(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function yH(n,e,t){var r=e.get("z"),a=e.get("zlevel");n&&n.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=t)})}const gM=oot;function vM(n){var e=n.get("type"),t=n.getModel(e+"Style"),r;return e==="line"?(r=t.getLineStyle(),r.fill=null):e==="shadow"&&(r=t.getAreaStyle(),r.stroke=null),r}function rie(n,e,t,r,a){var i=t.get("value"),o=aie(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=pv(s.get("padding")||0),u=s.getFont(),c=C0(o,u),d=a.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(d[0]-=f),p==="center"&&(d[0]-=f/2);var g=a.verticalAlign;g==="bottom"&&(d[1]-=h),g==="middle"&&(d[1]-=h/2),sot(d,f,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),n.label={x:d[0],y:d[1],style:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function sot(n,e,t,r){var a=r.getWidth(),i=r.getHeight();n[0]=Math.min(n[0]+e,a)-e,n[1]=Math.min(n[1]+t,i)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function aie(n,e,t,r,a){n=e.scale.parse(n);var i=e.scale.getLabel({value:n},{precision:a.precision}),o=a.formatter;if(o){var s={value:P8(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};M(r,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,d=u&&u.getDataParams(c);d&&s.seriesData.push(d)}),ce(o)?i=o.replace("{value}",i):me(o)&&(i=o(s))}return i}function mM(n,e,t){var r=wo();return uh(r,r,t.rotation),Js(r,r,t.position),Jo([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],r)}function iie(n,e,t,r,a,i){var o=su.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),rie(e,r,a,i,{position:mM(r.axis,n,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yM(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function oie(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function bH(n,e,t,r,a,i){return{cx:n,cy:e,r0:t,r,startAngle:a,endAngle:i,clockwise:!0}}var lot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=_H(l,s).getOtherAxis(s).getGlobalExtent(),d=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var f=vM(i),h=uot[u](s,d,c);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=fD(l.model,a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=fD(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=_H(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,d=[t.x,t.y];d[c]+=r[c],d[c]=Math.min(l[1],d[c]),d[c]=Math.max(l[0],d[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=d[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:d[0],y:d[1],rotation:t.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(gM);function _H(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var uot={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],SH(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=Math.max(1,n.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],SH(n))}}};function SH(n){return n.dim==="x"?0:1}const cot=lot;var dot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(it);const fot=dot;var Rl=at(),hot=M;function sie(n,e,t){if(!ot.node){var r=e.getZr();Rl(r).records||(Rl(r).records={}),pot(r,e);var a=Rl(r).records[n]||(Rl(r).records[n]={});a.handler=t}}function pot(n,e){if(Rl(n).initialized)return;Rl(n).initialized=!0,t("click",Ae(CH,"click")),t("mousemove",Ae(CH,"mousemove")),t("globalout",vot);function t(r,a){n.on(r,function(i){var o=mot(e);hot(Rl(n).records,function(s){s&&a(s,i,o.dispatchAction)}),got(o.pendings,e)})}}function got(n,e){var t=n.showTip.length,r=n.hideTip.length,a;t?a=n.showTip[t-1]:r&&(a=n.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function vot(n,e,t){n.handler("leave",null,t)}function CH(n,e,t,r){e.handler(n,t,r)}function mot(n){var e={showTip:[],hideTip:[]},t=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=t,n.dispatchAction(r))};return{dispatchAction:t,pendings:e}}function AD(n,e){if(!ot.node){var t=e.getZr(),r=(Rl(t).records||{})[n];r&&(Rl(t).records[n]=null)}}var yot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=r.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";sie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,r){AD("axisPointer",r)},e.prototype.dispose=function(t,r){AD("axisPointer",r)},e.type="axisPointer",e}(On);const bot=yot;function lie(n,e){var t=[],r=n.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=jf(i,n);if(o==null||o<0||X(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h=d==="x"||d==="radius"?1:0,p=i.mapDimension(f),g=[];g[h]=i.get(p,o),g[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(i.getValues(J(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var wH=at();function _ot(n,e,t){var r=n.currTrigger,a=[n.x,n.y],i=n,o=n.dispatchAction||fe(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){L2(a)&&(a=lie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=L2(a),u=i.axesInfo,c=s.axesInfo,d=r==="leave"||L2(a),f={},h={},p={list:[],map:{}},g={showPointer:Ae(Cot,h),showTooltip:Ae(wot,p)};M(s.coordSysMap,function(y,b){var _=l||y.containPoint(a);M(s.coordSysAxesInfo[b],function(S,C){var w=S.axis,T=Oot(u,S);if(!d&&_&&(!u||T)){var E=T&&T.value;E==null&&!l&&(E=w.pointToData(a)),E!=null&&xH(S,E,g,!1,f)}})});var m={};return M(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&M(_.axesInfo,function(S,C){var w=h[C];if(S!==y&&w){var T=w.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,TH(S),TH(y)))),m[y.key]=T}})}),M(m,function(y,b){xH(c[b],y,g,!0,f)}),xot(h,c,f),Tot(p,a,n,o),Eot(c,o,t),f}}function xH(n,e,t,r,a){var i=n.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var o=Sot(e,n),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&K(a,s[0]),!r&&n.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,o,l)}}function Sot(n,e){var t=e.axis,r=t.dim,a=n,i=[],o=Number.MAX_VALUE,s=-1;return M(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),d,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,n,t);f=h.dataIndices,d=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!f.length)return;d=l.getData().get(c[0],f[0])}if(!(d==null||!isFinite(d))){var p=n-d,g=Math.abs(p);g<=o&&((g=0&&s<0)&&(o=g,s=p,a=d,i.length=0),M(f,function(m){i.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:i,snapToValue:a}}function Cot(n,e,t,r){n[e.key]={value:t,payloadBatch:r}}function wot(n,e,t,r){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Sy(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function xot(n,e,t){var r=t.axesInfo=[];M(e,function(a,i){var o=a.axisPointerModel.option,s=n[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Tot(n,e,t,r){if(L2(e)||!n.list.length){r({type:"hideTip"});return}var a=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:n.list})}function Eot(n,e,t){var r=t.getZr(),a="axisPointerLastHighlights",i=wH(r)[a]||{},o=wH(r)[a]={};M(n,function(u,c){var d=u.axisPointerModel.option;d.status==="show"&&u.triggerEmphasis&&M(d.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(o,function(u,c){!i[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Oot(n,e){for(var t=0;t<(n||[]).length;t++){var r=n[t];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function TH(n){var e=n.axis.model,t={},r=t.axisDim=n.axis.dim;return t.axisIndex=t[r+"AxisIndex"]=e.componentIndex,t.axisName=t[r+"AxisName"]=e.name,t.axisId=t[r+"AxisId"]=e.id,t}function L2(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function z0(n){ph.registerAxisPointerClass("CartesianAxisPointer",cot),n.registerComponentModel(fot),n.registerComponentView(bot),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!X(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=fQe(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_ot)}function Iot(n){He(Lre),He(z0)}var Pot=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),d=s.dataToCoord(r),f=i.get("type");if(f&&f!=="none"){var h=vM(i),p=Aot[f](s,l,d,c);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=i.get(["label","margin"]),m=Dot(r,a,i,l,g);rie(t,a,i,o,m)},e}(gM);function Dot(n,e,t,r,a){var i=e.axis,o=i.dataToCoord(n),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,d;if(i.dim==="radius"){var f=wo();uh(f,f,s),Js(f,f,[r.cx,r.cy]),u=Jo([o,-a],f);var h=e.getModel("axisLabel").get("rotate")||0,p=su.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,d=p.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+a,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",d=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:d}}var Aot={line:function(n,e,t,r){return n.dim==="angle"?{type:"Line",shape:yM(e.coordToPoint([r[0],t]),e.coordToPoint([r[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,r){var a=Math.max(1,n.getBandWidth()),i=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:bH(e.cx,e.cy,r[0],r[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:bH(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const Mot=Pot;var Rot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var r,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(it);const Lot=Rot;var bM=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(it);or(bM,R0);var kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(bM),Not=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(bM),_M=function(n){W(e,n);function e(t,r){return n.call(this,"radius",t,r)||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e}(cs);_M.prototype.dataToRadius=cs.prototype.dataToCoord;_M.prototype.radiusToData=cs.prototype.coordToData;const Fot=_M;var $ot=at(),SM=function(n){W(e,n);function e(t,r){return n.call(this,"angle",t,r||[0,360])||this}return e.prototype.pointToData=function(t,r){return this.polar.pointToData(t,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,r=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=C0(s==null?"":s+"",r.getFont(),"center","top"),d=Math.max(c.height,7),f=d/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=$ot(t.model),g=p.lastAutoInterval,m=p.lastTickCount;return g!=null&&m!=null&&Math.abs(g-h)<=1&&Math.abs(m-o)<=1&&g>h?h=g:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(cs);SM.prototype.dataToAngle=cs.prototype.dataToCoord;SM.prototype.angleToData=cs.prototype.coordToData;const Vot=SM;var uie=["radius","angle"],jot=function(){function n(e){this.dimensions=uie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Fot,this._angleAxis=new Vot,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&t.push(r),a.scale.type===e&&t.push(a),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+r*r);t/=l,r/=l;for(var u=Math.atan2(-r,t)/Math.PI*180,c=us;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*t+this.cx,i=-Math.sin(r)*t+this.cy;return[a,i]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),r=t.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,d=this.r,f=this.r0;return c<=d*d&&c>=f*f}}},n.prototype.convertToPixel=function(e,t,r){var a=EH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=EH(t);return a===this?this.pointToData(r):null},n}();function EH(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const zot=jot;function Bot(n,e,t){var r=e.get("center"),a=t.getWidth(),i=t.getHeight();n.cx=ie(r[0],a),n.cy=ie(r[1],i);var o=n.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:X(l)||(l=[0,l]);var u=[ie(l[0],s),ie(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function Hot(n,e){var t=this,r=t.getAngleAxis(),a=t.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();M(pC(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),M(pC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Sg(r.scale,r.model),Sg(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function Uot(n){return n.mainType==="angleAxis"}function OH(n,e){if(n.type=e.get("type"),n.scale=Jx(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),Uot(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var Wot={dimensions:uie,create:function(n,e){var t=[];return n.eachComponent("polar",function(r,a){var i=new zot(a+"");i.update=Hot;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");OH(o,l),OH(s,u),Bot(i,r,e),t.push(i),r.coordinateSystem=i,i.model=r}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",rr).models[0];r.coordinateSystem=a.coordinateSystem}}),t}};const Got=Wot;var Yot=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function E_(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var r=n.coordToPoint([e[0],t]),a=n.coordToPoint([e[1],t]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function O_(n){var e=n.getRadiusAxis();return e.inverse?0:1}function IH(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var Kot=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,r){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=J(a.getViewLabels(),function(c){c=Ee(c);var d=a.scale,f=d.type==="ordinal"?d.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(f),c});IH(u),IH(s),M(Yot,function(c){t.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&Zot[c](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ph),Zot={axisLine:function(n,e,t,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=O_(t),l=s?0:1,u;i[l]===0?u=new rl({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new kx({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[O_(t)],u=J(r,function(c){return new kr({shape:E_(t,[l,l+s],c.coord)})});n.add(co(u,{style:_e(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[O_(t)],c=[],d=0;dy?"left":"right",S=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[p]){var C=s[p];we(C)&&C.textStyle&&(h=new Xt(C.textStyle,l,l.ecModel))}var w=new st({silent:su.isLabelSilent(e),style:Zt(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:d.formattedLabel,align:_,verticalAlign:S})});if(n.add(w),c){var T=su.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=d.rawLabel,De(w).eventData=T}},this)},splitLine:function(n,e,t,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",R=T;C&&(r[c][P]||(r[c][P]={p:T,n:T}),R=r[c][P][A]);var L=void 0,k=void 0,N=void 0,z=void 0;if(p.dim==="radius"){var F=p.dataToCoord(I)-T,j=l.dataToCoord(P);Math.abs(F)=z})}}})}function ast(n){var e={};M(n,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=die(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),d=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=d.stacks;e[l]=d;var h=cie(r);f[h]||d.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var p=ie(r.get("barWidth"),c),g=ie(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");p&&!f[h].width&&(p=Math.min(d.remainedWidth,p),f[h].width=p,d.remainedWidth-=p),g&&(f[h].maxWidth=g),m!=null&&(d.gap=m),y!=null&&(d.categoryGap=y)});var t={};return M(e,function(r,a){t[a]={};var i=r.stacks,o=r.bandWidth,s=ie(r.categoryGap,o),l=ie(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),M(i,function(g,m){var y=g.maxWidth;y&&y=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),r=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},n.prototype.convertToPixel=function(e,t,r){var a=PH(t);return a===this?this.dataToPoint(r):null},n.prototype.convertFromPixel=function(e,t,r){var a=PH(t);return a===this?this.pointToData(r):null},n}();function PH(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function mst(n,e){var t=[];return n.eachComponent("singleAxis",function(r,a){var i=new vst(r,n,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,t.push(i)}),n.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),t}var yst={create:mst,dimensions:hie};const bst=yst;var DH=["x","y"],_st=["width","height"],Sst=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=JE(l,1-PC(s)),c=l.dataToPoint(r)[0],d=i.get("type");if(d&&d!=="none"){var f=vM(i),h=Cst[d](s,c,u);h.style=f,t.graphicKey=h.type,t.pointer=h}var p=MD(a);iie(r,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,r,a){var i=MD(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=mM(r.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,r,a,i){var o=a.axis,s=o.coordinateSystem,l=PC(o),u=JE(s,l),c=[t.x,t.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var d=JE(s,1-l),f=(d[1]+d[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(gM),Cst={line:function(n,e,t){var r=yM([e,t[0]],[e,t[1]],PC(n));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(n,e,t){var r=n.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:oie([e-r/2,t[0]],[r,a],PC(n))}}};function PC(n){return n.isHorizontal()?0:1}function JE(n,e){var t=n.getRect();return[t[DH[e]],t[DH[e]]+t[_st[e]]]}const wst=Sst;var xst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(On);function Tst(n){He(z0),ph.registerAxisPointerClass("SingleAxisPointer",wst),n.registerComponentView(xst),n.registerComponentView(hst),n.registerComponentModel(QE),wg(n,"single",QE,QE.defaultOption),n.registerCoordinateSystem("single",bst)}var Est=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r,a){var i=gv(t);n.prototype.init.apply(this,arguments),AH(t,i)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),AH(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(it);function AH(n,e){var t=n.cellSize,r;X(t)?r=t:r=n.cellSize=[t,t],r.length===1&&(r[1]=r[0]);var a=J([0,1],function(i){return MWe(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});kc(n,e,{type:"box",ignoreSize:a})}const Ost=Est;var Ist=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,r,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,d=new rt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(d)}},e.prototype._renderLines=function(t,r,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var d=r.start,f=0;d.time<=r.end.time;f++){p(d.formatedDate),f===0&&(d=s.getDateInfo(r.start.y+"-"+r.start.m));var h=d.date;h.setMonth(h.getMonth()+1),d=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=o._getLinePointsOfOneWeek(t,g,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(t,r,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(t,r,a){var i=new vi({z2:20,shape:{points:t},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,r,a){for(var i=t.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,r){return ce(t)&&t?PWe(t,r):me(t)?t(r):r.nameMap},e.prototype._yearTextPositionControl=function(t,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,r,a,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,d=(u[0][1]+u[1][1])/2,f=a==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],d],right:[u[f][0],d]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var g=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(g,m),b=new st({z2:30,style:Zt(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},e.prototype._monthTextPositionControl=function(t,r,a,i,o){var s="left",l="top",u=t[0],c=t[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,r,a,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),d=[this._tlpoints,this._blpoints];(!s||ce(s))&&(s&&(r=BP(s)||r),s=r.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",g=0;g=a.start.time&&r.times.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;t[0].time>t[1].time&&(r=!0,t.reverse());var a=Math.floor(t[1].time/e3)-Math.floor(t[0].time/e3)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+t[0].day+6)/7),d=r?-c+1:c-1;return r&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:c,nthWeek:d,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&ta.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},n.create=function(e,t){var r=[];return e.eachComponent("calendar",function(a){var i=new n(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},n.dimensions=["time","value"],n}();function MH(n){var e=n.calendarModel,t=n.seriesModel,r=e?e.coordinateSystem:t?t.coordinateSystem:null;return r}const Ast=Dst;function Mst(n){n.registerComponentModel(Ost),n.registerComponentView(Pst),n.registerCoordinateSystem("calendar",Ast)}function Rst(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function RH(n,e){var t;return M(e,function(r){n[r]!=null&&n[r]!=="auto"&&(t=!0)}),t}function Lst(n,e,t){var r=K({},t),a=n[e],i=t.$action||"merge";i==="merge"?a?(Fe(a,r,!0),kc(a,r,{ignoreSize:!0}),qee(t,a),I_(t,a),I_(t,a,"shape"),I_(t,a,"style"),I_(t,a,"extra"),t.clipPath=a.clipPath):n[e]=r:i==="replace"?n[e]=r:i==="remove"&&a&&(n[e]=null)}var pie=["transition","enterFrom","leaveTo"],kst=pie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function I_(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var r=t?pie:kst,a=0;a=0;c--){var d=a[c],f=dr(d.id,null),h=f!=null?o.get(f):null;if(h){var p=h.parent,y=to(p),b=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wx(h,d,b,null,{hv:d.hv,boundingMode:d.bounding},_);if(!to(h).isNew&&S){for(var C=d.transition,w={},T=0;T=0)?w[E]=O:h[E]=O}ft(h,w,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,r=this._elMap;r.each(function(a){k2(a,to(a).option,r,t._lastGraphicModel)}),this._elMap=ge()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(On);function RD(n){var e=he(LH,n)?LH[n]:e8(n),t=new e({});return to(t).type=n,t}function kH(n,e,t,r){var a=RD(t);return e.add(a),r.set(n,a),to(a).id=n,to(a).isNew=!0,a}function k2(n,e,t,r){var a=n&&n.parent;a&&(n.type==="group"&&n.traverse(function(i){k2(i,e,t,r)}),sT(n,e,r),t.removeKey(to(n).id))}function NH(n,e,t,r){n.isGroup||M([["cursor",xo.prototype.cursor],["zlevel",r||0],["z",t||0],["z2",0]],function(a){var i=a[0];he(e,i)?n[i]=Ne(e[i],a[1]):n[i]==null&&(n[i]=a[1])}),M(Ye(e),function(a){if(a.indexOf("on")===0){var i=e[a];n[a]=me(i)?i:null}}),he(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function Vst(n){return n=K({},n),M(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Xee),function(e){delete n[e]}),n}function jst(n,e,t){var r=De(n).eventData;!n.silent&&!n.ignore&&!r&&(r=De(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),r&&(r.info=t.info)}function zst(n){n.registerComponentModel(Fst),n.registerComponentView($st),n.registerPreprocessor(function(e){var t=e.graphic;X(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var FH=["x","y","radius","angle","single"],Bst=["cartesian2d","polar","singleAxis"];function Hst(n){var e=n.get("coordinateSystem");return Be(Bst,e)>=0}function ic(n){return n+"Axis"}function Ust(n,e){var t=ge(),r=[],a=ge();n.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,n.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var d=!1;return c.eachTargetAxis(function(f,h){var p=t.get(f);p&&p[h]&&(d=!0)}),d}function u(c){c.eachTargetAxis(function(d,f){(t.get(d)||t.set(d,[]))[f]=!0})}return r}function gie(n){var e=n.ecModel,t={infoList:[],infoMap:ge()};return n.eachTargetAxis(function(r,a){var i=e.getComponent(ic(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var t3=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),Wst=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,r,a){var i=$H(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var r=$H(t);Fe(this.option,t,!0),Fe(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(t){var r=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),r=this._targetAxisInfoMap=ge(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var r=!1;return M(FH,function(a){var i=this.getReferringComponents(ic(a),uHe);if(i.specified){r=!0;var o=new t3;M(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(t,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var d=u[0];if(d){var f=new t3;if(f.add(d.componentIndex),t.set(c,f),i=!1,c==="x"||c==="y"){var h=d.getReferringComponents("grid",rr).models[0];h&&M(u,function(p){d.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",rr).models[0]&&f.add(p.componentIndex)})}}}i&&M(FH,function(u){if(i){var c=a.findComponents({mainType:ic(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var d=new t3;d.add(c[0].componentIndex),t.set(u,d),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(r){!t&&(t=r)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var r=this._rangePropMode,a=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(r,a){t==null&&(t=this.ecModel.getComponent(ic(r),a))},this),t},e.prototype.eachTargetAxis=function(t,r){this._targetAxisInfoMap.each(function(a,i){M(a.indexList,function(o){t.call(r,i,o)})})},e.prototype.getAxisProxy=function(t,r){var a=this.getAxisModel(t,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,r){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[r])return this.ecModel.getComponent(ic(t),r)},e.prototype.setRawRange=function(t){var r=this.option,a=this.settledOption;M([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(r[i[0]]=a[i[0]]=t[i[0]],r[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var r=this.option;M(["start","startValue","end","endValue"],function(a){r[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,r){if(t==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(_&&!S&&!C)return!0;_&&(m=!0),S&&(p=!0),C&&(g=!0)}return m&&p&&g})}else ap(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ap(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,r=this._dataExtent;ap(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=xt(r[0]+o,r,[0,100],!0):i!=null&&(o=xt(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,r=this._valueWindow;if(t){var a=xJ(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},n}();function Qst(n,e,t){var r=[1/0,-1/0];ap(t,function(o){_Ze(r,o.getData(),e)});var a=n.getAxisModel(),i=Mne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Jst=qst;var elt={getTargetSeries:function(n){function e(a){n.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=n.getComponent(ic(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Jst(a,i,s,n),t.push(o.__dzAxisProxy))});var r=ge();return M(t,function(a){M(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).reset(t)}),t.eachTargetAxis(function(r,a){t.getAxisProxy(r,a).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var r=t.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const tlt=elt;function nlt(n){n.registerAction("dataZoom",function(e,t){var r=Ust(t,e);M(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var jH=!1;function wM(n){jH||(jH=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,tlt),nlt(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function rlt(n){n.registerComponentModel(Yst),n.registerComponentView(Xst),wM(n)}var oo=function(){function n(){}return n}(),vie={};function ip(n,e){vie[n]=e}function mie(n){return vie[n]}var alt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;M(this.option.feature,function(r,a){var i=mie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),Fe(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(it);const ilt=alt;function olt(n,e,t){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=hr(r,i,a);xf(e.get("orient"),n,e.get("itemGap"),o.width,o.height),Wx(n,r,i,a)}function yie(n,e){var t=pv(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),n=new rt({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),n}var slt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),d=[];M(u,function(p,g){d.push(g)}),new ou(this._featureNames||[],d).add(f).update(f).remove(Ae(f,null)).execute(),this._featureNames=d;function f(p,g){var m=d[p],y=d[g],b=u[m],_=new Xt(b,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===m&&(b.title=i.newTitle),m&&!y){if(llt(m))S={onclick:_.option.onclick,featureName:m};else{var C=mie(m);if(!C)return;S=new C}c[m]=S}else if(S=c[y],!S)return;S.uid=hv("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var w=S instanceof oo;if(!m&&y){w&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||w&&S.unusable){w&&S.remove&&S.remove(r,a);return}h(_,S,m),_.setIconStatus=function(T,E){var O=this.option,I=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[T]=E,I[T]&&(E==="emphasis"?au:iu)(I[T])},S instanceof oo&&S.render&&S.render(_,r,a,i)}function h(p,g,m){var y=p.getModel("iconStyle"),b=p.getModel(["emphasis","iconStyle"]),_=g instanceof oo&&g.getIcons?g.getIcons():p.get("icon"),S=p.get("title")||{},C,w;ce(_)?(C={},C[m]=_):C=_,ce(S)?(w={},w[m]=S):w=S;var T=p.iconPaths={};M(C,function(E,O){var I=O0(E,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(y.getItemStyle());var P=I.ensureState("emphasis");P.style=b.getItemStyle();var A=new st({style:{text:w[O],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(A),dv({el:I,componentModel:t,itemName:O,formatterParamsExtra:{title:w[O]}}),I.__title=w[O],I.on("mouseover",function(){var R=b.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||L}),A.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",O])!=="emphasis"&&a.leaveEmphasis(this),A.hide()}),(p.get(["iconStatus",O])==="emphasis"?au:iu)(I),o.add(I),I.on("click",fe(g.onclick,g,r,a,O)),T[O]=I})}olt(o,t,a),o.add(yie(o.getBoundingRect(),t)),l||o.eachChild(function(p){var g=p.__title,m=p.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=p.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!me(_)&&g){var S=_.style||(_.style={}),C=C0(g,st.makeFont(S)),w=p.x+o.x,T=p.y+o.y+s,E=!1;T+C.height>a.getHeight()&&(y.position="top",E=!0);var O=E?-5-C.height:s+10;w+C.width/2>a.getWidth()?(y.position=["100%",O],S.align="right"):w-C.width/2<0&&(y.position=[0,O],S.align="left")}})},e.prototype.updateView=function(t,r,a,i){M(this._features,function(o){o instanceof oo&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(t,r){M(this._features,function(a){a instanceof oo&&a.remove&&a.remove(t,r)}),this.group.removeAll()},e.prototype.dispose=function(t,r){M(this._features,function(a){a instanceof oo&&a.dispose&&a.dispose(t,r)})},e.type="toolbox",e}(On);function llt(n){return n.indexOf("my")===0}const ult=slt;var clt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=ot.browser;if(me(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var d=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(d)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,p=o?decodeURIComponent(f[1]):f[1];h&&(p=window.atob(p));var g=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=p.length,y=new Uint8Array(m);m--;)y[m]=p.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(p),C.close(),S.focus(),C.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var w=a.get("lang"),T='',E=window.open();E.document.write(T),E.document.title=i}},e.getDefaultOption=function(t){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(oo);const dlt=clt;var zH="__ec_magicType_stack__",flt=[["line","bar"],["stack"]],hlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,r=t.get("icon"),a={};return M(t.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(t){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(t,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(BH[a]){var s={series:[]},l=function(d){var f=d.subType,h=d.id,p=BH[a](f,h,d,i);p&&(_e(p,d.option),s.series.push(p));var g=d.coordinateSystem;if(g&&g.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=d.getReferringComponents(b,rr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};M(flt,function(d){Be(d,a)>=0&&M(d,function(f){i.setIconStatus(f,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Fe({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oo),BH={line:function(n,e,t,r){if(n==="bar")return Fe({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(n,e,t,r){if(n==="line")return Fe({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(n,e,t,r){var a=t.get("stack")===zH;if(n==="line"||n==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Fe({id:e,stack:a?"":zH},r.get(["option","stack"])||{},!0)}};cl({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const plt=hlt;var lT=new Array(60).join("-"),Eg=" ";function glt(n){var e={},t=[],r=[];return n.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:r}}function vlt(n){var e=[];return M(n,function(t,r){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(J(t.series,function(h){return h.name})),l=[a.model.getCategories()];M(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(g){return g}))});for(var u=[s.join(Eg)],c=0;c=0)return!0}var LD=new RegExp("["+Eg+"]+","g");function _lt(n){for(var e=n.split(/\n+/g),t=DC(e.shift()).split(LD),r=[],a=J(t,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function Olt(n){var e=xM(n),t=e[e.length-1];e.length>1&&e.pop();var r={};return bie(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function Ilt(n){_ie(n).snapshots=null}function Plt(n){return xM(n).length}function xM(n){var e=_ie(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Dlt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,r){Ilt(t),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(oo);cl({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const Alt=Dlt;var Mlt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Rlt=function(){function n(e,t,r){var a=this;this._targetInfoList=[];var i=HH(t,e);M(Llt,function(o,s){(!r||!r.include||Be(r.include,s)>=0)&&o(i,a._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=n3[r.brushType](0,i,a);r.__rangeOffset={offset:YH[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,r){M(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&M(i.coordSyses,function(o){var s=n3[a.brushType](1,o,a.range,!0);r(a,s.values,o,t)})},this)},n.prototype.setInputRanges=function(e,t){M(e,function(r){var a=this.findTargetInfo(r,t);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=n3[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?YH[r.brushType](i.values,o.offset,klt(i.xyMinMax,o.xyMinMax)):i.values}},this)},n.prototype.makePanelOpts=function(e,t){return J(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:t?t(r):null,clipPath:Oae(a),isTargetByCursor:Pae(a,e,r.coordSysModel),getLinearBrushOtherExtent:Iae(a)}})},n.prototype.controlSeries=function(e,t,r){var a=this.findTargetInfo(e,r);return a===!0||a&&Be(a.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var r=this._targetInfoList,a=HH(t,e),i=0;in[1]&&n.reverse(),n}function HH(n,e){return s1(n,e,{includeMainTypes:Mlt})}var Llt={grid:function(n,e){var t=n.xAxisModels,r=n.yAxisModels,a=n.gridModels,i=ge(),o={},s={};!t&&!r&&!a||(M(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),M(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),M(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];M(u.getCartesians(),function(d,f){(Be(t,d.getAxis("x").model)>=0||Be(r,d.getAxis("y").model)>=0)&&c.push(d)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:WH.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){M(n.geoModels,function(t){var r=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:r,coordSyses:[r],getPanelRect:WH.geo})})}},UH=[function(n,e){var t=n.xAxisModel,r=n.yAxisModel,a=n.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],WH={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(wf(n)),e}},n3={lineX:Ae(GH,0),lineY:Ae(GH,1),rect:function(n,e,t,r){var a=n?e.pointToData([t[0][0],t[1][0]],r):e.dataToPoint([t[0][0],t[1][0]],r),i=n?e.pointToData([t[0][1],t[1][1]],r):e.dataToPoint([t[0][1],t[1][1]],r),o=[kD([a[0],i[0]]),kD([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(n,e,t,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=J(t,function(o){var s=n?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function GH(n,e,t,r){var a=t.getAxis(["x","y"][n]),i=kD(J([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[n]=i,o[1-n]=[NaN,NaN],{values:i,xyMinMax:o}}var YH={lineX:Ae(KH,0),lineY:Ae(KH,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return J(n,function(r,a){return[r[0]-t[0]*e[a][0],r[1]-t[1]*e[a][1]]})}};function KH(n,e,t,r){return[e[0]-r[n]*t[0],e[1]-r[n]*t[1]]}function klt(n,e){var t=ZH(n),r=ZH(e),a=[t[0]/r[0],t[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function ZH(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const TM=Rlt;var ND=M,Nlt=aHe("toolbox-dataZoom_"),Flt=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a,i){this._brushController||(this._brushController=new iM(a.getZr()),this._brushController.on("brush",fe(this._onBrush,this)).mount()),jlt(t,r,this,i,a),Vlt(t,r)},e.prototype.onclick=function(t,r,a){$lt[a].call(this)},e.prototype.remove=function(t,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var r=t.areas;if(!t.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new TM(EM(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,d){if(d.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",d,c[0]),s("y",d,c[1])):s({lineX:"x",lineY:"y"}[f],d,c)}}),Elt(i,a),this._dispatchZoomAction(a);function s(u,c,d){var f=c.getAxis(u),h=f.model,p=l(u,h,i),g=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(d=gh(0,d.slice(),f.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:d[0],endValue:d[1]})}function l(u,c,d){var f;return d.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(f=h)}),f}},e.prototype._dispatchZoomAction=function(t){var r=[];ND(t,function(a,i){r.push(Ee(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(t){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(oo),$lt={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(Olt(this.ecModel))}};function EM(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function Vlt(n,e){n.setIconStatus("back",Plt(e)>1?"emphasis":"normal")}function jlt(n,e,t,r,a){var i=t._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),t._isZoomActive=i,n.setIconStatus("zoom",i?"emphasis":"normal");var o=new TM(EM(n),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}$We("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var r=e.getModel(t),a=[],i=EM(r),o=s1(n,i);ND(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ND(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var d=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:Nlt+u+d};f[c]=d,a.push(f)}return a});const zlt=Flt;function Blt(n){n.registerComponentModel(ilt),n.registerComponentView(ult),ip("saveAsImage",dlt),ip("magicType",plt),ip("dataView",Tlt),ip("dataZoom",zlt),ip("restore",Alt),He(rlt)}var Hlt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(it);const Ult=Hlt;function Sie(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function Cie(n){if(ot.domSupported){for(var e=document.documentElement.style,t=0,r=n.length;t-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,d=o+a,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*a)/2+Math.SQRT2*a-(f-d)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function qlt(n,e){var t="cubic-bezier(0.23,1,0.32,1)",r=" "+n/2+"s "+t,a="opacity"+r+",visibility"+r;return e||(r=" "+n+"s "+t,a+=ot.transformSupported?","+OM+r:",left"+r+",top"+r),Ylt+":"+a}function XH(n,e,t){var r=n.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!ot.transformSupported)return t?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=ot.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+OM+":"+o+";":[["top",0],["left",0],[wie,o]]}function Qlt(n){var e=[],t=n.get("fontSize"),r=n.getTextColor();r&&e.push("color:"+r),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=n.get("textShadowColor"),i=n.get("textShadowBlur")||0,o=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),M(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Jlt(n,e,t){var r=[],a=n.get("transitionDuration"),i=n.get("backgroundColor"),o=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),d=Dte(n,"html"),f=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+f),e&&a&&r.push(qlt(a,t)),i&&r.push("background-color:"+i),M(["width","color","radius"],function(h){var p="border-"+h,g=Kee(p),m=n.get(g);m!=null&&r.push(p+":"+m+(h==="color"?"":"px"))}),r.push(Qlt(c)),d!=null&&r.push("padding:"+pv(d).join("px ")+"px"),r.join(";")+";"}function qH(n,e,t,r,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&Pze(n,o,document.body,r,a)}else{n[0]=r,n[1]=a;var s=i&&i.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var eut=function(){function n(e,t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=r&&r.appendToBody;qH(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();qi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,r=Glt(t,"position"),a=t.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=Klt+Jlt(e,!this._firstShow,this._longHide)+XH(i[0],i[1],!0)+("border-color:"+Hf(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(ce(i)&&r.get("trigger")==="item"&&!Sie(r)&&(s=Xlt(r,a,i)),ce(e))o.innerHTML=e+s;else if(e){o.innerHTML="",X(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,r=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,r,a,i){if(!(i.from===this.uid||ot.node||!a.getDom())){var o=eU(i,a);this._ticket="";var s=i.dataByCoordSys,l=uut(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=aut;c.x=i.x,c.y=i.y,c.update(),De(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,r,a,i))return;var d=lie(i,r),f=d.point[0],h=d.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:d.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(eU(i,a))},e.prototype._manuallyAxisShowTip=function(t,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),d=gm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(d.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,r){var a=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;lf(a,function(u){if(De(u).dataIndex!=null)return s=u,!0;if(De(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,r):l?this._showComponentItemTooltip(t,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(t,r){var a=t.get("showDelay");r=fe(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(t,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=gm([r.tooltipOption],i),l=this._renderMode,u=[],c=xr("section",{blocks:[],noHeader:!0}),d=[],f=new z4;M(t,function(b){M(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!S||C==null)){var w=aie(C,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=xr("section",{header:w,noHeader:!Go(w),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(E){var O=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,P=O.getDataParams(I);if(!(P.dataIndex<0)){P.axisDim=_.axisDim,P.axisIndex=_.axisIndex,P.axisType=_.axisType,P.axisId=_.axisId,P.axisValue=P8(S.axis,{value:C}),P.axisValueLabel=w,P.marker=f.makeTooltipMarker("item",Hf(P.color),l);var A=VV(O.formatTooltip(I,!0,null)),R=A.frag;if(R){var L=gm([O],i).get("valueFormatter");T.blocks.push(L?K({valueFormatter:L},R):R)}A.text&&d.push(A.text),u.push(P)}})}})}),c.blocks.reverse(),d.reverse();var h=r.position,p=s.get("order"),g=WV(c,f,l,p,a.get("useUTC"),s.get("textStyle"));g&&d.unshift(g);var m=l==="richText"?` - -`:"
",y=d.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,f)})},e.prototype._showSeriesItemTooltip=function(t,r,a){var i=this._ecModel,o=De(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,p=t.positionDefault,g=gm([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,d),b=new z4;y.marker=b.makeTooltipMarker("item",Hf(y.color),h);var _=VV(u.formatTooltip(c,!1,d)),S=g.get("order"),C=g.get("valueFormatter"),w=_.frag,T=w?WV(C?K({valueFormatter:C},w):w,b,h,S,i.get("useUTC"),g.get("textStyle")):_.text,E="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,E,t.offsetX,t.offsetY,t.position,t.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,r,a){var i=De(r),o=i.tooltipConfig,s=o.option||{};if(ce(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=t.positionDefault,f=gm(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",g=new z4;this._showOrMove(f,function(){var m=Ee(f.get("formatterParams")||{});this._showTooltipContent(f,h,m,p,t.offsetX,t.offsetY,t.position,r,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,r,a,i,o,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var d=this._tooltipContent;d.setEnterable(t.get("enterable"));var f=t.get("formatter");l=l||t.get("position");var h=r,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),g=p.color;if(f)if(ce(f)){var m=t.ecModel.get("useUTC"),y=X(a)?a[0]:a,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=f,b&&(h=jx(y.axisValue,h,m)),h=Zee(h,a,!0)}else if(me(f)){var _=fe(function(S,C){S===this._ticket&&(d.setContent(C,c,t,g,l),this._updatePosition(t,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,t,g,l),d.show(t,g),this._updatePosition(t,l,o,s,d,a,u)}},e.prototype._getNearestPoint=function(t,r,a,i){if(a==="axis"||X(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!X(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(t,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||t.get("position");var d=o.getSize(),f=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),me(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:d.slice()})),X(r))a=ie(r[0],u),i=ie(r[1],c);else if(we(r)){var g=r;g.width=d[0],g.height=d[1];var m=hr(g,{width:u,height:c});a=m.x,i=m.y,f=null,h=null}else if(ce(r)&&l){var y=lut(r,p,d,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=out(a,i,o,u,c,f?null:20,h?null:20);a=y[0],i=y[1]}if(f&&(a-=tU(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=tU(h)?d[1]/2:h==="bottom"?d[1]:0),Sie(t)){var y=sut(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&M(a,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&M(u,function(f,h){var p=d[h]||{},g=f.seriesDataIndices||[],m=p.seriesDataIndices||[];o=o&&f.value===p.value&&f.axisType===p.axisType&&f.axisId===p.axisId&&g.length===m.length,o&&M(g,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&M(f.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],S=i[b];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=r,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,r){ot.node||!r.getDom()||(gy(this,"_updatePosition"),this._tooltipContent.dispose(),AD("itemTooltip",r))},e.type="tooltip",e}(On);function gm(n,e,t){var r=e.ecModel,a;t?(a=new Xt(t,r,r),a=new Xt(e.option,a,r)):a=e;for(var i=n.length-1;i>=0;i--){var o=n[i];o&&(o instanceof Xt&&(o=o.get("tooltip",!0)),ce(o)&&(o={formatter:o}),o&&(a=new Xt(o,a,r)))}return a}function eU(n,e){return n.dispatchAction||fe(e.dispatchAction,e)}function out(n,e,t,r,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(n+l+i+2>r?n-=l+i:n+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[n,e]}function sut(n,e,t,r,a){var i=t.getSize(),o=i[0],s=i[1];return n=Math.min(n+o,r)-o,e=Math.min(e+s,a)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function lut(n,e,t,r){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function tU(n){return n==="center"||n==="middle"}function uut(n,e,t){var r=z9(n).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=w0(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const cut=iut;function dut(n){He(z0),n.registerComponentModel(Ult),n.registerComponentView(cut),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yn),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yn)}var fut=["rect","polygon","keep","clear"];function hut(n,e){var t=kt(n?n.brush:[]);if(t.length){var r=[];M(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=n&&n.toolbox;X(a)&&(a=a[0]),a||(a={feature:{}},n.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),put(s),e&&!s.length&&s.push.apply(s,fut)}}function put(n){var e={};M(n,function(t){e[t]=1}),n.length=0,M(e,function(t,r){n.push(r)})}var nU=M;function rU(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function FD(n,e,t){var r={};return nU(e,function(i){var o=r[i]=a();nU(n[i],function(s,l){if(Gr.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Gr(u),l==="opacity"&&(u=Ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function Tie(n,e,t){var r;M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])&&(r=!0)}),r&&M(t,function(a){e.hasOwnProperty(a)&&rU(e[a])?n[a]=Ee(e[a]):delete n[a]})}function gut(n,e,t,r,a,i){var o={};M(n,function(d){var f=Gr.prepareVisualTypes(e[d]);o[d]=f});var s;function l(d){return y8(t,s,d)}function u(d,f){jte(t,s,d,f)}i==null?t.each(c):t.each([i],c);function c(d,f){s=i==null?d:f;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,d),g=e[p],m=o[p],y=0,b=m.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&lU(e)}};function lU(n){return new $e(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var wut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.ecModel=t,this.api=r,this.model,(this._brushController=new iM(r.getZr())).on("brush",fe(this._onBrush,this)).mount()},e.prototype.render=function(t,r,a,i){this.model=t,this._updateController(t,r,a,i)},e.prototype.updateTransform=function(t,r,a,i){Eie(r),this._updateController(t,r,a,i)},e.prototype.updateVisual=function(t,r,a,i){this.updateTransform(t,r,a,i)},e.prototype.updateView=function(t,r,a,i){this._updateController(t,r,a,i)},e.prototype._updateController=function(t,r,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ee(a),$from:r}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ee(a),$from:r})},e.type="brush",e}(On);const xut=wut;var Tut="#ddd",Eut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:Tut},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=J(t,function(r){return uU(this.option,r)},this))},e.prototype.setBrushOption=function(t){this.brushOption=uU(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(it);function uU(n,e){return Fe({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Xt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const Out=Eut;var Iut=["rect","polygon","lineX","lineY","keep","clear"],Put=function(n){W(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,M(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,r,a){this.render(t,r,a)},e.prototype.getIcons=function(){var t=this.model,r=t.get("icon",!0),a={};return M(t.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(t,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var r={show:!0,type:Iut.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(oo);const Dut=Put;function Aut(n){n.registerComponentView(xut),n.registerComponentModel(Out),n.registerPreprocessor(hut),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,yut),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Yn),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Yn),ip("brush",Dut)}var Mut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(it),Rut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Ne(t.get("textBaseline"),t.get("textVerticalAlign")),c=new st({style:Zt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),d=c.getBoundingRect(),f=t.get("subtext"),h=new st({style:Zt(s,{text:f,fill:s.getTextColor(),y:d.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),g=t.get("sublink"),m=t.get("triggerEvent",!0);c.silent=!p&&!m,h.silent=!g&&!m,p&&c.on("click",function(){iC(p,"_"+t.get("target"))}),g&&h.on("click",function(){iC(g,"_"+t.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(c),f&&i.add(h);var y=i.getBoundingRect(),b=t.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=hr(b,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var C=_.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new rt({shape:{x:y.x-C[3],y:y.y-C[0],width:y.width+C[1]+C[3],height:y.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(On);function Lut(n){n.registerComponentModel(Mut),n.registerComponentView(Rut)}var kut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var r=this._data.count();this.option.loop?t=(t%r+r)%r:(t>=r&&(t=r-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,r=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],M(r,function(u,c){var d=dr(lv(u),""),f;we(u)?(f=Ee(u),f.value=c):f=c,o.push(f),i.push(d)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new ka([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(it);const cU=kut;var Oie=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Xc(cU.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(cU);or(Oie,h8.prototype);const Nut=Oie;var Fut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(On);const $ut=Fut;var Vut=function(n){W(e,n);function e(t,r,a,i){var o=n.call(this,t,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(cs);const jut=Vut;var a3=Math.PI,dU=at(),zut=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,r){this.api=r},e.prototype.render=function(t,r,a){if(this.model=t,this.api=a,this.ecModel=r,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:c})},M(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,r){var a=t.get(["label","position"]),i=t.get("orient"),o=Hut(t,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:a3/2},d=i==="vertical"?o.height:o.width,f=t.getModel("controlStyle"),h=f.get("show",!0),p=h?f.get("itemSize"):0,g=h?f.get("itemGap"):0,m=p+g,y=t.get(["label","rotate"])||0;y=y*a3/180;var b,_,S,C=f.get("position",!0),w=h&&f.get("showPlayBtn",!0),T=h&&f.get("showPrevBtn",!0),E=h&&f.get("showNextBtn",!0),O=0,I=d;C==="left"||C==="bottom"?(w&&(b=[0,0],O+=m),T&&(_=[O,0],O+=m),E&&(S=[I-p,0],I-=m)):(w&&(b=[I-p,0],I-=m),T&&(_=[0,0],O+=m),E&&(S=[I-p,0],I-=m));var P=[O,I];return t.get("inverse")&&P.reverse(),{viewRect:o,mainLength:d,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:S,axisExtent:P,controlSize:p,controlGap:g}},e.prototype._position=function(t,r){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=wo(),l=o.x,u=o.y+o.height;Js(s,s,[-l,-u]),uh(s,s,-a3/2),Js(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),d=b(a.getBoundingRect()),f=b(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var g=t.labelPosOpt;if(g==null||ce(g)){var m=g==="+"?0:1;_(h,d,c,1,m),_(p,f,c,1,1-m)}else{var m=g>=0?0:1;_(h,d,c,1,m),p[1]=h[1]+g}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),y(i);function y(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,C,w,T,E){S[T]+=w[T][E]-C[T][E]}},e.prototype._createAxis=function(t,r){var a=r.getData(),i=r.get("axisType"),o=But(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new jut("value",o,t.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(t){var r=this[t]=new Oe;return this.group.add(r),r},e.prototype._renderAxisLine=function(t,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new kr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:K({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new kr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:_e({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(t,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],M(l,function(u){var c=a.dataToCoord(u.value),d=s.getItemModel(u.value),f=d.getModel("itemStyle"),h=d.getModel(["emphasis","itemStyle"]),p=d.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:fe(o._changeTimeline,o,u.value)},m=fU(d,f,r,g);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=p.getItemStyle(),Cf(m);var y=De(m);d.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],M(u,function(c){var d=c.tickValue,f=l.getItemModel(d),h=f.getModel("label"),p=f.getModel(["emphasis","label"]),g=f.getModel(["progress","label"]),m=a.dataToCoord(c.tickValue),y=new st({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:fe(o._changeTimeline,o,d),silent:!1,style:Zt(h,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Zt(p),y.ensureState("progress").style=Zt(g),r.add(y),Cf(y),dU(y).dataIndex=d,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,r,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),d=i.get("inverse",!0);f(t.nextBtnPosition,"next",fe(this._changeTimeline,this,d?"-":"+")),f(t.prevBtnPosition,"prev",fe(this._changeTimeline,this,d?"+":"-")),f(t.playPosition,c?"stop":"play",fe(this._handlePlayClick,this,!c),!0);function f(h,p,g,m){if(h){var y=ns(Ne(i.get(["controlStyle",p+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=Uut(i,p+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});_.ensureState("emphasis").style=u,r.add(_),Cf(_)}}},e.prototype._renderCurrentPointer=function(t,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(d){d.draggable=!0,d.drift=fe(u._handlePointerDrag,u),d.ondragend=fe(u._handlePointerDragend,u),hU(d,u._progressLine,s,a,i,!0)},onUpdate:function(d){hU(d,u._progressLine,s,a,i)}};this._currentPointer=fU(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,r){var a=this._toAxisCoord(t)[0],i=this._axis,o=go(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(f)),[o,d]}var i3={min:Ae(A_,"min"),max:Ae(A_,"max"),average:Ae(A_,"average"),median:Ae(A_,"median")};function Iy(n,e){if(e){var t=n.getData(),r=n.coordinateSystem,a=r&&r.dimensions;if(!Qut(e)&&!X(e.coord)&&X(a)){var i=Pie(e,t,r,n);if(e=Ee(e),e.type&&i3[e.type]&&i.baseAxis&&i.valueAxis){var o=Be(a,i.baseAxis.dim),s=Be(a,i.valueAxis.dim),l=i3[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!X(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)i3[u[c]]&&(u[c]=PM(t,t.mapDimension(a[c]),u[c]));return e}}function Pie(n,e,t,r){var a={};return n.valueIndex!=null||n.valueDim!=null?(a.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,a.valueAxis=t.getAxis(Jut(r,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function Jut(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function Py(n,e){return n&&n.containData&&e.coord&&!VD(e)?n.containData(e.coord):!0}function ect(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!VD(e)&&!VD(t)?n.containZone(e.coord,t.coord):!0}function Die(n,e){return n?function(t,r,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return wc(o,e[i])}:function(t,r,a,i){return wc(t.value,e[i])}}function PM(n,e,t){if(t==="average"){var r=0,a=0;return n.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var o3=at(),tct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=ge()},e.prototype.render=function(t,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){o3(s).keep=!1}),r.eachSeries(function(s){var l=jc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!o3(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){o3(t).keep=!0},e.prototype.toggleBlurSeries=function(t,r){var a=this;M(t,function(i){var o=jc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?nee(l):Y9(l))})}})},e.type="marker",e}(On);const DM=tct;function gU(n,e,t){var r=e.coordinateSystem;n.each(function(a){var i=n.getItemModel(a),o,s=ie(i.get("x"),t.getWidth()),l=ie(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(n.getValues(n.dimensions,a));else if(r){var u=n.get(r.dimensions[0],a),c=n.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),n.setItemLayout(a,o)})}var nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markPoint");o&&(gU(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new k0),d=rct(o,t,r);r.setData(d),gU(r.getData(),t,i),d.each(function(f){var h=d.getItemModel(f),p=h.getShallow("symbol"),g=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(me(p)||me(g)||me(m)||me(y)){var _=r.getRawValue(f),S=r.getDataParams(f);me(p)&&(p=p(_,S)),me(g)&&(g=g(_,S)),me(m)&&(m=m(_,S)),me(y)&&(y=y(_,S))}var C=h.getModel("itemStyle").getItemStyle(),w=D0(l,"color");C.fill||(C.fill=w),d.setItemVisual(f,{symbol:p,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:C})}),c.updateData(d),this.group.add(c.group),d.eachItemGraphicEl(function(f){f.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markPoint",e}(DM);function rct(n,e,t){var r;n?r=J(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return K(K({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=J(t.get("data"),Ae(Iy,e));n&&(i=Pt(i,Ae(Py,n)));var o=Die(!!n,r);return a.initData(i,null,o),a}const act=nct;function ict(n){n.registerComponentModel(qut),n.registerComponentView(act),n.registerPreprocessor(function(e){IM(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var oct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(jc);const sct=oct;var M_=at(),lct=function(n,e,t,r){var a=n.getData(),i;if(X(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Lr(r.yAxis,r.xAxis);else{var u=Pie(r,a,e,n);s=u.valueAxis;var c=vne(a,u.valueDataDim);l=PM(a,c,o)}var d=s.dim==="x"?0:1,f=1-d,h=Ee(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var g=t.get("precision");g>=0&<(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var m=[Iy(n,i[0]),Iy(n,i[1]),K({},i[2])];return m[2].type=m[2].type||null,Fe(m[2],m[0]),Fe(m[2],m[1]),m};function AC(n){return!isNaN(n)&&!isFinite(n)}function vU(n,e,t,r){var a=1-n,i=r.dimensions[n];return AC(e[a])&&AC(t[a])&&e[n]===t[n]&&r.getAxis(i).containData(e[n])}function uct(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,r=e[1].coord;if(t&&r&&(vU(1,t,r,n)||vU(0,t,r,n)))return!0}return Py(n,e[0])&&Py(n,e[1])}function s3(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get("x"),a.getWidth()),u=ie(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=i.dimensions,d=n.get(c[0],e),f=n.get(c[1],e);s=i.dataToPoint([d,f])}if(hh(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;AC(n.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):AC(n.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var cct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=M_(o).from,u=M_(o).to;l.each(function(c){s3(l,c,!0,i,a),s3(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new J8);this.group.add(c.group);var d=dct(o,t,r),f=d.from,h=d.to,p=d.line;M_(r).from=f,M_(r).to=h,r.setData(p);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");X(g)||(g=[g,g]),X(m)||(m=[m,m]),X(y)||(y=[y,y]),X(b)||(b=[b,b]),d.from.each(function(S){_(f,S,!0),_(h,S,!1)}),p.each(function(S){var C=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[f.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=f.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:f.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(S,"symbolOffset"),fromSymbolRotate:f.getItemVisual(S,"symbolRotate"),fromSymbolSize:f.getItemVisual(S,"symbolSize"),fromSymbol:f.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(p),d.line.eachItemGraphicEl(function(S){De(S).dataModel=r,S.traverse(function(C){De(C).dataModel=r})});function _(S,C,w){var T=S.getItemModel(C);s3(S,C,w,t,i);var E=T.getModel("itemStyle").getItemStyle();E.fill==null&&(E.fill=D0(l,"color")),S.setItemVisual(C,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Ne(T.get("symbolOffset",!0),b[w?0:1]),symbolRotate:Ne(T.get("symbolRotate",!0),y[w?0:1]),symbolSize:Ne(T.get("symbolSize"),m[w?0:1]),symbol:Ne(T.get("symbol",!0),g[w?0:1]),style:E})}this.markKeep(c),c.group.silent=r.get("silent")||t.get("silent")},e.type="markLine",e}(DM);function dct(n,e,t){var r;n?r=J(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return K(K({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new ka(r,t),i=new ka(r,t),o=new ka([],t),s=J(t.get("data"),Ae(lct,e,n,t));n&&(s=Pt(s,Ae(uct,n)));var l=Die(!!n,r);return a.initData(J(s,function(u){return u[0]}),null,l),i.initData(J(s,function(u){return u[1]}),null,l),o.initData(J(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const fct=cct;function hct(n){n.registerComponentModel(sct),n.registerComponentView(fct),n.registerPreprocessor(function(e){IM(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var pct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,r,a){return new e(t,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(jc);const gct=pct;var R_=at(),vct=function(n,e,t,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Iy(n,a),s=Iy(n,i),l=o.coord,u=s.coord;l[0]=Lr(l[0],-1/0),l[1]=Lr(l[1],-1/0),u[0]=Lr(u[0],1/0),u[1]=Lr(u[1],1/0);var c=P9([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function MC(n){return!isNaN(n)&&!isFinite(n)}function mU(n,e,t,r){var a=1-n;return MC(e[a])&&MC(t[a])}function mct(n,e){var t=e.coord[0],r=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return hh(n,"cartesian2d")?t&&r&&(mU(1,t,r)||mU(0,t,r))?!0:ect(n,a,i):Py(n,a)||Py(n,i)}function yU(n,e,t,r,a){var i=r.coordinateSystem,o=n.getItemModel(e),s,l=ie(o.get(t[0]),a.getWidth()),u=ie(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=n.getValues(["x0","y0"],e),d=n.getValues(["x1","y1"],e),f=i.clampData(c),h=i.clampData(d),p=[];t[0]==="x0"?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],t[1]==="y0"?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],s=r.getMarkerPosition(p,t,!0)}else{var g=n.get(t[0],e),m=n.get(t[1],e),y=[g,m];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(hh(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),g=n.get(t[0],e),m=n.get(t[1],e);MC(g)?s[0]=b.toGlobalCoord(b.getExtent()[t[0]==="x0"?0:1]):MC(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var bU=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,r,a){r.eachSeries(function(i){var o=jc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=J(bU,function(d){return yU(s,l,d,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,r,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Oe});this.group.add(c.group),this.markKeep(c);var d=bct(o,t,r);r.setData(d),d.each(function(f){var h=J(bU,function(E){return yU(d,f,E,t,i)}),p=o.getAxis("x").scale,g=o.getAxis("y").scale,m=p.getExtent(),y=g.getExtent(),b=[p.parse(d.get("x0",f)),p.parse(d.get("x1",f))],_=[g.parse(d.get("y0",f)),g.parse(d.get("y1",f))];go(b),go(_);var S=!(m[0]>b[1]||m[1]_[1]||y[1]<_[0]),C=!S;d.setItemLayout(f,{points:h,allClipped:C});var w=d.getItemModel(f).getModel("itemStyle").getItemStyle(),T=D0(l,"color");w.fill||(w.fill=T,ce(w.fill)&&(w.fill=GS(w.fill,.4))),w.stroke||(w.stroke=T),d.setItemVisual(f,"style",w)}),d.diff(R_(c).data).add(function(f){var h=d.getItemLayout(f);if(!h.allClipped){var p=new hi({shape:{points:h.points}});d.setItemGraphicEl(f,p),c.group.add(p)}}).update(function(f,h){var p=R_(c).data.getItemGraphicEl(h),g=d.getItemLayout(f);g.allClipped?p&&c.group.remove(p):(p?ft(p,{shape:{points:g.points}},r,f):p=new hi({shape:{points:g.points}}),d.setItemGraphicEl(f,p),c.group.add(p))}).remove(function(f){var h=R_(c).data.getItemGraphicEl(f);c.group.remove(h)}).execute(),d.eachItemGraphicEl(function(f,h){var p=d.getItemModel(h),g=d.getItemVisual(h,"style");f.useStyle(d.getItemVisual(h,"style")),Zr(f,wr(p),{labelFetcher:r,labelDataIndex:h,defaultText:d.getName(h)||"",inheritColor:ce(g.fill)?GS(g.fill,1):"#000"}),Kr(f,p),En(f,null,null,p.get(["emphasis","disabled"])),De(f).dataModel=r}),R_(c).data=d,c.group.silent=r.get("silent")||t.get("silent")},e.type="markArea",e}(DM);function bct(n,e,t){var r,a,i=["x0","y0","x1","y1"];if(n){var o=J(n&&n.dimensions,function(u){var c=e.getData(),d=c.getDimensionInfo(c.mapDimension(u))||{};return K(K({},d),{name:u,ordinalMeta:null})});a=J(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new ka(a,t)}else a=[{name:"value",type:"float"}],r=new ka(a,t);var s=J(t.get("data"),Ae(vct,e,n,t));n&&(s=Pt(s,Ae(mct,n)));var l=n?function(u,c,d,f){var h=u.coord[Math.floor(f/2)][f%2];return wc(h,a[f])}:function(u,c,d,f){return wc(u.value,a[f])};return r.initData(s,null,l),r.hasItemOption=!0,r}const _ct=yct;function Sct(n){n.registerComponentModel(gct),n.registerComponentView(_ct),n.registerPreprocessor(function(e){IM(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Cct=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,r){n.prototype.mergeOption.call(this,t,r),this._updateSelector(t)},e.prototype._updateSelector=function(t){var r=t.selector,a=this.ecModel;r===!0&&(r=t.selector=["all","inverse"]),X(r)&&M(r,function(i,o){ce(i)&&(i={type:i}),r[o]=Fe(i,Cct(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(it);const jD=wct;var Kh=Ae,zD=M,L_=Oe,xct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new L_),this.group.add(this._selectorGroup=new L_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,r,a,l,s,u);var c=t.getBoxLayoutParams(),d={width:a.getWidth(),height:a.getHeight()},f=t.get("padding"),h=hr(c,d,f),p=this.layoutInner(t,o,h,i,l,u),g=hr(_e({width:p.width,height:p.height},c),d,f);this.group.x=g.x-p.x,this.group.y=g.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=yie(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,r,a,i,o,s,l){var u=this.getContentGroup(),c=ge(),d=r.get("selectedMode"),f=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),zD(r.getData(),function(h,p){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var m=new L_;m.newline=!0,u.add(m);return}var y=a.getSeriesByName(g)[0];if(!c.get(g))if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),w=this._createItem(y,g,p,h,r,t,_,C,S,d,i);w.on("click",Kh(_U,g,null,i,f)).on("mouseover",Kh(BD,y.name,null,i,f)).on("mouseout",Kh(HD,y.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var E=T.legendVisualProvider;if(!E.containName(g))return;var O=E.indexOfName(g),I=E.getItemVisual(O,"style"),P=E.getItemVisual(O,"legendIcon"),A=ki(I.fill);A&&A[3]===0&&(A[3]=.2,I=K(K({},I),{fill:Hl(A,"rgba")}));var R=this._createItem(T,g,p,h,r,t,{},I,P,d,i);R.on("click",Kh(_U,null,g,i,f)).on("mouseover",Kh(BD,null,g,i,f)).on("mouseout",Kh(HD,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(t,r,a,i,o){var s=this.getSelectorGroup();zD(t,function(u){var c=u.type,d=new st({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Zr(d,{normal:f,emphasis:h},{defaultText:u.title}),Cf(d)})},e.prototype._createItem=function(t,r,a,i,o,s,l,u,c,d,f){var h=t.visualDrawType,p=o.get("itemWidth"),g=o.get("itemHeight"),m=o.isSelected(r),y=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=Tct(c,i,l,u,h,m,f),C=new L_,w=i.getModel("textStyle");if(me(t.getLegendIcon)&&(!_||_==="inherit"))C.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var T=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;C.add(Ect({itemWidth:p,itemHeight:g,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var E=s==="left"?p+5:-5,O=s,I=o.get("formatter"),P=r;ce(I)&&I?P=I.replace("{name}",r??""):me(I)&&(P=I(r));var A=m?w.getTextColor():i.get("inactiveColor");C.add(new st({style:Zt(w,{text:P,x:E,y:g/2,fill:A,align:O,verticalAlign:"middle"},{inheritColor:A})}));var R=new rt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&dv({el:R,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(R),C.eachChild(function(k){k.silent=!0}),R.silent=!d,this.getContentGroup().add(C),Cf(C),C.__legendDataIndex=a,C},e.prototype.layoutInner=function(t,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();xf(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){xf("horizontal",u,t.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],p=t.get("selectorButtonGap",!0),g=t.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?h[g]+=c[m]+p:d[g]+=f[m]+p,h[1-g]+=c[y]/2-f[y]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[m]=c[m]+p+f[m],_[y]=Math.max(c[y],f[y]),_[b]=Math.min(0,f[b]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(On);function Tct(n,e,t,r,a,i,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),zD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",d=l.getShallow("decal");u.decal=!d||d==="inherit"?r.decal:_g(d,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:t).opacity),s(u,r);var f=e.getModel("lineStyle"),h=f.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function Ect(n){var e=n.icon||"roundRect",t=ir(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function _U(n,e,t,r){HD(n,e,t,r),t.dispatchAction({type:"legendToggleSelect",name:n??e}),BD(n,e,t,r)}function Aie(n){for(var e=n.getZr().storage.getDisplayList(),t,r=0,a=e.length;ra[o],m=[-h.x,-h.y];r||(m[i]=c[u]);var y=[0,0],b=[-p.x,-p.y],_=Ne(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var S=t.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-p[o]:y[i]+=p[o]+_}b[1-i]+=h[s]/2-p[s]/2,c.setPosition(m),d.setPosition(y),f.setPosition(b);var C={x:0,y:0};if(C[o]=g?a[o]:h[o],C[s]=Math.max(h[s],p[s]),C[l]=Math.min(0,p[l]+b[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-_,0),w[s]=C[s],d.setClipPath(new rt({shape:w})),d.__rectSize=w[o]}else f.eachChild(function(E){E.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(t);return T.pageIndex!=null&&ft(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?t:null),this._updatePageInfoView(t,T),C},e.prototype._pageGo=function(t,r,a){var i=this._getPageInfo(r)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(t,r){var a=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var d=c+"DataIndex",f=r[d]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",f?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",ce(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var r=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=l3[o],l=u3[o],u=this._findTargetItemIndex(r),c=a.children(),d=c[u],f=c.length,h=f?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=S(d);p.contentPosition[o]=-g.s;for(var m=u+1,y=g,b=g,_=null;m<=f;++m)_=S(c[m]),(!_&&b.e>y.s+i||_&&!C(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),b=_;for(var m=u-1,y=g,b=g,_=null;m>=-1;--m)_=S(c[m]),(!_||!C(b,_.s))&&y.i=T&&w.s<=T+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(r=s)}),r??i},e.type="legend.scroll",e}(Mie);const Mct=Act;function Rct(n){n.registerAction("legendScroll","legendscroll",function(e,t){var r=e.scrollDataIndex;r!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function Lct(n){He(Rie),n.registerComponentModel(Dct),n.registerComponentView(Mct),Rct(n)}function kct(n){He(Rie),He(Lct)}var Nct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Xc(Oy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Oy);const Fct=Nct;var AM=at();function $ct(n,e,t){AM(n).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function Vct(n,e){for(var t=AM(n).coordSysRecordMap,r=t.keys(),a=0;ar[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function Uct(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var r=AM(t),a=r.coordSysRecordMap||(r.coordSysRecordMap=ge());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=gie(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,jct(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ge());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Lie(a,i);return}var c=Hct(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),bv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Wct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,r,a){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),$ct(a,t,{pan:fe(c3.pan,this),zoom:fe(c3.zoom,this),scrollMove:fe(c3.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Vct(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(CM),c3={zoom:function(n,e,t,r){var a=this.range,i=a.slice(),o=n.axisModels[0];if(o){var s=d3[e](null,[r.originX,r.originY],o,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(gh(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:wU(function(n,e,t,r,a,i){var o=d3[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(n[1]-n[0])*o.pixel/o.pixelLength}),scrollMove:wU(function(n,e,t,r,a,i){var o=d3[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(n[1]-n[0])*i.scrollDelta})};function wU(n){return function(e,t,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=n(o,s,e,t,r,a);if(gh(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var d3={grid:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return n=n||[0,0],i.dim==="x"?(o.pixel=e[0]-n[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(n,e,t,r,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-n[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-n[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(n,e,t,r,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return n=n||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Gct=Wct;function kie(n){wM(n),n.registerComponentModel(Fct),n.registerComponentView(Gct),Uct(n)}var Yct=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Xc(Oy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Oy);const Kct=Yct;var ym=rt,xU=7,Zct=1,f3=30,Xct=7,bm="horizontal",TU="vertical",qct=5,Qct=["line","bar","candlestick","scatter"],Jct={easing:"cubicOut",duration:100,delay:0},edt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,r){this.api=r,this._onBrush=fe(this._onBrush,this),this._onBrushEnd=fe(this._onBrushEnd,this)},e.prototype.render=function(t,r,a,i){if(n.prototype.render.apply(this,arguments),bv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gy(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Oe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,r=this.api,a=t.get("brushSelect"),i=a?Xct:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bm?{right:s.width-o.x-o.width,top:s.height-f3-xU-i,width:o.width,height:f3}:{right:xU,top:o.y,width:f3,height:o.height},u=gv(t.option);M(["right","top","width","height"],function(d){u[d]==="ph"&&(u[d]=l[d])});var c=hr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===TU&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===bm&&!o?{scaleY:l?1:-1,scaleX:1}:a===bm&&o?{scaleY:l?1:-1,scaleX:-1}:a===TU&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=r.x-u.x,t.y=r.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new ym({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new ym({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:fe(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var r=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var d=o.getDataExtent(l),f=(d[1]-d[0])*.3;d=[d[0]-f,d[1]+f];var h=[0,r[1]],p=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=p[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),S;o.each([l],function(O,I){if(_>0&&I%_){b+=y;return}var P=O==null||isNaN(O)||O==="",A=P?0:xt(O,d,h,!0);P&&!S&&I?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!P&&S&&(g.push([b,0]),m.push([b,0])),g.push([b,A]),m.push([b,A]),b+=y,S=P}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function w(O){var I=C.getModel(O?"selectedDataBackground":"dataBackground"),P=new Oe,A=new hi({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vi({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(A),P.add(R),P}for(var T=0;T<3;T++){var E=w(T===1);this._displayables.sliderGroup.add(E),this._displayables.dataShadowSegs.push(E)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,r=t.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();M(l,function(u){if(!a&&!(r!==!0&&Be(Qct,u.get("type"))<0)){var c=i.getComponent(ic(o),s).axis,d=tdt(o),f,h=u.coordinateSystem;d!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),d=u.getData().mapDimension(d),a={thisAxis:c,series:u,thisDim:o,otherDim:d,otherAxisInverse:f}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,d=l.get("brushSelect"),f=r.filler=new ym({silent:d,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new ym({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Zct,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=l.get("handleIcon");!lC[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=ir(S,-1,0,2,2,null,!0);C.attr({cursor:EU(this._orient),draggable:!0,drift:fe(this._onDragMove,this,_),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1),z2:5});var w=C.getBoundingRect(),T=l.get("handleSize");this._handleHeight=ie(T,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Cf(C);var E=l.get("handleColor");E!=null&&(C.style.fill=E),o.add(a[_]=C);var O=l.getModel("textStyle");t.add(i[_]=new st({silent:!0,invisible:!0,style:Zt(O,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:O.getTextColor(),font:O.getFont()}),z2:10}))},this);var h=f;if(d){var p=ie(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new rt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),m=p*.8,y=r.moveHandleIcon=ir(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new rt({invisible:!0,shape:{y:s[1]-b,height:p+b}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:EU(this._orient),drift:fe(this._onDragMove,this,"all"),ondragstart:fe(this._showDataInfo,this,!0),ondragend:fe(this._onDragEnd,this),onmouseover:fe(this._showDataInfo,this,!0),onmouseout:fe(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[xt(t[0],[0,100],r,!0),xt(t[1],[0,100],r,!0)]},e.prototype._updateInterval=function(t,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];gh(r,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?xt(s.minSpan,l,o,!0):null,s.maxSpan!=null?xt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=go([xt(i[0],o,l,!0),xt(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var r=this._displayables,a=this._handleEnds,i=go(a.slice()),o=this._size;M([0,1],function(h){var p=r.handles[h],g=this._handleHeight;p.attr({scaleX:g/2,scaleY:g/2,x:a[h]+(h?-1:1),y:o[1]/2-g/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var r=t.offsetX,a=t.offsetY;this._brushStart=new Le(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=go([xt(a.x,o,s,!0),xt(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(nu(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new ym({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,r),c=l.transformCoordToLocal(s.x,s.y),d=this._size;u[0]=Math.max(Math.min(d[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:d[1]})},e.prototype._dispatchZoomAction=function(t){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Jct:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var t,r=gie(this.dataZoomModel).infoList;if(!t&&r.length){var a=r[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(CM);function tdt(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function EU(n){return n==="vertical"?"ns-resize":"ew-resize"}const ndt=edt;function Nie(n){n.registerComponentModel(Kct),n.registerComponentView(ndt),wM(n)}function rdt(n){He(kie),He(Nie)}var adt={get:function(n,e,t){var r=Ee((idt[n]||{})[e]);return t&&X(r)?r[r.length-1]:r}},idt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Fie=adt;var OU=Gr.mapVisual,odt=Gr.eachVisual,sdt=X,IU=M,ldt=go,udt=xt,cdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,r,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,r){var a=this.option;!r&&Tie(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var r=this.stateList;t=fe(t,this),this.controllerVisuals=FD(this.option.controller,r,t),this.targetVisuals=FD(this.option.target,r,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,r=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=kt(t),r},e.prototype.eachTargetSeries=function(t,r){M(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(r,i)},this)},e.prototype.isTargetSeries=function(t){var r=!1;return this.eachTargetSeries(function(a){a===t&&(r=!0)}),r},e.prototype.formatValueText=function(t,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],X(t)&&(t=t.slice(),u=!0);var c=r?t:u?[d(t[0]),d(t[1])]:d(t);if(ce(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(me(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+c[1]:t[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function d(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,r=ldt([t.min,t.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(t){var r=this.option.dimension;if(r!=null)return t.getDimensionIndex(r);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Fe(i,a),Fe(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(d){sdt(r.color)&&!d.inRange&&(d.inRange={color:r.color.slice().reverse()}),d.inRange=d.inRange||{color:t.get("gradientColor")}}function u(d,f,h){var p=d[f],g=d[h];p&&!g&&(g=d[h]={},IU(p,function(m,y){if(Gr.isValidType(y)){var b=Fie.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(d){var f=(d.inRange||{}).symbol||(d.outOfRange||{}).symbol,h=(d.inRange||{}).symbolSize||(d.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";IU(this.stateList,function(y){var b=this.itemSize,_=d[y];_||(_=d[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=f&&Ee(f)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&Ee(h)||(s?b[0]:[b[0],b[0]])),_.symbol=OU(_.symbol,function(w){return w==="none"?m:w});var S=_.symbolSize;if(S!=null){var C=-1/0;odt(S,function(w){w>C&&(C=w)}),_.symbolSize=OU(S,function(w){return udt(w,[0,C],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(it);const RC=cdt;var PU=[20,140],ddt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=PU[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=PU[1])},e.prototype._resetRange=function(){var t=this.getExtent(),r=this.option.range;!r||r.auto?(t.auto=1,this.option.range=t):X(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],t[0]),r[1]=Math.min(r[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(t){var r=this.option.controller[t].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),r=go((this.get("range")||[]).slice());return r[0]>t[1]&&(r[0]=t[1]),r[1]>t[1]&&(r[1]=t[1]),r[0]=a[1]||t<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(t){var r=DU(this,"outOfRange",this.getExtent()),a=DU(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;lt[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(t,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-r[1],t[1]]]},e.prototype._createBarGroup=function(t){var r=this._orient,a=this.visualMapModel.get("inverse");return new Oe(r==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();pdt([0,1],function(c){var d=o[c];d.setStyle("fill",r.handlesColor[c]),d.y=t[c];var f=xs(t[c],[0,l[1]],u,!0),h=this.getControllerVisual(f,"symbolSize");d.scaleX=d.scaleY=h/l[0],d.x=l[0]-h/2;var p=Jo(a.handleLabelPoints[c],wf(d,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,d=c.indicator;if(d){d.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",f),p=this.getControllerVisual(t,"symbolSize"),g=xs(t,s,u,!0),m=l[0]-p/2,y={x:d.x,y:d.y};d.y=g,d.x=m;var b=Jo(c.indicatorLabelPoint,wf(d,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,w=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?S:"middle",align:w?"center":S});var T={x:m,y:g,style:{fill:h}},E={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var O={duration:100,easing:"cubicInOut",additive:!0};d.x=y.x,d.y=y.y,d.animateTo(T,O),_.animateTo(E,O)}else d.attr(T),_.attr(E);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var P=0;Po[1]&&(d[1]=1/0),r&&(d[0]===-1/0?this._showIndicator(c,d[1],"< ",l):d[1]===1/0?this._showIndicator(c,d[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(r||LU(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(d));var p=sHe(f,h);this._dispatchHighDown("downplay",N2(p[0],a)),this._dispatchHighDown("highlight",N2(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var r;if(lf(t.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),n.getData().setVisual("visualMeta",r)}}];function wdt(n,e,t,r){for(var a=e.targetVisuals[r],i=Gr.prepareVisualTypes(a),o={color:D0(n.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(_dt,Sdt),M(Cdt,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(xdt))}function zie(n){n.registerComponentModel(fdt),n.registerComponentView(bdt),jie(n)}var Tdt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,r){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],Edt[this._mode].call(this,this._pieceList),this._resetSelected(t,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=Ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=J(this._pieceList,function(l){return l=Ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,r={},a=Gr.listVisualTypes(),i=this.isCategory();M(t.pieces,function(s){M(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),M(r,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(t,c,l)||o(t.target,c,l)},this),!u&&M(this.stateList,function(c){(t[c]||(t[c]={}))[l]=Fie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,r){var a=this.option,i=this._pieceList,o=(r?a:t).selected||{};if(a.selected=o,M(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;M(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=Ee(t)},e.prototype.getValueState=function(t){var r=Gr.findPieceIndex(t,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gr.findPieceIndex(l,a);c===t&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(t){var r;if(this.isCategory())r=t.value;else if(t.value!=null)r=t.value;else{var a=t.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,d){var f=i.getRepresentValue({interval:c});d||(d=i.getValueState(f));var h=t(f,d);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var d=c.interval;d&&(d[0]>u&&o([u,d[0]],"outOfRange"),o(d.slice()),u=d[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=Xc(RC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(RC),Edt={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&n.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function $U(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const Odt=Tdt;var Idt=function(n){W(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),d=c.endsText,f=Lr(r.get("showLabel",!0),!d);d&&this._renderEndsText(t,d[0],u,f,l),M(c.viewPieceList,function(h){var p=h.piece,g=new Oe;g.onclick=fe(this._onItemClick,this,p),this._enableHoverLink(g,h.indexInModelPieceList);var m=r.getRepresentValue(p);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),f){var y=this.visualMapModel.getValueState(m);g.add(new st({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),d&&this._renderEndsText(t,d[1],u,f,l),xf(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,r){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:N2(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,r=t.option;if(r.orient==="vertical")return Vie(t,this.api,t.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,r,a,i,o){if(r){var s=new Oe,l=this.visualMapModel.textStyleModel;s.add(new st({style:Zt(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,r=J(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(t,r,a){t.add(ir(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(t){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=Ee(a.selected),s=r.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}($ie);const Pdt=Idt;function Bie(n){n.registerComponentModel(Odt),n.registerComponentView(Pdt),jie(n)}function Ddt(n){He(zie),He(Bie)}var Adt={label:{enabled:!0},decal:{show:!1}},VU=at(),Mdt={};function Rdt(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var r=Ee(Adt);Fe(r.label,n.getLocaleModel().get("aria"),!1),Fe(t.option,r,!1),a(),i();function a(){var u=t.getModel("decal"),c=u.get("show");if(c){var d=ge();n.eachSeries(function(f){if(!f.isColorBySeries()){var h=d.get(f.type);h||(h={},d.set(f.type,h)),VU(f).scope=h}}),n.eachRawSeries(function(f){if(n.isSeriesFiltered(f))return;if(me(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var b=WP(f.ecModel,f.name,Mdt,n.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var p=f.getRawData(),g={},m=VU(f).scope;h.each(function(C){var w=h.getRawIndex(C);g[w]=C});var y=p.count();p.each(function(C){var w=g[C],T=p.getName(C)||C+"",E=WP(f.ecModel,T,m,y),O=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(O,E))})}function S(C,w){var T=C?K(K({},w),C):w;return T.dirty=!0,T}})}}function i(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=_e(c.option,u),!!c.get("enabled")){var d=e.getZr().dom;if(c.get("description")){d.setAttribute("aria-label",c.get("description"));return}var f=n.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,g=Math.min(f,p),m;if(!(f<1)){var y=s();if(y){var b=c.get(["general","withTitle"]);m=o(b,{title:y})}else m=c.get(["general","withoutTitle"]);var _=[],S=f>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);m+=o(S,{seriesCount:f}),n.eachSeries(function(E,O){if(O1?c.get(["series","multiple",A]):c.get(["series","single",A]),I=o(I,{seriesId:E.seriesIndex,seriesName:E.get("name"),seriesType:l(E.subType)});var R=E.getData();if(R.count()>h){var L=c.get(["data","partialData"]);I+=o(L,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var k=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),z=[],F=0;F":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Ndt=function(){function n(e){var t=this._condVal=ce(e)?new RegExp(e):yze(e)?e:null;if(t==null){var r="";mt(r)}}return n.prototype.evaluate=function(e){var t=typeof e;return ce(t)?this._condVal.test(e):lt(t)?this._condVal.test(e+""):!1},n}(),Fdt=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),$dt=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&r.push(a),a=[R,L]}function c(R,L,k,N){Dp(R,k)&&Dp(L,N)||a.push(R,L,k,N,k,N)}function d(R,L,k,N,z,F){var j=Math.abs(L-R),U=Math.tan(j/4)*4/3,G=LE:P2&&r.push(a),r}function WD(n,e,t,r,a,i,o,s,l,u){if(Dp(n,t)&&Dp(e,r)&&Dp(a,o)&&Dp(i,s)){l.push(o,s);return}var c=2/u,d=c*c,f=o-n,h=s-e,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var g=t-n,m=r-e,y=a-o,b=i-s,_=g*g+m*m,S=y*y+b*b;if(_=0&&E=0){l.push(o,s);return}var O=[],I=[];Rc(n,t,a,o,.5,O),Rc(e,r,i,s,.5,I),WD(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),WD(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}function Qdt(n,e){var t=UD(n),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),d=Uie([l,u],c?0:1,e),f=(c?s:u)/d.length,h=0;ha,o=Uie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",d=n[s]/o.length,f=0;f1?null:new Le(g*l+n,g*u+e)}function tft(n,e,t){var r=new Le;Le.sub(r,t,e),r.normalize();var a=new Le;Le.sub(a,n,e);var i=a.dot(r);return i}function Xh(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function nft(n,e,t){for(var r=n.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),nft(e,u,c)}function LC(n,e,t,r){if(t===1)r.push(e);else{var a=Math.floor(t/2),i=n(e);LC(n,i[0],a,r),LC(n,i[1],t-a,r)}return r}function rft(n,e){for(var t=[],r=0;r0)for(var C=r/t,w=-r/2;w<=r/2;w+=C){for(var T=Math.sin(w),E=Math.cos(w),O=0,_=0;_0;u/=2){var c=0,d=0;(n&u)>0&&(c=1),(e&u)>0&&(d=1),s+=u*u*(3*c^d),d===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function FC(n){var e=1/0,t=1/0,r=-1/0,a=-1/0,i=J(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),d=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(d,t),r=Math.max(c,r),a=Math.max(d,a),[c,d]}),o=J(i,function(s,l){return{cp:s,z:fft(s[0],s[1],e,t,r,a),path:n[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Yie(n){return oft(n.path,n.count)}function GD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function hft(n,e,t){var r=[];function a(C){for(var w=0;w=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var gft={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;KU(n)&&(u=n,c=e),KU(e)&&(u=e,c=n);function d(y,b,_,S,C){var w=y.many,T=y.one;if(w.length===1&&!C){var E=b?w[0]:T,O=b?T:w[0];if(kC(E))d({many:[E],one:O},!0,_,S,!0);else{var I=s?_e({delay:s(_,S)},l):l;RM(E,O,I),i(E,O,E,O,I)}}else for(var P=_e({dividePath:gft[t],individualDelay:s&&function(z,F,j,U){return s(z+_,S)}},l),A=b?hft(w,T,P):pft(T,w,P),R=A.fromIndividuals,L=A.toIndividuals,k=R.length,N=0;Ne.length,h=u?ZU(c,u):ZU(f?e:n,[f?n:e]),p=0,g=0;gKie))for(var a=r.getIndices(),i=mft(r),o=0;o0&&S.group.traverse(function(w){w instanceof Ue&&!w.animators.length&&w.animateFrom({style:{opacity:0}},C)})})}function qU(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function QU(n){return X(n)?n.sort().join(","):n}function Bu(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function _ft(n,e){var t=ge(),r=ge(),a=ge();return M(n.oldSeries,function(i,o){var s=n.oldDataGroupIds[o],l=n.oldData[o],u=qU(i),c=QU(u);r.set(c,{dataGroupId:s,data:l}),X(u)&&M(u,function(d){a.set(d,{key:c,dataGroupId:s,data:l})})}),M(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=qU(i),u=QU(l),c=r.get(u);if(c)t.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Bu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Bu(s),data:s}]});else if(X(l)){var d=[];M(l,function(p){var g=r.get(p);g.data&&d.push({dataGroupId:g.dataGroupId,divide:Bu(g.data),data:g.data})}),d.length&&t.set(u,{oldSeries:d,newSeries:[{dataGroupId:o,data:s,divide:Bu(s)}]})}else{var f=a.get(l);if(f){var h=t.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:Bu(f.data)}],newSeries:[]},t.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Bu(s)})}}}}),t}function JU(n,e){for(var t=0;t=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Bu(e.oldData[s]),dim:o.dimension})}),M(kt(n.to),function(o){var s=JU(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Bu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Zie(a,i,r)}function Cft(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,r){M(kt(r.seriesTransition),function(a){M(kt(a.to),function(i){for(var o=r.updatedSeries,s=0;s{wft({}).then(i=>{r(i)}).catch(()=>{})},[]);const a=[{key:ve.Dashboard.StartTime,value:t==null?void 0:t.startTime},{key:ve.Dashboard.Backends,value:nR(e6.cluster,n)?V.jsx("span",{className:Ga.linkText,onClick:()=>{const i=e6.cluster;i&&i.routeProps&&i.routeProps.path&&e(i.routeProps.path)},children:t==null?void 0:t.totalBackendCount}):V.jsx("span",{children:t==null?void 0:t.totalBackendCount})},{key:ve.Dashboard.BackendsOnline,value:t==null?void 0:t.onlineBackendCount},{key:ve.Dashboard.BackendsOffline,value:t==null?void 0:t.offlineBackendCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPH}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPHTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.totalQueryCount},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPM}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPMTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountMinute.toFixed(2)},{key:V.jsxs("div",{className:Ga.tip,children:[V.jsx("span",{className:Ga.title,children:ve.Dashboard.QPS}),V.jsx("span",{className:Ga.help,children:V.jsx(Sr,{content:ve.Dashboard.QPSTip,children:V.jsx(J_,{size:"default"})})})]}),value:t==null?void 0:t.averageQueryCountSecond.toFixed(2)}];return V.jsx(V.Fragment,{children:V.jsxs("div",{style:{width:"100%"},children:[V.jsx(FI,{gutter:[16,16],children:V.jsx(ii,{span:24,children:V.jsx(Gs,{title:ve.Dashboard.Summary,bordered:!1,className:Ga.card,children:V.jsx(h9e,{data:a,row:!0,size:"large",className:Ga.description})})})}),V.jsxs(FI,{gutter:[16,16],children:[V.jsx(ii,{span:16,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Tft,{data:(t==null?void 0:t.lineChart)||{}})})}),V.jsx(ii,{span:8,children:V.jsx(Gs,{title:ve.Dashboard.QueryDistribution,bordered:!1,className:Ga.card,children:V.jsx(Eft,{data:(t==null?void 0:t.distributionChart)||[]})})})]})]})})}function Tft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current);let r=2400,a=0;Object.keys(n.data).forEach(s=>{const u=n.data[s].map(f=>parseInt(f.minute.replace(":",""))),c=Math.min(...u),d=Math.max(...u);ca&&(a=d)});const i=[];for(let s=r;s<=a;s++){if(s%100>=60)continue;const l=Math.floor(s/100).toString().padStart(2,"0"),u=(s%100).toString().padStart(2,"0");i.push(`${l}:${u}`)}const o={legend:{textStyle:{color:LM("--semi-color-text-0")}},xAxis:{type:"category",data:i},yAxis:{type:"value",minInterval:1},tooltip:{trigger:"axis"},series:Object.keys(n.data).map(s=>{const l=n.data[s].reduce((u,c)=>(u[c.minute]=c.queryCount,u),{});return{name:s,data:i.map(u=>l[u]||0),type:"line",smooth:!0}})};t.setOption(o)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}function Eft(n){const e=D.useRef(null);return D.useEffect(()=>{const t=one(e.current),r={tooltip:{trigger:"item"},legend:{textStyle:{color:LM("--semi-color-text-0")}},series:[{name:ve.Dashboard.QueryCount,type:"pie",radius:["40%","70%"],avoidLabelOverlap:!1,itemStyle:{borderRadius:10,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:17,fontWeight:"bold"}},labelLine:{show:!1},data:n.data.map(a=>({value:a.queryCount,name:a.name}))}]};t.setOption(r)},[n.data]),V.jsx("div",{style:{textAlign:"center"},children:V.jsx("div",{ref:e,style:{height:"450px"}})})}const Oft="_description_1a8jp_1",Ift="_card_1a8jp_5",Pft={description:Oft,card:Ift};async function Xie(n){return Er.post("/webapp/getAllBackends",n)}async function Dft(n){return Er.post("/webapp/saveBackend",n)}async function qie(n){return Er.post("/webapp/updateBackend",n)}async function Aft(n){return Er.post("/webapp/deleteBackend",n)}function Mft(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(!1),[o,s]=D.useState(),[l,u]=D.useState();D.useEffect(()=>{c()},[]);const c=()=>{Xie({}).then(p=>{r(p)}).catch(()=>{})},d=p=>V.jsx(n,{link:{href:p,target:"_blank"},underline:!0,children:p}),f=(p,g)=>V.jsx(Rft,{text:p,record:g,list:c}),h=(p,g)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{u(g),i(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Aft({name:g.name}).then(m=>{console.log(m),c()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:Pft.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:t,pagination:!1,rowKey:"name",children:[V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"routingGroup",dataIndex:"routingGroup",filters:[...new Set(t==null?void 0:t.map(p=>p.routingGroup))].map(p=>({text:p,value:p})),onFilter:(p,g)=>p===g.routingGroup},"routingGroup"),V.jsx(tt,{title:"ProxyTo",dataIndex:"proxyTo",render:d},"proxyTo"),V.jsx(tt,{title:"ExternalUrl",dataIndex:"externalUrl",render:d},"externalUrl"),V.jsx(tt,{title:"Queued",dataIndex:"queued"},"queued"),V.jsx(tt,{title:"Running",dataIndex:"running"},"running"),V.jsx(tt,{title:"Active",dataIndex:"active",render:f},"active"),e.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{u(void 0),i(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:h},"operate")]})}),V.jsx(u0,{title:l===void 0?ve.UI.Create:ve.UI.Edit,visible:a,onOk:()=>{o==null||o.submitForm()},onCancel:()=>{i(!1)},centered:!0,width:500,height:500,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:150,style:{paddingRight:"20px"},onSubmit:p=>{l===void 0?Dft(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{}):qie(p).then(g=>{console.log(g),c(),i(!1)}).catch(()=>{})},getFormApi:s,children:[V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],disabled:l!==void 0,initValue:l==null?void 0:l.name}),V.jsx(Ze.Input,{field:"routingGroup",label:"RoutingGroup",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.routingGroup}),V.jsx(Ze.Input,{field:"proxyTo",label:"ProxyTo",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.proxyTo}),V.jsx(Ze.Input,{field:"externalUrl",label:"ExternalUrl",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:l==null?void 0:l.externalUrl}),V.jsx(Ze.Switch,{label:"Active",field:"active",initValue:(l==null?void 0:l.active)||!1})]})})]})}const Rft=n=>{const e=$i(),[t,r]=D.useState(!1),a=i=>{r(!0),n.record.active=i,qie(n.record).then(o=>{console.log(o),r(!1),n.list()}).catch(()=>{})};return V.jsx(kq,{loading:t,onChange:a,checked:n.text,disabled:!e.hasRole(av.ADMIN),"aria-label":"active switch"})},Lft="_description_1a8jp_1",kft="_card_1a8jp_5",eW={description:Lft,card:kft};async function Nft(n){return Er.post("/webapp/findQueryHistory",n)}//! moment.js -//! version : 2.29.4 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -var Qie;function be(){return Qie.apply(null,arguments)}function Fft(n){Qie=n}function as(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function If(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function Nt(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function kM(n){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(n).length===0;var e;for(e in n)if(Nt(n,e))return!1;return!0}function Xa(n){return n===void 0}function uu(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function B0(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function Jie(n,e){var t=[],r,a=n.length;for(r=0;r>>0,r;for(r=0;r0)for(t=0;t=0;return(i?t?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var VM=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,y3={},Zp={};function Re(n,e,t,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),n&&(Zp[n]=a),e&&(Zp[e[0]]=function(){return al(a.apply(this,arguments),e[1],e[2])}),t&&(Zp[t]=function(){return this.localeData().ordinal(a.apply(this,arguments),n)})}function Bft(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function Hft(n){var e=n.match(VM),t,r;for(t=0,r=e.length;t=0&&k_.test(n);)n=n.replace(k_,r),k_.lastIndex=0,t-=1;return n}var Uft={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Wft(n){var e=this._longDateFormat[n],t=this._longDateFormat[n.toUpperCase()];return e||!t?e:(this._longDateFormat[n]=t.match(VM).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[n])}var Gft="Invalid date";function Yft(){return this._invalidDate}var Kft="%d",Zft=/\d{1,2}/;function Xft(n){return this._ordinal.replace("%d",n)}var qft={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Qft(n,e,t,r){var a=this._relativeTime[t];return fl(a)?a(n,e,t,r):a.replace(/%d/i,n)}function Jft(n,e){var t=this._relativeTime[n>0?"future":"past"];return fl(t)?t(e):t.replace(/%s/i,e)}var b1={};function ma(n,e){var t=n.toLowerCase();b1[t]=b1[t+"s"]=b1[e]=n}function Po(n){return typeof n=="string"?b1[n]||b1[n.toLowerCase()]:void 0}function jM(n){var e={},t,r;for(r in n)Nt(n,r)&&(t=Po(r),t&&(e[t]=n[r]));return e}var roe={};function ya(n,e){roe[n]=e}function eht(n){var e=[],t;for(t in n)Nt(n,t)&&e.push({unit:t,priority:roe[t]});return e.sort(function(r,a){return r.priority-a.priority}),e}function cT(n){return n%4===0&&n%100!==0||n%400===0}function so(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function ht(n){var e=+n,t=0;return e!==0&&isFinite(e)&&(t=so(e)),t}function Cv(n,e){return function(t){return t!=null?(aoe(this,n,t),be.updateOffset(this,e),this):$C(this,n)}}function $C(n,e){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+e]():NaN}function aoe(n,e,t){n.isValid()&&!isNaN(t)&&(e==="FullYear"&&cT(n.year())&&n.month()===1&&n.date()===29?(t=ht(t),n._d["set"+(n._isUTC?"UTC":"")+e](t,n.month(),vT(t,n.month()))):n._d["set"+(n._isUTC?"UTC":"")+e](t))}function tht(n){return n=Po(n),fl(this[n])?this[n]():this}function nht(n,e){if(typeof n=="object"){n=jM(n);var t=eht(n),r,a=t.length;for(r=0;r68?1900:2e3)};var poe=Cv("FullYear",!0);function Sht(){return cT(this.year())}function Cht(n,e,t,r,a,i,o){var s;return n<100&&n>=0?(s=new Date(n+400,e,t,r,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(n)):s=new Date(n,e,t,r,a,i,o),s}function Dy(n){var e,t;return n<100&&n>=0?(t=Array.prototype.slice.call(arguments),t[0]=n+400,e=new Date(Date.UTC.apply(null,t)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(null,arguments)),e}function jC(n,e,t){var r=7+e-t,a=(7+Dy(n,0,r).getUTCDay()-e)%7;return-a+r-1}function goe(n,e,t,r,a){var i=(7+t-r)%7,o=jC(n,r,a),s=1+7*(e-1)+i+o,l,u;return s<=0?(l=n-1,u=_1(l)+s):s>_1(n)?(l=n+1,u=s-_1(n)):(l=n,u=s),{year:l,dayOfYear:u}}function Ay(n,e,t){var r=jC(n.year(),e,t),a=Math.floor((n.dayOfYear()-r-1)/7)+1,i,o;return a<1?(o=n.year()-1,i=a+Gl(o,e,t)):a>Gl(n.year(),e,t)?(i=a-Gl(n.year(),e,t),o=n.year()+1):(o=n.year(),i=a),{week:i,year:o}}function Gl(n,e,t){var r=jC(n,e,t),a=jC(n+1,e,t);return(_1(n)-r+a)/7}Re("w",["ww",2],"wo","week");Re("W",["WW",2],"Wo","isoWeek");ma("week","w");ma("isoWeek","W");ya("week",5);ya("isoWeek",5);xe("w",Cn);xe("ww",Cn,Bi);xe("W",Cn);xe("WW",Cn,Bi);W0(["w","ww","W","WW"],function(n,e,t,r){e[r.substr(0,1)]=ht(n)});function wht(n){return Ay(n,this._week.dow,this._week.doy).week}var xht={dow:0,doy:6};function Tht(){return this._week.dow}function Eht(){return this._week.doy}function Oht(n){var e=this.localeData().week(this);return n==null?e:this.add((n-e)*7,"d")}function Iht(n){var e=Ay(this,1,4).week;return n==null?e:this.add((n-e)*7,"d")}Re("d",0,"do","day");Re("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)});Re("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)});Re("dddd",0,0,function(n){return this.localeData().weekdays(this,n)});Re("e",0,0,"weekday");Re("E",0,0,"isoWeekday");ma("day","d");ma("weekday","e");ma("isoWeekday","E");ya("day",11);ya("weekday",11);ya("isoWeekday",11);xe("d",Cn);xe("e",Cn);xe("E",Cn);xe("dd",function(n,e){return e.weekdaysMinRegex(n)});xe("ddd",function(n,e){return e.weekdaysShortRegex(n)});xe("dddd",function(n,e){return e.weekdaysRegex(n)});W0(["dd","ddd","dddd"],function(n,e,t,r){var a=t._locale.weekdaysParse(n,r,t._strict);a!=null?e.d=a:nt(t).invalidWeekday=n});W0(["d","e","E"],function(n,e,t,r){e[r]=ht(n)});function Pht(n,e){return typeof n!="string"?n:isNaN(n)?(n=e.weekdaysParse(n),typeof n=="number"?n:null):parseInt(n,10)}function Dht(n,e){return typeof n=="string"?e.weekdaysParse(n)%7||7:isNaN(n)?null:n}function HM(n,e){return n.slice(e,7).concat(n.slice(0,e))}var Aht="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),voe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mht="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rht=U0,Lht=U0,kht=U0;function Nht(n,e){var t=as(this._weekdays)?this._weekdays:this._weekdays[n&&n!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return n===!0?HM(t,this._week.dow):n?t[n.day()]:t}function Fht(n){return n===!0?HM(this._weekdaysShort,this._week.dow):n?this._weekdaysShort[n.day()]:this._weekdaysShort}function $ht(n){return n===!0?HM(this._weekdaysMin,this._week.dow):n?this._weekdaysMin[n.day()]:this._weekdaysMin}function Vht(n,e,t){var r,a,i,o=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=dl([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return t?e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1?a:null):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null):e==="dddd"?(a=qn.call(this._weekdaysParse,o),a!==-1||(a=qn.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):e==="ddd"?(a=qn.call(this._shortWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=qn.call(this._minWeekdaysParse,o),a!==-1||(a=qn.call(this._weekdaysParse,o),a!==-1)?a:(a=qn.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function jht(n,e,t){var r,a,i;if(this._weekdaysParseExact)return Vht.call(this,n,e,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=dl([2e3,1]).day(r),t&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),t&&e==="dddd"&&this._fullWeekdaysParse[r].test(n))return r;if(t&&e==="ddd"&&this._shortWeekdaysParse[r].test(n))return r;if(t&&e==="dd"&&this._minWeekdaysParse[r].test(n))return r;if(!t&&this._weekdaysParse[r].test(n))return r}}function zht(n){if(!this.isValid())return n!=null?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=Pht(n,this.localeData()),this.add(n-e,"d")):e}function Bht(n){if(!this.isValid())return n!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return n==null?e:this.add(n-e,"d")}function Hht(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var e=Dht(n,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Uht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(Nt(this,"_weekdaysRegex")||(this._weekdaysRegex=Rht),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function Wht(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Nt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lht),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ght(n){return this._weekdaysParseExact?(Nt(this,"_weekdaysRegex")||UM.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Nt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=kht),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function UM(){function n(c,d){return d.length-c.length}var e=[],t=[],r=[],a=[],i,o,s,l,u;for(i=0;i<7;i++)o=dl([2e3,1]).day(i),s=xi(this.weekdaysMin(o,"")),l=xi(this.weekdaysShort(o,"")),u=xi(this.weekdays(o,"")),e.push(s),t.push(l),r.push(u),a.push(s),a.push(l),a.push(u);e.sort(n),t.sort(n),r.sort(n),a.sort(n),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function WM(){return this.hours()%12||12}function Yht(){return this.hours()||24}Re("H",["HH",2],0,"hour");Re("h",["hh",2],0,WM);Re("k",["kk",2],0,Yht);Re("hmm",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)});Re("hmmss",0,0,function(){return""+WM.apply(this)+al(this.minutes(),2)+al(this.seconds(),2)});Re("Hmm",0,0,function(){return""+this.hours()+al(this.minutes(),2)});Re("Hmmss",0,0,function(){return""+this.hours()+al(this.minutes(),2)+al(this.seconds(),2)});function moe(n,e){Re(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}moe("a",!0);moe("A",!1);ma("hour","h");ya("hour",13);function yoe(n,e){return e._meridiemParse}xe("a",yoe);xe("A",yoe);xe("H",Cn);xe("h",Cn);xe("k",Cn);xe("HH",Cn,Bi);xe("hh",Cn,Bi);xe("kk",Cn,Bi);xe("hmm",soe);xe("hmmss",loe);xe("Hmm",soe);xe("Hmmss",loe);en(["H","HH"],_r);en(["k","kk"],function(n,e,t){var r=ht(n);e[_r]=r===24?0:r});en(["a","A"],function(n,e,t){t._isPm=t._locale.isPM(n),t._meridiem=n});en(["h","hh"],function(n,e,t){e[_r]=ht(n),nt(t).bigHour=!0});en("hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r)),nt(t).bigHour=!0});en("hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a)),nt(t).bigHour=!0});en("Hmm",function(n,e,t){var r=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r))});en("Hmmss",function(n,e,t){var r=n.length-4,a=n.length-2;e[_r]=ht(n.substr(0,r)),e[Zo]=ht(n.substr(r,2)),e[kl]=ht(n.substr(a))});function Kht(n){return(n+"").toLowerCase().charAt(0)==="p"}var Zht=/[ap]\.?m?\.?/i,Xht=Cv("Hours",!0);function qht(n,e,t){return n>11?t?"pm":"PM":t?"am":"AM"}var boe={calendar:jft,longDateFormat:Uft,invalidDate:Gft,ordinal:Kft,dayOfMonthOrdinalParse:Zft,relativeTime:qft,months:dht,monthsShort:uoe,week:xht,weekdays:Aht,weekdaysMin:Mht,weekdaysShort:voe,meridiemParse:Zht},xn={},_m={},My;function Qht(n,e){var t,r=Math.min(n.length,e.length);for(t=0;t0;){if(a=mT(i.slice(0,t).join("-")),a)return a;if(r&&r.length>=t&&Qht(i,r)>=t-1)break;t--}e++}return My}function ept(n){return n.match("^[^/\\\\]*$")!=null}function mT(n){var e=null,t;if(xn[n]===void 0&&typeof j2<"u"&&j2&&j2.exports&&ept(n))try{e=My._abbr,t=require,t("./locale/"+n),Tc(e)}catch{xn[n]=null}return xn[n]}function Tc(n,e){var t;return n&&(Xa(e)?t=pu(n):t=GM(n,e),t?My=t:typeof console<"u"&&console.warn&&console.warn("Locale "+n+" not found. Did you forget to load it?")),My._abbr}function GM(n,e){if(e!==null){var t,r=boe;if(e.abbr=n,xn[n]!=null)toe("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=xn[n]._config;else if(e.parentLocale!=null)if(xn[e.parentLocale]!=null)r=xn[e.parentLocale]._config;else if(t=mT(e.parentLocale),t!=null)r=t._config;else return _m[e.parentLocale]||(_m[e.parentLocale]=[]),_m[e.parentLocale].push({name:n,config:e}),null;return xn[n]=new $M(KD(r,e)),_m[n]&&_m[n].forEach(function(a){GM(a.name,a.config)}),Tc(n),xn[n]}else return delete xn[n],null}function tpt(n,e){if(e!=null){var t,r,a=boe;xn[n]!=null&&xn[n].parentLocale!=null?xn[n].set(KD(xn[n]._config,e)):(r=mT(n),r!=null&&(a=r._config),e=KD(a,e),r==null&&(e.abbr=n),t=new $M(e),t.parentLocale=xn[n],xn[n]=t),Tc(n)}else xn[n]!=null&&(xn[n].parentLocale!=null?(xn[n]=xn[n].parentLocale,n===Tc()&&Tc(n)):xn[n]!=null&&delete xn[n]);return xn[n]}function pu(n){var e;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return My;if(!as(n)){if(e=mT(n),e)return e;n=[n]}return Jht(n)}function npt(){return ZD(xn)}function YM(n){var e,t=n._a;return t&&nt(n).overflow===-2&&(e=t[Ll]<0||t[Ll]>11?Ll:t[Ns]<1||t[Ns]>vT(t[da],t[Ll])?Ns:t[_r]<0||t[_r]>24||t[_r]===24&&(t[Zo]!==0||t[kl]!==0||t[ff]!==0)?_r:t[Zo]<0||t[Zo]>59?Zo:t[kl]<0||t[kl]>59?kl:t[ff]<0||t[ff]>999?ff:-1,nt(n)._overflowDayOfYear&&(eNs)&&(e=Ns),nt(n)._overflowWeeks&&e===-1&&(e=lht),nt(n)._overflowWeekday&&e===-1&&(e=uht),nt(n).overflow=e),n}var rpt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,apt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ipt=/Z|[+-]\d\d(?::?\d\d)?/,N_=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],b3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],opt=/^\/?Date\((-?\d+)/i,spt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,lpt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function _oe(n){var e,t,r=n._i,a=rpt.exec(r)||apt.exec(r),i,o,s,l,u=N_.length,c=b3.length;if(a){for(nt(n).iso=!0,e=0,t=u;e_1(o)||n._dayOfYear===0)&&(nt(n)._overflowDayOfYear=!0),t=Dy(o,0,n._dayOfYear),n._a[Ll]=t.getUTCMonth(),n._a[Ns]=t.getUTCDate()),e=0;e<3&&n._a[e]==null;++e)n._a[e]=r[e]=a[e];for(;e<7;e++)n._a[e]=r[e]=n._a[e]==null?e===2?1:0:n._a[e];n._a[_r]===24&&n._a[Zo]===0&&n._a[kl]===0&&n._a[ff]===0&&(n._nextDay=!0,n._a[_r]=0),n._d=(n._useUTC?Dy:Cht).apply(null,r),i=n._useUTC?n._d.getUTCDay():n._d.getDay(),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[_r]=24),n._w&&typeof n._w.d<"u"&&n._w.d!==i&&(nt(n).weekdayMismatch=!0)}}function vpt(n){var e,t,r,a,i,o,s,l,u;e=n._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,o=4,t=op(e.GG,n._a[da],Ay(Sn(),1,4).year),r=op(e.W,1),a=op(e.E,1),(a<1||a>7)&&(l=!0)):(i=n._locale._week.dow,o=n._locale._week.doy,u=Ay(Sn(),i,o),t=op(e.gg,n._a[da],u.year),r=op(e.w,u.week),e.d!=null?(a=e.d,(a<0||a>6)&&(l=!0)):e.e!=null?(a=e.e+i,(e.e<0||e.e>6)&&(l=!0)):a=i),r<1||r>Gl(t,i,o)?nt(n)._overflowWeeks=!0:l!=null?nt(n)._overflowWeekday=!0:(s=goe(t,r,a,i,o),n._a[da]=s.year,n._dayOfYear=s.dayOfYear)}be.ISO_8601=function(){};be.RFC_2822=function(){};function ZM(n){if(n._f===be.ISO_8601){_oe(n);return}if(n._f===be.RFC_2822){Soe(n);return}n._a=[],nt(n).empty=!0;var e=""+n._i,t,r,a,i,o,s=e.length,l=0,u,c;for(a=noe(n._f,n._locale).match(VM)||[],c=a.length,t=0;t0&&nt(n).unusedInput.push(o),e=e.slice(e.indexOf(r)+r.length),l+=r.length),Zp[i]?(r?nt(n).empty=!1:nt(n).unusedTokens.push(i),sht(i,r,n)):n._strict&&!r&&nt(n).unusedTokens.push(i);nt(n).charsLeftOver=s-l,e.length>0&&nt(n).unusedInput.push(e),n._a[_r]<=12&&nt(n).bigHour===!0&&n._a[_r]>0&&(nt(n).bigHour=void 0),nt(n).parsedDateParts=n._a.slice(0),nt(n).meridiem=n._meridiem,n._a[_r]=mpt(n._locale,n._a[_r],n._meridiem),u=nt(n).era,u!==null&&(n._a[da]=n._locale.erasConvertYear(u,n._a[da])),KM(n),YM(n)}function mpt(n,e,t){var r;return t==null?e:n.meridiemHour!=null?n.meridiemHour(e,t):(n.isPM!=null&&(r=n.isPM(t),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function ypt(n){var e,t,r,a,i,o,s=!1,l=n._f.length;if(l===0){nt(n).invalidFormat=!0,n._d=new Date(NaN);return}for(a=0;athis?this:n:uT()});function xoe(n,e){var t,r;if(e.length===1&&as(e[0])&&(e=e[0]),!e.length)return Sn();for(t=e[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vpt(){if(!Xa(this._isDSTShifted))return this._isDSTShifted;var n={},e;return FM(n,this),n=Coe(n),n._a?(e=n._isUTC?dl(n._a):Sn(n._a),this._isDSTShifted=this.isValid()&&Dpt(n._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jpt(){return this.isValid()?!this._isUTC:!1}function zpt(){return this.isValid()?this._isUTC:!1}function Eoe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Bpt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hpt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ds(n,e){var t=n,r=null,a,i,o;return $2(n)?t={ms:n._milliseconds,d:n._days,M:n._months}:uu(n)||!isNaN(+n)?(t={},e?t[e]=+n:t.milliseconds=+n):(r=Bpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:0,d:ht(r[Ns])*a,h:ht(r[_r])*a,m:ht(r[Zo])*a,s:ht(r[kl])*a,ms:ht(qD(r[ff]*1e3))*a}):(r=Hpt.exec(n))?(a=r[1]==="-"?-1:1,t={y:Pd(r[2],a),M:Pd(r[3],a),w:Pd(r[4],a),d:Pd(r[5],a),h:Pd(r[6],a),m:Pd(r[7],a),s:Pd(r[8],a)}):t==null?t={}:typeof t=="object"&&("from"in t||"to"in t)&&(o=Upt(Sn(t.from),Sn(t.to)),t={},t.ms=o.milliseconds,t.M=o.months),i=new yT(t),$2(n)&&Nt(n,"_locale")&&(i._locale=n._locale),$2(n)&&Nt(n,"_isValid")&&(i._isValid=n._isValid),i}ds.fn=yT.prototype;ds.invalid=Ppt;function Pd(n,e){var t=n&&parseFloat(n.replace(",","."));return(isNaN(t)?0:t)*e}function aW(n,e){var t={};return t.months=e.month()-n.month()+(e.year()-n.year())*12,n.clone().add(t.months,"M").isAfter(e)&&--t.months,t.milliseconds=+e-+n.clone().add(t.months,"M"),t}function Upt(n,e){var t;return n.isValid()&&e.isValid()?(e=qM(e,n),n.isBefore(e)?t=aW(n,e):(t=aW(e,n),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Ooe(n,e){return function(t,r){var a,i;return r!==null&&!isNaN(+r)&&(toe(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=t,t=r,r=i),a=ds(t,r),Ioe(this,a,n),this}}function Ioe(n,e,t,r){var a=e._milliseconds,i=qD(e._days),o=qD(e._months);n.isValid()&&(r=r??!0,o&&doe(n,$C(n,"Month")+o*t),i&&aoe(n,"Date",$C(n,"Date")+i*t),a&&n._d.setTime(n._d.valueOf()+a*t),r&&be.updateOffset(n,i||o))}var Wpt=Ooe(1,"add"),Gpt=Ooe(-1,"subtract");function Poe(n){return typeof n=="string"||n instanceof String}function Ypt(n){return is(n)||B0(n)||Poe(n)||uu(n)||Zpt(n)||Kpt(n)||n===null||n===void 0}function Kpt(n){var e=If(n)&&!kM(n),t=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=r.length;for(a=0;at.valueOf():t.valueOf()9999?F2(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fl(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F2(t,"Z")):F2(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ugt(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var n="moment",e="",t,r,a,i;return this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),t="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(t+r+a+i)}function cgt(n){n||(n=this.isUtc()?be.defaultFormatUtc:be.defaultFormat);var e=F2(this,n);return this.localeData().postformat(e)}function dgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({to:this,from:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function fgt(n){return this.from(Sn(),n)}function hgt(n,e){return this.isValid()&&(is(n)&&n.isValid()||Sn(n).isValid())?ds({from:this,to:n}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function pgt(n){return this.to(Sn(),n)}function Doe(n){var e;return n===void 0?this._locale._abbr:(e=pu(n),e!=null&&(this._locale=e),this)}var Aoe=Io("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===void 0?this.localeData():this.locale(n)});function Moe(){return this._locale}var zC=1e3,Xp=60*zC,BC=60*Xp,Roe=(365*400+97)*24*BC;function qp(n,e){return(n%e+e)%e}function Loe(n,e,t){return n<100&&n>=0?new Date(n+400,e,t)-Roe:new Date(n,e,t).valueOf()}function koe(n,e,t){return n<100&&n>=0?Date.UTC(n+400,e,t)-Roe:Date.UTC(n,e,t)}function ggt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year(),0,1);break;case"quarter":e=t(this.year(),this.month()-this.month()%3,1);break;case"month":e=t(this.year(),this.month(),1);break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=t(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC);break;case"minute":e=this._d.valueOf(),e-=qp(e,Xp);break;case"second":e=this._d.valueOf(),e-=qp(e,zC);break}return this._d.setTime(e),be.updateOffset(this,!0),this}function vgt(n){var e,t;if(n=Po(n),n===void 0||n==="millisecond"||!this.isValid())return this;switch(t=this._isUTC?koe:Loe,n){case"year":e=t(this.year()+1,0,1)-1;break;case"quarter":e=t(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=t(this.year(),this.month()+1,1)-1;break;case"week":e=t(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=t(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=t(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=BC-qp(e+(this._isUTC?0:this.utcOffset()*Xp),BC)-1;break;case"minute":e=this._d.valueOf(),e+=Xp-qp(e,Xp)-1;break;case"second":e=this._d.valueOf(),e+=zC-qp(e,zC)-1;break}return this._d.setTime(e),be.updateOffset(this,!0),this}function mgt(){return this._d.valueOf()-(this._offset||0)*6e4}function ygt(){return Math.floor(this.valueOf()/1e3)}function bgt(){return new Date(this.valueOf())}function _gt(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function Sgt(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function Cgt(){return this.isValid()?this.toISOString():null}function wgt(){return NM(this)}function xgt(){return oc({},nt(this))}function Tgt(){return nt(this).overflow}function Egt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Re("N",0,0,"eraAbbr");Re("NN",0,0,"eraAbbr");Re("NNN",0,0,"eraAbbr");Re("NNNN",0,0,"eraName");Re("NNNNN",0,0,"eraNarrow");Re("y",["y",1],"yo","eraYear");Re("y",["yy",2],0,"eraYear");Re("y",["yyy",3],0,"eraYear");Re("y",["yyyy",4],0,"eraYear");xe("N",QM);xe("NN",QM);xe("NNN",QM);xe("NNNN",Fgt);xe("NNNNN",$gt);en(["N","NN","NNN","NNNN","NNNNN"],function(n,e,t,r){var a=t._locale.erasParse(n,r,t._strict);a?nt(t).era=a:nt(t).invalidEra=n});xe("y",wv);xe("yy",wv);xe("yyy",wv);xe("yyyy",wv);xe("yo",Vgt);en(["y","yy","yyy","yyyy"],da);en(["yo"],function(n,e,t,r){var a;t._locale._eraYearOrdinalRegex&&(a=n.match(t._locale._eraYearOrdinalRegex)),t._locale.eraYearOrdinalParse?e[da]=t._locale.eraYearOrdinalParse(n,a):e[da]=parseInt(n,10)});function Ogt(n,e){var t,r,a,i=this._eras||pu("en")._eras;for(t=0,r=i.length;t=0)return i[r]}function Pgt(n,e){var t=n.since<=n.until?1:-1;return e===void 0?be(n.since).year():be(n.since).year()+(e-n.offset)*t}function Dgt(){var n,e,t,r=this.localeData().eras();for(n=0,e=r.length;ni&&(e=i),Ggt.call(this,n,e,t,r,a))}function Ggt(n,e,t,r,a){var i=goe(n,e,t,r,a),o=Dy(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Re("Q",0,"Qo","quarter");ma("quarter","Q");ya("quarter",7);xe("Q",ioe);en("Q",function(n,e){e[Ll]=(ht(n)-1)*3});function Ygt(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}Re("D",["DD",2],"Do","date");ma("date","D");ya("date",9);xe("D",Cn);xe("DD",Cn,Bi);xe("Do",function(n,e){return n?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});en(["D","DD"],Ns);en("Do",function(n,e){e[Ns]=ht(n.match(Cn)[0])});var Foe=Cv("Date",!0);Re("DDD",["DDDD",3],"DDDo","dayOfYear");ma("dayOfYear","DDD");ya("dayOfYear",4);xe("DDD",fT);xe("DDDD",ooe);en(["DDD","DDDD"],function(n,e,t){t._dayOfYear=ht(n)});function Kgt(n){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?e:this.add(n-e,"d")}Re("m",["mm",2],0,"minute");ma("minute","m");ya("minute",14);xe("m",Cn);xe("mm",Cn,Bi);en(["m","mm"],Zo);var Zgt=Cv("Minutes",!1);Re("s",["ss",2],0,"second");ma("second","s");ya("second",15);xe("s",Cn);xe("ss",Cn,Bi);en(["s","ss"],kl);var Xgt=Cv("Seconds",!1);Re("S",0,0,function(){return~~(this.millisecond()/100)});Re(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Re(0,["SSS",3],0,"millisecond");Re(0,["SSSS",4],0,function(){return this.millisecond()*10});Re(0,["SSSSS",5],0,function(){return this.millisecond()*100});Re(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Re(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Re(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Re(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ma("millisecond","ms");ya("millisecond",16);xe("S",fT,ioe);xe("SS",fT,Bi);xe("SSS",fT,ooe);var sc,$oe;for(sc="SSSS";sc.length<=9;sc+="S")xe(sc,wv);function qgt(n,e){e[ff]=ht(("0."+n)*1e3)}for(sc="S";sc.length<=9;sc+="S")en(sc,qgt);$oe=Cv("Milliseconds",!1);Re("z",0,0,"zoneAbbr");Re("zz",0,0,"zoneName");function Qgt(){return this._isUTC?"UTC":""}function Jgt(){return this._isUTC?"Coordinated Universal Time":""}var de=H0.prototype;de.add=Wpt;de.calendar=Qpt;de.clone=Jpt;de.diff=ogt;de.endOf=vgt;de.format=cgt;de.from=dgt;de.fromNow=fgt;de.to=hgt;de.toNow=pgt;de.get=tht;de.invalidAt=Tgt;de.isAfter=egt;de.isBefore=tgt;de.isBetween=ngt;de.isSame=rgt;de.isSameOrAfter=agt;de.isSameOrBefore=igt;de.isValid=wgt;de.lang=Aoe;de.locale=Doe;de.localeData=Moe;de.max=wpt;de.min=Cpt;de.parsingFlags=xgt;de.set=nht;de.startOf=ggt;de.subtract=Gpt;de.toArray=_gt;de.toObject=Sgt;de.toDate=bgt;de.toISOString=lgt;de.inspect=ugt;typeof Symbol<"u"&&Symbol.for!=null&&(de[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});de.toJSON=Cgt;de.toString=sgt;de.unix=ygt;de.valueOf=mgt;de.creationData=Egt;de.eraName=Dgt;de.eraNarrow=Agt;de.eraAbbr=Mgt;de.eraYear=Rgt;de.year=poe;de.isLeapYear=Sht;de.weekYear=jgt;de.isoWeekYear=zgt;de.quarter=de.quarters=Ygt;de.month=foe;de.daysInMonth=yht;de.week=de.weeks=Oht;de.isoWeek=de.isoWeeks=Iht;de.weeksInYear=Ugt;de.weeksInWeekYear=Wgt;de.isoWeeksInYear=Bgt;de.isoWeeksInISOWeekYear=Hgt;de.date=Foe;de.day=de.days=zht;de.weekday=Bht;de.isoWeekday=Hht;de.dayOfYear=Kgt;de.hour=de.hours=Xht;de.minute=de.minutes=Zgt;de.second=de.seconds=Xgt;de.millisecond=de.milliseconds=$oe;de.utcOffset=Mpt;de.utc=Lpt;de.local=kpt;de.parseZone=Npt;de.hasAlignedHourOffset=Fpt;de.isDST=$pt;de.isLocal=jpt;de.isUtcOffset=zpt;de.isUtc=Eoe;de.isUTC=Eoe;de.zoneAbbr=Qgt;de.zoneName=Jgt;de.dates=Io("dates accessor is deprecated. Use date instead.",Foe);de.months=Io("months accessor is deprecated. Use month instead",foe);de.years=Io("years accessor is deprecated. Use year instead",poe);de.zone=Io("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Rpt);de.isDSTShifted=Io("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vpt);function evt(n){return Sn(n*1e3)}function tvt(){return Sn.apply(null,arguments).parseZone()}function Voe(n){return n}var Ft=$M.prototype;Ft.calendar=zft;Ft.longDateFormat=Wft;Ft.invalidDate=Yft;Ft.ordinal=Xft;Ft.preparse=Voe;Ft.postformat=Voe;Ft.relativeTime=Qft;Ft.pastFuture=Jft;Ft.set=Vft;Ft.eras=Ogt;Ft.erasParse=Igt;Ft.erasConvertYear=Pgt;Ft.erasAbbrRegex=kgt;Ft.erasNameRegex=Lgt;Ft.erasNarrowRegex=Ngt;Ft.months=pht;Ft.monthsShort=ght;Ft.monthsParse=mht;Ft.monthsRegex=_ht;Ft.monthsShortRegex=bht;Ft.week=wht;Ft.firstDayOfYear=Eht;Ft.firstDayOfWeek=Tht;Ft.weekdays=Nht;Ft.weekdaysMin=$ht;Ft.weekdaysShort=Fht;Ft.weekdaysParse=jht;Ft.weekdaysRegex=Uht;Ft.weekdaysShortRegex=Wht;Ft.weekdaysMinRegex=Ght;Ft.isPM=Kht;Ft.meridiem=qht;function HC(n,e,t,r){var a=pu(),i=dl().set(r,e);return a[t](i,n)}function joe(n,e,t){if(uu(n)&&(e=n,n=void 0),n=n||"",e!=null)return HC(n,e,t,"month");var r,a=[];for(r=0;r<12;r++)a[r]=HC(n,r,t,"month");return a}function eR(n,e,t,r){typeof n=="boolean"?(uu(e)&&(t=e,e=void 0),e=e||""):(e=n,t=e,n=!1,uu(e)&&(t=e,e=void 0),e=e||"");var a=pu(),i=n?a._week.dow:0,o,s=[];if(t!=null)return HC(e,(t+i)%7,r,"day");for(o=0;o<7;o++)s[o]=HC(e,(o+i)%7,r,"day");return s}function nvt(n,e){return joe(n,e,"months")}function rvt(n,e){return joe(n,e,"monthsShort")}function avt(n,e,t){return eR(n,e,t,"weekdays")}function ivt(n,e,t){return eR(n,e,t,"weekdaysShort")}function ovt(n,e,t){return eR(n,e,t,"weekdaysMin")}Tc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var e=n%10,t=ht(n%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return n+t}});be.lang=Io("moment.lang is deprecated. Use moment.locale instead.",Tc);be.langData=Io("moment.langData is deprecated. Use moment.localeData instead.",pu);var Cl=Math.abs;function svt(){var n=this._data;return this._milliseconds=Cl(this._milliseconds),this._days=Cl(this._days),this._months=Cl(this._months),n.milliseconds=Cl(n.milliseconds),n.seconds=Cl(n.seconds),n.minutes=Cl(n.minutes),n.hours=Cl(n.hours),n.months=Cl(n.months),n.years=Cl(n.years),this}function zoe(n,e,t,r){var a=ds(e,t);return n._milliseconds+=r*a._milliseconds,n._days+=r*a._days,n._months+=r*a._months,n._bubble()}function lvt(n,e){return zoe(this,n,e,1)}function uvt(n,e){return zoe(this,n,e,-1)}function iW(n){return n<0?Math.floor(n):Math.ceil(n)}function cvt(){var n=this._milliseconds,e=this._days,t=this._months,r=this._data,a,i,o,s,l;return n>=0&&e>=0&&t>=0||n<=0&&e<=0&&t<=0||(n+=iW(JD(t)+e)*864e5,e=0,t=0),r.milliseconds=n%1e3,a=so(n/1e3),r.seconds=a%60,i=so(a/60),r.minutes=i%60,o=so(i/60),r.hours=o%24,e+=so(o/24),l=so(Boe(e)),t+=l,e-=iW(JD(l)),s=so(t/12),t%=12,r.days=e,r.months=t,r.years=s,this}function Boe(n){return n*4800/146097}function JD(n){return n*146097/4800}function dvt(n){if(!this.isValid())return NaN;var e,t,r=this._milliseconds;if(n=Po(n),n==="month"||n==="quarter"||n==="year")switch(e=this._days+r/864e5,t=this._months+Boe(e),n){case"month":return t;case"quarter":return t/3;case"year":return t/12}else switch(e=this._days+Math.round(JD(this._months)),n){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+n)}}function fvt(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ht(this._months/12)*31536e6:NaN}function gu(n){return function(){return this.as(n)}}var hvt=gu("ms"),pvt=gu("s"),gvt=gu("m"),vvt=gu("h"),mvt=gu("d"),yvt=gu("w"),bvt=gu("M"),_vt=gu("Q"),Svt=gu("y");function Cvt(){return ds(this)}function wvt(n){return n=Po(n),this.isValid()?this[n+"s"]():NaN}function vh(n){return function(){return this.isValid()?this._data[n]:NaN}}var xvt=vh("milliseconds"),Tvt=vh("seconds"),Evt=vh("minutes"),Ovt=vh("hours"),Ivt=vh("days"),Pvt=vh("months"),Dvt=vh("years");function Avt(){return so(this.days()/7)}var El=Math.round,Ap={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Mvt(n,e,t,r,a){return a.relativeTime(e||1,!!t,n,r)}function Rvt(n,e,t,r){var a=ds(n).abs(),i=El(a.as("s")),o=El(a.as("m")),s=El(a.as("h")),l=El(a.as("d")),u=El(a.as("M")),c=El(a.as("w")),d=El(a.as("y")),f=i<=t.ss&&["s",i]||i0,f[4]=r,Mvt.apply(null,f)}function Lvt(n){return n===void 0?El:typeof n=="function"?(El=n,!0):!1}function kvt(n,e){return Ap[n]===void 0?!1:e===void 0?Ap[n]:(Ap[n]=e,n==="s"&&(Ap.ss=e-1),!0)}function Nvt(n,e){if(!this.isValid())return this.localeData().invalidDate();var t=!1,r=Ap,a,i;return typeof n=="object"&&(e=n,n=!1),typeof n=="boolean"&&(t=n),typeof e=="object"&&(r=Object.assign({},Ap,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),a=this.localeData(),i=Rvt(this,!t,r,a),t&&(i=a.pastFuture(+this,i)),a.postformat(i)}var _3=Math.abs;function Qh(n){return(n>0)-(n<0)||+n}function _T(){if(!this.isValid())return this.localeData().invalidDate();var n=_3(this._milliseconds)/1e3,e=_3(this._days),t=_3(this._months),r,a,i,o,s=this.asSeconds(),l,u,c,d;return s?(r=so(n/60),a=so(r/60),n%=60,r%=60,i=so(t/12),t%=12,o=n?n.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Qh(this._months)!==Qh(s)?"-":"",c=Qh(this._days)!==Qh(s)?"-":"",d=Qh(this._milliseconds)!==Qh(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(t?u+t+"M":"")+(e?c+e+"D":"")+(a||r||n?"T":"")+(a?d+a+"H":"")+(r?d+r+"M":"")+(n?d+o+"S":"")):"P0D"}var Tt=yT.prototype;Tt.isValid=Ipt;Tt.abs=svt;Tt.add=lvt;Tt.subtract=uvt;Tt.as=dvt;Tt.asMilliseconds=hvt;Tt.asSeconds=pvt;Tt.asMinutes=gvt;Tt.asHours=vvt;Tt.asDays=mvt;Tt.asWeeks=yvt;Tt.asMonths=bvt;Tt.asQuarters=_vt;Tt.asYears=Svt;Tt.valueOf=fvt;Tt._bubble=cvt;Tt.clone=Cvt;Tt.get=wvt;Tt.milliseconds=xvt;Tt.seconds=Tvt;Tt.minutes=Evt;Tt.hours=Ovt;Tt.days=Ivt;Tt.weeks=Avt;Tt.months=Pvt;Tt.years=Dvt;Tt.humanize=Nvt;Tt.toISOString=_T;Tt.toString=_T;Tt.toJSON=_T;Tt.locale=Doe;Tt.localeData=Moe;Tt.toIsoString=Io("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_T);Tt.lang=Aoe;Re("X",0,0,"unix");Re("x",0,0,"valueOf");xe("x",pT);xe("X",aht);en("X",function(n,e,t){t._d=new Date(parseFloat(n)*1e3)});en("x",function(n,e,t){t._d=new Date(ht(n))});//! moment.js -be.version="2.29.4";Fft(Sn);be.fn=de;be.min=xpt;be.max=Tpt;be.now=Ept;be.utc=dl;be.unix=evt;be.months=nvt;be.isDate=B0;be.locale=Tc;be.invalid=uT;be.duration=ds;be.isMoment=is;be.weekdays=avt;be.parseZone=tvt;be.localeData=pu;be.isDuration=$2;be.monthsShort=rvt;be.weekdaysMin=ovt;be.defineLocale=GM;be.updateLocale=tpt;be.locales=npt;be.weekdaysShort=ivt;be.normalizeUnits=Po;be.relativeTimeRounding=Lvt;be.relativeTimeThreshold=kvt;be.calendarFormat=qpt;be.prototype=de;be.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Fvt=n=>{const e=new Date(n),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0"),i=String(e.getHours()).padStart(2,"0"),o=String(e.getMinutes()).padStart(2,"0"),s=String(e.getSeconds()).padStart(2,"0");return`${t}-${r}-${a} ${i}:${o}:${s}`};function $vt(){const{Text:n}=Nf,e=$i(),[t,r]=D.useState(),[a,i]=D.useState(),[o,s]=D.useState({}),[l,u]=D.useState(1),[c]=D.useState(15),[d,f]=D.useState({user:e.userName});D.useEffect(()=>{Xie({}).then(b=>{r(b);const _={};for(let S=0;S{})},[]),D.useEffect(()=>{h(1)},[d]);const h=b=>{u(b),Nft({page:b,size:c,...d}).then(_=>{i(_)}).catch(()=>{})},p=(b,_)=>V.jsx(n,{link:{href:`${_.backendUrl}/ui/query.html?${b}`,target:"_blank"},underline:!0,children:b}),g=b=>V.jsx(n,{link:{href:b,target:"_blank"},underline:!0,children:b}),m=b=>V.jsx(n,{children:Fvt(b)}),y=b=>V.jsx(Nf.Text,{ellipsis:{showTooltip:!0},children:b});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsxs(V.Fragment,{children:[V.jsx(Ze.Select,{field:"backendUrl",label:"RoutedTo",style:{width:200},showClear:!0,placeholder:ve.History.RoutedToTip,children:t==null?void 0:t.map(b=>V.jsxs(Ze.Select.Option,{value:b.proxyTo,children:[V.jsx(ca,{color:"blue",style:{marginRight:"5px"},children:o[b.proxyTo]}),V.jsx(n,{children:b.proxyTo})]},b.proxyTo))}),V.jsx(Ze.Input,{field:"user",label:"User",initValue:d.user,disabled:!e.hasRole(av.ADMIN),style:{width:150},showClear:!0}),V.jsx(Ze.Input,{field:"queryId",label:"QueryId",style:{width:260},showClear:!0,placeholder:ve.History.QueryIdTip}),V.jsx(Jt,{htmlType:"submit",style:{width:70},children:ve.UI.Query})]}),layout:"horizontal",onSubmit:b=>{f(b)}})}),V.jsx(Gs,{bordered:!1,className:eW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:a==null?void 0:a.rows,pagination:{currentPage:l,pageSize:c,total:(a==null?void 0:a.total)||0,onPageChange:h},children:[V.jsx(tt,{title:"QueryId",dataIndex:"queryId",render:p},"queryId"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:b=>V.jsx(n,{children:o[b]})},"backendUrlName"),V.jsx(tt,{title:"RoutedTo",dataIndex:"backendUrl",render:g},"backendUrl"),V.jsx(tt,{title:"User",dataIndex:"user"},"user"),V.jsx(tt,{title:"Source",dataIndex:"source"},"source"),V.jsx(tt,{title:"QueryText",dataIndex:"queryText",ellipsis:!0,width:300,render:y},"queryText"),V.jsx(tt,{title:"SubmissionTime",dataIndex:"captureTime",render:m},"captureTime")]})})]})}const Vvt="_description_1a8jp_1",jvt="_card_1a8jp_5",oW={description:Vvt,card:jvt};async function zvt(n){return Er.post("/webapp/findSelector",n)}async function Bvt(n){return Er.post("/webapp/saveSelector",n)}async function Hvt(n){return Er.post("/webapp/updateSelector",n)}async function Uvt(n){return Er.post("/webapp/deleteSelector",n)}function Wvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{zvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{Uvt({useSchema:u,data:p}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:oW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Priority",dataIndex:"priority"},"priority"),V.jsx(tt,{title:"UserRegex",dataIndex:"userRegex"},"userRegex"),V.jsx(tt,{title:"SourceRegex",dataIndex:"sourceRegex"},"sourceRegex"),V.jsx(tt,{title:"QueryType",dataIndex:"queryType"},"queryType"),V.jsx(tt,{title:"ClientTags",dataIndex:"clientTags"},"clientTags"),V.jsx(tt,{title:"SelectorResourceEstimate",dataIndex:"selectorResourceEstimate"},"selectorResourceEstimate"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:600,height:600,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Bvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Hvt({useSchema:u,data:h,oldData:s}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.resourceGroupId,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"priority",label:"Priority",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.priority,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"userRegex",label:"UserRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.userRegex}),V.jsx(Ze.Input,{field:"sourceRegex",label:"SourceRegex",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.sourceRegex}),V.jsx(Ze.Input,{field:"queryType",label:"QueryType",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.queryType}),V.jsx(Ze.Input,{field:"clientTags",label:"ClientTags",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.clientTags}),V.jsx(Ze.Input,{field:"selectorResourceEstimate",label:"SelectorResourceEstimate",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.selectorResourceEstimate})]})})]})}const Gvt="_description_1a8jp_1",Yvt="_card_1a8jp_5",sW={description:Gvt,card:Yvt};async function Kvt(n){return Er.post("/webapp/findResourceGroup",n)}async function Zvt(n){return Er.post("/webapp/saveResourceGroup",n)}async function Xvt(n){return Er.post("/webapp/updateResourceGroup",n)}async function qvt(n){return Er.post("/webapp/deleteResourceGroup",n)}function Qvt(){const n=$i(),[e,t]=D.useState(),[r,a]=D.useState(!1),[i,o]=D.useState(),[s,l]=D.useState(),[u,c]=D.useState();D.useEffect(()=>{d()},[]);const d=()=>{Kvt({}).then(h=>{t(h)}).catch(()=>{})},f=(h,p)=>V.jsxs(Pc,{size:"default",children:[V.jsx(Jt,{onClick:()=>{l(p),a(!0)},children:ve.UI.Edit}),V.jsx(nv,{title:ve.UI.DeleteTitle,content:ve.UI.DeleteContent,position:"bottomRight",onConfirm:()=>{qvt({useSchema:u,data:{resourceGroupId:p.resourceGroupId}}).then(g=>{console.log(g),d()}).catch(()=>{})},children:V.jsx(Jt,{children:ve.UI.Delete})})]});return V.jsxs(V.Fragment,{children:[V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsx(Ze,{labelPosition:"left",render:()=>V.jsx(V.Fragment,{children:V.jsx(Ze.Select,{field:"useSchema",label:"UseSchema",style:{width:200},showClear:!0,allowCreate:!0,filter:!0})}),layout:"horizontal",onValueChange:h=>c(h.useSchema)})}),V.jsx(Gs,{bordered:!1,className:sW.card,bodyStyle:{padding:"10px"},children:V.jsxs(mx,{dataSource:e,pagination:!1,rowKey:"resourceGroupId",children:[V.jsx(tt,{title:"ResourceGroupId",dataIndex:"resourceGroupId"},"resourceGroupId"),V.jsx(tt,{title:"Name",dataIndex:"name"},"name"),V.jsx(tt,{title:"Parent",dataIndex:"parent"},"parent"),V.jsx(tt,{title:"jmxExport",dataIndex:"jmxExport"},"jmxExport"),V.jsx(tt,{title:"SchedulingPolicy",dataIndex:"schedulingPolicy"},"schedulingPolicy"),V.jsx(tt,{title:"SchedulingWeight",dataIndex:"schedulingWeight"},"schedulingWeight"),V.jsx(tt,{title:"SoftMemoryLimit",dataIndex:"softMemoryLimit"},"softMemoryLimit"),V.jsx(tt,{title:"MaxQueued",dataIndex:"maxQueued"},"maxQueued"),V.jsx(tt,{title:"HardConcurrencyLimit",dataIndex:"hardConcurrencyLimit"},"hardConcurrencyLimit"),V.jsx(tt,{title:"SoftConcurrencyLimit",dataIndex:"softConcurrencyLimit"},"softConcurrencyLimit"),V.jsx(tt,{title:"SoftCpuLimit",dataIndex:"softCpuLimit"},"softCpuLimit"),V.jsx(tt,{title:"HardCpuLimit",dataIndex:"hardCpuLimit"},"hardCpuLimit"),V.jsx(tt,{title:"Environment",dataIndex:"environment"},"environment"),n.hasRole(av.ADMIN)&&V.jsx(tt,{title:V.jsx(V.Fragment,{children:V.jsx(Pc,{size:"default",children:V.jsx(Jt,{onClick:()=>{l(void 0),a(!0)},children:ve.UI.Create})})}),dataIndex:"operate",fixed:"right",render:f},"operate")]})}),V.jsx(u0,{title:s===void 0?ve.UI.Create:ve.UI.Edit,visible:r,onOk:()=>{i==null||i.submitForm()},onCancel:()=>{a(!1)},centered:!0,width:700,height:700,bodyStyle:{overflow:"auto"},children:V.jsxs(Ze,{labelPosition:"left",labelAlign:"left",labelWidth:200,style:{paddingRight:"20px"},onSubmit:h=>{s===void 0?Zvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{}):Xvt({useSchema:u,data:h}).then(p=>{console.log(p),d(),a(!1)}).catch(()=>{})},getFormApi:o,children:[s!==void 0&&V.jsx(Ze.InputNumber,{field:"resourceGroupId",label:"ResourceGroupId",disabled:!0,hideButtons:!0,initValue:s==null?void 0:s.resourceGroupId}),V.jsx(Ze.Input,{field:"name",label:"Name",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.name}),V.jsx(Ze.InputNumber,{field:"parent",label:"Parent",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.parent,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"jmxExport",label:"jmxExport",trigger:"blur",rules:[{type:"boolean",message:"type error"}],initValue:s==null?void 0:s.jmxExport}),V.jsx(Ze.Input,{field:"schedulingPolicy",label:"SchedulingPolicy",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.schedulingPolicy}),V.jsx(Ze.InputNumber,{field:"schedulingWeight",label:"SchedulingWeight",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.schedulingWeight,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softMemoryLimit",label:"SoftMemoryLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"string",message:"type error"}],initValue:s==null?void 0:s.softMemoryLimit}),V.jsx(Ze.InputNumber,{field:"maxQueued",label:"MaxQueued",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.maxQueued,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"hardConcurrencyLimit",label:"HardConcurrencyLimit",trigger:"blur",rules:[{required:!0,message:"required error"},{type:"number",message:"type error"}],initValue:s==null?void 0:s.hardConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.InputNumber,{field:"softConcurrencyLimit",label:"SoftConcurrencyLimit",trigger:"blur",rules:[{type:"number",message:"type error"}],initValue:s==null?void 0:s.softConcurrencyLimit,hideButtons:!0,formatter:h=>`${h}`.replace(/\D/g,""),min:0,max:Number.MAX_SAFE_INTEGER}),V.jsx(Ze.Input,{field:"softCpuLimit",label:"SoftCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.softCpuLimit}),V.jsx(Ze.Input,{field:"hardCpuLimit",label:"HardCpuLimit",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.hardCpuLimit}),V.jsx(Ze.Input,{field:"environment",label:"Environment",trigger:"blur",rules:[{type:"string",message:"type error"}],initValue:s==null?void 0:s.environment})]})})]})}const tR=[{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(QF,{className:Ot.icon}),roles:[],routeProps:{path:"/",element:V.jsx(ice,{to:"/dashboard"})}},{itemKey:"dashboard",text:ve.Menu.Sider.Dashboard,icon:V.jsx(QF,{className:Ot.icon}),roles:[],routeProps:{path:"/dashboard",element:V.jsx(xft,{})}},{itemKey:"cluster",text:ve.Menu.Sider.Cluster,icon:V.jsx(Gje,{className:Ot.icon}),roles:[],routeProps:{path:"/cluster",element:V.jsx(Mft,{})}},{itemKey:"resource-group",text:ve.Menu.Sider.ResourceGroup,icon:V.jsx(Uje,{className:Ot.icon}),roles:[],routeProps:{path:"/resource-group",element:V.jsx(Qvt,{})}},{itemKey:"selector",text:ve.Menu.Sider.Selector,icon:V.jsx(Kje,{className:Ot.icon}),roles:[],routeProps:{path:"/selector",element:V.jsx(Wvt,{})}},{itemKey:"history",text:ve.Menu.Sider.History,icon:V.jsx(Bje,{className:Ot.icon}),roles:[],routeProps:{path:"/history",element:V.jsx($vt,{})}}],e6=tR.reduce((n,e)=>(e.itemKey&&e.routeProps&&e.routeProps.path&&(n[e.itemKey]=e,n[e.routeProps.path]=e),n),{});function nR(n,e){let t=!0;return n.items==null?(n.roles.length!=0&&(t=n.roles.some(r=>e.hasRole(r))),t&&n.itemKey!=null&&(t=e.hasPermission(n.itemKey.toString()))):(n.items=n.items.filter(r=>{let a=!0;return r.roles.length!=0&&(a=r.roles.some(i=>e.hasRole(i))),a&&r.itemKey!=null&&(a=e.hasPermission(r.itemKey.toString())),a}),t=n.items.length!=0),t}const Jvt=n=>{const e=$i(),t=jQ(),r=Mg(),{Header:a,Sider:i,Content:o}=jl,[s,l]=D.useState(!1),[u,c]=D.useState(r.pathname.substring(r.pathname.lastIndexOf("/")+1)),[d,f]=D.useState(!1);D.useEffect(()=>{const m=e6[r.pathname];m&&m.itemKey!=null&&u!==m.itemKey&&c(m.itemKey)},[r]);const h=()=>{dje({}).then(m=>{console.log(m),e.updateToken(""),Es.success(ve.Auth.LogoutSuccess)}).catch(()=>{})},p=t.theme;function g(){const m=[Fd.Auto,Fd.Light,Fd.Dark],b=(m.indexOf(p)+1)%m.length,_=m[b];t.update(S=>S.theme=_)}return V.jsxs(V.Fragment,{children:[V.jsxs(jl,{children:[V.jsx(a,{className:Ot.header,children:V.jsx(w5,{mode:"horizontal",header:{logo:V.jsx("img",{src:"/logo.svg",className:Ot.navigationHeaderLogo}),text:"Trino Gateway"},footer:V.jsxs("div",{className:Ot.dIV,children:[V.jsx(Jt,{icon:p===Fd.Auto?V.jsx(y5e,{className:Ot.semiIconsBell}):p===Fd.Light?V.jsx(V5e,{className:Ot.semiIconsBell}):p===Fd.Dark?V.jsx(S5e,{className:Ot.semiIconsBell}):null,"aria-label":"Switch Theme",onClick:g}),V.jsx(Jt,{icon:V.jsx(i5e,{className:Ot.semiIconsBell}),"aria-label":"GitHub",onClick:()=>window.open("https://github.com/trinodb/trino-gateway","_blank")}),V.jsx(Vs,{position:"bottomRight",render:V.jsxs(Vs.Menu,{children:[V.jsx(Vs.Item,{onClick:()=>{f(!0)},children:ve.Menu.Header.PersonalCenter}),V.jsx(Vs.Item,{onClick:h,children:ve.Menu.Header.Logout})]}),children:V.jsx(cg,{size:"small",src:e.avatar||t.avatar,color:"blue",className:Ot.avatar,children:e.nickName})})]}),className:Ot.nav})}),V.jsxs(jl,{hasSider:!0,children:[V.jsx(i,{className:Ot.sider,children:V.jsx(w5,{defaultSelectedKeys:[u],selectedKeys:[u],onSelect:m=>{c(m.itemKey.toString())},mode:"vertical",className:Ot.nav,isCollapsed:s,onCollapseChange:m=>{console.log(m)},renderWrapper:({itemElement:m,props:y})=>y.routeProps?V.jsx(vce,{style:{textDecoration:"none"},to:y.routeProps.path,children:m}):m,items:tR.filter(m=>nR(m,e)),children:V.jsx(w5.Footer,{style:{padding:0},children:s?V.jsx("div",{className:Ot.collapsed,style:{justifyContent:"center"},onClick:()=>l(!1),children:V.jsx(yZ,{})}):V.jsx("div",{className:Ot.collapsed,style:{justifyContent:"flex-end"},onClick:()=>l(!0),children:V.jsx(mZ,{style:{paddingRight:"12px"}})})})})}),V.jsx(o,{className:Ot.content,style:{marginLeft:s?"60px":"240px"},children:n.children})]})]}),V.jsx(u0,{visible:d,hasCancel:!1,onCancel:()=>f(!1),width:400,height:400,closable:!1,footer:V.jsx(V.Fragment,{}),children:V.jsxs("div",{className:Ot.userProfile,children:[V.jsxs("div",{className:Ot.banner,children:[V.jsx("div",{className:Ot.frame4159,children:V.jsx(cg,{size:"large",src:e.avatar||t.avatar,color:"blue",className:Ot.avatar,children:e.userName})}),V.jsx("div",{className:Ot.name,children:V.jsx("p",{className:Ot.richardHendricks,children:e.userName})})]}),V.jsxs("div",{className:Ot.main,children:[V.jsx("div",{className:Ot.descriptions,children:V.jsxs("div",{className:Ot.frame4152,children:[V.jsx(h5e,{className:Ot.semiIconsMapPin}),V.jsx("p",{className:Ot.value,children:e.userId})]})}),V.jsx("div",{className:Ot.tags,children:e.roles.map(m=>V.jsx(ca,{size:"large",color:m.toUpperCase()=="ADMIN"?"orange":"blue",className:Ot.tag2,children:m},m))})]})]})})]})};var emt=Object.defineProperty,lW=Object.getOwnPropertySymbols,tmt=Object.prototype.hasOwnProperty,nmt=Object.prototype.propertyIsEnumerable,uW=(n,e,t)=>e in n?emt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,rmt=(n,e)=>{for(var t in e||(e={}))tmt.call(e,t)&&uW(n,t,e[t]);if(lW)for(var t of lW(e))nmt.call(e,t)&&uW(n,t,e[t]);return n};function amt(n){return D.createElement("svg",rmt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M93.6219 21.1536C86.081 21.1536 78.9257 22.8041 72.4973 25.7635C66.1796 21.0262 58.3307 18.2197 49.8264 18.2197C28.9355 18.2197 12 35.1552 12 56.0462C12 62.5685 13.6508 68.7054 16.5573 74.0616C8.22286 81.7264 3 92.7223 3 104.938C3 128.1 21.7763 146.876 44.938 146.876C44.9815 146.876 45.025 146.876 45.0685 146.876L45.1298 146.876C53.7697 174.196 79.3221 194 109.5 194C129.464 194 147.404 185.333 159.762 171.556C160.233 171.574 160.706 171.583 161.182 171.583C181.164 171.583 197.364 155.384 197.364 135.402C197.364 121.244 189.232 108.985 177.385 103.042C179.822 98.3438 181.198 93.0077 181.198 87.3499C181.198 68.5026 165.92 53.2239 147.072 53.2239C144.971 53.2239 142.913 53.4139 140.917 53.7776C133.676 34.7074 115.232 21.1536 93.6219 21.1536Z",fill:"var(--semi-color-primary)",fillOpacity:.2}),D.createElement("path",{d:"M32 33.7198C35.2 25.7198 39.8333 21.5531 42.5 19.7198C43.8169 18.7198 56.5 8.2198 83.5 6.21977C110.929 4.18794 115 16.7198 116 24.2198C117 31.7198 105.5 45.7198 102 47.7198C105.5 50.7198 125 71.7198 130 78.2198C135 84.7198 167.5 107.22 168 111.72C171 109.72 172 110.72 173 113.72C173.5 110.72 177.5 110.22 178 113.72C183 108.22 183 111.72 184 113.72C187 110.22 190.5 115.72 187 120.72C183.5 125.72 184 132.22 184 135.72C184 136.876 183.891 139.122 183.475 141.649C181.405 140.21 175.696 139.522 173 145.482C168.912 143.626 165.394 145.217 163 149.72C162 149.053 159.3 146.62 156.5 142.22C153 136.72 139.5 119.22 127 107.22C114.5 95.2198 107.5 91.2198 110 97.7198C112.5 104.22 135 131.72 137 134.22C139 133.02 140.167 134.72 140.5 135.72C141 133.386 142.8 129.32 146 131.72C149.2 134.12 147 138.72 145.5 140.72C145.333 143.553 145.1 149.72 145.5 151.72C145.658 152.509 146.164 153.746 146.642 155.196C146.278 155.763 146 156.324 145.5 158.092C143.777 157.488 140.197 157.445 136.618 159.472C135.583 156.497 132.765 153.885 128.123 153.65C123.466 153.65 120.921 156.324 119.326 159.127C118.636 157.488 116.221 156.108 114.668 155.763C117.256 146.966 113.179 142.272 111.822 140.843C111.028 140.006 106.346 135.72 101.041 135.72C96.9136 129.88 91.5207 122.542 88.5 119.22C84.5 114.82 74.5 97.3864 70 89.2198C69.5 89.8864 68.4 91.7198 68 93.7198C67.8017 94.7114 66.9739 97.1192 64.9551 99.6324C61.8845 103.455 48.4726 97.4973 37.9143 97.1956C27.6662 96.9028 29.9369 94.5157 24.4536 96.5308C21.5162 92.0506 19.8288 86.4357 19 80.2198C17 65.2198 31 53.2198 34 50.2198C33.6 48.2198 33.8333 45.0531 34 43.7198C33.3333 45.0531 31.8 47.7198 31 47.7198C30 47.7198 28 43.7198 32 33.7198Z",fill:"#C6CACD"}),D.createElement("path",{d:"M46.6248 70.3492C36.8007 59.4335 27.6739 60.0399 24.3386 61.7076C27.0675 54.8853 45.2603 41.2407 51.6278 39.4214C56.7466 37.9589 65.2725 35.328 68.0014 32.1442C70.7303 28.9605 79.8268 23.0478 87.5587 19.864C97.5648 17.1351 106.206 20.3189 114.393 30.7798C109.845 42.6051 104.387 45.7889 102.113 48.063C104.842 49.4274 113.938 58.5238 123.035 70.3492C91.6521 66.2558 75.7334 102.187 74.8237 99.003C73.9141 95.8192 69.8207 91.271 69.8207 88.9969C69.8207 86.7228 73.0044 83.0842 77.5527 77.6263C82.1009 72.1685 89.378 70.3492 91.6521 69.4396C93.9262 68.5299 95.7455 68.0751 96.2003 66.2558C96.5642 64.8004 94.6843 64.1333 93.4714 63.9817C94.5326 63.8301 96.6551 62.9811 96.6551 60.798C96.6551 58.6692 94.2046 59.2505 93.0986 59.4213C93.0675 59.4294 93.0399 59.4335 93.0166 59.4335C93.043 59.4297 93.0704 59.4256 93.0986 59.4213C93.675 59.2713 95.4908 57.7598 94.8359 55.7949C94.381 54.4305 92.4101 54.2789 91.1973 54.4305C91.9553 54.1273 92.9256 52.5202 92.5618 50.3371C92.1979 48.1539 88.62 47.7597 86.6491 48.063C88.3168 47.0017 90.3786 44.6063 87.1039 43.5148C83.0105 42.1503 72.0094 45.9344 62.0887 53.5208C54.3568 59.4335 50.8698 65.4978 50.2634 68.5299C49.6569 68.0751 48.0802 67.8022 46.6248 70.3492Z",fill:"#888D92"}),D.createElement("path",{d:"M113 15.2197H53.5L46 17.7197L42 20.7197L71.5 26.2197L88 19.7197C88 19.7197 97.5 17.2197 105 22.2197C112.5 27.2197 114.5 30.7197 114.5 30.7197L116 24.7197L113 15.2197Z",fill:"#C6CACD"}),D.createElement("path",{d:"M77.3936 24.8497C73.242 27.1769 68.98 30.2362 66.4641 34.0864C62.4821 34.7223 57.1261 36.4703 51.4079 39.2442C48.5311 44.6436 47.6441 51.1229 46.0677 50.4936C45.3737 50.2166 45.2141 48.695 45.2889 46.9557C44.2512 51.5543 42.7403 55.2107 41.7417 52.2207C41.2327 50.6968 41.5887 47.5128 42.1051 44.5437C42.049 44.5807 41.9928 44.6179 41.9367 44.6552C40.9605 50.8172 40.2314 57.7366 38.2809 52.2207C37.7962 50.8501 37.6283 49.2989 37.6588 47.7103C37.2926 47.9914 36.9283 48.2765 36.566 48.5656C35.9537 51.426 35.3375 52.959 34.3874 50.4936C34.3761 50.4643 34.365 50.4347 34.354 50.4049C30.3972 53.8346 26.7776 57.7611 23.8837 62.1514C13.0686 78.5586 21.8419 99.9136 34.3874 105.095C46.9329 110.276 64.2371 106.624 68.1305 93.6705C68.4443 92.6267 68.7889 91.6193 69.1607 90.6481C69.3677 90.1072 69.5831 89.5775 69.8063 89.0591C74.1543 78.9571 81.4359 73.1065 86.7325 71.2185C92.7889 69.0597 98.8454 66.9008 94.952 64.742C94.3806 64.4252 93.7348 64.2571 93.0445 64.2038C91.8033 64.7968 90.2666 65.4997 88.4629 66.4691C82.839 69.4914 81.1086 69.0597 82.4065 68.1961C83.5138 67.4593 89.0306 63.8934 93.0445 64.2038C95.6732 62.9477 96.9762 62.184 96.6824 60.4243C96.5207 59.4562 95.03 59.091 93.0455 59.1486C91.3546 60.3796 88.9035 61.4078 87.1651 62.1514C84.1369 63.4467 79.3782 64.742 82.8391 62.1514C85.0066 60.5288 89.7195 59.2451 93.0455 59.1486C94.3002 58.2352 95.1362 57.2101 94.952 56.1066C94.7373 54.821 93.3507 54.067 91.3737 53.8975C89.4251 55.9304 85.8054 57.6486 82.4065 58.2654C77.6478 59.129 78.9456 57.4019 84.1369 55.2431C86.7519 54.1556 89.367 53.7254 91.3737 53.8975C92.1532 53.0843 92.6653 52.2207 92.7889 51.3571C93.1124 49.0976 90.7761 47.8033 86.5033 48.196C84.3999 50.1138 81.1759 52.0949 78.9456 53.0842C75.0522 54.8113 74.187 51.3571 81.5412 49.1983C83.3975 48.6534 85.0608 48.3286 86.5033 48.196C88.0719 46.7659 89.0173 45.371 88.4629 44.4488C87.1651 42.29 83.3356 42.9201 75.5488 45.9425C68.3439 48.739 55.9542 55.062 50.3729 67.9619C49.9221 69.004 49.5156 70.089 49.1599 71.2185C44.4013 86.3304 40.0113 81.581 41.7417 76.3997C42.9654 72.7358 46.3524 69.7196 50.3729 67.9619C55.9542 55.062 68.3439 48.739 75.5488 45.9425C83.3356 42.9201 87.1651 42.29 88.4629 44.4488C89.0173 45.371 88.0719 46.7659 86.5033 48.196C90.7761 47.8033 93.1124 49.0976 92.7889 51.3571C92.6653 52.2207 92.1532 53.0843 91.3737 53.8975C93.3507 54.067 94.7373 54.821 94.952 56.1066C95.1362 57.2101 94.3002 58.2352 93.0455 59.1486C95.03 59.091 96.5207 59.4562 96.6824 60.4243C96.9762 62.184 95.6732 62.9477 93.0445 64.2038C93.7348 64.2571 94.3806 64.4252 94.952 64.742C98.8454 66.9008 92.7889 69.0597 86.7325 71.2185C81.4359 73.1065 74.1543 78.9571 69.8063 89.0591C69.5831 89.5775 69.3677 90.1072 69.1607 90.6481C68.7889 91.6193 68.4443 92.6267 68.1305 93.6705C64.2371 106.624 46.9329 110.276 34.3874 105.095C21.8419 99.9136 13.0686 78.5586 23.8837 62.1514C26.7776 57.7611 30.3972 53.8346 34.354 50.4049C35.0808 49.775 35.8189 49.1618 36.566 48.5656C37.3478 44.9137 38.1231 39.0982 39.5787 36.677C41.6896 33.1655 37.7919 40.7916 37.6588 47.7103C39.063 46.6325 40.4941 45.6137 41.9367 44.6552C42.2596 42.6174 42.6095 40.6625 43.0395 39.2676C44.0913 35.8558 42.9055 39.9417 42.1051 44.5437C43.3654 43.7109 44.6341 42.9241 45.9007 42.1842C46.147 41.0016 46.3337 40.6081 46.1599 42.0335C47.9237 41.0119 49.6823 40.0813 51.4079 39.2442C52.4786 37.2346 53.8249 35.3746 55.585 34.0864C60.6449 30.383 68.598 26.417 77.3936 24.8497Z",fill:"#C6CACD"}),D.createElement("path",{d:"M140.808 138.575C140.781 138.059 140.778 137.573 140.796 137.115C140.444 135.103 138.944 132.569 136.915 134.257C136.248 134.811 135.81 135.564 135.534 136.385C135.787 136.785 135.97 137.233 136.049 137.711C136.482 140.302 136.049 142.46 135.617 142.029C135.295 141.708 134.735 138.763 135.534 136.385C134.414 134.616 131.917 133.791 130.858 135.552C130.45 136.23 130.171 137.164 130.019 138.18C130.295 138.384 130.577 138.655 130.858 139.006C132.589 141.165 132.156 145.915 130.858 144.188C129.968 143.003 129.688 140.397 130.019 138.18C128.599 137.128 127.327 137.851 126.965 138.575C126.721 139.06 126.067 140.365 125.927 142.029C128.007 144.142 128.604 148.964 126.965 146.346C126.018 144.835 125.817 143.324 125.927 142.029C126.067 140.365 126.721 139.06 126.965 138.575C127.327 137.851 128.599 137.128 130.019 138.18C130.171 137.164 130.45 136.23 130.858 135.552C131.917 133.791 134.414 134.616 135.534 136.385C135.81 135.564 136.248 134.811 136.915 134.257C138.944 132.569 140.444 135.103 140.796 137.115C140.894 137.677 140.902 138.198 140.808 138.575Z",fill:"#C6CACD"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M104.498 8.63577C112.589 11.9865 116.65 17.8634 116.65 24.1557C116.65 29.1388 114.278 34.2051 111.372 38.4801C108.601 42.5553 105.306 45.9684 102.978 47.9863C109.147 53.6578 115.524 60.1416 120.011 66.1705C125.596 73.6737 135.178 82.2747 144.645 90.2661C147.455 92.6376 150.256 94.9565 152.936 97.1753C159.258 102.409 164.908 107.087 168.415 110.587L167.709 111.295C164.236 107.829 158.647 103.202 152.347 97.9862C149.658 95.7599 146.839 93.4264 144 91.0302C134.541 83.0461 124.872 74.3764 119.209 66.7676C110.255 54.7371 93.6325 40.8113 86.4303 35.3483L87.0347 34.5515C90.5266 37.2003 96.2418 41.8432 102.236 47.3064C104.508 45.3506 107.793 41.9662 110.545 37.9178C113.407 33.7086 115.65 28.8442 115.65 24.1557C115.65 18.3584 111.924 12.7934 104.116 9.55966C96.2957 6.32087 84.4052 5.44282 68.2409 9.09965C52.1003 12.7511 43.0132 18.9653 37.7987 25.1787C32.5828 31.3939 31.1973 37.6597 30.5546 41.5088C30.2359 43.417 30.2432 44.8901 30.437 45.8697C30.5343 46.3618 30.6727 46.6981 30.8142 46.9017C30.9525 47.1007 31.0601 47.1309 31.1151 47.1338C31.1837 47.1374 31.3373 47.1071 31.5736 46.8851C31.8065 46.6661 32.0744 46.3007 32.3535 45.7532C32.9104 44.6607 33.4669 42.9332 33.8949 40.4771C34.5875 36.5021 35.0966 34.2805 35.4563 33.1182C35.5467 32.8261 35.6302 32.5926 35.7079 32.4108C35.7817 32.238 35.864 32.0786 35.9625 31.9606C36.011 31.9025 36.0912 31.8203 36.2086 31.7668C36.3458 31.7043 36.5238 31.688 36.6947 31.7725C36.8405 31.8447 36.9186 31.9605 36.9562 32.0291C36.9968 32.1033 37.0205 32.1781 37.0355 32.2378L37.0716 32.382L37.023 32.5226C36.3141 34.5746 35.3565 37.9276 34.7837 41.3232C34.4974 43.0206 34.3089 44.7187 34.2933 46.2643C34.281 47.4892 34.3775 48.5983 34.6089 49.5279C35.106 49.1065 35.608 48.6928 36.114 48.2869C36.2866 47.4657 36.4598 46.541 36.6421 45.5673L36.6704 45.4158C36.8757 44.3198 37.0925 43.1688 37.3308 42.0552C37.8022 39.8517 38.3732 37.7119 39.1501 36.4194C39.4072 35.9918 39.5985 35.6889 39.7239 35.5387C39.7528 35.5041 39.8089 35.4392 39.8846 35.3878C39.9195 35.3641 40.0084 35.3082 40.1353 35.2957C40.3004 35.2795 40.4718 35.3434 40.5854 35.4838C40.6725 35.5913 40.6923 35.7035 40.6984 35.7474C40.7059 35.8016 40.7046 35.8487 40.7027 35.879C40.6988 35.9404 40.6875 36.0017 40.6768 36.0515C40.635 36.2464 40.5344 36.5668 40.41 36.9537C40.3788 37.0506 40.3456 37.1533 40.3106 37.2615C40.2013 37.5996 40.0747 37.9915 39.9376 38.4312C39.2871 40.5174 38.4248 43.6115 38.207 46.6688C39.2858 45.8648 40.3781 45.0952 41.4774 44.3605C41.7905 42.4019 42.1354 40.503 42.5617 39.1203C42.6931 38.694 42.7906 38.3815 42.8585 38.1719C42.8922 38.0678 42.9202 37.9844 42.9421 37.9236C42.9528 37.894 42.9643 37.8633 42.976 37.8359C42.9816 37.8226 42.9902 37.8034 43.0011 37.7825C43.0048 37.7755 43.035 37.7146 43.092 37.6563C43.1122 37.6355 43.213 37.5321 43.3842 37.5088C43.488 37.4946 43.6004 37.5127 43.7013 37.5706C43.7946 37.6242 43.8498 37.6952 43.8798 37.7442C43.9336 37.8323 43.9457 37.9142 43.9488 37.9359C43.9537 37.9693 43.9543 37.9967 43.9543 38.0116C43.9544 38.0619 43.9472 38.1094 43.9444 38.1277C43.9365 38.1796 43.9227 38.2496 43.9065 38.3267C43.8733 38.4853 43.8205 38.7197 43.7545 39.0109L43.7264 39.135C43.5026 40.1228 43.1404 41.7212 42.8046 43.4922C43.6875 42.927 44.5731 42.3842 45.4579 41.8642C45.5037 41.656 45.5475 41.4752 45.5872 41.3296C45.6136 41.2331 45.64 41.1454 45.6659 41.0728C45.6788 41.0367 45.6937 40.9982 45.7108 40.9614C45.7244 40.9319 45.7533 40.8722 45.801 40.814C45.824 40.786 45.875 40.7284 45.958 40.6831C46.052 40.6318 46.207 40.5883 46.3791 40.6517C46.5325 40.7082 46.6115 40.8186 46.6439 40.8734C46.6785 40.9321 46.6949 40.9859 46.7027 41.0157C46.7131 41.055 46.7193 41.0961 46.723 41.1357C48.1747 40.3168 49.6201 39.5595 51.0439 38.8653C52.1214 36.8743 53.4888 35.001 55.2897 33.6829C60.3875 29.9517 68.3764 25.9647 77.2227 24.3724C80.5514 22.5128 83.8198 21.1127 86.0321 20.1651C86.7516 19.8569 87.3593 19.5966 87.8211 19.3838L88.2395 20.2921C87.7492 20.518 87.1189 20.788 86.381 21.1041C84.7318 21.8106 82.5452 22.7474 80.1829 23.9359C81.7725 23.754 83.3827 23.6557 85.0021 23.6557V24.6557C82.4906 24.6557 79.9967 24.8983 77.5644 25.3272C73.4586 27.6368 69.3171 30.6342 66.8827 34.3599L66.7616 34.5452L66.5429 34.5801C62.6562 35.2008 57.4056 36.9051 51.7733 39.6229C50.599 41.8623 49.7657 44.2766 49.0664 46.3028C48.9481 46.6457 48.8336 46.9774 48.7219 47.2954C48.3354 48.3956 47.9725 49.3606 47.5952 50.0114C47.4081 50.334 47.1892 50.6311 46.92 50.8209C46.6221 51.0311 46.2591 51.1084 45.8824 50.958C45.5622 50.8302 45.3463 50.5752 45.2016 50.3039C45.1362 50.1813 45.081 50.0475 45.0342 49.906C44.6881 51.0395 44.3154 52.0106 43.9356 52.6805C43.7659 52.9798 43.5802 53.2458 43.3753 53.4423C43.1751 53.6341 42.8999 53.8126 42.5615 53.806C42.2079 53.7991 41.9366 53.5947 41.7448 53.35C41.5552 53.1082 41.4004 52.7771 41.2674 52.3791C41.2368 52.2873 41.209 52.1909 41.1841 52.0904C41.1092 52.4072 41.0322 52.6994 40.9527 52.962C40.8118 53.4276 40.6515 53.841 40.4595 54.1436C40.2846 54.4192 39.9722 54.7712 39.495 54.7303C39.0613 54.6931 38.7537 54.3413 38.5365 54.001C38.2976 53.6269 38.0579 53.09 37.8095 52.3874C37.4062 51.247 37.2148 50.0005 37.1674 48.7266C37.1173 48.7662 37.0671 48.8059 37.0171 48.8456C36.875 49.496 36.7302 50.0835 36.5781 50.5695C36.4183 51.0806 36.2318 51.5445 35.9924 51.8409C35.8705 51.9919 35.6893 52.1569 35.4363 52.2104C35.1598 52.2689 34.9156 52.1712 34.7332 52.0275C34.5614 51.8922 34.4192 51.6994 34.2959 51.4862C34.2515 51.4094 34.2073 51.3262 34.1634 51.2364C30.4374 54.5327 27.0391 58.273 24.3012 62.4265C18.9876 70.4877 18.4802 79.7706 20.8543 87.6893C21.7956 90.8288 23.1859 93.7424 24.9004 96.2732C29.3693 95.2295 33.9867 95.1701 38.4889 96.9836C48.1477 100.874 57.7899 107.508 64.5737 99.2909C65.9365 97.6401 66.9927 95.7189 67.6517 93.5266C67.969 92.471 68.3176 91.452 68.6937 90.4694C68.9032 89.9221 69.1212 89.3861 69.347 88.8614C73.7437 78.6463 81.123 72.6872 86.5646 70.7475C89.6154 69.6601 92.5842 68.5991 94.3147 67.5524C94.7424 67.2937 95.0742 67.0474 95.3065 66.8162C95.5422 66.5817 95.6436 66.3946 95.6729 66.257C95.6972 66.1425 95.6831 66.0148 95.5599 65.8446C95.4251 65.6582 95.1644 65.4315 94.7095 65.1792C94.2476 64.9231 93.719 64.773 93.1363 64.7139C92.9526 64.8014 92.7632 64.8911 92.568 64.9836C91.4617 65.5075 90.1715 66.1185 88.6996 66.9095C85.8733 68.4284 83.9767 69.1074 82.9211 69.283C82.6562 69.3271 82.4173 69.3443 82.2175 69.3233C82.0574 69.3066 81.748 69.2484 81.5837 68.9695C81.3895 68.64 81.5641 68.3272 81.6623 68.1953C81.7776 68.0404 81.9463 67.9018 82.1295 67.7798C82.6915 67.4059 84.3713 66.3145 86.4236 65.3543C88.4141 64.4231 90.8351 63.576 92.9469 63.6961C94.2136 63.0884 95.0854 62.6273 95.621 62.1348C95.8864 61.8907 96.0491 61.6558 96.1371 61.4112C96.2247 61.1681 96.2514 60.8793 96.1892 60.5066C96.155 60.3014 95.9718 60.0626 95.3951 59.878C94.8618 59.7074 94.1122 59.6287 93.2116 59.6448C91.5436 60.8245 89.2393 61.8089 87.5727 62.5209C87.5012 62.5514 87.4308 62.5815 87.3617 62.6111C85.8345 63.2643 83.84 63.9324 82.6393 64.1036C82.3424 64.1459 82.0464 64.1655 81.8044 64.1242C81.6841 64.1037 81.5296 64.0606 81.3943 63.9567C81.2386 63.837 81.1359 63.6561 81.1294 63.4416C81.1237 63.2556 81.1919 63.0942 81.2599 62.9756C81.3311 62.8514 81.4286 62.7286 81.5409 62.6079C81.7657 62.366 82.097 62.0822 82.5394 61.7511C83.6944 60.8865 85.482 60.1395 87.3698 59.5971C89.2083 59.0689 91.1928 58.7203 92.8731 58.6542C93.4185 58.2441 93.8468 57.8301 94.1238 57.4193C94.4168 56.9847 94.5242 56.5806 94.4588 56.1889C94.3809 55.7224 94.0921 55.326 93.5675 55.0129C93.0778 54.7206 92.3984 54.5134 91.5622 54.4186C89.4886 56.4685 85.8714 58.1448 82.4957 58.7574C81.3022 58.974 80.4179 59.0435 79.8607 58.9549C79.6045 58.9141 79.2681 58.8186 79.0788 58.5364C78.8481 58.1925 78.9831 57.8318 79.1189 57.6188C79.2592 57.3987 79.4844 57.185 79.7462 56.9812C80.0153 56.7717 80.355 56.5484 80.7559 56.3153C81.5583 55.8487 82.6341 55.3265 83.9449 54.7814C86.5152 53.7125 89.1065 53.2547 91.171 53.3813C91.8154 52.6662 92.1983 51.9546 92.294 51.2863C92.3614 50.8157 92.2879 50.4235 92.1069 50.0974C91.9242 49.7681 91.6111 49.4695 91.1402 49.2262C90.2099 48.7454 88.7247 48.5138 86.7139 48.6795C84.5652 50.6019 81.3766 52.5528 79.1484 53.5413C78.1297 53.9931 77.2286 54.1452 76.5655 53.9972C76.2281 53.9219 75.9137 53.7585 75.7101 53.4737C75.4998 53.1796 75.4581 52.8266 75.5389 52.4837C75.6912 51.8376 76.2826 51.1659 77.2064 50.5443C78.1527 49.9075 79.5281 49.2681 81.4004 48.7185C83.2102 48.1873 84.8481 47.8597 86.2882 47.7144C86.9969 47.0548 87.5363 46.4305 87.8439 45.886C88.1765 45.2973 88.1708 44.9333 88.0344 44.7064C87.5456 43.8934 86.5422 43.4899 84.5022 43.7487C82.4754 44.0058 79.6213 44.8981 75.7297 46.4086C68.7728 49.1088 57.0606 55.0784 51.3453 67.0324C52.6994 66.5346 54.1061 66.1749 55.5145 65.9741L55.6556 66.964C53.9923 67.2012 52.3263 67.6729 50.7539 68.3421C50.3408 69.3129 49.9667 70.3213 49.6369 71.3687C48.4403 75.1687 47.2569 77.754 46.1674 79.4072C45.6226 80.2339 45.0908 80.8436 44.5783 81.2549C44.0673 81.665 43.5471 81.9 43.0357 81.9187C41.9388 81.9588 41.2807 81.0437 41.0175 80.0263C40.7464 78.9782 40.8103 77.6102 41.2674 76.2413C42.5318 72.4557 45.9692 69.3877 49.9925 67.5835C55.6929 54.6141 68.1637 48.2726 75.3679 45.4764C79.2631 43.9645 82.2171 43.0305 84.3763 42.7567C86.5221 42.4845 88.0824 42.8454 88.8914 44.1912C89.3094 44.8865 89.1082 45.6811 88.7145 46.3779C88.4843 46.7855 88.1645 47.2055 87.7826 47.6272C89.3566 47.6088 90.6531 47.8489 91.5993 48.3378C92.2061 48.6514 92.6835 49.0755 92.9813 49.6121C93.2809 50.1519 93.3783 50.7688 93.2839 51.428C93.179 52.1612 92.8389 52.8677 92.345 53.5277C93.003 53.6569 93.5925 53.8633 94.0799 54.1542C94.7965 54.5818 95.3084 55.2052 95.4451 56.0242C95.564 56.7361 95.3455 57.3962 94.9529 57.9784C94.789 58.2214 94.5921 58.4553 94.3703 58.6801C94.8622 58.7222 95.3122 58.8016 95.6999 58.9256C96.4052 59.1513 97.0482 59.579 97.1756 60.3419C97.2603 60.8491 97.2343 61.3157 97.078 61.7499C96.9223 62.1827 96.65 62.5471 96.2978 62.8709C95.8591 63.2743 95.2665 63.6395 94.5548 64.0134C94.7744 64.0937 94.9881 64.1903 95.1944 64.3047C95.7129 64.5921 96.1146 64.9051 96.3702 65.2585C96.6374 65.6279 96.7415 66.04 96.6509 66.4652C96.5653 66.8673 96.3186 67.2199 96.0118 67.5251C95.7017 67.8336 95.2967 68.1271 94.8322 68.4081C93.0043 69.5138 89.9416 70.6054 86.9524 71.6709L86.9004 71.6895C81.7873 73.5121 74.6718 79.1825 70.3622 89.0341C72.0477 92.1258 74.9233 97.3707 78.0157 102.622C81.1865 108.006 84.5656 113.364 87.1164 116.421C91.2111 121.329 96.8426 128.786 101.693 135.569L100.879 136.151C96.0363 129.378 90.4209 121.943 86.3486 117.062C83.7387 113.933 80.3223 108.51 77.154 103.129C74.2765 98.243 71.5875 93.3645 69.8673 90.215C69.7862 90.4173 69.7063 90.6213 69.6276 90.8269C69.2603 91.7866 68.9196 92.7823 68.6094 93.8144C67.934 96.0614 66.8679 98.0334 65.5032 99.7342C59.9373 106.671 48.3659 97.4238 39.7752 96.0707C32.4793 94.9216 27.0555 95.7105 24.0107 96.7419C22.2616 94.1387 20.8515 91.1619 19.8964 87.9764C17.4513 79.8205 17.9648 70.2223 23.4663 61.8762C26.3276 57.5354 29.8868 53.6497 33.7727 50.2482C33.4115 49.0979 33.2786 47.7198 33.2934 46.2542C33.2939 46.2049 33.2945 46.1554 33.2954 46.1058C33.2784 46.1401 33.2614 46.174 33.2444 46.2073C32.9354 46.8135 32.6051 47.2879 32.2584 47.6138C31.9151 47.9365 31.5077 48.1558 31.0626 48.1324C30.6039 48.1083 30.245 47.835 29.993 47.4724C29.7441 47.1143 29.5682 46.631 29.456 46.0638C29.2307 44.9251 29.238 43.3218 29.5682 41.3441C30.2233 37.4213 31.6497 30.95 37.0327 24.5359C42.4169 18.1201 51.7155 11.8129 68.0202 8.1243C84.3012 4.44106 96.4202 5.29009 104.498 8.63577ZM49.4196 68.969C46.0065 70.7308 43.2644 73.4189 42.2159 76.5581C41.8079 77.7798 41.7716 78.9485 41.9857 79.7759C42.2076 80.634 42.6201 80.9333 42.9992 80.9194C43.2258 80.9111 43.5449 80.802 43.9523 80.4751C44.3581 80.1494 44.8236 79.6291 45.3325 78.8569C46.3504 77.3122 47.5003 74.8243 48.683 71.0683C48.9089 70.3511 49.155 69.6514 49.4196 68.969ZM84.8515 48.9243C83.8762 49.096 82.8176 49.3447 81.6821 49.678C79.8773 50.2078 78.6029 50.8099 77.7647 51.3739C76.9041 51.9531 76.5762 52.4418 76.5122 52.7132C76.4849 52.8291 76.5107 52.8741 76.5236 52.8921C76.5429 52.9192 76.6071 52.9819 76.7834 53.0212C77.1477 53.1026 77.8148 53.0388 78.7429 52.6272C80.5048 51.8456 82.9077 50.427 84.8515 48.9243ZM90.1171 54.3667C88.4075 54.4213 86.3755 54.8536 84.3289 55.7047C83.044 56.239 82.0109 56.7423 81.2586 57.1797C80.8822 57.3986 80.5831 57.597 80.3605 57.7703C80.2583 57.8499 80.1778 57.9199 80.1158 57.9798C80.5153 58.0197 81.227 57.9713 82.3172 57.7735C85.1667 57.2564 88.1525 55.9484 90.1171 54.3667ZM90.9753 59.8386C89.8872 59.9962 88.7426 60.2432 87.646 60.5583C85.8039 61.0875 84.1513 61.7937 83.1387 62.5516C82.8359 62.7783 82.6079 62.967 82.442 63.1212C82.4602 63.1189 82.4789 63.1163 82.4981 63.1136C83.5685 62.961 85.4675 62.3337 86.9685 61.6916C87.0257 61.6672 87.0835 61.6424 87.1421 61.6174C88.2992 61.1228 89.7008 60.5238 90.9753 59.8386ZM82.1192 63.4886L82.1182 63.4911C82.1182 63.4911 82.1179 63.4914 82.1192 63.4886ZM90.1878 65.0189C89.0652 65.3088 87.9169 65.7597 86.8474 66.2601C85.4319 66.9224 84.1963 67.651 83.4056 68.1464C84.4076 67.8637 85.9928 67.2289 88.2262 66.0286C88.9197 65.6559 89.5745 65.3221 90.1878 65.0189ZM82.2793 68.3213C82.2793 68.3213 82.2851 68.3219 82.2938 68.325C82.2832 68.3231 82.2793 68.3213 82.2793 68.3213ZM34.9499 50.5513C35.026 50.7301 35.0966 50.8734 35.1615 50.9856C35.2006 51.0532 35.2349 51.1047 35.2637 51.1436C35.3655 50.9856 35.4888 50.7025 35.6237 50.271C35.6614 50.1507 35.6988 50.0225 35.7363 49.8868C35.4728 50.1062 35.2106 50.3276 34.9499 50.5513ZM35.177 51.2523L35.1781 51.2515L35.177 51.2523ZM38.1557 47.9597C38.1468 49.4241 38.3176 50.8249 38.7523 52.054C38.9914 52.7303 39.2012 53.1839 39.3794 53.463C39.4574 53.5852 39.5167 53.6543 39.5555 53.6927C39.5719 53.6723 39.5918 53.6446 39.6152 53.6077C39.7335 53.4214 39.8625 53.112 39.9956 52.6723C40.418 51.2771 40.7677 48.982 41.1393 46.5434C41.1813 46.2673 41.2237 45.9894 41.2665 45.7108C40.2194 46.4287 39.1804 47.1785 38.1557 47.9597ZM42.5611 44.842C42.3206 46.251 42.1218 47.6885 42.0378 48.9572C41.9482 50.3098 41.995 51.4007 42.2159 52.0623C42.3327 52.4118 42.4435 52.6204 42.5318 52.7331C42.5563 52.7644 42.5754 52.7839 42.5888 52.7957C42.6083 52.7843 42.6396 52.7622 42.6833 52.7203C42.7894 52.6187 42.9192 52.4457 43.0657 52.1873C43.6546 51.1486 44.275 49.1675 44.7913 46.889C44.8481 45.6315 45.0225 44.2728 45.2069 43.1772C44.3234 43.7094 43.4403 44.2645 42.5611 44.842ZM45.7866 47.0216C45.7525 47.8595 45.7764 48.6143 45.8817 49.1818C45.9353 49.471 46.0057 49.6866 46.0839 49.8332C46.1619 49.9794 46.2262 50.0185 46.2531 50.0292L46.2582 50.0314C46.2729 50.0381 46.2863 50.0442 46.3436 50.0038C46.4359 49.9387 46.5673 49.7906 46.73 49.5099C47.0523 48.9541 47.3865 48.0798 47.7784 46.964C47.8872 46.6541 47.9998 46.3279 48.1169 45.9884C48.6955 44.3108 49.386 42.3088 50.2971 40.3543C49.0825 40.9718 47.8551 41.6348 46.6247 42.3425C46.6066 42.4797 46.586 42.6295 46.5627 42.7926C46.3635 44.1843 46.0962 45.6435 45.7866 47.0216ZM39.5013 53.7473C39.5013 53.7473 39.5033 53.7456 39.5072 53.7436C39.5033 53.7466 39.5013 53.7473 39.5013 53.7473ZM52.6442 38.1069C57.7437 35.7606 62.4961 34.2435 66.1679 33.6282C68.2222 30.57 71.329 28.0239 74.5716 25.9534C67.03 27.7767 60.3224 31.2386 55.8803 34.4898C54.603 35.4247 53.5423 36.6857 52.6442 38.1069ZM143.518 130.857C145.272 130.209 147.091 131.199 147.771 133.235C148.34 134.937 148.055 136.681 147.505 138.136C146.992 139.494 146.232 140.644 145.634 141.352V148.073C145.634 148.723 145.821 149.703 146.109 150.962C146.208 151.396 146.319 151.862 146.436 152.352C146.65 153.252 146.884 154.233 147.101 155.252L146.123 155.461C145.908 154.451 145.68 153.495 145.468 152.604C145.35 152.11 145.237 151.636 145.134 151.184C144.851 149.945 144.634 148.855 144.634 148.073V140.975L144.761 140.833C145.301 140.226 146.067 139.112 146.57 137.782C147.073 136.452 147.293 134.958 146.823 133.552C146.287 131.946 144.99 131.379 143.864 131.795C142.704 132.223 141.439 133.795 141.297 137.083C141.393 137.661 141.408 138.238 141.293 138.696L140.309 138.601C140.282 138.092 140.278 137.608 140.294 137.15C140.122 136.217 139.695 135.217 139.13 134.652C138.85 134.371 138.567 134.227 138.291 134.207C138.021 134.187 137.67 134.279 137.234 134.641C136.712 135.075 136.339 135.662 136.084 136.333C136.304 136.728 136.465 137.164 136.543 137.629C136.766 138.968 136.769 140.205 136.653 141.069C136.597 141.49 136.507 141.87 136.371 142.131C136.311 142.248 136.192 142.438 135.977 142.532C135.853 142.586 135.71 142.601 135.567 142.562C135.433 142.526 135.333 142.452 135.264 142.383C135.142 142.262 135.068 142.092 135.021 141.971C134.966 141.828 134.915 141.655 134.869 141.462C134.777 141.074 134.698 140.575 134.656 140.016C134.578 138.971 134.625 137.673 134.984 136.465C134.486 135.781 133.757 135.293 133.061 135.132C132.326 134.962 131.68 135.155 131.287 135.81C130.96 136.352 130.712 137.108 130.56 137.972C130.792 138.172 131.022 138.412 131.248 138.694C132.217 139.902 132.55 141.767 132.493 143.076C132.479 143.411 132.438 143.726 132.37 143.998C132.304 144.261 132.201 144.528 132.034 144.73C131.85 144.95 131.553 145.122 131.187 145.036C130.882 144.964 130.643 144.734 130.458 144.488C129.936 143.793 129.629 142.744 129.485 141.635C129.352 140.613 129.351 139.485 129.482 138.422C128.984 138.13 128.551 138.11 128.22 138.196C127.814 138.301 127.526 138.571 127.412 138.798C127.184 139.253 126.614 140.394 126.447 141.853C127.484 143.008 128.128 144.728 128.333 145.874C128.387 146.179 128.415 146.468 128.405 146.71C128.399 146.831 128.384 146.957 128.348 147.075C128.314 147.187 128.247 147.342 128.104 147.459C127.938 147.596 127.734 147.631 127.547 147.589C127.385 147.553 127.252 147.464 127.155 147.382C126.957 147.216 126.754 146.952 126.541 146.612C125.585 145.086 125.339 143.555 125.412 142.228C124.863 141.732 124.265 141.508 123.612 141.653C122.764 141.841 122.306 142.244 122.065 142.725C121.812 143.229 121.762 143.893 121.888 144.645C122.141 146.159 123.064 147.792 123.857 148.583L124.004 148.73V148.937C124.004 149.284 123.997 149.678 123.989 150.106C123.964 151.449 123.932 153.138 124.099 154.839L123.104 154.936C122.93 153.171 122.964 151.392 122.989 150.044C122.995 149.714 123.001 149.409 123.003 149.137C122.108 148.165 121.175 146.444 120.902 144.81C120.757 143.943 120.788 143.041 121.171 142.277C121.565 141.49 122.297 140.921 123.396 140.677C124.213 140.496 124.94 140.692 125.555 141.083C125.81 139.764 126.311 138.764 126.516 138.355L126.518 138.351C126.766 137.855 127.295 137.402 127.97 137.228C128.481 137.096 129.06 137.126 129.655 137.389C129.825 136.605 130.08 135.876 130.43 135.295C131.094 134.188 132.227 133.913 133.286 134.158C134.053 134.335 134.807 134.784 135.4 135.406C135.689 134.832 136.078 134.303 136.595 133.872C137.174 133.391 137.771 133.166 138.364 133.21C138.951 133.253 139.446 133.552 139.838 133.945C140.118 134.226 140.361 134.568 140.566 134.942C141.068 132.716 142.19 131.347 143.518 130.857ZM127.34 146.002C126.85 145.196 126.586 144.394 126.471 143.629C126.911 144.43 127.211 145.319 127.34 146.002ZM130.409 139.247C130.361 140.012 130.384 140.791 130.477 141.506C130.612 142.551 130.89 143.397 131.258 143.887C131.284 143.922 131.308 143.951 131.329 143.974C131.351 143.92 131.376 143.848 131.4 143.754C131.448 143.563 131.482 143.318 131.494 143.032C131.545 141.859 131.23 140.269 130.468 139.319C130.448 139.295 130.429 139.271 130.409 139.247ZM135.648 138.449C135.612 138.968 135.619 139.477 135.654 139.941C135.668 140.128 135.686 140.306 135.708 140.473C135.746 139.909 135.735 139.211 135.648 138.449Z",fill:"#1C1F23"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M126.951 107.076C135.241 115.112 145.151 125.801 152.994 135.993C153.867 137.127 154.776 138.428 155.717 139.776C156.415 140.775 157.131 141.801 157.863 142.802C159.605 145.184 161.484 147.498 163.594 149.284L162.948 150.047C160.746 148.183 158.811 145.792 157.056 143.392C156.291 142.346 155.568 141.31 154.87 140.311C153.948 138.989 153.071 137.732 152.202 136.603C144.394 126.458 134.519 115.805 126.255 107.794C122.123 103.788 118.401 100.45 115.547 98.1689C114.119 97.0271 112.919 96.1592 112.001 95.6054C111.54 95.3277 111.166 95.1383 110.878 95.0312C110.735 94.9777 110.625 94.9493 110.545 94.9377C110.474 94.9275 110.446 94.933 110.445 94.933C110.278 94.9849 110.193 95.0727 110.141 95.2161C110.077 95.3906 110.057 95.6755 110.134 96.1037C110.287 96.9573 110.782 98.1614 111.58 99.6545C113.167 102.625 115.858 106.568 119.007 110.808C125.298 119.279 133.356 128.856 137.877 134.037L137.123 134.695C132.594 129.504 124.517 119.905 118.204 111.404C115.05 107.157 112.321 103.165 110.698 100.126C109.89 98.6144 109.332 97.2956 109.15 96.28C109.059 95.7735 109.051 95.2872 109.2 94.8755C109.361 94.4332 109.688 94.1197 110.153 93.9766C110.493 93.8719 110.884 93.9662 111.227 94.094C111.597 94.2319 112.032 94.4564 112.517 94.7491C113.49 95.336 114.729 96.235 116.171 97.3878C119.059 99.696 122.806 103.058 126.951 107.076ZM160.326 110.992C160.935 110.23 161.773 109.764 162.804 109.764C163.854 109.764 164.709 110.302 165.357 111.053C165.721 111.474 166.03 111.971 166.285 112.504C166.864 111.786 167.631 111.147 168.628 110.686C169.641 110.218 170.513 110.109 171.241 110.351C171.976 110.594 172.456 111.159 172.759 111.804C172.855 112.009 172.936 112.228 173.004 112.455C173.518 111.479 174.377 110.64 175.733 110.64C176.501 110.64 177.093 110.975 177.516 111.496C177.878 111.941 178.11 112.513 178.259 113.109C178.826 111.912 179.767 110.835 181.272 110.644C182.107 110.538 182.768 110.787 183.226 111.315C183.656 111.811 183.858 112.498 183.942 113.19C184.271 112.752 184.699 112.384 185.246 112.264C185.911 112.117 186.594 112.369 187.266 112.954C188.681 114.188 188.754 116.035 188.384 117.681C188.014 119.324 187.176 120.922 186.509 121.909C185.67 123.632 184.084 128.249 184.419 133.016C184.576 135.241 184.49 138.464 183.799 141.7L182.821 141.491C183.489 138.361 183.573 135.232 183.422 133.086C183.069 128.066 184.738 123.244 185.627 121.437L185.642 121.405L185.662 121.376C186.285 120.462 187.07 118.964 187.408 117.461C187.749 115.945 187.607 114.578 186.609 113.708C186.074 113.242 185.704 113.187 185.461 113.24C185.194 113.299 184.906 113.524 184.62 113.965C184.301 114.457 184.05 115.118 183.866 115.793C183.781 116.385 183.663 116.942 183.542 117.402L182.563 117.21C182.626 116.732 182.73 116.167 182.884 115.592C182.99 114.825 183.035 114.014 182.95 113.315C182.876 112.705 182.712 112.248 182.471 111.97C182.257 111.724 181.942 111.567 181.398 111.636C180.281 111.778 179.527 112.635 179.039 113.818C178.776 114.455 178.607 115.15 178.507 115.798C178.493 116.37 178.444 116.905 178.382 117.345L177.387 117.275C177.387 116.836 177.422 116.294 177.509 115.712C177.523 114.994 177.479 114.226 177.334 113.545C177.205 112.944 177.007 112.456 176.74 112.126C176.487 111.816 176.171 111.64 175.733 111.64C174.806 111.64 174.188 112.237 173.775 113.153C173.522 113.715 173.37 114.354 173.289 114.939C173.281 115.327 173.252 115.695 173.212 116.022L172.216 115.961C172.216 115.644 172.238 115.268 172.29 114.863C172.305 113.94 172.192 112.949 171.854 112.229C171.625 111.742 171.319 111.43 170.926 111.3C170.526 111.167 169.93 111.186 169.047 111.594C167.997 112.079 167.244 112.801 166.724 113.602C166.745 113.663 166.764 113.725 166.783 113.786C167.093 114.789 167.25 115.84 167.243 116.738C167.24 117.187 167.195 117.612 167.1 117.979C167.008 118.339 166.856 118.688 166.608 118.94C166.365 119.188 166 119.365 165.603 119.198C165.277 119.061 165.089 118.746 164.98 118.476C164.749 117.905 164.672 117.044 164.786 116.119C164.887 115.295 165.146 114.372 165.625 113.496C165.358 112.807 165.013 112.184 164.601 111.707C164.078 111.102 163.478 110.764 162.804 110.764C162.111 110.764 161.549 111.064 161.107 111.617C160.655 112.183 160.328 113.021 160.174 114.062C159.868 116.141 160.275 118.887 161.529 121.437L161.624 121.629L161.549 121.83C160.937 123.49 160.793 125.655 160.883 127.907C160.973 130.15 161.293 132.427 161.575 134.291C162.136 138 162.716 140.385 163.288 142.565L162.32 142.819C161.743 140.617 161.154 138.195 160.586 134.441C160.303 132.573 159.976 130.249 159.884 127.947C159.796 125.737 159.921 123.499 160.539 121.687C159.279 119.031 158.853 116.164 159.185 113.916C159.355 112.765 159.728 111.741 160.326 110.992ZM166.061 114.99C165.919 115.416 165.828 115.839 165.778 116.241C165.677 117.068 165.761 117.741 165.907 118.101C165.92 118.133 165.932 118.159 165.943 118.181C166.007 118.093 166.076 117.948 166.132 117.73C166.201 117.463 166.24 117.123 166.243 116.73C166.247 116.203 166.186 115.604 166.061 114.99Z",fill:"#1C1F23"}),D.createElement("path",{d:"M68.4034 24.0677C69.0395 25.3535 69.2996 26.6465 69.2282 27.6843C69.1558 28.7363 68.7587 29.4232 68.1963 29.7015C67.6338 29.9797 66.8468 29.8785 65.9667 29.2977C65.0985 28.7247 64.2285 27.7334 63.5924 26.4476C62.9564 25.1618 62.6963 23.8688 62.7677 22.831C62.8401 21.779 63.2372 21.0921 63.7996 20.8138C64.3621 20.5356 65.1491 20.6368 66.0292 21.2176C66.8974 21.7906 67.7674 22.7819 68.4034 24.0677Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M47.9894 30.78C46.7765 28.6575 46.352 23.5938 50.7183 20.3191C56.1761 16.2257 62.0888 18.9546 65.2726 22.5932",stroke:"#1C1F23"}),D.createElement("circle",{cx:58.9752,cy:30.8642,r:9.4443,fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("path",{d:"M53.3546 28.1132C53.6428 28.6897 54.4787 29.6697 55.5164 28.978C56.554 28.2862 55.9487 26.9603 55.5164 26.3838",stroke:"#1C1F23"}),D.createElement("path",{d:"M58.5428 24.8108C58.8311 25.3872 59.5215 26.0699 60.7047 25.6755C62.0017 25.2431 61.5694 23.946 61.137 23.5137",stroke:"#1C1F23"}),D.createElement("path",{d:"M62.8664 29.4106C63.587 26.6723 66.6712 20.6769 73.2431 18.6016",stroke:"#1C1F23"}),D.createElement("path",{d:"M73.2432 18.6016C74.3961 19.4663 79.0364 21.0214 78.4315 18.6016C77.9991 16.8722 74.5402 17.3045 73.2432 18.6016Z",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.03 33.1643C52.6661 34.4501 52.9262 35.7432 52.8548 36.781C52.7824 37.8329 52.3853 38.5199 51.8229 38.7982C51.2604 39.0764 50.4734 38.9752 49.5933 38.3944C48.7251 37.8214 47.8551 36.8301 47.219 35.5443C46.583 34.2585 46.3229 32.9655 46.3943 31.9277C46.4666 30.8757 46.8637 30.1887 47.4262 29.9105C47.9886 29.6323 48.7757 29.7335 49.6557 30.3143C50.524 30.8872 51.394 31.8785 52.03 33.1643Z",fill:"#1C1F23",stroke:"#1C1F23"}),D.createElement("path",{d:"M52.9924 38.9668C38.8929 45.7891 31.0094 53.2179 27.0676 58.5241L39.3477 60.7982L54.8117 43.9698C57.5406 43.515 60.9972 41.8777 52.9924 38.9668Z",fill:"#888D92"}),D.createElement("path",{d:"M113.029 113.557C114.696 114.012 118.032 116.013 118.032 120.38M143.047 94C144.411 94.4548 147.322 96.3651 148.05 100.367",stroke:"#1C1F23"}),D.createElement("path",{d:"M113.965 156.208L114.286 155.226C114.749 153.809 115 152.295 115 150.72C115 142.712 108.508 136.22 100.5 136.22C95.0318 136.22 90.2706 139.247 87.8004 143.716L86.9883 143.119C89.6464 138.404 94.7013 135.22 100.5 135.22C109.06 135.22 116 142.159 116 150.72C116 152.051 115.832 153.343 115.516 154.576C115.433 154.901 115.34 155.221 115.237 155.537C115.405 155.585 115.57 155.639 115.733 155.699C116.817 156.093 117.791 156.714 118.599 157.506C118.849 157.75 119.083 158.012 119.299 158.287C119.473 157.982 119.662 157.686 119.866 157.401C121.681 154.869 124.648 153.22 128 153.22C131.592 153.22 134.741 155.113 136.504 157.957C136.68 158.239 136.841 158.531 136.988 158.832C137.276 158.665 137.572 158.51 137.874 158.367C139.428 157.631 141.166 157.22 143 157.22C143.728 157.22 144.44 157.285 145.132 157.409C145.739 154.447 148.359 152.22 151.5 152.22C154.068 152.22 156.289 153.709 157.344 155.872L156.375 156.171C155.456 154.417 153.618 153.22 151.5 153.22C148.844 153.22 146.625 155.104 146.112 157.609L145.916 158.565L144.956 158.393C144.322 158.279 143.668 158.22 143 158.22C140.99 158.22 139.109 158.758 137.49 159.697L136.562 160.235L136.09 159.271C134.626 156.278 131.552 154.22 128 154.22C124.645 154.22 121.717 156.055 120.169 158.781L119.432 160.078L118.512 158.904C117.619 157.765 116.381 156.91 114.958 156.497L113.965 156.208Z",fill:"#1C1F23"}),D.createElement("path",{d:"M173.286 146.022L172.422 145.681C171.667 145.383 170.852 145.22 170 145.22C166.759 145.22 163.967 147.608 163.205 150.906L162.162 151.009C162.907 147.135 166.133 144.22 170 144.22C170.981 144.22 171.921 144.407 172.789 144.751C174.081 142.07 176.825 140.22 180 140.22C183.074 140.22 185.742 141.953 187.082 144.495L186.072 144.735C184.864 142.634 182.597 141.22 180 141.22C177.223 141.22 174.822 142.837 173.69 145.185L173.286 146.022Z",fill:"#1C1F23"}),D.createElement("path",{d:"M19.5002 101.253C20.7262 97.7403 24.0687 95.2197 28 95.2197C28.6935 95.2197 29.3688 95.2982 30.0173 95.4467L29.4322 96.3475C28.9675 96.2636 28.4888 96.2197 28 96.2197C24.3282 96.2197 21.2342 98.6934 20.2935 102.065L19.5002 101.253Z",fill:"#1C1F23"}),D.createElement("path",{d:"M44.8695 100.934L86.483 121.414L60.2837 138.476L18.6701 117.997L44.8695 100.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7768 117.808L33.8679 85.8504L76.5431 104.572L60.5078 137.853L19.7768 117.808Z",fill:"#C6CACD",stroke:"#1C1F23"}),D.createElement("circle",{cx:46.6718,cy:111.34,r:4.37976,fill:"#888D92"}),D.createElement("circle",{cx:52.1318,cy:110.26,r:1.08003,fill:"#888D92"}))}var imt=amt,omt=Object.defineProperty,cW=Object.getOwnPropertySymbols,smt=Object.prototype.hasOwnProperty,lmt=Object.prototype.propertyIsEnumerable,dW=(n,e,t)=>e in n?omt(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,umt=(n,e)=>{for(var t in e||(e={}))smt.call(e,t)&&dW(n,t,e[t]);if(cW)for(var t of cW(e))lmt.call(e,t)&&dW(n,t,e[t]);return n};function cmt(n){return D.createElement("svg",umt({width:200,height:200,viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:!1,"aria-hidden":!0},n),D.createElement("rect",{width:200,height:200,fill:"transparent"}),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M72.4973 30.7635C78.9257 27.8041 86.081 26.1536 93.6219 26.1536C115.232 26.1536 133.676 39.7074 140.917 58.7776C142.913 58.4139 144.971 58.2239 147.072 58.2239C165.92 58.2239 181.198 73.5026 181.198 92.3499C181.198 98.0077 179.822 103.344 177.385 108.042C189.232 113.985 197.364 126.244 197.364 140.402C197.364 160.384 181.164 176.583 161.182 176.583C160.706 176.583 160.233 176.574 159.762 176.556C147.404 190.333 129.464 199 109.5 199C79.3221 199 53.7697 179.196 45.1298 151.876C45.0659 151.876 45.002 151.876 44.938 151.876C21.7763 151.876 3 133.1 3 109.938C3 97.7223 8.22286 86.7264 16.5573 79.0616C13.6508 73.7054 12 67.5685 12 61.0462C12 40.1552 28.9355 23.2197 49.8264 23.2197C58.3307 23.2197 66.1796 26.0262 72.4973 30.7635Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M31.9999 38.7198C35.1999 30.7198 39.8332 26.5531 42.4999 24.7198C43.8168 23.7198 56.4999 13.2198 83.4999 11.2198C110.929 9.18793 115 21.7198 116 29.2198C117 36.7198 105.5 50.7198 102 52.7198C105.5 55.7198 125 76.7198 130 83.2198C135 89.7198 167.5 112.22 168 116.72C171 114.72 172 115.72 173 118.72C173.5 115.72 177.5 115.22 178 118.72C183 113.22 183 116.72 184 118.72C187 115.22 190.5 120.72 187 125.72C183.5 130.72 184 137.22 184 140.72C184 144.22 183 157.72 175.5 158.72C169.5 159.52 164.667 156.386 163 154.72C162 154.053 159.3 151.62 156.5 147.22C153 141.72 139.5 124.22 127 112.22C114.5 100.22 107.5 96.2198 110 102.72C112.5 109.22 135 136.72 137 139.22C139 138.02 140.167 139.72 140.5 140.72C141 138.386 142.8 134.32 146 136.72C149.2 139.12 147 143.72 145.5 145.72C145.333 148.553 145.1 154.72 145.5 156.72C146 159.22 150 166.22 145.5 170.22C141.9 173.42 127 173.553 120 173.22C116 165.886 107.7 150.72 106.5 148.72C105 146.22 93.4999 129.72 88.4999 124.22C84.4999 119.82 74.4999 102.386 69.9999 94.2198C69.4999 94.8864 68.3999 96.7198 67.9999 98.7198C67.4999 101.22 62.9999 112.72 45.4999 112.22C27.9999 111.72 20.9999 100.22 18.9999 85.2198C16.9999 70.2198 30.9999 58.2198 33.9999 55.2198C33.5999 53.2198 33.8332 50.0531 33.9999 48.7198C33.3332 50.0531 31.7999 52.7198 30.9999 52.7198C29.9999 52.7198 27.9999 48.7198 31.9999 38.7198Z",fill:"white"}),D.createElement("path",{d:"M46.6246 75.3495C36.8005 64.4338 27.6737 65.0402 24.3384 66.7079C27.0673 59.8856 45.2602 46.241 51.6277 44.4217C56.7464 42.9592 65.2723 40.3283 68.0012 37.1445C70.7302 33.9608 79.8266 28.0481 87.5585 24.8643C97.5646 22.1354 106.206 25.3192 114.393 35.7801C109.845 47.6054 104.387 50.7892 102.113 53.0633C104.842 54.4277 113.938 63.5242 123.035 75.3495C91.6519 71.2561 75.7332 107.187 74.8235 104.003C73.9139 100.82 69.8205 96.2713 69.8205 93.9972C69.8205 91.7231 73.0043 88.0845 77.5525 82.6266C82.1007 77.1688 89.3778 75.3495 91.6519 74.4399C93.926 73.5302 95.7453 73.0754 96.2001 71.2561C96.564 69.8007 94.6841 69.1336 93.4712 68.982C94.5325 68.8304 96.655 67.9814 96.655 65.7983C96.655 63.6695 94.2044 64.2508 93.0985 64.4216C93.0673 64.4297 93.0397 64.4338 93.0164 64.4338C93.0428 64.43 93.0702 64.4259 93.0985 64.4216C93.6749 64.2716 95.4906 62.7601 94.8357 60.7952C94.3809 59.4308 92.41 59.2792 91.1971 59.4308C91.9551 59.1276 92.9254 57.5205 92.5616 55.3374C92.1977 53.1542 88.6198 52.76 86.6489 53.0633C88.3166 52.002 90.3784 49.6066 87.1037 48.5151C83.0103 47.1506 72.0092 50.9347 62.0885 58.5211C54.3566 64.4338 50.8696 70.4981 50.2632 73.5302C49.6568 73.0754 48.08 72.8025 46.6246 75.3495Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113 20.2198H53.5L46 22.7198L42 25.7198L71.5 31.2198L88 24.7198C88 24.7198 97.5 22.2198 105 27.2198C112.5 32.2198 114.5 35.7198 114.5 35.7198L116 29.7198L113 20.2198Z",fill:"white"}),D.createElement("path",{d:"M77.3936 29.8498C73.242 32.177 68.98 35.2362 66.4641 39.0865C62.4821 39.7223 57.1261 41.4704 51.4079 44.2443C48.5311 49.6437 47.6441 56.123 46.0677 55.4937C45.3737 55.2166 45.2141 53.6951 45.2889 51.9557C44.2512 56.5544 42.7403 60.2108 41.7417 57.2208C41.2327 55.6968 41.5887 52.5128 42.1051 49.5437C42.049 49.5808 41.9928 49.618 41.9367 49.6553C40.9605 55.8172 40.2314 62.7367 38.2809 57.2208C37.7962 55.8502 37.6283 54.2989 37.6588 52.7104C37.2926 52.9915 36.9283 53.2766 36.566 53.5656C35.9537 56.4261 35.3375 57.9591 34.3874 55.4937C34.3761 55.4643 34.365 55.4348 34.354 55.405C30.3972 58.8347 26.7776 62.7612 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C69.3677 95.1073 69.5831 94.5776 69.8063 94.0591C74.1543 83.9571 81.4359 78.1066 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C94.3806 69.4252 93.7348 69.2572 93.0445 69.2038C91.8033 69.7969 90.2666 70.4998 88.4629 71.4691C82.839 74.4915 81.1086 74.0597 82.4065 73.1962C83.5138 72.4594 89.0306 68.8934 93.0445 69.2038C95.6732 67.9477 96.9762 67.1841 96.6824 65.4244C96.5207 64.4563 95.03 64.0911 93.0455 64.1487C91.3546 65.3797 88.9035 66.4079 87.1651 67.1514C84.1369 68.4467 79.3782 69.742 82.8391 67.1514C85.0066 65.5289 89.7195 64.2451 93.0455 64.1487C94.3002 63.2352 95.1362 62.2101 94.952 61.1067C94.7373 59.821 93.3507 59.0671 91.3737 58.8976C89.4251 60.9305 85.8054 62.6487 82.4065 63.2655C77.6478 64.129 78.9456 62.402 84.1369 60.2431C86.7519 59.1556 89.367 58.7255 91.3737 58.8976C92.1532 58.0844 92.6653 57.2208 92.7889 56.3572C93.1124 54.0977 90.7761 52.8034 86.5033 53.1961C84.3999 55.1138 81.1759 57.0949 78.9456 58.0843C75.0522 59.8114 74.187 56.3572 81.5412 54.1984C83.3975 53.6535 85.0608 53.3286 86.5033 53.1961C88.0719 51.766 89.0173 50.3711 88.4629 49.4489C87.1651 47.2901 83.3356 47.9202 75.5488 50.9426C68.3439 53.739 55.9542 60.0621 50.3729 72.9619C49.9221 74.004 49.5156 75.089 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C42.9654 77.7359 46.3524 74.7197 50.3729 72.9619C55.9542 60.0621 68.3439 53.739 75.5488 50.9426C83.3356 47.9202 87.1651 47.2901 88.4629 49.4489C89.0173 50.3711 88.0719 51.766 86.5033 53.1961C90.7761 52.8034 93.1124 54.0977 92.7889 56.3572C92.6653 57.2208 92.1532 58.0844 91.3737 58.8976C93.3507 59.0671 94.7373 59.821 94.952 61.1067C95.1362 62.2101 94.3002 63.2352 93.0455 64.1487C95.03 64.0911 96.5207 64.4563 96.6824 65.4244C96.9762 67.1841 95.6732 67.9477 93.0445 69.2038C93.7348 69.2572 94.3806 69.4252 94.952 69.742C98.8454 71.9009 92.7889 74.0597 86.7325 76.2186C81.4359 78.1066 74.1543 83.9571 69.8063 94.0591C73.1416 100.18 81.5717 115.556 86.7325 121.741C93.1834 129.473 103.477 143.575 108.48 151.346C113.483 159.118 125.234 183.142 141.241 177.684C152.488 173.367 145.134 157.391 145.134 153.074V146.165C146.288 144.87 148.335 141.502 147.297 138.393C146.081 134.752 141.065 135.281 140.796 142.115C140.894 142.677 140.902 143.198 140.808 143.575C140.781 143.059 140.778 142.573 140.796 142.115C140.444 140.103 138.944 137.569 136.915 139.257C136.248 139.811 135.81 140.564 135.534 141.385C135.787 141.785 135.97 142.234 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.295 146.708 134.735 143.763 135.534 141.385C134.414 139.616 131.917 138.791 130.858 140.552C130.45 141.23 130.171 142.164 130.019 143.18C130.295 143.384 130.577 143.655 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.968 148.003 129.688 145.397 130.019 143.18C128.599 142.128 127.327 142.852 126.965 143.575C126.721 144.06 126.067 145.365 125.927 147.029C128.007 149.142 128.604 153.964 126.965 151.346C126.018 149.835 125.817 148.324 125.927 147.029C126.067 145.365 126.721 144.06 126.965 143.575C127.327 142.852 128.599 142.128 130.019 143.18C130.171 142.164 130.45 141.23 130.858 140.552C131.917 138.791 134.414 139.616 135.534 141.385C135.81 140.564 136.248 139.811 136.915 139.257C138.944 137.569 140.444 140.103 140.796 142.115C141.065 135.281 146.081 134.752 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165V153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591C69.5831 94.5776 69.3677 95.1073 69.1607 95.6482C68.7889 96.6194 68.4443 97.6267 68.1305 98.6706C64.2371 111.624 46.9329 115.276 34.3874 110.095C21.8419 104.914 13.0686 83.5587 23.8837 67.1514C26.7776 62.7612 30.3972 58.8347 34.354 55.405C35.0808 54.775 35.8189 54.1619 36.566 53.5656C37.3478 49.9138 38.1231 44.0983 39.5787 41.6771C41.6896 38.1656 37.7919 45.7917 37.6588 52.7104C39.063 51.6326 40.4941 50.6138 41.9367 49.6553C42.2596 47.6175 42.6095 45.6626 43.0395 44.2677C44.0913 40.8559 42.9055 44.9417 42.1051 49.5437C43.3654 48.7109 44.6341 47.9242 45.9007 47.1843C46.147 46.0017 46.3337 45.6081 46.1599 47.0336C47.9237 46.0119 49.6823 45.0814 51.4079 44.2443C52.4786 42.2347 53.8249 40.3747 55.585 39.0865C60.6449 35.383 68.598 31.4171 77.3936 29.8498Z",fill:"white"}),D.createElement("path",{d:"M88.0303 24.8381C84.2811 26.5651 71.6553 31.1419 66.4641 39.0865C55.649 40.8135 34.6988 50.7442 23.8837 67.1514C13.0686 83.5587 21.8419 104.914 34.3874 110.095C46.9329 115.276 64.2371 111.624 68.1305 98.6706C68.4443 97.6267 68.7889 96.6194 69.1607 95.6482C73.4016 84.5681 81.1641 78.2035 86.7325 76.2186C92.7889 74.0597 98.8454 71.9009 94.952 69.742C91.0585 67.5832 83.7043 72.3327 82.4065 73.1962C81.1086 74.0597 82.839 74.4915 88.4629 71.4691C94.0867 68.4467 97.115 68.015 96.6824 65.4244C96.2498 62.8337 86.2999 64.5608 82.8391 67.1514C79.3782 69.742 84.1369 68.4467 87.1651 67.1514C90.1933 65.8561 95.3846 63.6973 94.952 61.1067C94.5194 58.516 89.3281 58.0843 84.1369 60.2431C78.9456 62.402 77.6478 64.129 82.4065 63.2655C87.1651 62.402 92.3563 59.3796 92.7889 56.3572C93.2215 53.3348 88.8955 52.0395 81.5412 54.1984C74.187 56.3572 75.0522 59.8114 78.9456 58.0843C82.839 56.3572 89.7607 51.6077 88.4629 49.4489C87.1651 47.29 83.3356 47.9202 75.5488 50.9426C67.7619 53.9649 53.9186 61.1067 49.1599 76.2186C44.4013 91.3305 40.0113 86.581 41.7417 81.3998C43.4721 76.2186 49.5286 72.3327 55.585 71.4691M102.306 52.903C106.921 49.0171 116.15 38.8274 116.15 29.1557C116.15 17.0662 100.576 6.27198 68.1305 13.6121C35.6852 20.9521 31.3592 38.6547 30.0614 46.4265C28.7636 54.1984 32.657 55.4937 34.3874 45.563C35.7718 37.6184 36.4062 36.7837 36.5504 37.3594C35.1084 41.5331 32.657 51.0033 34.3874 55.4937C36.5504 61.1067 36.983 45.9948 39.5787 41.6771C42.1743 37.3594 35.6853 49.8807 38.2809 57.2208C40.8765 64.5608 41.3091 49.8807 43.0395 44.2677C44.7699 38.6547 40.4439 53.3349 41.7417 57.2208C43.0395 61.1067 45.2025 53.7666 46.0677 47.7218C46.9329 41.6771 43.9047 54.6302 46.0677 55.4937C48.2307 56.3572 49.096 43.8359 55.585 39.0865C62.0741 34.337 73.3218 29.1557 85.0021 29.1557M86.7325 39.95C93.9426 45.419 110.612 59.3796 119.61 71.4691C130.858 86.5811 158.112 106.011 168.062 115.941M125.234 165.163C123.071 162.141 123.504 156.528 123.504 153.937C121.773 152.21 119.61 147.029 123.504 146.165C127.397 145.302 129.128 154.801 126.965 151.346C124.802 147.892 126.532 144.438 126.965 143.575C127.397 142.711 129.128 141.848 130.858 144.006C132.589 146.165 132.156 150.915 130.858 149.188C129.56 147.46 129.56 142.711 130.858 140.552C132.156 138.393 135.617 140.12 136.049 142.711C136.482 145.302 136.049 147.461 135.617 147.029C135.184 146.597 134.319 141.416 136.915 139.257C139.51 137.098 141.241 141.848 140.808 143.575C140.375 135.371 145.999 134.507 147.297 138.393C148.335 141.502 146.288 144.87 145.134 146.165C145.134 147.029 145.134 149.619 145.134 153.074C145.134 157.391 152.488 173.367 141.241 177.684C125.234 183.142 113.483 159.118 108.48 151.346C103.477 143.575 93.1834 129.473 86.7325 121.741C81.5717 115.556 73.1416 100.18 69.8063 94.0591",stroke:"#41464C"}),D.createElement("path",{d:"M137.5 139.366C128.45 128.995 105.231 101.015 110.3 99.455C113.029 98.6154 136.947 120.961 152.598 141.299C157.371 147.5 162.804 158.127 171.701 158.127C182.905 158.127 184.352 144.187 183.921 138.052C183.576 133.144 185.213 128.411 186.075 126.658C187.368 124.759 189.351 120.435 186.937 118.332C184.524 116.228 183.346 120.085 183.059 122.276C183.633 120.085 184.093 115.79 181.335 116.141C178.577 116.491 177.887 120.377 177.887 122.276C178.175 120.231 178.146 116.141 175.733 116.141C173.319 116.141 172.716 119.354 172.716 120.961C173.003 118.624 172.63 114.388 168.837 116.141C164.097 118.332 164.959 124.905 166.252 123.59C167.544 122.276 166.252 115.264 162.804 115.264C159.356 115.264 158.495 121.399 161.08 126.658C159.787 130.164 160.516 135.635 161.08 139.366C161.645 143.098 162.229 145.502 162.804 147.693",stroke:"#41464C"}),D.createElement("path",{d:"M68.4033 29.0683C69.0394 30.3541 69.2995 31.6471 69.2281 32.6849C69.1557 33.7369 68.7586 34.4238 68.1962 34.7021C67.6337 34.9803 66.8467 34.8791 65.9666 34.2983C65.0984 33.7253 64.2284 32.734 63.5923 31.4482C62.9562 30.1624 62.6962 28.8694 62.7676 27.8316C62.8399 26.7797 63.237 26.0927 63.7995 25.8144C64.3619 25.5362 65.149 25.6374 66.029 26.2182C66.8973 26.7912 67.7672 27.7825 68.4033 29.0683Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M47.9889 35.7801C46.7761 33.6576 46.3515 28.5939 50.7178 25.3192C56.1757 21.2258 62.0884 23.9547 65.2721 27.5933",stroke:"#41464C"}),D.createElement("circle",{cx:58.9751,cy:35.8643,r:9.4443,fill:"white",stroke:"#41464C"}),D.createElement("path",{d:"M53.3545 33.1137C53.6427 33.6902 54.4786 34.6702 55.5163 33.9784C56.554 33.2867 55.9487 31.9608 55.5163 31.3843",stroke:"#41464C"}),D.createElement("path",{d:"M58.5425 29.8112C58.8307 30.3877 59.5212 31.0703 60.7043 30.6759C62.0014 30.2435 61.569 28.9465 61.1366 28.5141",stroke:"#41464C"}),D.createElement("path",{d:"M62.8662 34.4109C63.5868 31.6726 66.671 25.6772 73.2429 23.6019",stroke:"#41464C"}),D.createElement("path",{d:"M73.2432 23.6018C74.3961 24.4665 79.0364 26.0216 78.4315 23.6018C77.9991 21.8724 74.5402 22.3047 73.2432 23.6018Z",stroke:"#41464C"}),D.createElement("path",{d:"M52.0298 38.1648C52.6659 39.4506 52.9259 40.7437 52.8545 41.7814C52.7822 42.8334 52.3851 43.5204 51.8226 43.7986C51.2602 44.0769 50.4732 43.9757 49.5931 43.3949C48.7248 42.8219 47.8549 41.8306 47.2188 40.5448C46.5827 39.259 46.3227 37.966 46.394 36.9282C46.4664 35.8762 46.8635 35.1892 47.426 34.911C47.9884 34.6327 48.7754 34.734 49.6555 35.3148C50.5237 35.8877 51.3937 36.879 52.0298 38.1648Z",fill:"#41464C",stroke:"#41464C"}),D.createElement("path",{d:"M52.9922 43.9668C38.8927 50.7891 31.0092 58.2179 27.0674 63.5241L39.3476 65.7982L54.8115 48.9698C57.5404 48.515 60.997 46.8777 52.9922 43.9668Z",fill:"#E6E8EA"}),D.createElement("path",{d:"M113.029 118.558C114.696 119.012 118.032 121.014 118.032 125.38M143.047 99.0003C144.411 99.4551 147.322 101.365 148.05 105.368",stroke:"#41464C"}),D.createElement("mask",{id:"path-19-inside-1",fill:"white"},D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z"})),D.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 118.22C28.6879 118.22 29.3577 118.143 30.0014 117.996C30.0005 118.071 30 118.145 30 118.22C30 128.161 38.0589 136.22 48 136.22C57.9411 136.22 66 128.161 66 118.22C66 108.279 57.9411 100.22 48 100.22C43.3394 100.22 39.0926 101.991 35.8959 104.897C34.3665 102.11 31.4039 100.22 28 100.22C23.0294 100.22 19 104.249 19 109.22C19 114.19 23.0294 118.22 28 118.22ZM100.5 171.22C102.182 171.22 103.801 170.952 105.317 170.457C106.285 173.786 109.358 176.22 113 176.22C115.557 176.22 117.835 175.02 119.299 173.152C121.018 176.178 124.271 178.22 128 178.22C129.224 178.22 130.398 178 131.482 177.597C132.94 182.58 137.545 186.22 143 186.22C149.627 186.22 155 180.847 155 174.22C155 172.611 154.684 171.077 154.109 169.675C156.4 168.67 158 166.382 158 163.72C158 160.13 155.09 157.22 151.5 157.22C148.359 157.22 145.739 159.447 145.132 162.409C144.44 162.285 143.728 162.22 143 162.22C140.809 162.22 138.756 162.807 136.988 163.832C135.363 160.509 131.949 158.22 128 158.22C124.271 158.22 121.018 160.261 119.299 163.287C118.279 161.987 116.865 161.01 115.237 160.537C115.732 159.021 116 157.401 116 155.72C116 147.159 109.06 140.22 100.5 140.22C91.9396 140.22 85 147.159 85 155.72C85 164.28 91.9396 171.22 100.5 171.22ZM188 153.22C188 157.638 184.418 161.22 180 161.22C179.111 161.22 178.255 161.075 177.456 160.807C176.293 163.975 173.393 166.22 170 166.22C165.582 166.22 162 162.414 162 157.72C162 153.025 165.582 149.22 170 149.22C170.981 149.22 171.921 149.407 172.789 149.751C174.081 147.07 176.825 145.22 180 145.22C184.418 145.22 188 148.802 188 153.22Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M30.0014 117.996L31.0013 118.009L31.0167 116.74L29.7799 117.021L30.0014 117.996ZM35.8959 104.897L35.0191 105.378L35.6295 106.491L36.5685 105.637L35.8959 104.897ZM105.317 170.457L106.277 170.178L105.989 169.185L105.006 169.506L105.317 170.457ZM119.299 173.152L120.169 172.658L119.432 171.362L118.512 172.535L119.299 173.152ZM131.482 177.597L132.441 177.316L132.14 176.286L131.134 176.66L131.482 177.597ZM154.109 169.675L153.708 168.759L152.814 169.151L153.184 170.054L154.109 169.675ZM145.132 162.409L144.956 163.393L145.916 163.565L146.112 162.609L145.132 162.409ZM136.988 163.832L136.09 164.271L136.562 165.235L137.49 164.697L136.988 163.832ZM119.299 163.287L118.512 163.905L119.432 165.078L120.169 163.781L119.299 163.287ZM115.237 160.537L114.286 160.226L113.965 161.209L114.958 161.497L115.237 160.537ZM177.456 160.807L177.774 159.859L176.852 159.55L176.517 160.462L177.456 160.807ZM172.789 149.751L172.422 150.681L173.286 151.022L173.69 150.185L172.789 149.751ZM29.7799 117.021C29.2084 117.151 28.6129 117.22 28 117.22V119.22C28.7629 119.22 29.507 119.134 30.2228 118.972L29.7799 117.021ZM31 118.22C31 118.149 31.0004 118.079 31.0013 118.009L29.0014 117.984C29.0005 118.063 29 118.141 29 118.22H31ZM48 135.22C38.6112 135.22 31 127.609 31 118.22H29C29 128.713 37.5066 137.22 48 137.22V135.22ZM65 118.22C65 127.609 57.3888 135.22 48 135.22V137.22C58.4934 137.22 67 128.713 67 118.22H65ZM48 101.22C57.3888 101.22 65 108.831 65 118.22H67C67 107.726 58.4934 99.2198 48 99.2198V101.22ZM36.5685 105.637C39.5884 102.892 43.5978 101.22 48 101.22V99.2198C43.0811 99.2198 38.5968 101.09 35.2232 104.157L36.5685 105.637ZM28 101.22C31.0244 101.22 33.6583 102.898 35.0191 105.378L36.7726 104.416C35.0747 101.321 31.7835 99.2198 28 99.2198V101.22ZM20 109.22C20 104.802 23.5817 101.22 28 101.22V99.2198C22.4772 99.2198 18 103.697 18 109.22H20ZM28 117.22C23.5817 117.22 20 113.638 20 109.22H18C18 114.743 22.4772 119.22 28 119.22V117.22ZM105.006 169.506C103.589 169.969 102.075 170.22 100.5 170.22V172.22C102.288 172.22 104.012 171.935 105.627 171.407L105.006 169.506ZM113 175.22C109.815 175.22 107.124 173.092 106.277 170.178L104.357 170.736C105.445 174.481 108.901 177.22 113 177.22V175.22ZM118.512 172.535C117.229 174.171 115.237 175.22 113 175.22V177.22C115.878 177.22 118.44 175.868 120.086 173.769L118.512 172.535ZM128 177.22C124.645 177.22 121.717 175.384 120.169 172.658L118.43 173.646C120.319 176.972 123.897 179.22 128 179.22V177.22ZM131.134 176.66C130.159 177.022 129.104 177.22 128 177.22V179.22C129.345 179.22 130.636 178.978 131.83 178.534L131.134 176.66ZM143 185.22C138.001 185.22 133.779 181.885 132.441 177.316L130.522 177.878C132.102 183.276 137.089 187.22 143 187.22V185.22ZM154 174.22C154 180.295 149.075 185.22 143 185.22V187.22C150.18 187.22 156 181.399 156 174.22H154ZM153.184 170.054C153.71 171.337 154 172.743 154 174.22H156C156 172.479 155.657 170.816 155.035 169.296L153.184 170.054ZM154.511 170.591C157.152 169.432 159 166.793 159 163.72H157C157 165.971 155.648 167.908 153.708 168.759L154.511 170.591ZM159 163.72C159 159.578 155.642 156.22 151.5 156.22V158.22C154.538 158.22 157 160.682 157 163.72H159ZM151.5 156.22C147.875 156.22 144.853 158.791 144.153 162.208L146.112 162.609C146.625 160.104 148.844 158.22 151.5 158.22V156.22ZM143 163.22C143.668 163.22 144.322 163.279 144.956 163.393L145.309 161.424C144.559 161.29 143.787 161.22 143 161.22V163.22ZM137.49 164.697C139.109 163.758 140.99 163.22 143 163.22V161.22C140.629 161.22 138.403 161.856 136.487 162.967L137.49 164.697ZM128 159.22C131.552 159.22 134.626 161.278 136.09 164.271L137.887 163.393C136.1 159.739 132.345 157.22 128 157.22V159.22ZM120.169 163.781C121.717 161.055 124.645 159.22 128 159.22V157.22C123.897 157.22 120.319 159.467 118.43 162.794L120.169 163.781ZM114.958 161.497C116.381 161.911 117.619 162.765 118.512 163.905L120.086 162.67C118.94 161.209 117.35 160.109 115.516 159.576L114.958 161.497ZM115 155.72C115 157.295 114.749 158.809 114.286 160.226L116.187 160.847C116.715 159.232 117 157.508 117 155.72H115ZM100.5 141.22C108.508 141.22 115 147.712 115 155.72H117C117 146.607 109.613 139.22 100.5 139.22V141.22ZM86 155.72C86 147.712 92.4919 141.22 100.5 141.22V139.22C91.3873 139.22 84 146.607 84 155.72H86ZM100.5 170.22C92.4919 170.22 86 163.728 86 155.72H84C84 164.832 91.3873 172.22 100.5 172.22V170.22ZM180 162.22C184.971 162.22 189 158.19 189 153.22H187C187 157.086 183.866 160.22 180 160.22V162.22ZM177.138 161.755C178.039 162.057 179.001 162.22 180 162.22V160.22C179.22 160.22 178.472 160.093 177.774 159.859L177.138 161.755ZM170 167.22C173.856 167.22 177.103 164.671 178.395 161.151L176.517 160.462C175.483 163.279 172.931 165.22 170 165.22V167.22ZM161 157.72C161 162.909 164.973 167.22 170 167.22V165.22C166.19 165.22 163 161.92 163 157.72H161ZM170 148.22C164.973 148.22 161 152.531 161 157.72H163C163 153.52 166.19 150.22 170 150.22V148.22ZM173.157 148.821C172.174 148.432 171.11 148.22 170 148.22V150.22C170.852 150.22 171.667 150.383 172.422 150.681L173.157 148.821ZM180 144.22C176.426 144.22 173.341 146.303 171.888 149.317L173.69 150.185C174.822 147.837 177.223 146.22 180 146.22V144.22ZM189 153.22C189 148.249 184.971 144.22 180 144.22V146.22C183.866 146.22 187 149.354 187 153.22H189Z",fill:"#41464C",mask:"url(#path-19-inside-1)"}),D.createElement("path",{d:"M22 108.72L16 102.72L11 118.22L37 138.72L68 134.22V112.72L55.5 118.22L22 108.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M94 153.72L71.5 135.22V163.22L114 188.72L143.5 187.72L150 184.22L156 178.72L159 174.22L180 168.72L188.5 162.22L193.5 147.72L161 156.22L159 160.22L143.5 165.72L127.5 172.72L94 153.72Z",fill:"var(--semi-color-primary-light-default)"}),D.createElement("path",{d:"M44.8693 105.934L86.4828 126.413L60.2835 143.476L18.67 122.997L44.8693 105.934Z",fill:"var(--semi-color-primary)"}),D.createElement("path",{d:"M19.7766 122.808L33.8677 90.8503L76.5429 109.572L60.5077 142.853L19.7766 122.808Z",fill:"white",stroke:"#41464C"}),D.createElement("circle",{cx:46.6718,cy:116.34,r:4.37976,fill:"#E6E8EA"}),D.createElement("circle",{cx:52.1318,cy:115.26,r:1.08003,fill:"#E6E8EA"}))}var dmt=cmt;/*! js-cookie v3.0.5 | MIT */function F_(n){for(var e=1;e"u")){o=F_({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=a+"="+n.write(i,a)+s}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var i=document.cookie?document.cookie.split("; "):[],o={},s=0;s{const e=fW.get("token");e&&(n.updateToken(e),fW.remove("token"))},[]),V.jsx(V.Fragment,{children:n.isAuthorized()?V.jsx(Jvt,{children:V.jsxs(sce,{children:[tR.flatMap(e=>nR(e,n)?[D.createElement(gO,{...e.routeProps,key:e.itemKey})]:[]),V.jsx(gO,{path:"*",element:V.jsx(gmt,{})},"*")]})}):V.jsx(V.Fragment,{children:V.jsx(gje,{})})})}function gmt(){const n=$i();return V.jsx("div",{style:{margin:"100px"},children:V.jsx(hq,{image:V.jsx(dmt,{style:{width:250,height:250}}),darkModeImage:V.jsx(imt,{style:{width:250,height:250}}),description:`Welcome, ${n.userName} 🌻🌻🌻`,style:{fontSize:"22px"}})})}function vmt(){const n=jQ();D.useEffect(()=>{document.body.classList.remove("light"),document.body.classList.remove("dark"),n.theme==="dark"?(document.body.classList.add("dark"),document.body.setAttribute("theme-mode","dark")):n.theme==="light"&&(document.body.classList.add("light"),document.body.removeAttribute("theme-mode"));const e=document.querySelector('meta[name="theme-color"][media*="dark"]'),t=document.querySelector('meta[name="theme-color"][media*="light"]');if(n.theme==="auto")e==null||e.setAttribute("content","#151515"),t==null||t.setAttribute("content","#fafafa"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.body.setAttribute("theme-mode","dark"):document.body.removeAttribute("theme-mode");else{const r=LM("--theme-color");e==null||e.setAttribute("content",r),t==null||t.setAttribute("content",r)}},[n.theme])}S3.createRoot(document.getElementById("root")).render(V.jsx(x.StrictMode,{children:V.jsx(hmt,{})}))});export default mmt(); diff --git a/gateway-ha/src/main/resources/static/index.html b/gateway-ha/src/main/resources/static/index.html deleted file mode 100644 index d6bb26715..000000000 --- a/gateway-ha/src/main/resources/static/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - Trino Gateway - - - - -
- - diff --git a/gateway-ha/src/main/resources/static/logo.svg b/gateway-ha/src/main/resources/static/logo.svg deleted file mode 100644 index a562a957a..000000000 --- a/gateway-ha/src/main/resources/static/logo.svg +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From ef1c13f09b9fde666ef454403168636bb50f4143 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 8 Apr 2024 12:56:31 +0900 Subject: [PATCH 045/148] Remove reflections --- gateway-ha/pom.xml | 12 ---- .../io/trino/gateway/baseapp/BaseApp.java | 55 +++++++------------ .../trino/gateway/ha/HaGatewayLauncher.java | 9 +-- 3 files changed, 21 insertions(+), 55 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index cc1eeb2b1..aa0ef576e 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -347,18 +347,6 @@ ${dep.jeasy.version} - - org.reflections - reflections - 0.9.10 - - - com.google.code.findbugs - annotations - - - - org.slf4j slf4j-api diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 2437c126e..7fb3bb45a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -14,6 +14,7 @@ package io.trino.gateway.baseapp; import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableSet; import com.google.common.collect.MoreCollectors; import com.google.inject.Guice; import com.google.inject.Injector; @@ -30,15 +31,16 @@ import io.trino.gateway.ha.log.GatewayRequestLogFactory; import io.trino.gateway.ha.module.RouterBaseModule; import io.trino.gateway.ha.module.StochasticRoutingManagerProvider; -import jakarta.ws.rs.Path; -import jakarta.ws.rs.ext.Provider; +import io.trino.gateway.ha.resource.EntityEditorResource; +import io.trino.gateway.ha.resource.GatewayResource; +import io.trino.gateway.ha.resource.GatewayViewResource; +import io.trino.gateway.ha.resource.GatewayWebAppResource; +import io.trino.gateway.ha.resource.HaGatewayResource; +import io.trino.gateway.ha.resource.LoginResource; +import io.trino.gateway.ha.resource.PublicResource; +import io.trino.gateway.ha.resource.TrinoResource; +import io.trino.gateway.ha.security.AuthorizedExceptionMapper; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; -import org.reflections.Reflections; -import org.reflections.scanners.SubTypesScanner; -import org.reflections.scanners.TypeAnnotationsScanner; -import org.reflections.util.ClasspathHelper; -import org.reflections.util.ConfigurationBuilder; -import org.reflections.util.FilterBuilder; import java.util.ArrayList; import java.util.List; @@ -61,8 +63,6 @@ public abstract class BaseApp extends Application { private static final Logger logger = Logger.get(BaseApp.class); - - private final Reflections reflections; private final ImmutableList.Builder appModules = ImmutableList.builder(); private AppModule newModule(String clazz, T configuration, Environment environment) @@ -94,29 +94,6 @@ private void validateModules(List modules, T configuration, Environme } } - protected BaseApp(String... basePackages) - { - final ConfigurationBuilder confBuilder = new ConfigurationBuilder(); - final FilterBuilder filterBuilder = new FilterBuilder(); - - if (basePackages.length == 0) { - basePackages = new String[] {}; - } - - logger.info("op=create auto_scan_packages=%s", basePackages); - - for (String basePkg : basePackages) { - confBuilder.addUrls(ClasspathHelper.forPackage(basePkg)); - filterBuilder.include(FilterBuilder.prefix(basePkg)); - } - - confBuilder - .filterInputsBy(filterBuilder) - .setScanners(new SubTypesScanner(), new TypeAnnotationsScanner()); - - this.reflections = new Reflections(confBuilder); - } - @Override // Using Airlift logger protected void bootstrapLogging() {} @@ -206,7 +183,7 @@ protected List addManagedApps( private void registerProviders(Environment environment, Injector injector) { - final Set> classes = reflections.getTypesAnnotatedWith(Provider.class); + final Set> classes = ImmutableSet.of(AuthorizedExceptionMapper.class); classes.forEach( c -> { environment.jersey().register(injector.getInstance(c)); @@ -216,7 +193,15 @@ private void registerProviders(Environment environment, Injector injector) private void registerResources(Environment environment, Injector injector) { - final Set> classes = reflections.getTypesAnnotatedWith(Path.class); + final Set> classes = ImmutableSet.of( + EntityEditorResource.class, + GatewayResource.class, + GatewayViewResource.class, + GatewayWebAppResource.class, + HaGatewayResource.class, + LoginResource.class, + PublicResource.class, + TrinoResource.class); classes.forEach( c -> { environment.jersey().register(injector.getInstance(c)); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index 04f8d11a0..401c1a11c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -28,11 +28,6 @@ public class HaGatewayLauncher extends BaseApp { - public HaGatewayLauncher(String... basePackages) - { - super(basePackages); - } - @Override public void initialize(Bootstrap bootstrap) { @@ -51,8 +46,6 @@ public static void main(String[] args) Logging logging = Logging.initialize(); logging.configure(configuration); - /* base package is scanned for any Resource class to be loaded by default. */ - String basePackage = "io.trino"; - new HaGatewayLauncher(basePackage).run(args); + new HaGatewayLauncher().run(args); } } From e98a4de11aeab018a5102ddac3ca54b9a963ab40 Mon Sep 17 00:00:00 2001 From: "TzuHsiang (Andy) Su" Date: Mon, 8 Apr 2024 14:28:45 -0400 Subject: [PATCH 046/148] Remove hardcoded registry URLs in pnpm-lock file --- webapp/pnpm-lock.yaml | 3111 ++++++++++++++++------------------------- 1 file changed, 1229 insertions(+), 1882 deletions(-) diff --git a/webapp/pnpm-lock.yaml b/webapp/pnpm-lock.yaml index 32082fc13..e3fb63cde 100644 --- a/webapp/pnpm-lock.yaml +++ b/webapp/pnpm-lock.yaml @@ -7,553 +7,470 @@ settings: dependencies: '@douyinfe/semi-icons': specifier: ^2.47.1 - version: registry.npmmirror.com/@douyinfe/semi-icons@2.47.1(react@18.2.0) + version: 2.47.1(react@18.2.0) '@douyinfe/semi-icons-lab': specifier: ^2.47.1 - version: registry.npmmirror.com/@douyinfe/semi-icons-lab@2.47.1(react-dom@18.2.0)(react@18.2.0) + version: 2.47.1(react-dom@18.2.0)(react@18.2.0) '@douyinfe/semi-illustrations': specifier: ^2.47.1 - version: registry.npmmirror.com/@douyinfe/semi-illustrations@2.47.1(react@18.2.0) + version: 2.47.1(react@18.2.0) '@douyinfe/semi-ui': specifier: ^2.47.1 - version: registry.npmmirror.com/@douyinfe/semi-ui@2.47.1(react-dom@18.2.0)(react@18.2.0) + version: 2.47.1(react-dom@18.2.0)(react@18.2.0) echarts: specifier: ^5.4.3 - version: registry.npmmirror.com/echarts@5.4.3 + version: 5.4.3 js-cookie: specifier: ^3.0.5 - version: registry.npmmirror.com/js-cookie@3.0.5 + version: 3.0.5 moment: specifier: ^2.29.4 - version: registry.npmmirror.com/moment@2.29.4 + version: 2.29.4 react: specifier: ^18.2.0 - version: registry.npmmirror.com/react@18.2.0 + version: 18.2.0 react-dom: specifier: ^18.2.0 - version: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + version: 18.2.0(react@18.2.0) react-router-dom: specifier: ^6.20.0 - version: registry.npmmirror.com/react-router-dom@6.20.0(react-dom@18.2.0)(react@18.2.0) + version: 6.20.0(react-dom@18.2.0)(react@18.2.0) sass: specifier: ^1.69.5 - version: registry.npmmirror.com/sass@1.69.5 + version: 1.69.5 zustand: specifier: ^4.3.8 - version: registry.npmmirror.com/zustand@4.3.8(react@18.2.0) + version: 4.3.8(react@18.2.0) devDependencies: '@types/echarts': specifier: ^4.9.22 - version: registry.npmmirror.com/@types/echarts@4.9.22 + version: 4.9.22 '@types/js-cookie': specifier: ^3.0.6 - version: registry.npmmirror.com/@types/js-cookie@3.0.6 + version: 3.0.6 '@types/react': specifier: ^18.2.37 - version: registry.npmmirror.com/@types/react@18.2.37 + version: 18.2.37 '@types/react-dom': specifier: ^18.2.15 - version: registry.npmmirror.com/@types/react-dom@18.2.15 + version: 18.2.15 '@typescript-eslint/eslint-plugin': specifier: ^6.10.0 - version: registry.npmmirror.com/@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@5.2.2) + version: 6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@5.2.2) '@typescript-eslint/parser': specifier: ^6.10.0 - version: registry.npmmirror.com/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2) + version: 6.10.0(eslint@8.53.0)(typescript@5.2.2) '@vitejs/plugin-react': specifier: ^4.2.0 - version: registry.npmmirror.com/@vitejs/plugin-react@4.2.0(vite@5.0.0) + version: 4.2.0(vite@5.0.0) eslint: specifier: ^8.53.0 - version: registry.npmmirror.com/eslint@8.53.0 + version: 8.53.0 eslint-plugin-react-hooks: specifier: ^4.6.0 - version: registry.npmmirror.com/eslint-plugin-react-hooks@4.6.0(eslint@8.53.0) + version: 4.6.0(eslint@8.53.0) eslint-plugin-react-refresh: specifier: ^0.4.4 - version: registry.npmmirror.com/eslint-plugin-react-refresh@0.4.4(eslint@8.53.0) + version: 0.4.4(eslint@8.53.0) typescript: specifier: ^5.2.2 - version: registry.npmmirror.com/typescript@5.2.2 + version: 5.2.2 vite: specifier: ^5.0.0 - version: registry.npmmirror.com/vite@5.0.0(sass@1.69.5) + version: 5.0.0(sass@1.69.5) vite-plugin-svgr: specifier: ^4.2.0 - version: registry.npmmirror.com/vite-plugin-svgr@4.2.0(typescript@5.2.2)(vite@5.0.0) + version: 4.2.0(typescript@5.2.2)(vite@5.0.0) packages: - registry.npmmirror.com/@aashutoshrathi/word-wrap@1.2.6: - resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz} - name: '@aashutoshrathi/word-wrap' - version: 1.2.6 + /@aashutoshrathi/word-wrap@1.2.6: + resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} engines: {node: '>=0.10.0'} dev: true - registry.npmmirror.com/@ampproject/remapping@2.2.1: - resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.2.1.tgz} - name: '@ampproject/remapping' - version: 2.2.1 + /@ampproject/remapping@2.3.0: + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/gen-mapping': registry.npmmirror.com/@jridgewell/gen-mapping@0.3.3 - '@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 dev: true - registry.npmmirror.com/@babel/code-frame@7.23.5: - resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/code-frame/-/code-frame-7.23.5.tgz} - name: '@babel/code-frame' - version: 7.23.5 + /@babel/code-frame@7.24.2: + resolution: {integrity: sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/highlight': registry.npmmirror.com/@babel/highlight@7.23.4 - chalk: registry.npmmirror.com/chalk@2.4.2 + '@babel/highlight': 7.24.2 + picocolors: 1.0.0 dev: true - registry.npmmirror.com/@babel/compat-data@7.23.5: - resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.23.5.tgz} - name: '@babel/compat-data' - version: 7.23.5 + /@babel/compat-data@7.24.4: + resolution: {integrity: sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/@babel/core@7.23.5: - resolution: {integrity: sha512-Cwc2XjUrG4ilcfOw4wBAK+enbdgwAcAJCfGUItPBKR7Mjw4aEfAFYrLxeRp4jWgtNIKn3n2AlBOfwwafl+42/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/core/-/core-7.23.5.tgz} - name: '@babel/core' - version: 7.23.5 + /@babel/core@7.24.4: + resolution: {integrity: sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==} engines: {node: '>=6.9.0'} dependencies: - '@ampproject/remapping': registry.npmmirror.com/@ampproject/remapping@2.2.1 - '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 - '@babel/generator': registry.npmmirror.com/@babel/generator@7.23.5 - '@babel/helper-compilation-targets': registry.npmmirror.com/@babel/helper-compilation-targets@7.22.15 - '@babel/helper-module-transforms': registry.npmmirror.com/@babel/helper-module-transforms@7.23.3(@babel/core@7.23.5) - '@babel/helpers': registry.npmmirror.com/@babel/helpers@7.23.5 - '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 - '@babel/template': registry.npmmirror.com/@babel/template@7.22.15 - '@babel/traverse': registry.npmmirror.com/@babel/traverse@7.23.5 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 - convert-source-map: registry.npmmirror.com/convert-source-map@2.0.0 - debug: registry.npmmirror.com/debug@4.3.4 - gensync: registry.npmmirror.com/gensync@1.0.0-beta.2 - json5: registry.npmmirror.com/json5@2.2.3 - semver: registry.npmmirror.com/semver@6.3.1 + '@ampproject/remapping': 2.3.0 + '@babel/code-frame': 7.24.2 + '@babel/generator': 7.24.4 + '@babel/helper-compilation-targets': 7.23.6 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.4) + '@babel/helpers': 7.24.4 + '@babel/parser': 7.24.4 + '@babel/template': 7.24.0 + '@babel/traverse': 7.24.1 + '@babel/types': 7.24.0 + convert-source-map: 2.0.0 + debug: 4.3.4 + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@babel/generator@7.23.5: - resolution: {integrity: sha512-BPssCHrBD+0YrxviOa3QzpqwhNIXKEtOa2jQrm4FlmkC2apYgRnQcmPWiGZDlGxiNtltnUFolMe8497Esry+jA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/generator/-/generator-7.23.5.tgz} - name: '@babel/generator' - version: 7.23.5 + /@babel/generator@7.24.4: + resolution: {integrity: sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 - '@jridgewell/gen-mapping': registry.npmmirror.com/@jridgewell/gen-mapping@0.3.3 - '@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20 - jsesc: registry.npmmirror.com/jsesc@2.5.2 + '@babel/types': 7.24.0 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 + jsesc: 2.5.2 dev: true - registry.npmmirror.com/@babel/helper-compilation-targets@7.22.15: - resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz} - name: '@babel/helper-compilation-targets' - version: 7.22.15 + /@babel/helper-compilation-targets@7.23.6: + resolution: {integrity: sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/compat-data': registry.npmmirror.com/@babel/compat-data@7.23.5 - '@babel/helper-validator-option': registry.npmmirror.com/@babel/helper-validator-option@7.23.5 - browserslist: registry.npmmirror.com/browserslist@4.22.1 - lru-cache: registry.npmmirror.com/lru-cache@5.1.1 - semver: registry.npmmirror.com/semver@6.3.1 + '@babel/compat-data': 7.24.4 + '@babel/helper-validator-option': 7.23.5 + browserslist: 4.23.0 + lru-cache: 5.1.1 + semver: 6.3.1 dev: true - registry.npmmirror.com/@babel/helper-environment-visitor@7.22.20: - resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz} - name: '@babel/helper-environment-visitor' - version: 7.22.20 + /@babel/helper-environment-visitor@7.22.20: + resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/@babel/helper-function-name@7.23.0: - resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz} - name: '@babel/helper-function-name' - version: 7.23.0 + /@babel/helper-function-name@7.23.0: + resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': registry.npmmirror.com/@babel/template@7.22.15 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/template': 7.24.0 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/helper-hoist-variables@7.22.5: - resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz} - name: '@babel/helper-hoist-variables' - version: 7.22.5 + /@babel/helper-hoist-variables@7.22.5: + resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/helper-module-imports@7.22.15: - resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz} - name: '@babel/helper-module-imports' - version: 7.22.15 + /@babel/helper-module-imports@7.24.3: + resolution: {integrity: sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/helper-module-transforms@7.23.3(@babel/core@7.23.5): - resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz} - id: registry.npmmirror.com/@babel/helper-module-transforms/7.23.3 - name: '@babel/helper-module-transforms' - version: 7.23.3 + /@babel/helper-module-transforms@7.23.3(@babel/core@7.24.4): + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@babel/helper-environment-visitor': registry.npmmirror.com/@babel/helper-environment-visitor@7.22.20 - '@babel/helper-module-imports': registry.npmmirror.com/@babel/helper-module-imports@7.22.15 - '@babel/helper-simple-access': registry.npmmirror.com/@babel/helper-simple-access@7.22.5 - '@babel/helper-split-export-declaration': registry.npmmirror.com/@babel/helper-split-export-declaration@7.22.6 - '@babel/helper-validator-identifier': registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20 + '@babel/core': 7.24.4 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.24.3 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 dev: true - registry.npmmirror.com/@babel/helper-plugin-utils@7.22.5: - resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz} - name: '@babel/helper-plugin-utils' - version: 7.22.5 + /@babel/helper-plugin-utils@7.24.0: + resolution: {integrity: sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/@babel/helper-simple-access@7.22.5: - resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz} - name: '@babel/helper-simple-access' - version: 7.22.5 + /@babel/helper-simple-access@7.22.5: + resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/helper-split-export-declaration@7.22.6: - resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz} - name: '@babel/helper-split-export-declaration' - version: 7.22.6 + /@babel/helper-split-export-declaration@7.22.6: + resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/helper-string-parser@7.23.4: - resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz} - name: '@babel/helper-string-parser' - version: 7.23.4 + /@babel/helper-string-parser@7.24.1: + resolution: {integrity: sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20: - resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz} - name: '@babel/helper-validator-identifier' - version: 7.22.20 + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/@babel/helper-validator-option@7.23.5: - resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz} - name: '@babel/helper-validator-option' - version: 7.23.5 + /@babel/helper-validator-option@7.23.5: + resolution: {integrity: sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/@babel/helpers@7.23.5: - resolution: {integrity: sha512-oO7us8FzTEsG3U6ag9MfdF1iA/7Z6dz+MtFhifZk8C8o453rGJFFWUP1t+ULM9TUIAzC9uxXEiXjOiVMyd7QPg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/helpers/-/helpers-7.23.5.tgz} - name: '@babel/helpers' - version: 7.23.5 + /@babel/helpers@7.24.4: + resolution: {integrity: sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': registry.npmmirror.com/@babel/template@7.22.15 - '@babel/traverse': registry.npmmirror.com/@babel/traverse@7.23.5 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/template': 7.24.0 + '@babel/traverse': 7.24.1 + '@babel/types': 7.24.0 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@babel/highlight@7.23.4: - resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/highlight/-/highlight-7.23.4.tgz} - name: '@babel/highlight' - version: 7.23.4 + /@babel/highlight@7.24.2: + resolution: {integrity: sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-validator-identifier': registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20 - chalk: registry.npmmirror.com/chalk@2.4.2 - js-tokens: registry.npmmirror.com/js-tokens@4.0.0 + '@babel/helper-validator-identifier': 7.22.20 + chalk: 2.4.2 + js-tokens: 4.0.0 + picocolors: 1.0.0 dev: true - registry.npmmirror.com/@babel/parser@7.23.5: - resolution: {integrity: sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/parser/-/parser-7.23.5.tgz} - name: '@babel/parser' - version: 7.23.5 + /@babel/parser@7.24.4: + resolution: {integrity: sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==} engines: {node: '>=6.0.0'} hasBin: true dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.23.5): - resolution: {integrity: sha512-qXRvbeKDSfwnlJnanVRp0SfuWE5DQhwQr5xtLBzp56Wabyo+4CMosF6Kfp+eOD/4FYpql64XVJ2W0pVLlJZxOQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.23.3.tgz} - id: registry.npmmirror.com/@babel/plugin-transform-react-jsx-self/7.23.3 - name: '@babel/plugin-transform-react-jsx-self' - version: 7.23.3 + /@babel/plugin-transform-react-jsx-self@7.24.1(@babel/core@7.24.4): + resolution: {integrity: sha512-kDJgnPujTmAZ/9q2CN4m2/lRsUUPDvsG3+tSHWUJIzMGTt5U/b/fwWd3RO3n+5mjLrsBrVa5eKFRVSQbi3dF1w==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@babel/helper-plugin-utils': registry.npmmirror.com/@babel/helper-plugin-utils@7.22.5 + '@babel/core': 7.24.4 + '@babel/helper-plugin-utils': 7.24.0 dev: true - registry.npmmirror.com/@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.23.5): - resolution: {integrity: sha512-91RS0MDnAWDNvGC6Wio5XYkyWI39FMFO+JK9+4AlgaTH+yWwVTsw7/sn6LK0lH7c5F+TFkpv/3LfCJ1Ydwof/g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.23.3.tgz} - id: registry.npmmirror.com/@babel/plugin-transform-react-jsx-source/7.23.3 - name: '@babel/plugin-transform-react-jsx-source' - version: 7.23.3 + /@babel/plugin-transform-react-jsx-source@7.24.1(@babel/core@7.24.4): + resolution: {integrity: sha512-1v202n7aUq4uXAieRTKcwPzNyphlCuqHHDcdSNc+vdhoTEZcFMh+L5yZuCmGaIO7bs1nJUNfHB89TZyoL48xNA==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@babel/helper-plugin-utils': registry.npmmirror.com/@babel/helper-plugin-utils@7.22.5 + '@babel/core': 7.24.4 + '@babel/helper-plugin-utils': 7.24.0 dev: true - registry.npmmirror.com/@babel/runtime@7.23.5: - resolution: {integrity: sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/runtime/-/runtime-7.23.5.tgz} - name: '@babel/runtime' - version: 7.23.5 + /@babel/runtime@7.24.4: + resolution: {integrity: sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==} engines: {node: '>=6.9.0'} dependencies: - regenerator-runtime: registry.npmmirror.com/regenerator-runtime@0.14.0 + regenerator-runtime: 0.14.1 dev: false - registry.npmmirror.com/@babel/template@7.22.15: - resolution: {integrity: sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/template/-/template-7.22.15.tgz} - name: '@babel/template' - version: 7.22.15 + /@babel/template@7.24.0: + resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 - '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/code-frame': 7.24.2 + '@babel/parser': 7.24.4 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@babel/traverse@7.23.5: - resolution: {integrity: sha512-czx7Xy5a6sapWWRx61m1Ke1Ra4vczu1mCTtJam5zRTBOonfdJ+S/B6HYmGYu3fJtr8GGET3si6IhgWVBhJ/m8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/traverse/-/traverse-7.23.5.tgz} - name: '@babel/traverse' - version: 7.23.5 + /@babel/traverse@7.24.1: + resolution: {integrity: sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==} engines: {node: '>=6.9.0'} dependencies: - '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 - '@babel/generator': registry.npmmirror.com/@babel/generator@7.23.5 - '@babel/helper-environment-visitor': registry.npmmirror.com/@babel/helper-environment-visitor@7.22.20 - '@babel/helper-function-name': registry.npmmirror.com/@babel/helper-function-name@7.23.0 - '@babel/helper-hoist-variables': registry.npmmirror.com/@babel/helper-hoist-variables@7.22.5 - '@babel/helper-split-export-declaration': registry.npmmirror.com/@babel/helper-split-export-declaration@7.22.6 - '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 - debug: registry.npmmirror.com/debug@4.3.4 - globals: registry.npmmirror.com/globals@11.12.0 + '@babel/code-frame': 7.24.2 + '@babel/generator': 7.24.4 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-function-name': 7.23.0 + '@babel/helper-hoist-variables': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/parser': 7.24.4 + '@babel/types': 7.24.0 + debug: 4.3.4 + globals: 11.12.0 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@babel/types@7.23.5: - resolution: {integrity: sha512-ON5kSOJwVO6xXVRTvOI0eOnWe7VdUcIpsovGo9U/Br4Ie4UVFQTboO2cYnDhAGU6Fp+UxSiT+pMft0SMHfuq6w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@babel/types/-/types-7.23.5.tgz} - name: '@babel/types' - version: 7.23.5 + /@babel/types@7.24.0: + resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/helper-string-parser': registry.npmmirror.com/@babel/helper-string-parser@7.23.4 - '@babel/helper-validator-identifier': registry.npmmirror.com/@babel/helper-validator-identifier@7.22.20 - to-fast-properties: registry.npmmirror.com/to-fast-properties@2.0.0 + '@babel/helper-string-parser': 7.24.1 + '@babel/helper-validator-identifier': 7.22.20 + to-fast-properties: 2.0.0 dev: true - registry.npmmirror.com/@dnd-kit/accessibility@3.1.0(react@18.2.0): - resolution: {integrity: sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/accessibility/-/accessibility-3.1.0.tgz} - id: registry.npmmirror.com/@dnd-kit/accessibility/3.1.0 - name: '@dnd-kit/accessibility' - version: 3.1.0 + /@dnd-kit/accessibility@3.1.0(react@18.2.0): + resolution: {integrity: sha512-ea7IkhKvlJUv9iSHJOnxinBcoOI3ppGnnL+VDJ75O45Nss6HtZd8IdN8touXPDtASfeI2T2LImb8VOZcL47wjQ==} peerDependencies: react: '>=16.8.0' dependencies: - react: registry.npmmirror.com/react@18.2.0 - tslib: registry.npmmirror.com/tslib@2.6.2 + react: 18.2.0 + tslib: 2.6.2 dev: false - registry.npmmirror.com/@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-J3cQBClB4TVxwGo3KEjssGEXNJqGVWx17aRTZ1ob0FliR5IjYgTxl5YJbKTzA6IzrtelotH19v6y7uoIRUZPSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/core/-/core-6.1.0.tgz} - id: registry.npmmirror.com/@dnd-kit/core/6.1.0 - name: '@dnd-kit/core' - version: 6.1.0 + /@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-J3cQBClB4TVxwGo3KEjssGEXNJqGVWx17aRTZ1ob0FliR5IjYgTxl5YJbKTzA6IzrtelotH19v6y7uoIRUZPSg==} peerDependencies: react: '>=16.8.0' react-dom: '>=16.8.0' dependencies: - '@dnd-kit/accessibility': registry.npmmirror.com/@dnd-kit/accessibility@3.1.0(react@18.2.0) - '@dnd-kit/utilities': registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0) - react: registry.npmmirror.com/react@18.2.0 - react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) - tslib: registry.npmmirror.com/tslib@2.6.2 + '@dnd-kit/accessibility': 3.1.0(react@18.2.0) + '@dnd-kit/utilities': 3.2.2(react@18.2.0) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + tslib: 2.6.2 dev: false - registry.npmmirror.com/@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0): - resolution: {integrity: sha512-wDkBHHf9iCi1veM834Gbk1429bd4lHX4RpAwT0y2cHLf246GAvU2sVw/oxWNpPKQNQRQaeGXhAVgrOl1IT+iyA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/sortable/-/sortable-7.0.2.tgz} - id: registry.npmmirror.com/@dnd-kit/sortable/7.0.2 - name: '@dnd-kit/sortable' - version: 7.0.2 + /@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0): + resolution: {integrity: sha512-wDkBHHf9iCi1veM834Gbk1429bd4lHX4RpAwT0y2cHLf246GAvU2sVw/oxWNpPKQNQRQaeGXhAVgrOl1IT+iyA==} peerDependencies: '@dnd-kit/core': ^6.0.7 react: '>=16.8.0' dependencies: - '@dnd-kit/core': registry.npmmirror.com/@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0) - '@dnd-kit/utilities': registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0) - react: registry.npmmirror.com/react@18.2.0 - tslib: registry.npmmirror.com/tslib@2.6.2 + '@dnd-kit/core': 6.1.0(react-dom@18.2.0)(react@18.2.0) + '@dnd-kit/utilities': 3.2.2(react@18.2.0) + react: 18.2.0 + tslib: 2.6.2 dev: false - registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0): - resolution: {integrity: sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@dnd-kit/utilities/-/utilities-3.2.2.tgz} - id: registry.npmmirror.com/@dnd-kit/utilities/3.2.2 - name: '@dnd-kit/utilities' - version: 3.2.2 + /@dnd-kit/utilities@3.2.2(react@18.2.0): + resolution: {integrity: sha512-+MKAJEOfaBe5SmV6t34p80MMKhjvUz0vRrvVJbPT0WElzaOJ/1xs+D+KDv+tD/NE5ujfrChEcshd4fLn0wpiqg==} peerDependencies: react: '>=16.8.0' dependencies: - react: registry.npmmirror.com/react@18.2.0 - tslib: registry.npmmirror.com/tslib@2.6.2 + react: 18.2.0 + tslib: 2.6.2 dev: false - registry.npmmirror.com/@douyinfe/semi-animation-react@2.47.1: - resolution: {integrity: sha512-5BzuEHSOW06IbNotshB1RsUoq0oJdY9IpmbQQL77kmvu8DvKnIsGDeYWP6TYwoKycCCMIDyCYsD13s+qMUGvwg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-animation-react/-/semi-animation-react-2.47.1.tgz} - name: '@douyinfe/semi-animation-react' - version: 2.47.1 + /@douyinfe/semi-animation-react@2.47.1: + resolution: {integrity: sha512-5BzuEHSOW06IbNotshB1RsUoq0oJdY9IpmbQQL77kmvu8DvKnIsGDeYWP6TYwoKycCCMIDyCYsD13s+qMUGvwg==} dependencies: - '@douyinfe/semi-animation': registry.npmmirror.com/@douyinfe/semi-animation@2.47.1 - '@douyinfe/semi-animation-styled': registry.npmmirror.com/@douyinfe/semi-animation-styled@2.47.1 - classnames: registry.npmmirror.com/classnames@2.3.2 + '@douyinfe/semi-animation': 2.47.1 + '@douyinfe/semi-animation-styled': 2.47.1 + classnames: 2.5.1 dev: false - registry.npmmirror.com/@douyinfe/semi-animation-styled@2.47.1: - resolution: {integrity: sha512-jjEwbVMKaIh74A1svvLdSseGIiJYX0CiMisfiwWtp/f3OCJTB20CaIHrINGTti5R9bB/MD5Oe3GuHLoD6/JQMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-animation-styled/-/semi-animation-styled-2.47.1.tgz} - name: '@douyinfe/semi-animation-styled' - version: 2.47.1 + /@douyinfe/semi-animation-styled@2.47.1: + resolution: {integrity: sha512-jjEwbVMKaIh74A1svvLdSseGIiJYX0CiMisfiwWtp/f3OCJTB20CaIHrINGTti5R9bB/MD5Oe3GuHLoD6/JQMw==} dev: false - registry.npmmirror.com/@douyinfe/semi-animation@2.47.1: - resolution: {integrity: sha512-DG4bP3N3UZSeIoP4hDGFyKzNF83cd9vVjCJnxHUGTtVtFSpO1b47iQ0kD1qcgkUZghEqeixPFFu+6ilhq0qzZg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-animation/-/semi-animation-2.47.1.tgz} - name: '@douyinfe/semi-animation' - version: 2.47.1 + /@douyinfe/semi-animation@2.47.1: + resolution: {integrity: sha512-DG4bP3N3UZSeIoP4hDGFyKzNF83cd9vVjCJnxHUGTtVtFSpO1b47iQ0kD1qcgkUZghEqeixPFFu+6ilhq0qzZg==} dependencies: - bezier-easing: registry.npmmirror.com/bezier-easing@2.1.0 + bezier-easing: 2.1.0 dev: false - registry.npmmirror.com/@douyinfe/semi-foundation@2.47.1: - resolution: {integrity: sha512-2yO2kPO9TX+7gzRikmUy34CRckTB3Qkt+K9eIA2FMnIQ7R00yus7nAeoLaOaU8qUJd+OrqIEtwHGxthd0V1Wrg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-foundation/-/semi-foundation-2.47.1.tgz} - name: '@douyinfe/semi-foundation' - version: 2.47.1 - dependencies: - '@douyinfe/semi-animation': registry.npmmirror.com/@douyinfe/semi-animation@2.47.1 - async-validator: registry.npmmirror.com/async-validator@3.5.2 - classnames: registry.npmmirror.com/classnames@2.3.2 - date-fns: registry.npmmirror.com/date-fns@2.30.0 - date-fns-tz: registry.npmmirror.com/date-fns-tz@1.3.8(date-fns@2.30.0) - lodash: registry.npmmirror.com/lodash@4.17.21 - memoize-one: registry.npmmirror.com/memoize-one@5.2.1 - scroll-into-view-if-needed: registry.npmmirror.com/scroll-into-view-if-needed@2.2.31 + /@douyinfe/semi-foundation@2.47.1: + resolution: {integrity: sha512-2yO2kPO9TX+7gzRikmUy34CRckTB3Qkt+K9eIA2FMnIQ7R00yus7nAeoLaOaU8qUJd+OrqIEtwHGxthd0V1Wrg==} + dependencies: + '@douyinfe/semi-animation': 2.47.1 + async-validator: 3.5.2 + classnames: 2.5.1 + date-fns: 2.30.0 + date-fns-tz: 1.3.8(date-fns@2.30.0) + lodash: 4.17.21 + memoize-one: 5.2.1 + scroll-into-view-if-needed: 2.2.31 dev: false - registry.npmmirror.com/@douyinfe/semi-icons-lab@2.47.1(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-UYAtDQjdHk3ymLAPmiHjk+XGLn6ppghpzRnMMxq7TUucJw8enysOM6lvr6bH34VNk0SKrzHBQyKgG7rhQL3gmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-icons-lab/-/semi-icons-lab-2.47.1.tgz} - id: registry.npmmirror.com/@douyinfe/semi-icons-lab/2.47.1 - name: '@douyinfe/semi-icons-lab' - version: 2.47.1 + /@douyinfe/semi-icons-lab@2.47.1(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-UYAtDQjdHk3ymLAPmiHjk+XGLn6ppghpzRnMMxq7TUucJw8enysOM6lvr6bH34VNk0SKrzHBQyKgG7rhQL3gmw==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - react: registry.npmmirror.com/react@18.2.0 - react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) dev: false - registry.npmmirror.com/@douyinfe/semi-icons@2.47.1(react@18.2.0): - resolution: {integrity: sha512-+gC22MWuOCKSRwB5Yxq55+NUgoO9b7stYvIkuCmPuD3kYgjFhhGRR+o9dscQmDa8Wjd98wY05zI01S4BV/ptLw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-icons/-/semi-icons-2.47.1.tgz} - id: registry.npmmirror.com/@douyinfe/semi-icons/2.47.1 - name: '@douyinfe/semi-icons' - version: 2.47.1 + /@douyinfe/semi-icons@2.47.1(react@18.2.0): + resolution: {integrity: sha512-+gC22MWuOCKSRwB5Yxq55+NUgoO9b7stYvIkuCmPuD3kYgjFhhGRR+o9dscQmDa8Wjd98wY05zI01S4BV/ptLw==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - classnames: registry.npmmirror.com/classnames@2.3.2 - react: registry.npmmirror.com/react@18.2.0 + classnames: 2.5.1 + react: 18.2.0 dev: false - registry.npmmirror.com/@douyinfe/semi-illustrations@2.47.1(react@18.2.0): - resolution: {integrity: sha512-ouhdAHzcBEW5kv5EFvHQsITSHIxlL0mnCMz63TVIywGA6QnCcxyMG6er0rlChAnu76FhlERR/Ys5Dlf2e5VhSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-illustrations/-/semi-illustrations-2.47.1.tgz} - id: registry.npmmirror.com/@douyinfe/semi-illustrations/2.47.1 - name: '@douyinfe/semi-illustrations' - version: 2.47.1 + /@douyinfe/semi-illustrations@2.47.1(react@18.2.0): + resolution: {integrity: sha512-ouhdAHzcBEW5kv5EFvHQsITSHIxlL0mnCMz63TVIywGA6QnCcxyMG6er0rlChAnu76FhlERR/Ys5Dlf2e5VhSQ==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - react: registry.npmmirror.com/react@18.2.0 + react: 18.2.0 dev: false - registry.npmmirror.com/@douyinfe/semi-theme-default@2.47.1: - resolution: {integrity: sha512-GGWH6sBvwBft8eB+7V0VSueSVmsfLhabzSv/GXYwZeyljyuj4/JTRZa2qyiSgN1BOZbwn3vPW1si2QFioR0gQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-theme-default/-/semi-theme-default-2.47.1.tgz} - name: '@douyinfe/semi-theme-default' - version: 2.47.1 + /@douyinfe/semi-theme-default@2.47.1: + resolution: {integrity: sha512-GGWH6sBvwBft8eB+7V0VSueSVmsfLhabzSv/GXYwZeyljyuj4/JTRZa2qyiSgN1BOZbwn3vPW1si2QFioR0gQA==} dependencies: - glob: registry.npmmirror.com/glob@7.2.3 + glob: 7.2.3 dev: false - registry.npmmirror.com/@douyinfe/semi-ui@2.47.1(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-HxYvjn32DJsDPmcspM8jzHMY84f4skEAN6Zheg4FPW74uAUSnGILj5HXd/vZM4c6bbJeQSnxP0Grqa5qrZFpkg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@douyinfe/semi-ui/-/semi-ui-2.47.1.tgz} - id: registry.npmmirror.com/@douyinfe/semi-ui/2.47.1 - name: '@douyinfe/semi-ui' - version: 2.47.1 + /@douyinfe/semi-ui@2.47.1(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-HxYvjn32DJsDPmcspM8jzHMY84f4skEAN6Zheg4FPW74uAUSnGILj5HXd/vZM4c6bbJeQSnxP0Grqa5qrZFpkg==} peerDependencies: react: '>=16.0.0' react-dom: '>=16.0.0' dependencies: - '@dnd-kit/core': registry.npmmirror.com/@dnd-kit/core@6.1.0(react-dom@18.2.0)(react@18.2.0) - '@dnd-kit/sortable': registry.npmmirror.com/@dnd-kit/sortable@7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0) - '@dnd-kit/utilities': registry.npmmirror.com/@dnd-kit/utilities@3.2.2(react@18.2.0) - '@douyinfe/semi-animation': registry.npmmirror.com/@douyinfe/semi-animation@2.47.1 - '@douyinfe/semi-animation-react': registry.npmmirror.com/@douyinfe/semi-animation-react@2.47.1 - '@douyinfe/semi-foundation': registry.npmmirror.com/@douyinfe/semi-foundation@2.47.1 - '@douyinfe/semi-icons': registry.npmmirror.com/@douyinfe/semi-icons@2.47.1(react@18.2.0) - '@douyinfe/semi-illustrations': registry.npmmirror.com/@douyinfe/semi-illustrations@2.47.1(react@18.2.0) - '@douyinfe/semi-theme-default': registry.npmmirror.com/@douyinfe/semi-theme-default@2.47.1 - async-validator: registry.npmmirror.com/async-validator@3.5.2 - classnames: registry.npmmirror.com/classnames@2.3.2 - copy-text-to-clipboard: registry.npmmirror.com/copy-text-to-clipboard@2.2.0 - date-fns: registry.npmmirror.com/date-fns@2.30.0 - date-fns-tz: registry.npmmirror.com/date-fns-tz@1.3.8(date-fns@2.30.0) - lodash: registry.npmmirror.com/lodash@4.17.21 - prop-types: registry.npmmirror.com/prop-types@15.8.1 - react: registry.npmmirror.com/react@18.2.0 - react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) - react-resizable: registry.npmmirror.com/react-resizable@3.0.5(react-dom@18.2.0)(react@18.2.0) - react-window: registry.npmmirror.com/react-window@1.8.10(react-dom@18.2.0)(react@18.2.0) - resize-observer-polyfill: registry.npmmirror.com/resize-observer-polyfill@1.5.1 - scroll-into-view-if-needed: registry.npmmirror.com/scroll-into-view-if-needed@2.2.31 - utility-types: registry.npmmirror.com/utility-types@3.10.0 + '@dnd-kit/core': 6.1.0(react-dom@18.2.0)(react@18.2.0) + '@dnd-kit/sortable': 7.0.2(@dnd-kit/core@6.1.0)(react@18.2.0) + '@dnd-kit/utilities': 3.2.2(react@18.2.0) + '@douyinfe/semi-animation': 2.47.1 + '@douyinfe/semi-animation-react': 2.47.1 + '@douyinfe/semi-foundation': 2.47.1 + '@douyinfe/semi-icons': 2.47.1(react@18.2.0) + '@douyinfe/semi-illustrations': 2.47.1(react@18.2.0) + '@douyinfe/semi-theme-default': 2.47.1 + async-validator: 3.5.2 + classnames: 2.5.1 + copy-text-to-clipboard: 2.2.0 + date-fns: 2.30.0 + date-fns-tz: 1.3.8(date-fns@2.30.0) + lodash: 4.17.21 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-resizable: 3.0.5(react-dom@18.2.0)(react@18.2.0) + react-window: 1.8.10(react-dom@18.2.0)(react@18.2.0) + resize-observer-polyfill: 1.5.1 + scroll-into-view-if-needed: 2.2.31 + utility-types: 3.11.0 dev: false - registry.npmmirror.com/@esbuild/android-arm64@0.19.8: - resolution: {integrity: sha512-B8JbS61bEunhfx8kasogFENgQfr/dIp+ggYXwTqdbMAgGDhRa3AaPpQMuQU0rNxDLECj6FhDzk1cF9WHMVwrtA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.19.8.tgz} - name: '@esbuild/android-arm64' - version: 0.19.8 + /@esbuild/aix-ppc64@0.19.12: + resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} + engines: {node: '>=12'} + cpu: [ppc64] + os: [aix] + requiresBuild: true + dev: true + optional: true + + /@esbuild/android-arm64@0.19.12: + resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==} engines: {node: '>=12'} cpu: [arm64] os: [android] @@ -561,10 +478,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/android-arm@0.19.8: - resolution: {integrity: sha512-31E2lxlGM1KEfivQl8Yf5aYU/mflz9g06H6S15ITUFQueMFtFjESRMoDSkvMo8thYvLBax+VKTPlpnx+sPicOA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.19.8.tgz} - name: '@esbuild/android-arm' - version: 0.19.8 + /@esbuild/android-arm@0.19.12: + resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==} engines: {node: '>=12'} cpu: [arm] os: [android] @@ -572,10 +487,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/android-x64@0.19.8: - resolution: {integrity: sha512-rdqqYfRIn4jWOp+lzQttYMa2Xar3OK9Yt2fhOhzFXqg0rVWEfSclJvZq5fZslnz6ypHvVf3CT7qyf0A5pM682A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.19.8.tgz} - name: '@esbuild/android-x64' - version: 0.19.8 + /@esbuild/android-x64@0.19.12: + resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==} engines: {node: '>=12'} cpu: [x64] os: [android] @@ -583,10 +496,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/darwin-arm64@0.19.8: - resolution: {integrity: sha512-RQw9DemMbIq35Bprbboyf8SmOr4UXsRVxJ97LgB55VKKeJOOdvsIPy0nFyF2l8U+h4PtBx/1kRf0BelOYCiQcw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.8.tgz} - name: '@esbuild/darwin-arm64' - version: 0.19.8 + /@esbuild/darwin-arm64@0.19.12: + resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==} engines: {node: '>=12'} cpu: [arm64] os: [darwin] @@ -594,10 +505,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/darwin-x64@0.19.8: - resolution: {integrity: sha512-3sur80OT9YdeZwIVgERAysAbwncom7b4bCI2XKLjMfPymTud7e/oY4y+ci1XVp5TfQp/bppn7xLw1n/oSQY3/Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.19.8.tgz} - name: '@esbuild/darwin-x64' - version: 0.19.8 + /@esbuild/darwin-x64@0.19.12: + resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==} engines: {node: '>=12'} cpu: [x64] os: [darwin] @@ -605,10 +514,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/freebsd-arm64@0.19.8: - resolution: {integrity: sha512-WAnPJSDattvS/XtPCTj1tPoTxERjcTpH6HsMr6ujTT+X6rylVe8ggxk8pVxzf5U1wh5sPODpawNicF5ta/9Tmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.8.tgz} - name: '@esbuild/freebsd-arm64' - version: 0.19.8 + /@esbuild/freebsd-arm64@0.19.12: + resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==} engines: {node: '>=12'} cpu: [arm64] os: [freebsd] @@ -616,10 +523,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/freebsd-x64@0.19.8: - resolution: {integrity: sha512-ICvZyOplIjmmhjd6mxi+zxSdpPTKFfyPPQMQTK/w+8eNK6WV01AjIztJALDtwNNfFhfZLux0tZLC+U9nSyA5Zg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.8.tgz} - name: '@esbuild/freebsd-x64' - version: 0.19.8 + /@esbuild/freebsd-x64@0.19.12: + resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==} engines: {node: '>=12'} cpu: [x64] os: [freebsd] @@ -627,10 +532,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-arm64@0.19.8: - resolution: {integrity: sha512-z1zMZivxDLHWnyGOctT9JP70h0beY54xDDDJt4VpTX+iwA77IFsE1vCXWmprajJGa+ZYSqkSbRQ4eyLCpCmiCQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.19.8.tgz} - name: '@esbuild/linux-arm64' - version: 0.19.8 + /@esbuild/linux-arm64@0.19.12: + resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==} engines: {node: '>=12'} cpu: [arm64] os: [linux] @@ -638,10 +541,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-arm@0.19.8: - resolution: {integrity: sha512-H4vmI5PYqSvosPaTJuEppU9oz1dq2A7Mr2vyg5TF9Ga+3+MGgBdGzcyBP7qK9MrwFQZlvNyJrvz6GuCaj3OukQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.19.8.tgz} - name: '@esbuild/linux-arm' - version: 0.19.8 + /@esbuild/linux-arm@0.19.12: + resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==} engines: {node: '>=12'} cpu: [arm] os: [linux] @@ -649,10 +550,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-ia32@0.19.8: - resolution: {integrity: sha512-1a8suQiFJmZz1khm/rDglOc8lavtzEMRo0v6WhPgxkrjcU0LkHj+TwBrALwoz/OtMExvsqbbMI0ChyelKabSvQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.19.8.tgz} - name: '@esbuild/linux-ia32' - version: 0.19.8 + /@esbuild/linux-ia32@0.19.12: + resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==} engines: {node: '>=12'} cpu: [ia32] os: [linux] @@ -660,10 +559,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-loong64@0.19.8: - resolution: {integrity: sha512-fHZWS2JJxnXt1uYJsDv9+b60WCc2RlvVAy1F76qOLtXRO+H4mjt3Tr6MJ5l7Q78X8KgCFudnTuiQRBhULUyBKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.19.8.tgz} - name: '@esbuild/linux-loong64' - version: 0.19.8 + /@esbuild/linux-loong64@0.19.12: + resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==} engines: {node: '>=12'} cpu: [loong64] os: [linux] @@ -671,10 +568,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-mips64el@0.19.8: - resolution: {integrity: sha512-Wy/z0EL5qZYLX66dVnEg9riiwls5IYnziwuju2oUiuxVc+/edvqXa04qNtbrs0Ukatg5HEzqT94Zs7J207dN5Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.8.tgz} - name: '@esbuild/linux-mips64el' - version: 0.19.8 + /@esbuild/linux-mips64el@0.19.12: + resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==} engines: {node: '>=12'} cpu: [mips64el] os: [linux] @@ -682,10 +577,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-ppc64@0.19.8: - resolution: {integrity: sha512-ETaW6245wK23YIEufhMQ3HSeHO7NgsLx8gygBVldRHKhOlD1oNeNy/P67mIh1zPn2Hr2HLieQrt6tWrVwuqrxg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.8.tgz} - name: '@esbuild/linux-ppc64' - version: 0.19.8 + /@esbuild/linux-ppc64@0.19.12: + resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==} engines: {node: '>=12'} cpu: [ppc64] os: [linux] @@ -693,10 +586,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-riscv64@0.19.8: - resolution: {integrity: sha512-T2DRQk55SgoleTP+DtPlMrxi/5r9AeFgkhkZ/B0ap99zmxtxdOixOMI570VjdRCs9pE4Wdkz7JYrsPvsl7eESg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.8.tgz} - name: '@esbuild/linux-riscv64' - version: 0.19.8 + /@esbuild/linux-riscv64@0.19.12: + resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==} engines: {node: '>=12'} cpu: [riscv64] os: [linux] @@ -704,10 +595,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-s390x@0.19.8: - resolution: {integrity: sha512-NPxbdmmo3Bk7mbNeHmcCd7R7fptJaczPYBaELk6NcXxy7HLNyWwCyDJ/Xx+/YcNH7Im5dHdx9gZ5xIwyliQCbg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.19.8.tgz} - name: '@esbuild/linux-s390x' - version: 0.19.8 + /@esbuild/linux-s390x@0.19.12: + resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==} engines: {node: '>=12'} cpu: [s390x] os: [linux] @@ -715,10 +604,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/linux-x64@0.19.8: - resolution: {integrity: sha512-lytMAVOM3b1gPypL2TRmZ5rnXl7+6IIk8uB3eLsV1JwcizuolblXRrc5ShPrO9ls/b+RTp+E6gbsuLWHWi2zGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.19.8.tgz} - name: '@esbuild/linux-x64' - version: 0.19.8 + /@esbuild/linux-x64@0.19.12: + resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==} engines: {node: '>=12'} cpu: [x64] os: [linux] @@ -726,10 +613,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/netbsd-x64@0.19.8: - resolution: {integrity: sha512-hvWVo2VsXz/8NVt1UhLzxwAfo5sioj92uo0bCfLibB0xlOmimU/DeAEsQILlBQvkhrGjamP0/el5HU76HAitGw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.8.tgz} - name: '@esbuild/netbsd-x64' - version: 0.19.8 + /@esbuild/netbsd-x64@0.19.12: + resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==} engines: {node: '>=12'} cpu: [x64] os: [netbsd] @@ -737,10 +622,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/openbsd-x64@0.19.8: - resolution: {integrity: sha512-/7Y7u77rdvmGTxR83PgaSvSBJCC2L3Kb1M/+dmSIvRvQPXXCuC97QAwMugBNG0yGcbEGfFBH7ojPzAOxfGNkwQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.8.tgz} - name: '@esbuild/openbsd-x64' - version: 0.19.8 + /@esbuild/openbsd-x64@0.19.12: + resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==} engines: {node: '>=12'} cpu: [x64] os: [openbsd] @@ -748,10 +631,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/sunos-x64@0.19.8: - resolution: {integrity: sha512-9Lc4s7Oi98GqFA4HzA/W2JHIYfnXbUYgekUP/Sm4BG9sfLjyv6GKKHKKVs83SMicBF2JwAX6A1PuOLMqpD001w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.19.8.tgz} - name: '@esbuild/sunos-x64' - version: 0.19.8 + /@esbuild/sunos-x64@0.19.12: + resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==} engines: {node: '>=12'} cpu: [x64] os: [sunos] @@ -759,10 +640,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/win32-arm64@0.19.8: - resolution: {integrity: sha512-rq6WzBGjSzihI9deW3fC2Gqiak68+b7qo5/3kmB6Gvbh/NYPA0sJhrnp7wgV4bNwjqM+R2AApXGxMO7ZoGhIJg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.19.8.tgz} - name: '@esbuild/win32-arm64' - version: 0.19.8 + /@esbuild/win32-arm64@0.19.12: + resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==} engines: {node: '>=12'} cpu: [arm64] os: [win32] @@ -770,10 +649,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/win32-ia32@0.19.8: - resolution: {integrity: sha512-AIAbverbg5jMvJznYiGhrd3sumfwWs8572mIJL5NQjJa06P8KfCPWZQ0NwZbPQnbQi9OWSZhFVSUWjjIrn4hSw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.19.8.tgz} - name: '@esbuild/win32-ia32' - version: 0.19.8 + /@esbuild/win32-ia32@0.19.12: + resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==} engines: {node: '>=12'} cpu: [ia32] os: [win32] @@ -781,10 +658,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@esbuild/win32-x64@0.19.8: - resolution: {integrity: sha512-bfZ0cQ1uZs2PqpulNL5j/3w+GDhP36k1K5c38QdQg+Swy51jFZWWeIkteNsufkQxp986wnqRRsb/bHbY1WQ7TA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.19.8.tgz} - name: '@esbuild/win32-x64' - version: 0.19.8 + /@esbuild/win32-x64@0.19.12: + resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==} engines: {node: '>=12'} cpu: [x64] os: [win32] @@ -792,156 +667,121 @@ packages: dev: true optional: true - registry.npmmirror.com/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0): - resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz} - id: registry.npmmirror.com/@eslint-community/eslint-utils/4.4.0 - name: '@eslint-community/eslint-utils' - version: 4.4.0 + /@eslint-community/eslint-utils@4.4.0(eslint@8.53.0): + resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 dependencies: - eslint: registry.npmmirror.com/eslint@8.53.0 - eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + eslint: 8.53.0 + eslint-visitor-keys: 3.4.3 dev: true - registry.npmmirror.com/@eslint-community/regexpp@4.10.0: - resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz} - name: '@eslint-community/regexpp' - version: 4.10.0 + /@eslint-community/regexpp@4.10.0: + resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} dev: true - registry.npmmirror.com/@eslint/eslintrc@2.1.3: - resolution: {integrity: sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-2.1.3.tgz} - name: '@eslint/eslintrc' - version: 2.1.3 + /@eslint/eslintrc@2.1.4: + resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - ajv: registry.npmmirror.com/ajv@6.12.6 - debug: registry.npmmirror.com/debug@4.3.4 - espree: registry.npmmirror.com/espree@9.6.1 - globals: registry.npmmirror.com/globals@13.23.0 - ignore: registry.npmmirror.com/ignore@5.3.0 - import-fresh: registry.npmmirror.com/import-fresh@3.3.0 - js-yaml: registry.npmmirror.com/js-yaml@4.1.0 - minimatch: registry.npmmirror.com/minimatch@3.1.2 - strip-json-comments: registry.npmmirror.com/strip-json-comments@3.1.1 + ajv: 6.12.6 + debug: 4.3.4 + espree: 9.6.1 + globals: 13.24.0 + ignore: 5.3.1 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + minimatch: 3.1.2 + strip-json-comments: 3.1.1 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@eslint/js@8.53.0: - resolution: {integrity: sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@eslint/js/-/js-8.53.0.tgz} - name: '@eslint/js' - version: 8.53.0 + /@eslint/js@8.53.0: + resolution: {integrity: sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - registry.npmmirror.com/@humanwhocodes/config-array@0.11.13: - resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@humanwhocodes/config-array/-/config-array-0.11.13.tgz} - name: '@humanwhocodes/config-array' - version: 0.11.13 + /@humanwhocodes/config-array@0.11.14: + resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==} engines: {node: '>=10.10.0'} dependencies: - '@humanwhocodes/object-schema': registry.npmmirror.com/@humanwhocodes/object-schema@2.0.1 - debug: registry.npmmirror.com/debug@4.3.4 - minimatch: registry.npmmirror.com/minimatch@3.1.2 + '@humanwhocodes/object-schema': 2.0.3 + debug: 4.3.4 + minimatch: 3.1.2 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@humanwhocodes/module-importer@1.0.1: - resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz} - name: '@humanwhocodes/module-importer' - version: 1.0.1 + /@humanwhocodes/module-importer@1.0.1: + resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==} engines: {node: '>=12.22'} dev: true - registry.npmmirror.com/@humanwhocodes/object-schema@2.0.1: - resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz} - name: '@humanwhocodes/object-schema' - version: 2.0.1 + /@humanwhocodes/object-schema@2.0.3: + resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==} dev: true - registry.npmmirror.com/@jridgewell/gen-mapping@0.3.3: - resolution: {integrity: sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz} - name: '@jridgewell/gen-mapping' - version: 0.3.3 + /@jridgewell/gen-mapping@0.3.5: + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/set-array': registry.npmmirror.com/@jridgewell/set-array@1.1.2 - '@jridgewell/sourcemap-codec': registry.npmmirror.com/@jridgewell/sourcemap-codec@1.4.15 - '@jridgewell/trace-mapping': registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20 + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.4.15 + '@jridgewell/trace-mapping': 0.3.25 dev: true - registry.npmmirror.com/@jridgewell/resolve-uri@3.1.1: - resolution: {integrity: sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz} - name: '@jridgewell/resolve-uri' - version: 3.1.1 + /@jridgewell/resolve-uri@3.1.2: + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} engines: {node: '>=6.0.0'} dev: true - registry.npmmirror.com/@jridgewell/set-array@1.1.2: - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.1.2.tgz} - name: '@jridgewell/set-array' - version: 1.1.2 + /@jridgewell/set-array@1.2.1: + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} dev: true - registry.npmmirror.com/@jridgewell/sourcemap-codec@1.4.15: - resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz} - name: '@jridgewell/sourcemap-codec' - version: 1.4.15 + /@jridgewell/sourcemap-codec@1.4.15: + resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true - registry.npmmirror.com/@jridgewell/trace-mapping@0.3.20: - resolution: {integrity: sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz} - name: '@jridgewell/trace-mapping' - version: 0.3.20 + /@jridgewell/trace-mapping@0.3.25: + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} dependencies: - '@jridgewell/resolve-uri': registry.npmmirror.com/@jridgewell/resolve-uri@3.1.1 - '@jridgewell/sourcemap-codec': registry.npmmirror.com/@jridgewell/sourcemap-codec@1.4.15 + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.4.15 dev: true - registry.npmmirror.com/@nodelib/fs.scandir@2.1.5: - resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz} - name: '@nodelib/fs.scandir' - version: 2.1.5 + /@nodelib/fs.scandir@2.1.5: + resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} dependencies: - '@nodelib/fs.stat': registry.npmmirror.com/@nodelib/fs.stat@2.0.5 - run-parallel: registry.npmmirror.com/run-parallel@1.2.0 + '@nodelib/fs.stat': 2.0.5 + run-parallel: 1.2.0 dev: true - registry.npmmirror.com/@nodelib/fs.stat@2.0.5: - resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz} - name: '@nodelib/fs.stat' - version: 2.0.5 + /@nodelib/fs.stat@2.0.5: + resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==} engines: {node: '>= 8'} dev: true - registry.npmmirror.com/@nodelib/fs.walk@1.2.8: - resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz} - name: '@nodelib/fs.walk' - version: 1.2.8 + /@nodelib/fs.walk@1.2.8: + resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==} engines: {node: '>= 8'} dependencies: - '@nodelib/fs.scandir': registry.npmmirror.com/@nodelib/fs.scandir@2.1.5 - fastq: registry.npmmirror.com/fastq@1.15.0 + '@nodelib/fs.scandir': 2.1.5 + fastq: 1.17.1 dev: true - registry.npmmirror.com/@remix-run/router@1.13.0: - resolution: {integrity: sha512-5dMOnVnefRsl4uRnAdoWjtVTdh8e6aZqgM4puy9nmEADH72ck+uXwzpJLEKE9Q6F8ZljNewLgmTfkxUrBdv4WA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@remix-run/router/-/router-1.13.0.tgz} - name: '@remix-run/router' - version: 1.13.0 + /@remix-run/router@1.13.0: + resolution: {integrity: sha512-5dMOnVnefRsl4uRnAdoWjtVTdh8e6aZqgM4puy9nmEADH72ck+uXwzpJLEKE9Q6F8ZljNewLgmTfkxUrBdv4WA==} engines: {node: '>=14.0.0'} dev: false - registry.npmmirror.com/@rollup/pluginutils@5.1.0: - resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz} - name: '@rollup/pluginutils' - version: 5.1.0 + /@rollup/pluginutils@5.1.0: + resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 @@ -949,65 +789,53 @@ packages: rollup: optional: true dependencies: - '@types/estree': registry.npmmirror.com/@types/estree@1.0.5 - estree-walker: registry.npmmirror.com/estree-walker@2.0.2 - picomatch: registry.npmmirror.com/picomatch@2.3.1 + '@types/estree': 1.0.5 + estree-walker: 2.0.2 + picomatch: 2.3.1 dev: true - registry.npmmirror.com/@rollup/rollup-android-arm-eabi@4.6.1: - resolution: {integrity: sha512-0WQ0ouLejaUCRsL93GD4uft3rOmB8qoQMU05Kb8CmMtMBe7XUDLAltxVZI1q6byNqEtU7N1ZX1Vw5lIpgulLQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.6.1.tgz} - name: '@rollup/rollup-android-arm-eabi' - version: 4.6.1 + /@rollup/rollup-android-arm-eabi@4.14.0: + resolution: {integrity: sha512-jwXtxYbRt1V+CdQSy6Z+uZti7JF5irRKF8hlKfEnF/xJpcNGuuiZMBvuoYM+x9sr9iWGnzrlM0+9hvQ1kgkf1w==} cpu: [arm] os: [android] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-android-arm64@4.6.1: - resolution: {integrity: sha512-1TKm25Rn20vr5aTGGZqo6E4mzPicCUD79k17EgTLAsXc1zysyi4xXKACfUbwyANEPAEIxkzwue6JZ+stYzWUTA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.6.1.tgz} - name: '@rollup/rollup-android-arm64' - version: 4.6.1 + /@rollup/rollup-android-arm64@4.14.0: + resolution: {integrity: sha512-fI9nduZhCccjzlsA/OuAwtFGWocxA4gqXGTLvOyiF8d+8o0fZUeSztixkYjcGq1fGZY3Tkq4yRvHPFxU+jdZ9Q==} cpu: [arm64] os: [android] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-darwin-arm64@4.6.1: - resolution: {integrity: sha512-cEXJQY/ZqMACb+nxzDeX9IPLAg7S94xouJJCNVE5BJM8JUEP4HeTF+ti3cmxWeSJo+5D+o8Tc0UAWUkfENdeyw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.6.1.tgz} - name: '@rollup/rollup-darwin-arm64' - version: 4.6.1 + /@rollup/rollup-darwin-arm64@4.14.0: + resolution: {integrity: sha512-BcnSPRM76/cD2gQC+rQNGBN6GStBs2pl/FpweW8JYuz5J/IEa0Fr4AtrPv766DB/6b2MZ/AfSIOSGw3nEIP8SA==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-darwin-x64@4.6.1: - resolution: {integrity: sha512-LoSU9Xu56isrkV2jLldcKspJ7sSXmZWkAxg7sW/RfF7GS4F5/v4EiqKSMCFbZtDu2Nc1gxxFdQdKwkKS4rwxNg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.6.1.tgz} - name: '@rollup/rollup-darwin-x64' - version: 4.6.1 + /@rollup/rollup-darwin-x64@4.14.0: + resolution: {integrity: sha512-LDyFB9GRolGN7XI6955aFeI3wCdCUszFWumWU0deHA8VpR3nWRrjG6GtGjBrQxQKFevnUTHKCfPR4IvrW3kCgQ==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf@4.6.1: - resolution: {integrity: sha512-EfI3hzYAy5vFNDqpXsNxXcgRDcFHUWSx5nnRSCKwXuQlI5J9dD84g2Usw81n3FLBNsGCegKGwwTVsSKK9cooSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.6.1.tgz} - name: '@rollup/rollup-linux-arm-gnueabihf' - version: 4.6.1 + /@rollup/rollup-linux-arm-gnueabihf@4.14.0: + resolution: {integrity: sha512-ygrGVhQP47mRh0AAD0zl6QqCbNsf0eTo+vgwkY6LunBcg0f2Jv365GXlDUECIyoXp1kKwL5WW6rsO429DBY/bA==} cpu: [arm] os: [linux] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu@4.6.1: - resolution: {integrity: sha512-9lhc4UZstsegbNLhH0Zu6TqvDfmhGzuCWtcTFXY10VjLLUe4Mr0Ye2L3rrtHaDd/J5+tFMEuo5LTCSCMXWfUKw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.6.1.tgz} - name: '@rollup/rollup-linux-arm64-gnu' - version: 4.6.1 + /@rollup/rollup-linux-arm64-gnu@4.14.0: + resolution: {integrity: sha512-x+uJ6MAYRlHGe9wi4HQjxpaKHPM3d3JjqqCkeC5gpnnI6OWovLdXTpfa8trjxPLnWKyBsSi5kne+146GAxFt4A==} cpu: [arm64] os: [linux] libc: [glibc] @@ -1015,10 +843,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@rollup/rollup-linux-arm64-musl@4.6.1: - resolution: {integrity: sha512-FfoOK1yP5ksX3wwZ4Zk1NgyGHZyuRhf99j64I5oEmirV8EFT7+OhUZEnP+x17lcP/QHJNWGsoJwrz4PJ9fBEXw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.6.1.tgz} - name: '@rollup/rollup-linux-arm64-musl' - version: 4.6.1 + /@rollup/rollup-linux-arm64-musl@4.14.0: + resolution: {integrity: sha512-nrRw8ZTQKg6+Lttwqo6a2VxR9tOroa2m91XbdQ2sUUzHoedXlsyvY1fN4xWdqz8PKmf4orDwejxXHjh7YBGUCA==} cpu: [arm64] os: [linux] libc: [musl] @@ -1026,10 +852,35 @@ packages: dev: true optional: true - registry.npmmirror.com/@rollup/rollup-linux-x64-gnu@4.6.1: - resolution: {integrity: sha512-DNGZvZDO5YF7jN5fX8ZqmGLjZEXIJRdJEdTFMhiyXqyXubBa0WVLDWSNlQ5JR2PNgDbEV1VQowhVRUh+74D+RA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.6.1.tgz} - name: '@rollup/rollup-linux-x64-gnu' - version: 4.6.1 + /@rollup/rollup-linux-powerpc64le-gnu@4.14.0: + resolution: {integrity: sha512-xV0d5jDb4aFu84XKr+lcUJ9y3qpIWhttO3Qev97z8DKLXR62LC3cXT/bMZXrjLF9X+P5oSmJTzAhqwUbY96PnA==} + cpu: [ppc64le] + os: [linux] + libc: [glibc] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.14.0: + resolution: {integrity: sha512-SDDhBQwZX6LPRoPYjAZWyL27LbcBo7WdBFWJi5PI9RPCzU8ijzkQn7tt8NXiXRiFMJCVpkuMkBf4OxSxVMizAw==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-s390x-gnu@4.14.0: + resolution: {integrity: sha512-RxB/qez8zIDshNJDufYlTT0ZTVut5eCpAZ3bdXDU9yTxBzui3KhbGjROK2OYTTor7alM7XBhssgoO3CZ0XD3qA==} + cpu: [s390x] + os: [linux] + libc: [glibc] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-x64-gnu@4.14.0: + resolution: {integrity: sha512-C6y6z2eCNCfhZxT9u+jAM2Fup89ZjiG5pIzZIDycs1IwESviLxwkQcFRGLjnDrP+PT+v5i4YFvlcfAs+LnreXg==} cpu: [x64] os: [linux] libc: [glibc] @@ -1037,10 +888,8 @@ packages: dev: true optional: true - registry.npmmirror.com/@rollup/rollup-linux-x64-musl@4.6.1: - resolution: {integrity: sha512-RkJVNVRM+piYy87HrKmhbexCHg3A6Z6MU0W9GHnJwBQNBeyhCJG9KDce4SAMdicQnpURggSvtbGo9xAWOfSvIQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.6.1.tgz} - name: '@rollup/rollup-linux-x64-musl' - version: 4.6.1 + /@rollup/rollup-linux-x64-musl@4.14.0: + resolution: {integrity: sha512-i0QwbHYfnOMYsBEyjxcwGu5SMIi9sImDVjDg087hpzXqhBSosxkE7gyIYFHgfFl4mr7RrXksIBZ4DoLoP4FhJg==} cpu: [x64] os: [linux] libc: [musl] @@ -1048,307 +897,235 @@ packages: dev: true optional: true - registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc@4.6.1: - resolution: {integrity: sha512-v2FVT6xfnnmTe3W9bJXl6r5KwJglMK/iRlkKiIFfO6ysKs0rDgz7Cwwf3tjldxQUrHL9INT/1r4VA0n9L/F1vQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.6.1.tgz} - name: '@rollup/rollup-win32-arm64-msvc' - version: 4.6.1 + /@rollup/rollup-win32-arm64-msvc@4.14.0: + resolution: {integrity: sha512-Fq52EYb0riNHLBTAcL0cun+rRwyZ10S9vKzhGKKgeD+XbwunszSY0rVMco5KbOsTlwovP2rTOkiII/fQ4ih/zQ==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc@4.6.1: - resolution: {integrity: sha512-YEeOjxRyEjqcWphH9dyLbzgkF8wZSKAKUkldRY6dgNR5oKs2LZazqGB41cWJ4Iqqcy9/zqYgmzBkRoVz3Q9MLw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.6.1.tgz} - name: '@rollup/rollup-win32-ia32-msvc' - version: 4.6.1 + /@rollup/rollup-win32-ia32-msvc@4.14.0: + resolution: {integrity: sha512-e/PBHxPdJ00O9p5Ui43+vixSgVf4NlLsmV6QneGERJ3lnjIua/kim6PRFe3iDueT1rQcgSkYP8ZBBXa/h4iPvw==} cpu: [ia32] os: [win32] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@rollup/rollup-win32-x64-msvc@4.6.1: - resolution: {integrity: sha512-0zfTlFAIhgz8V2G8STq8toAjsYYA6eci1hnXuyOTUFnymrtJwnS6uGKiv3v5UrPZkBlamLvrLV2iiaeqCKzb0A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.6.1.tgz} - name: '@rollup/rollup-win32-x64-msvc' - version: 4.6.1 + /@rollup/rollup-win32-x64-msvc@4.14.0: + resolution: {integrity: sha512-aGg7iToJjdklmxlUlJh/PaPNa4PmqHfyRMLunbL3eaMO0gp656+q1zOKkpJ/CVe9CryJv6tAN1HDoR8cNGzkag==} cpu: [x64] os: [win32] requiresBuild: true dev: true optional: true - registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute/8.0.0 - name: '@svgr/babel-plugin-add-jsx-attribute' - version: 8.0.0 + /@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-b9MIk7yhdS1pMCZM8VeNfUlSKVRhsHZNMl5O9SfaX0l0t5wjdgu4IDzGB8bpnGBBOjGST3rRFVsaaEtI4W6f7g==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute/-/babel-plugin-remove-jsx-attribute-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute/8.0.0 - name: '@svgr/babel-plugin-remove-jsx-attribute' - version: 8.0.0 + /@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-BcCkm/STipKvbCl6b7QFrMh/vx00vIP63k2eM66MfHJzPr6O2U0jYEViXkHJWqXqQYjdeA9cuCl5KWmlwjDvbA==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression/-/babel-plugin-remove-jsx-empty-expression-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression/8.0.0 - name: '@svgr/babel-plugin-remove-jsx-empty-expression' - version: 8.0.0 + /@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-5BcGCBfBxB5+XSDSWnhTThfI9jcO5f0Ai2V24gZpG+wXF14BzwxxdDb4g6trdOux0rhibGs385BeFMSmxtS3uA==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value/-/babel-plugin-replace-jsx-attribute-value-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value/8.0.0 - name: '@svgr/babel-plugin-replace-jsx-attribute-value' - version: 8.0.0 + /@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-KVQ+PtIjb1BuYT3ht8M5KbzWBhdAjjUPdlMtpuw/VjT8coTrItWX6Qafl9+ji831JaJcu6PJNKCV0bp01lBNzQ==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title/-/babel-plugin-svg-dynamic-title-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title/8.0.0 - name: '@svgr/babel-plugin-svg-dynamic-title' - version: 8.0.0 + /@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-omNiKqwjNmOQJ2v6ge4SErBbkooV2aAWwaPFs2vUY7p7GhVkzRkJ00kILXQvRhA6miHnNpXv7MRnnSjdRjK8og==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions/-/babel-plugin-svg-em-dimensions-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions/8.0.0 - name: '@svgr/babel-plugin-svg-em-dimensions' - version: 8.0.0 + /@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-mURHYnu6Iw3UBTbhGwE/vsngtCIbHE43xCRK7kCw4t01xyGqb2Pd+WXekRRoFOBIY29ZoOhUCTEweDMdrjfi9g==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.23.5): - resolution: {integrity: sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg/-/babel-plugin-transform-react-native-svg-8.1.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg/8.1.0 - name: '@svgr/babel-plugin-transform-react-native-svg' - version: 8.1.0 + /@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.24.4): + resolution: {integrity: sha512-Tx8T58CHo+7nwJ+EhUwx3LfdNSG9R2OKfaIXXs5soiy5HtgoAEkDay9LIimLOcG8dJQH1wPZp/cnAv6S9CrR1Q==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.23.5): - resolution: {integrity: sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component/-/babel-plugin-transform-svg-component-8.0.0.tgz} - id: registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component/8.0.0 - name: '@svgr/babel-plugin-transform-svg-component' - version: 8.0.0 + /@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.24.4): + resolution: {integrity: sha512-DFx8xa3cZXTdb/k3kfPeaixecQLgKh5NVBMwD0AQxOzcZawK4oo1Jh9LbrcACUivsCA7TLG8eeWgrDXjTMhRmw==} engines: {node: '>=12'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 + '@babel/core': 7.24.4 dev: true - registry.npmmirror.com/@svgr/babel-preset@8.1.0(@babel/core@7.23.5): - resolution: {integrity: sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/babel-preset/-/babel-preset-8.1.0.tgz} - id: registry.npmmirror.com/@svgr/babel-preset/8.1.0 - name: '@svgr/babel-preset' - version: 8.1.0 + /@svgr/babel-preset@8.1.0(@babel/core@7.24.4): + resolution: {integrity: sha512-7EYDbHE7MxHpv4sxvnVPngw5fuR6pw79SkcrILHJ/iMpuKySNCl5W1qcwPEpU+LgyRXOaAFgH0KhwD18wwg6ug==} engines: {node: '>=14'} peerDependencies: '@babel/core': ^7.0.0-0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@svgr/babel-plugin-add-jsx-attribute': registry.npmmirror.com/@svgr/babel-plugin-add-jsx-attribute@8.0.0(@babel/core@7.23.5) - '@svgr/babel-plugin-remove-jsx-attribute': registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-attribute@8.0.0(@babel/core@7.23.5) - '@svgr/babel-plugin-remove-jsx-empty-expression': registry.npmmirror.com/@svgr/babel-plugin-remove-jsx-empty-expression@8.0.0(@babel/core@7.23.5) - '@svgr/babel-plugin-replace-jsx-attribute-value': registry.npmmirror.com/@svgr/babel-plugin-replace-jsx-attribute-value@8.0.0(@babel/core@7.23.5) - '@svgr/babel-plugin-svg-dynamic-title': registry.npmmirror.com/@svgr/babel-plugin-svg-dynamic-title@8.0.0(@babel/core@7.23.5) - '@svgr/babel-plugin-svg-em-dimensions': registry.npmmirror.com/@svgr/babel-plugin-svg-em-dimensions@8.0.0(@babel/core@7.23.5) - '@svgr/babel-plugin-transform-react-native-svg': registry.npmmirror.com/@svgr/babel-plugin-transform-react-native-svg@8.1.0(@babel/core@7.23.5) - '@svgr/babel-plugin-transform-svg-component': registry.npmmirror.com/@svgr/babel-plugin-transform-svg-component@8.0.0(@babel/core@7.23.5) - dev: true - - registry.npmmirror.com/@svgr/core@8.1.0(typescript@5.2.2): - resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/core/-/core-8.1.0.tgz} - id: registry.npmmirror.com/@svgr/core/8.1.0 - name: '@svgr/core' - version: 8.1.0 + '@babel/core': 7.24.4 + '@svgr/babel-plugin-add-jsx-attribute': 8.0.0(@babel/core@7.24.4) + '@svgr/babel-plugin-remove-jsx-attribute': 8.0.0(@babel/core@7.24.4) + '@svgr/babel-plugin-remove-jsx-empty-expression': 8.0.0(@babel/core@7.24.4) + '@svgr/babel-plugin-replace-jsx-attribute-value': 8.0.0(@babel/core@7.24.4) + '@svgr/babel-plugin-svg-dynamic-title': 8.0.0(@babel/core@7.24.4) + '@svgr/babel-plugin-svg-em-dimensions': 8.0.0(@babel/core@7.24.4) + '@svgr/babel-plugin-transform-react-native-svg': 8.1.0(@babel/core@7.24.4) + '@svgr/babel-plugin-transform-svg-component': 8.0.0(@babel/core@7.24.4) + dev: true + + /@svgr/core@8.1.0(typescript@5.2.2): + resolution: {integrity: sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==} engines: {node: '>=14'} dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@svgr/babel-preset': registry.npmmirror.com/@svgr/babel-preset@8.1.0(@babel/core@7.23.5) - camelcase: registry.npmmirror.com/camelcase@6.3.0 - cosmiconfig: registry.npmmirror.com/cosmiconfig@8.3.6(typescript@5.2.2) - snake-case: registry.npmmirror.com/snake-case@3.0.4 + '@babel/core': 7.24.4 + '@svgr/babel-preset': 8.1.0(@babel/core@7.24.4) + camelcase: 6.3.0 + cosmiconfig: 8.3.6(typescript@5.2.2) + snake-case: 3.0.4 transitivePeerDependencies: - supports-color - typescript dev: true - registry.npmmirror.com/@svgr/hast-util-to-babel-ast@8.0.0: - resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/hast-util-to-babel-ast/-/hast-util-to-babel-ast-8.0.0.tgz} - name: '@svgr/hast-util-to-babel-ast' - version: 8.0.0 + /@svgr/hast-util-to-babel-ast@8.0.0: + resolution: {integrity: sha512-EbDKwO9GpfWP4jN9sGdYwPBU0kdomaPIL2Eu4YwmgP+sJeXT+L7bMwJUBnhzfH8Q2qMBqZ4fJwpCyYsAN3mt2Q==} engines: {node: '>=14'} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 - entities: registry.npmmirror.com/entities@4.5.0 + '@babel/types': 7.24.0 + entities: 4.5.0 dev: true - registry.npmmirror.com/@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0): - resolution: {integrity: sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@svgr/plugin-jsx/-/plugin-jsx-8.1.0.tgz} - id: registry.npmmirror.com/@svgr/plugin-jsx/8.1.0 - name: '@svgr/plugin-jsx' - version: 8.1.0 + /@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0): + resolution: {integrity: sha512-0xiIyBsLlr8quN+WyuxooNW9RJ0Dpr8uOnH/xrCVO8GLUcwHISwj1AG0k+LFzteTkAA0GbX0kj9q6Dk70PTiPA==} engines: {node: '>=14'} peerDependencies: '@svgr/core': '*' dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@svgr/babel-preset': registry.npmmirror.com/@svgr/babel-preset@8.1.0(@babel/core@7.23.5) - '@svgr/core': registry.npmmirror.com/@svgr/core@8.1.0(typescript@5.2.2) - '@svgr/hast-util-to-babel-ast': registry.npmmirror.com/@svgr/hast-util-to-babel-ast@8.0.0 - svg-parser: registry.npmmirror.com/svg-parser@2.0.4 + '@babel/core': 7.24.4 + '@svgr/babel-preset': 8.1.0(@babel/core@7.24.4) + '@svgr/core': 8.1.0(typescript@5.2.2) + '@svgr/hast-util-to-babel-ast': 8.0.0 + svg-parser: 2.0.4 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@types/babel__core@7.20.5: - resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__core/-/babel__core-7.20.5.tgz} - name: '@types/babel__core' - version: 7.20.5 + /@types/babel__core@7.20.5: + resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==} dependencies: - '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 - '@types/babel__generator': registry.npmmirror.com/@types/babel__generator@7.6.7 - '@types/babel__template': registry.npmmirror.com/@types/babel__template@7.4.4 - '@types/babel__traverse': registry.npmmirror.com/@types/babel__traverse@7.20.4 + '@babel/parser': 7.24.4 + '@babel/types': 7.24.0 + '@types/babel__generator': 7.6.8 + '@types/babel__template': 7.4.4 + '@types/babel__traverse': 7.20.5 dev: true - registry.npmmirror.com/@types/babel__generator@7.6.7: - resolution: {integrity: sha512-6Sfsq+EaaLrw4RmdFWE9Onp63TOUue71AWb4Gpa6JxzgTYtimbM086WnYTy2U67AofR++QKCo08ZP6pwx8YFHQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__generator/-/babel__generator-7.6.7.tgz} - name: '@types/babel__generator' - version: 7.6.7 + /@types/babel__generator@7.6.8: + resolution: {integrity: sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@types/babel__template@7.4.4: - resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__template/-/babel__template-7.4.4.tgz} - name: '@types/babel__template' - version: 7.4.4 + /@types/babel__template@7.4.4: + resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==} dependencies: - '@babel/parser': registry.npmmirror.com/@babel/parser@7.23.5 - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/parser': 7.24.4 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@types/babel__traverse@7.20.4: - resolution: {integrity: sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/babel__traverse/-/babel__traverse-7.20.4.tgz} - name: '@types/babel__traverse' - version: 7.20.4 + /@types/babel__traverse@7.20.5: + resolution: {integrity: sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==} dependencies: - '@babel/types': registry.npmmirror.com/@babel/types@7.23.5 + '@babel/types': 7.24.0 dev: true - registry.npmmirror.com/@types/echarts@4.9.22: - resolution: {integrity: sha512-7Fo6XdWpoi8jxkwP7BARUOM7riq8bMhmsCtSG8gzUcJmFhLo387tihoBYS/y5j7jl3PENT5RxeWZdN9RiwO7HQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/echarts/-/echarts-4.9.22.tgz} - name: '@types/echarts' - version: 4.9.22 + /@types/echarts@4.9.22: + resolution: {integrity: sha512-7Fo6XdWpoi8jxkwP7BARUOM7riq8bMhmsCtSG8gzUcJmFhLo387tihoBYS/y5j7jl3PENT5RxeWZdN9RiwO7HQ==} dependencies: - '@types/zrender': registry.npmmirror.com/@types/zrender@4.0.6 + '@types/zrender': 4.0.6 dev: true - registry.npmmirror.com/@types/estree@1.0.5: - resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz} - name: '@types/estree' - version: 1.0.5 + /@types/estree@1.0.5: + resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} dev: true - registry.npmmirror.com/@types/js-cookie@3.0.6: - resolution: {integrity: sha512-wkw9yd1kEXOPnvEeEV1Go1MmxtBJL0RR79aOTAApecWFVu7w0NNXNqhcWgvw2YgZDYadliXkl14pa3WXw5jlCQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/js-cookie/-/js-cookie-3.0.6.tgz} - name: '@types/js-cookie' - version: 3.0.6 + /@types/js-cookie@3.0.6: + resolution: {integrity: sha512-wkw9yd1kEXOPnvEeEV1Go1MmxtBJL0RR79aOTAApecWFVu7w0NNXNqhcWgvw2YgZDYadliXkl14pa3WXw5jlCQ==} dev: true - registry.npmmirror.com/@types/json-schema@7.0.15: - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/json-schema/-/json-schema-7.0.15.tgz} - name: '@types/json-schema' - version: 7.0.15 + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} dev: true - registry.npmmirror.com/@types/prop-types@15.7.11: - resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/prop-types/-/prop-types-15.7.11.tgz} - name: '@types/prop-types' - version: 15.7.11 + /@types/prop-types@15.7.12: + resolution: {integrity: sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==} dev: true - registry.npmmirror.com/@types/react-dom@18.2.15: - resolution: {integrity: sha512-HWMdW+7r7MR5+PZqJF6YFNSCtjz1T0dsvo/f1BV6HkV+6erD/nA7wd9NM00KVG83zf2nJ7uATPO9ttdIPvi3gg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/react-dom/-/react-dom-18.2.15.tgz} - name: '@types/react-dom' - version: 18.2.15 + /@types/react-dom@18.2.15: + resolution: {integrity: sha512-HWMdW+7r7MR5+PZqJF6YFNSCtjz1T0dsvo/f1BV6HkV+6erD/nA7wd9NM00KVG83zf2nJ7uATPO9ttdIPvi3gg==} dependencies: - '@types/react': registry.npmmirror.com/@types/react@18.2.37 + '@types/react': 18.2.37 dev: true - registry.npmmirror.com/@types/react@18.2.37: - resolution: {integrity: sha512-RGAYMi2bhRgEXT3f4B92WTohopH6bIXw05FuGlmJEnv/omEn190+QYEIYxIAuIBdKgboYYdVved2p1AxZVQnaw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/react/-/react-18.2.37.tgz} - name: '@types/react' - version: 18.2.37 + /@types/react@18.2.37: + resolution: {integrity: sha512-RGAYMi2bhRgEXT3f4B92WTohopH6bIXw05FuGlmJEnv/omEn190+QYEIYxIAuIBdKgboYYdVved2p1AxZVQnaw==} dependencies: - '@types/prop-types': registry.npmmirror.com/@types/prop-types@15.7.11 - '@types/scheduler': registry.npmmirror.com/@types/scheduler@0.16.8 - csstype: registry.npmmirror.com/csstype@3.1.2 + '@types/prop-types': 15.7.12 + '@types/scheduler': 0.23.0 + csstype: 3.1.3 dev: true - registry.npmmirror.com/@types/scheduler@0.16.8: - resolution: {integrity: sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/scheduler/-/scheduler-0.16.8.tgz} - name: '@types/scheduler' - version: 0.16.8 + /@types/scheduler@0.23.0: + resolution: {integrity: sha512-YIoDCTH3Af6XM5VuwGG/QL/CJqga1Zm3NkU3HZ4ZHK2fRMPYP1VczsTUqtsf43PH/iJNVlPHAo2oWX7BSdB2Hw==} dev: true - registry.npmmirror.com/@types/semver@7.5.6: - resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/semver/-/semver-7.5.6.tgz} - name: '@types/semver' - version: 7.5.6 + /@types/semver@7.5.8: + resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} dev: true - registry.npmmirror.com/@types/zrender@4.0.6: - resolution: {integrity: sha512-1jZ9bJn2BsfmYFPBHtl5o3uV+ILejAtGrDcYSpT4qaVKEI/0YY+arw3XHU04Ebd8Nca3SQ7uNcLaqiL+tTFVMg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@types/zrender/-/zrender-4.0.6.tgz} - name: '@types/zrender' - version: 4.0.6 + /@types/zrender@4.0.6: + resolution: {integrity: sha512-1jZ9bJn2BsfmYFPBHtl5o3uV+ILejAtGrDcYSpT4qaVKEI/0YY+arw3XHU04Ebd8Nca3SQ7uNcLaqiL+tTFVMg==} dev: true - registry.npmmirror.com/@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@5.2.2): - resolution: {integrity: sha512-uoLj4g2OTL8rfUQVx2AFO1hp/zja1wABJq77P6IclQs6I/m9GLrm7jCdgzZkvWdDCQf1uEvoa8s8CupsgWQgVg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.10.0.tgz} - id: registry.npmmirror.com/@typescript-eslint/eslint-plugin/6.10.0 - name: '@typescript-eslint/eslint-plugin' - version: 6.10.0 + /@typescript-eslint/eslint-plugin@6.10.0(@typescript-eslint/parser@6.10.0)(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-uoLj4g2OTL8rfUQVx2AFO1hp/zja1wABJq77P6IclQs6I/m9GLrm7jCdgzZkvWdDCQf1uEvoa8s8CupsgWQgVg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: '@typescript-eslint/parser': ^6.0.0 || ^6.0.0-alpha @@ -1358,29 +1135,26 @@ packages: typescript: optional: true dependencies: - '@eslint-community/regexpp': registry.npmmirror.com/@eslint-community/regexpp@4.10.0 - '@typescript-eslint/parser': registry.npmmirror.com/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2) - '@typescript-eslint/scope-manager': registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0 - '@typescript-eslint/type-utils': registry.npmmirror.com/@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@5.2.2) - '@typescript-eslint/utils': registry.npmmirror.com/@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2) - '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 - debug: registry.npmmirror.com/debug@4.3.4 - eslint: registry.npmmirror.com/eslint@8.53.0 - graphemer: registry.npmmirror.com/graphemer@1.4.0 - ignore: registry.npmmirror.com/ignore@5.3.0 - natural-compare: registry.npmmirror.com/natural-compare@1.4.0 - semver: registry.npmmirror.com/semver@7.5.4 - ts-api-utils: registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2) - typescript: registry.npmmirror.com/typescript@5.2.2 + '@eslint-community/regexpp': 4.10.0 + '@typescript-eslint/parser': 6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/scope-manager': 6.10.0 + '@typescript-eslint/type-utils': 6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/utils': 6.10.0(eslint@8.53.0)(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.10.0 + debug: 4.3.4 + eslint: 8.53.0 + graphemer: 1.4.0 + ignore: 5.3.1 + natural-compare: 1.4.0 + semver: 7.6.0 + ts-api-utils: 1.3.0(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2): - resolution: {integrity: sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-6.10.0.tgz} - id: registry.npmmirror.com/@typescript-eslint/parser/6.10.0 - name: '@typescript-eslint/parser' - version: 6.10.0 + /@typescript-eslint/parser@6.10.0(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-+sZwIj+s+io9ozSxIWbNB5873OSdfeBEH/FR0re14WLI6BaKuSOnnwCJ2foUiu8uXf4dRp1UqHP0vrZ1zXGrog==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1389,32 +1163,27 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0 - '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 - '@typescript-eslint/typescript-estree': registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2) - '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 - debug: registry.npmmirror.com/debug@4.3.4 - eslint: registry.npmmirror.com/eslint@8.53.0 - typescript: registry.npmmirror.com/typescript@5.2.2 + '@typescript-eslint/scope-manager': 6.10.0 + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/typescript-estree': 6.10.0(typescript@5.2.2) + '@typescript-eslint/visitor-keys': 6.10.0 + debug: 4.3.4 + eslint: 8.53.0 + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0: - resolution: {integrity: sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-6.10.0.tgz} - name: '@typescript-eslint/scope-manager' - version: 6.10.0 + /@typescript-eslint/scope-manager@6.10.0: + resolution: {integrity: sha512-TN/plV7dzqqC2iPNf1KrxozDgZs53Gfgg5ZHyw8erd6jd5Ta/JIEcdCheXFt9b1NYb93a1wmIIVW/2gLkombDg==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 - '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/visitor-keys': 6.10.0 dev: true - registry.npmmirror.com/@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@5.2.2): - resolution: {integrity: sha512-wYpPs3hgTFblMYwbYWPT3eZtaDOjbLyIYuqpwuLBBqhLiuvJ+9sEp2gNRJEtR5N/c9G1uTtQQL5AhV0fEPJYcg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-6.10.0.tgz} - id: registry.npmmirror.com/@typescript-eslint/type-utils/6.10.0 - name: '@typescript-eslint/type-utils' - version: 6.10.0 + /@typescript-eslint/type-utils@6.10.0(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-wYpPs3hgTFblMYwbYWPT3eZtaDOjbLyIYuqpwuLBBqhLiuvJ+9sEp2gNRJEtR5N/c9G1uTtQQL5AhV0fEPJYcg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 @@ -1423,28 +1192,23 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2) - '@typescript-eslint/utils': registry.npmmirror.com/@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2) - debug: registry.npmmirror.com/debug@4.3.4 - eslint: registry.npmmirror.com/eslint@8.53.0 - ts-api-utils: registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2) - typescript: registry.npmmirror.com/typescript@5.2.2 + '@typescript-eslint/typescript-estree': 6.10.0(typescript@5.2.2) + '@typescript-eslint/utils': 6.10.0(eslint@8.53.0)(typescript@5.2.2) + debug: 4.3.4 + eslint: 8.53.0 + ts-api-utils: 1.3.0(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@typescript-eslint/types@6.10.0: - resolution: {integrity: sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/types/-/types-6.10.0.tgz} - name: '@typescript-eslint/types' - version: 6.10.0 + /@typescript-eslint/types@6.10.0: + resolution: {integrity: sha512-36Fq1PWh9dusgo3vH7qmQAj5/AZqARky1Wi6WpINxB6SkQdY5vQoT2/7rW7uBIsPDcvvGCLi4r10p0OJ7ITAeg==} engines: {node: ^16.0.0 || >=18.0.0} dev: true - registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2): - resolution: {integrity: sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-6.10.0.tgz} - id: registry.npmmirror.com/@typescript-eslint/typescript-estree/6.10.0 - name: '@typescript-eslint/typescript-estree' - version: 6.10.0 + /@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2): + resolution: {integrity: sha512-ek0Eyuy6P15LJVeghbWhSrBCj/vJpPXXR+EpaRZqou7achUWL8IdYnMSC5WHAeTWswYQuP2hAZgij/bC9fanBg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: typescript: '*' @@ -1452,332 +1216,254 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 - '@typescript-eslint/visitor-keys': registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0 - debug: registry.npmmirror.com/debug@4.3.4 - globby: registry.npmmirror.com/globby@11.1.0 - is-glob: registry.npmmirror.com/is-glob@4.0.3 - semver: registry.npmmirror.com/semver@7.5.4 - ts-api-utils: registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2) - typescript: registry.npmmirror.com/typescript@5.2.2 + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/visitor-keys': 6.10.0 + debug: 4.3.4 + globby: 11.1.0 + is-glob: 4.0.3 + semver: 7.6.0 + ts-api-utils: 1.3.0(typescript@5.2.2) + typescript: 5.2.2 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2): - resolution: {integrity: sha512-v+pJ1/RcVyRc0o4wAGux9x42RHmAjIGzPRo538Z8M1tVx6HOnoQBCX/NoadHQlZeC+QO2yr4nNSFWOoraZCAyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-6.10.0.tgz} - id: registry.npmmirror.com/@typescript-eslint/utils/6.10.0 - name: '@typescript-eslint/utils' - version: 6.10.0 + /@typescript-eslint/utils@6.10.0(eslint@8.53.0)(typescript@5.2.2): + resolution: {integrity: sha512-v+pJ1/RcVyRc0o4wAGux9x42RHmAjIGzPRo538Z8M1tVx6HOnoQBCX/NoadHQlZeC+QO2yr4nNSFWOoraZCAyg==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^7.0.0 || ^8.0.0 dependencies: - '@eslint-community/eslint-utils': registry.npmmirror.com/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0) - '@types/json-schema': registry.npmmirror.com/@types/json-schema@7.0.15 - '@types/semver': registry.npmmirror.com/@types/semver@7.5.6 - '@typescript-eslint/scope-manager': registry.npmmirror.com/@typescript-eslint/scope-manager@6.10.0 - '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 - '@typescript-eslint/typescript-estree': registry.npmmirror.com/@typescript-eslint/typescript-estree@6.10.0(typescript@5.2.2) - eslint: registry.npmmirror.com/eslint@8.53.0 - semver: registry.npmmirror.com/semver@7.5.4 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@types/json-schema': 7.0.15 + '@types/semver': 7.5.8 + '@typescript-eslint/scope-manager': 6.10.0 + '@typescript-eslint/types': 6.10.0 + '@typescript-eslint/typescript-estree': 6.10.0(typescript@5.2.2) + eslint: 8.53.0 + semver: 7.6.0 transitivePeerDependencies: - supports-color - typescript dev: true - registry.npmmirror.com/@typescript-eslint/visitor-keys@6.10.0: - resolution: {integrity: sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-6.10.0.tgz} - name: '@typescript-eslint/visitor-keys' - version: 6.10.0 + /@typescript-eslint/visitor-keys@6.10.0: + resolution: {integrity: sha512-xMGluxQIEtOM7bqFCo+rCMh5fqI+ZxV5RUUOa29iVPz1OgCZrtc7rFnz5cLUazlkPKYqX+75iuDq7m0HQ48nCg==} engines: {node: ^16.0.0 || >=18.0.0} dependencies: - '@typescript-eslint/types': registry.npmmirror.com/@typescript-eslint/types@6.10.0 - eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + '@typescript-eslint/types': 6.10.0 + eslint-visitor-keys: 3.4.3 dev: true - registry.npmmirror.com/@ungap/structured-clone@1.2.0: - resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz} - name: '@ungap/structured-clone' - version: 1.2.0 + /@ungap/structured-clone@1.2.0: + resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: true - registry.npmmirror.com/@vitejs/plugin-react@4.2.0(vite@5.0.0): - resolution: {integrity: sha512-+MHTH/e6H12kRp5HUkzOGqPMksezRMmW+TNzlh/QXfI8rRf6l2Z2yH/v12no1UvTwhZgEDMuQ7g7rrfMseU6FQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vitejs/plugin-react/-/plugin-react-4.2.0.tgz} - id: registry.npmmirror.com/@vitejs/plugin-react/4.2.0 - name: '@vitejs/plugin-react' - version: 4.2.0 + /@vitejs/plugin-react@4.2.0(vite@5.0.0): + resolution: {integrity: sha512-+MHTH/e6H12kRp5HUkzOGqPMksezRMmW+TNzlh/QXfI8rRf6l2Z2yH/v12no1UvTwhZgEDMuQ7g7rrfMseU6FQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: vite: ^4.2.0 || ^5.0.0 dependencies: - '@babel/core': registry.npmmirror.com/@babel/core@7.23.5 - '@babel/plugin-transform-react-jsx-self': registry.npmmirror.com/@babel/plugin-transform-react-jsx-self@7.23.3(@babel/core@7.23.5) - '@babel/plugin-transform-react-jsx-source': registry.npmmirror.com/@babel/plugin-transform-react-jsx-source@7.23.3(@babel/core@7.23.5) - '@types/babel__core': registry.npmmirror.com/@types/babel__core@7.20.5 - react-refresh: registry.npmmirror.com/react-refresh@0.14.0 - vite: registry.npmmirror.com/vite@5.0.0(sass@1.69.5) + '@babel/core': 7.24.4 + '@babel/plugin-transform-react-jsx-self': 7.24.1(@babel/core@7.24.4) + '@babel/plugin-transform-react-jsx-source': 7.24.1(@babel/core@7.24.4) + '@types/babel__core': 7.20.5 + react-refresh: 0.14.0 + vite: 5.0.0(sass@1.69.5) transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/acorn-jsx@5.3.2(acorn@8.11.2): - resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz} - id: registry.npmmirror.com/acorn-jsx/5.3.2 - name: acorn-jsx - version: 5.3.2 + /acorn-jsx@5.3.2(acorn@8.11.3): + resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 dependencies: - acorn: registry.npmmirror.com/acorn@8.11.2 + acorn: 8.11.3 dev: true - registry.npmmirror.com/acorn@8.11.2: - resolution: {integrity: sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/acorn/-/acorn-8.11.2.tgz} - name: acorn - version: 8.11.2 + /acorn@8.11.3: + resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} engines: {node: '>=0.4.0'} hasBin: true dev: true - registry.npmmirror.com/ajv@6.12.6: - resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz} - name: ajv - version: 6.12.6 + /ajv@6.12.6: + resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==} dependencies: - fast-deep-equal: registry.npmmirror.com/fast-deep-equal@3.1.3 - fast-json-stable-stringify: registry.npmmirror.com/fast-json-stable-stringify@2.1.0 - json-schema-traverse: registry.npmmirror.com/json-schema-traverse@0.4.1 - uri-js: registry.npmmirror.com/uri-js@4.4.1 + fast-deep-equal: 3.1.3 + fast-json-stable-stringify: 2.1.0 + json-schema-traverse: 0.4.1 + uri-js: 4.4.1 dev: true - registry.npmmirror.com/ansi-regex@5.0.1: - resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz} - name: ansi-regex - version: 5.0.1 + /ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/ansi-styles@3.2.1: - resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-styles/-/ansi-styles-3.2.1.tgz} - name: ansi-styles - version: 3.2.1 + /ansi-styles@3.2.1: + resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} engines: {node: '>=4'} dependencies: - color-convert: registry.npmmirror.com/color-convert@1.9.3 + color-convert: 1.9.3 dev: true - registry.npmmirror.com/ansi-styles@4.3.0: - resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz} - name: ansi-styles - version: 4.3.0 + /ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} engines: {node: '>=8'} dependencies: - color-convert: registry.npmmirror.com/color-convert@2.0.1 + color-convert: 2.0.1 dev: true - registry.npmmirror.com/anymatch@3.1.3: - resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz} - name: anymatch - version: 3.1.3 + /anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} engines: {node: '>= 8'} dependencies: - normalize-path: registry.npmmirror.com/normalize-path@3.0.0 - picomatch: registry.npmmirror.com/picomatch@2.3.1 + normalize-path: 3.0.0 + picomatch: 2.3.1 - registry.npmmirror.com/argparse@2.0.1: - resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/argparse/-/argparse-2.0.1.tgz} - name: argparse - version: 2.0.1 + /argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} dev: true - registry.npmmirror.com/array-union@2.1.0: - resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/array-union/-/array-union-2.1.0.tgz} - name: array-union - version: 2.1.0 + /array-union@2.1.0: + resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/async-validator@3.5.2: - resolution: {integrity: sha512-8eLCg00W9pIRZSB781UUX/H6Oskmm8xloZfr09lz5bikRpBVDlJ3hRVuxxP1SxcwsEYfJ4IU8Q19Y8/893r3rQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/async-validator/-/async-validator-3.5.2.tgz} - name: async-validator - version: 3.5.2 + /async-validator@3.5.2: + resolution: {integrity: sha512-8eLCg00W9pIRZSB781UUX/H6Oskmm8xloZfr09lz5bikRpBVDlJ3hRVuxxP1SxcwsEYfJ4IU8Q19Y8/893r3rQ==} dev: false - registry.npmmirror.com/balanced-match@1.0.2: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/balanced-match/-/balanced-match-1.0.2.tgz} - name: balanced-match - version: 1.0.2 + /balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - registry.npmmirror.com/bezier-easing@2.1.0: - resolution: {integrity: sha512-gbIqZ/eslnUFC1tjEvtz0sgx+xTK20wDnYMIA27VA04R7w6xxXQPZDbibjA9DTWZRA2CXtwHykkVzlCaAJAZig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/bezier-easing/-/bezier-easing-2.1.0.tgz} - name: bezier-easing - version: 2.1.0 + /bezier-easing@2.1.0: + resolution: {integrity: sha512-gbIqZ/eslnUFC1tjEvtz0sgx+xTK20wDnYMIA27VA04R7w6xxXQPZDbibjA9DTWZRA2CXtwHykkVzlCaAJAZig==} dev: false - registry.npmmirror.com/binary-extensions@2.2.0: - resolution: {integrity: sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz} - name: binary-extensions - version: 2.2.0 + /binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} engines: {node: '>=8'} - registry.npmmirror.com/brace-expansion@1.1.11: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/brace-expansion/-/brace-expansion-1.1.11.tgz} - name: brace-expansion - version: 1.1.11 + /brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} dependencies: - balanced-match: registry.npmmirror.com/balanced-match@1.0.2 - concat-map: registry.npmmirror.com/concat-map@0.0.1 + balanced-match: 1.0.2 + concat-map: 0.0.1 - registry.npmmirror.com/braces@3.0.2: - resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/braces/-/braces-3.0.2.tgz} - name: braces - version: 3.0.2 + /braces@3.0.2: + resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} dependencies: - fill-range: registry.npmmirror.com/fill-range@7.0.1 + fill-range: 7.0.1 - registry.npmmirror.com/browserslist@4.22.1: - resolution: {integrity: sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/browserslist/-/browserslist-4.22.1.tgz} - name: browserslist - version: 4.22.1 + /browserslist@4.23.0: + resolution: {integrity: sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==} engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: registry.npmmirror.com/caniuse-lite@1.0.30001565 - electron-to-chromium: registry.npmmirror.com/electron-to-chromium@1.4.597 - node-releases: registry.npmmirror.com/node-releases@2.0.13 - update-browserslist-db: registry.npmmirror.com/update-browserslist-db@1.0.13(browserslist@4.22.1) + caniuse-lite: 1.0.30001606 + electron-to-chromium: 1.4.729 + node-releases: 2.0.14 + update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: true - registry.npmmirror.com/callsites@3.1.0: - resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/callsites/-/callsites-3.1.0.tgz} - name: callsites - version: 3.1.0 + /callsites@3.1.0: + resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} dev: true - registry.npmmirror.com/camelcase@6.3.0: - resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/camelcase/-/camelcase-6.3.0.tgz} - name: camelcase - version: 6.3.0 + /camelcase@6.3.0: + resolution: {integrity: sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==} engines: {node: '>=10'} dev: true - registry.npmmirror.com/caniuse-lite@1.0.30001565: - resolution: {integrity: sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz} - name: caniuse-lite - version: 1.0.30001565 + /caniuse-lite@1.0.30001606: + resolution: {integrity: sha512-LPbwnW4vfpJId225pwjZJOgX1m9sGfbw/RKJvw/t0QhYOOaTXHvkjVGFGPpvwEzufrjvTlsULnVTxdy4/6cqkg==} dev: true - registry.npmmirror.com/chalk@2.4.2: - resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk/-/chalk-2.4.2.tgz} - name: chalk - version: 2.4.2 + /chalk@2.4.2: + resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} dependencies: - ansi-styles: registry.npmmirror.com/ansi-styles@3.2.1 - escape-string-regexp: registry.npmmirror.com/escape-string-regexp@1.0.5 - supports-color: registry.npmmirror.com/supports-color@5.5.0 + ansi-styles: 3.2.1 + escape-string-regexp: 1.0.5 + supports-color: 5.5.0 dev: true - registry.npmmirror.com/chalk@4.1.2: - resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chalk/-/chalk-4.1.2.tgz} - name: chalk - version: 4.1.2 + /chalk@4.1.2: + resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} engines: {node: '>=10'} dependencies: - ansi-styles: registry.npmmirror.com/ansi-styles@4.3.0 - supports-color: registry.npmmirror.com/supports-color@7.2.0 + ansi-styles: 4.3.0 + supports-color: 7.2.0 dev: true - registry.npmmirror.com/chokidar@3.5.3: - resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz} - name: chokidar - version: 3.5.3 + /chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} engines: {node: '>= 8.10.0'} dependencies: - anymatch: registry.npmmirror.com/anymatch@3.1.3 - braces: registry.npmmirror.com/braces@3.0.2 - glob-parent: registry.npmmirror.com/glob-parent@5.1.2 - is-binary-path: registry.npmmirror.com/is-binary-path@2.1.0 - is-glob: registry.npmmirror.com/is-glob@4.0.3 - normalize-path: registry.npmmirror.com/normalize-path@3.0.0 - readdirp: registry.npmmirror.com/readdirp@3.6.0 + anymatch: 3.1.3 + braces: 3.0.2 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 optionalDependencies: - fsevents: registry.npmmirror.com/fsevents@2.3.3 + fsevents: 2.3.3 - registry.npmmirror.com/classnames@2.3.2: - resolution: {integrity: sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/classnames/-/classnames-2.3.2.tgz} - name: classnames - version: 2.3.2 + /classnames@2.5.1: + resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==} dev: false - registry.npmmirror.com/clsx@1.2.1: - resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/clsx/-/clsx-1.2.1.tgz} - name: clsx - version: 1.2.1 + /clsx@1.2.1: + resolution: {integrity: sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==} engines: {node: '>=6'} dev: false - registry.npmmirror.com/color-convert@1.9.3: - resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-convert/-/color-convert-1.9.3.tgz} - name: color-convert - version: 1.9.3 + /color-convert@1.9.3: + resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==} dependencies: - color-name: registry.npmmirror.com/color-name@1.1.3 + color-name: 1.1.3 dev: true - registry.npmmirror.com/color-convert@2.0.1: - resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-convert/-/color-convert-2.0.1.tgz} - name: color-convert - version: 2.0.1 + /color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} dependencies: - color-name: registry.npmmirror.com/color-name@1.1.4 + color-name: 1.1.4 dev: true - registry.npmmirror.com/color-name@1.1.3: - resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-name/-/color-name-1.1.3.tgz} - name: color-name - version: 1.1.3 + /color-name@1.1.3: + resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==} dev: true - registry.npmmirror.com/color-name@1.1.4: - resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/color-name/-/color-name-1.1.4.tgz} - name: color-name - version: 1.1.4 + /color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} dev: true - registry.npmmirror.com/compute-scroll-into-view@1.0.20: - resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/compute-scroll-into-view/-/compute-scroll-into-view-1.0.20.tgz} - name: compute-scroll-into-view - version: 1.0.20 + /compute-scroll-into-view@1.0.20: + resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==} dev: false - registry.npmmirror.com/concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/concat-map/-/concat-map-0.0.1.tgz} - name: concat-map - version: 0.0.1 + /concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} - registry.npmmirror.com/convert-source-map@2.0.0: - resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz} - name: convert-source-map - version: 2.0.0 + /convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} dev: true - registry.npmmirror.com/copy-text-to-clipboard@2.2.0: - resolution: {integrity: sha512-WRvoIdnTs1rgPMkgA2pUOa/M4Enh2uzCwdKsOMYNAJiz/4ZvEJgmbF4OmninPmlFdAWisfeh0tH+Cpf7ni3RqQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/copy-text-to-clipboard/-/copy-text-to-clipboard-2.2.0.tgz} - name: copy-text-to-clipboard - version: 2.2.0 + /copy-text-to-clipboard@2.2.0: + resolution: {integrity: sha512-WRvoIdnTs1rgPMkgA2pUOa/M4Enh2uzCwdKsOMYNAJiz/4ZvEJgmbF4OmninPmlFdAWisfeh0tH+Cpf7ni3RqQ==} engines: {node: '>=6'} dev: false - registry.npmmirror.com/cosmiconfig@8.3.6(typescript@5.2.2): - resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cosmiconfig/-/cosmiconfig-8.3.6.tgz} - id: registry.npmmirror.com/cosmiconfig/8.3.6 - name: cosmiconfig - version: 8.3.6 + /cosmiconfig@8.3.6(typescript@5.2.2): + resolution: {integrity: sha512-kcZ6+W5QzcJ3P1Mt+83OUv/oHFqZHIx8DuxG6eZ5RGMERoLqp4BuGjhHLYGK+Kf5XVkQvqBSmAy/nGWN3qDgEA==} engines: {node: '>=14'} peerDependencies: typescript: '>=4.9.5' @@ -1785,54 +1471,43 @@ packages: typescript: optional: true dependencies: - import-fresh: registry.npmmirror.com/import-fresh@3.3.0 - js-yaml: registry.npmmirror.com/js-yaml@4.1.0 - parse-json: registry.npmmirror.com/parse-json@5.2.0 - path-type: registry.npmmirror.com/path-type@4.0.0 - typescript: registry.npmmirror.com/typescript@5.2.2 + import-fresh: 3.3.0 + js-yaml: 4.1.0 + parse-json: 5.2.0 + path-type: 4.0.0 + typescript: 5.2.2 dev: true - registry.npmmirror.com/cross-spawn@7.0.3: - resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/cross-spawn/-/cross-spawn-7.0.3.tgz} - name: cross-spawn - version: 7.0.3 + /cross-spawn@7.0.3: + resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==} engines: {node: '>= 8'} dependencies: - path-key: registry.npmmirror.com/path-key@3.1.1 - shebang-command: registry.npmmirror.com/shebang-command@2.0.0 - which: registry.npmmirror.com/which@2.0.2 + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 dev: true - registry.npmmirror.com/csstype@3.1.2: - resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/csstype/-/csstype-3.1.2.tgz} - name: csstype - version: 3.1.2 + /csstype@3.1.3: + resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==} dev: true - registry.npmmirror.com/date-fns-tz@1.3.8(date-fns@2.30.0): - resolution: {integrity: sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/date-fns-tz/-/date-fns-tz-1.3.8.tgz} - id: registry.npmmirror.com/date-fns-tz/1.3.8 - name: date-fns-tz - version: 1.3.8 + /date-fns-tz@1.3.8(date-fns@2.30.0): + resolution: {integrity: sha512-qwNXUFtMHTTU6CFSFjoJ80W8Fzzp24LntbjFFBgL/faqds4e5mo9mftoRLgr3Vi1trISsg4awSpYVsOQCRnapQ==} peerDependencies: date-fns: '>=2.0.0' dependencies: - date-fns: registry.npmmirror.com/date-fns@2.30.0 + date-fns: 2.30.0 dev: false - registry.npmmirror.com/date-fns@2.30.0: - resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/date-fns/-/date-fns-2.30.0.tgz} - name: date-fns - version: 2.30.0 + /date-fns@2.30.0: + resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} dependencies: - '@babel/runtime': registry.npmmirror.com/@babel/runtime@7.23.5 + '@babel/runtime': 7.24.4 dev: false - registry.npmmirror.com/debug@4.3.4: - resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/debug/-/debug-4.3.4.tgz} - name: debug - version: 4.3.4 + /debug@4.3.4: + resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1840,1335 +1515,1022 @@ packages: supports-color: optional: true dependencies: - ms: registry.npmmirror.com/ms@2.1.2 + ms: 2.1.2 dev: true - registry.npmmirror.com/deep-is@0.1.4: - resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/deep-is/-/deep-is-0.1.4.tgz} - name: deep-is - version: 0.1.4 + /deep-is@0.1.4: + resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} dev: true - registry.npmmirror.com/dir-glob@3.0.1: - resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dir-glob/-/dir-glob-3.0.1.tgz} - name: dir-glob - version: 3.0.1 + /dir-glob@3.0.1: + resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} dependencies: - path-type: registry.npmmirror.com/path-type@4.0.0 + path-type: 4.0.0 dev: true - registry.npmmirror.com/doctrine@3.0.0: - resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/doctrine/-/doctrine-3.0.0.tgz} - name: doctrine - version: 3.0.0 + /doctrine@3.0.0: + resolution: {integrity: sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==} engines: {node: '>=6.0.0'} dependencies: - esutils: registry.npmmirror.com/esutils@2.0.3 + esutils: 2.0.3 dev: true - registry.npmmirror.com/dot-case@3.0.4: - resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dot-case/-/dot-case-3.0.4.tgz} - name: dot-case - version: 3.0.4 + /dot-case@3.0.4: + resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} dependencies: - no-case: registry.npmmirror.com/no-case@3.0.4 - tslib: registry.npmmirror.com/tslib@2.6.2 + no-case: 3.0.4 + tslib: 2.6.2 dev: true - registry.npmmirror.com/echarts@5.4.3: - resolution: {integrity: sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/echarts/-/echarts-5.4.3.tgz} - name: echarts - version: 5.4.3 + /echarts@5.4.3: + resolution: {integrity: sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA==} dependencies: - tslib: registry.npmmirror.com/tslib@2.3.0 - zrender: registry.npmmirror.com/zrender@5.4.4 + tslib: 2.3.0 + zrender: 5.4.4 dev: false - registry.npmmirror.com/electron-to-chromium@1.4.597: - resolution: {integrity: sha512-0XOQNqHhg2YgRVRUrS4M4vWjFCFIP2ETXcXe/0KIQBjXE9Cpy+tgzzYfuq6HGai3hWq0YywtG+5XK8fyG08EjA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.4.597.tgz} - name: electron-to-chromium - version: 1.4.597 + /electron-to-chromium@1.4.729: + resolution: {integrity: sha512-bx7+5Saea/qu14kmPTDHQxkp2UnziG3iajUQu3BxFvCOnpAJdDbMV4rSl+EqFDkkpNNVUFlR1kDfpL59xfy1HA==} dev: true - registry.npmmirror.com/entities@4.5.0: - resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz} - name: entities - version: 4.5.0 + /entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} dev: true - registry.npmmirror.com/error-ex@1.3.2: - resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/error-ex/-/error-ex-1.3.2.tgz} - name: error-ex - version: 1.3.2 + /error-ex@1.3.2: + resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==} dependencies: - is-arrayish: registry.npmmirror.com/is-arrayish@0.2.1 + is-arrayish: 0.2.1 dev: true - registry.npmmirror.com/esbuild@0.19.8: - resolution: {integrity: sha512-l7iffQpT2OrZfH2rXIp7/FkmaeZM0vxbxN9KfiCwGYuZqzMg/JdvX26R31Zxn/Pxvsrg3Y9N6XTcnknqDyyv4w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esbuild/-/esbuild-0.19.8.tgz} - name: esbuild - version: 0.19.8 + /esbuild@0.19.12: + resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} hasBin: true requiresBuild: true optionalDependencies: - '@esbuild/android-arm': registry.npmmirror.com/@esbuild/android-arm@0.19.8 - '@esbuild/android-arm64': registry.npmmirror.com/@esbuild/android-arm64@0.19.8 - '@esbuild/android-x64': registry.npmmirror.com/@esbuild/android-x64@0.19.8 - '@esbuild/darwin-arm64': registry.npmmirror.com/@esbuild/darwin-arm64@0.19.8 - '@esbuild/darwin-x64': registry.npmmirror.com/@esbuild/darwin-x64@0.19.8 - '@esbuild/freebsd-arm64': registry.npmmirror.com/@esbuild/freebsd-arm64@0.19.8 - '@esbuild/freebsd-x64': registry.npmmirror.com/@esbuild/freebsd-x64@0.19.8 - '@esbuild/linux-arm': registry.npmmirror.com/@esbuild/linux-arm@0.19.8 - '@esbuild/linux-arm64': registry.npmmirror.com/@esbuild/linux-arm64@0.19.8 - '@esbuild/linux-ia32': registry.npmmirror.com/@esbuild/linux-ia32@0.19.8 - '@esbuild/linux-loong64': registry.npmmirror.com/@esbuild/linux-loong64@0.19.8 - '@esbuild/linux-mips64el': registry.npmmirror.com/@esbuild/linux-mips64el@0.19.8 - '@esbuild/linux-ppc64': registry.npmmirror.com/@esbuild/linux-ppc64@0.19.8 - '@esbuild/linux-riscv64': registry.npmmirror.com/@esbuild/linux-riscv64@0.19.8 - '@esbuild/linux-s390x': registry.npmmirror.com/@esbuild/linux-s390x@0.19.8 - '@esbuild/linux-x64': registry.npmmirror.com/@esbuild/linux-x64@0.19.8 - '@esbuild/netbsd-x64': registry.npmmirror.com/@esbuild/netbsd-x64@0.19.8 - '@esbuild/openbsd-x64': registry.npmmirror.com/@esbuild/openbsd-x64@0.19.8 - '@esbuild/sunos-x64': registry.npmmirror.com/@esbuild/sunos-x64@0.19.8 - '@esbuild/win32-arm64': registry.npmmirror.com/@esbuild/win32-arm64@0.19.8 - '@esbuild/win32-ia32': registry.npmmirror.com/@esbuild/win32-ia32@0.19.8 - '@esbuild/win32-x64': registry.npmmirror.com/@esbuild/win32-x64@0.19.8 - dev: true - - registry.npmmirror.com/escalade@3.1.1: - resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/escalade/-/escalade-3.1.1.tgz} - name: escalade - version: 3.1.1 + '@esbuild/aix-ppc64': 0.19.12 + '@esbuild/android-arm': 0.19.12 + '@esbuild/android-arm64': 0.19.12 + '@esbuild/android-x64': 0.19.12 + '@esbuild/darwin-arm64': 0.19.12 + '@esbuild/darwin-x64': 0.19.12 + '@esbuild/freebsd-arm64': 0.19.12 + '@esbuild/freebsd-x64': 0.19.12 + '@esbuild/linux-arm': 0.19.12 + '@esbuild/linux-arm64': 0.19.12 + '@esbuild/linux-ia32': 0.19.12 + '@esbuild/linux-loong64': 0.19.12 + '@esbuild/linux-mips64el': 0.19.12 + '@esbuild/linux-ppc64': 0.19.12 + '@esbuild/linux-riscv64': 0.19.12 + '@esbuild/linux-s390x': 0.19.12 + '@esbuild/linux-x64': 0.19.12 + '@esbuild/netbsd-x64': 0.19.12 + '@esbuild/openbsd-x64': 0.19.12 + '@esbuild/sunos-x64': 0.19.12 + '@esbuild/win32-arm64': 0.19.12 + '@esbuild/win32-ia32': 0.19.12 + '@esbuild/win32-x64': 0.19.12 + dev: true + + /escalade@3.1.2: + resolution: {integrity: sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==} engines: {node: '>=6'} dev: true - registry.npmmirror.com/escape-string-regexp@1.0.5: - resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz} - name: escape-string-regexp - version: 1.0.5 + /escape-string-regexp@1.0.5: + resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} dev: true - registry.npmmirror.com/escape-string-regexp@4.0.0: - resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz} - name: escape-string-regexp - version: 4.0.0 + /escape-string-regexp@4.0.0: + resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} dev: true - registry.npmmirror.com/eslint-plugin-react-hooks@4.6.0(eslint@8.53.0): - resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz} - id: registry.npmmirror.com/eslint-plugin-react-hooks/4.6.0 - name: eslint-plugin-react-hooks - version: 4.6.0 + /eslint-plugin-react-hooks@4.6.0(eslint@8.53.0): + resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} engines: {node: '>=10'} peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 dependencies: - eslint: registry.npmmirror.com/eslint@8.53.0 + eslint: 8.53.0 dev: true - registry.npmmirror.com/eslint-plugin-react-refresh@0.4.4(eslint@8.53.0): - resolution: {integrity: sha512-eD83+65e8YPVg6603Om2iCIwcQJf/y7++MWm4tACtEswFLYMwxwVWAfwN+e19f5Ad/FOyyNg9Dfi5lXhH3Y3rA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.4.tgz} - id: registry.npmmirror.com/eslint-plugin-react-refresh/0.4.4 - name: eslint-plugin-react-refresh - version: 0.4.4 + /eslint-plugin-react-refresh@0.4.4(eslint@8.53.0): + resolution: {integrity: sha512-eD83+65e8YPVg6603Om2iCIwcQJf/y7++MWm4tACtEswFLYMwxwVWAfwN+e19f5Ad/FOyyNg9Dfi5lXhH3Y3rA==} peerDependencies: eslint: '>=7' dependencies: - eslint: registry.npmmirror.com/eslint@8.53.0 + eslint: 8.53.0 dev: true - registry.npmmirror.com/eslint-scope@7.2.2: - resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.2.2.tgz} - name: eslint-scope - version: 7.2.2 + /eslint-scope@7.2.2: + resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - esrecurse: registry.npmmirror.com/esrecurse@4.3.0 - estraverse: registry.npmmirror.com/estraverse@5.3.0 + esrecurse: 4.3.0 + estraverse: 5.3.0 dev: true - registry.npmmirror.com/eslint-visitor-keys@3.4.3: - resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz} - name: eslint-visitor-keys - version: 3.4.3 + /eslint-visitor-keys@3.4.3: + resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: true - registry.npmmirror.com/eslint@8.53.0: - resolution: {integrity: sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/eslint/-/eslint-8.53.0.tgz} - name: eslint - version: 8.53.0 + /eslint@8.53.0: + resolution: {integrity: sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} hasBin: true dependencies: - '@eslint-community/eslint-utils': registry.npmmirror.com/@eslint-community/eslint-utils@4.4.0(eslint@8.53.0) - '@eslint-community/regexpp': registry.npmmirror.com/@eslint-community/regexpp@4.10.0 - '@eslint/eslintrc': registry.npmmirror.com/@eslint/eslintrc@2.1.3 - '@eslint/js': registry.npmmirror.com/@eslint/js@8.53.0 - '@humanwhocodes/config-array': registry.npmmirror.com/@humanwhocodes/config-array@0.11.13 - '@humanwhocodes/module-importer': registry.npmmirror.com/@humanwhocodes/module-importer@1.0.1 - '@nodelib/fs.walk': registry.npmmirror.com/@nodelib/fs.walk@1.2.8 - '@ungap/structured-clone': registry.npmmirror.com/@ungap/structured-clone@1.2.0 - ajv: registry.npmmirror.com/ajv@6.12.6 - chalk: registry.npmmirror.com/chalk@4.1.2 - cross-spawn: registry.npmmirror.com/cross-spawn@7.0.3 - debug: registry.npmmirror.com/debug@4.3.4 - doctrine: registry.npmmirror.com/doctrine@3.0.0 - escape-string-regexp: registry.npmmirror.com/escape-string-regexp@4.0.0 - eslint-scope: registry.npmmirror.com/eslint-scope@7.2.2 - eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 - espree: registry.npmmirror.com/espree@9.6.1 - esquery: registry.npmmirror.com/esquery@1.5.0 - esutils: registry.npmmirror.com/esutils@2.0.3 - fast-deep-equal: registry.npmmirror.com/fast-deep-equal@3.1.3 - file-entry-cache: registry.npmmirror.com/file-entry-cache@6.0.1 - find-up: registry.npmmirror.com/find-up@5.0.0 - glob-parent: registry.npmmirror.com/glob-parent@6.0.2 - globals: registry.npmmirror.com/globals@13.23.0 - graphemer: registry.npmmirror.com/graphemer@1.4.0 - ignore: registry.npmmirror.com/ignore@5.3.0 - imurmurhash: registry.npmmirror.com/imurmurhash@0.1.4 - is-glob: registry.npmmirror.com/is-glob@4.0.3 - is-path-inside: registry.npmmirror.com/is-path-inside@3.0.3 - js-yaml: registry.npmmirror.com/js-yaml@4.1.0 - json-stable-stringify-without-jsonify: registry.npmmirror.com/json-stable-stringify-without-jsonify@1.0.1 - levn: registry.npmmirror.com/levn@0.4.1 - lodash.merge: registry.npmmirror.com/lodash.merge@4.6.2 - minimatch: registry.npmmirror.com/minimatch@3.1.2 - natural-compare: registry.npmmirror.com/natural-compare@1.4.0 - optionator: registry.npmmirror.com/optionator@0.9.3 - strip-ansi: registry.npmmirror.com/strip-ansi@6.0.1 - text-table: registry.npmmirror.com/text-table@0.2.0 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.53.0) + '@eslint-community/regexpp': 4.10.0 + '@eslint/eslintrc': 2.1.4 + '@eslint/js': 8.53.0 + '@humanwhocodes/config-array': 0.11.14 + '@humanwhocodes/module-importer': 1.0.1 + '@nodelib/fs.walk': 1.2.8 + '@ungap/structured-clone': 1.2.0 + ajv: 6.12.6 + chalk: 4.1.2 + cross-spawn: 7.0.3 + debug: 4.3.4 + doctrine: 3.0.0 + escape-string-regexp: 4.0.0 + eslint-scope: 7.2.2 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + esquery: 1.5.0 + esutils: 2.0.3 + fast-deep-equal: 3.1.3 + file-entry-cache: 6.0.1 + find-up: 5.0.0 + glob-parent: 6.0.2 + globals: 13.24.0 + graphemer: 1.4.0 + ignore: 5.3.1 + imurmurhash: 0.1.4 + is-glob: 4.0.3 + is-path-inside: 3.0.3 + js-yaml: 4.1.0 + json-stable-stringify-without-jsonify: 1.0.1 + levn: 0.4.1 + lodash.merge: 4.6.2 + minimatch: 3.1.2 + natural-compare: 1.4.0 + optionator: 0.9.3 + strip-ansi: 6.0.1 + text-table: 0.2.0 transitivePeerDependencies: - supports-color dev: true - registry.npmmirror.com/espree@9.6.1: - resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/espree/-/espree-9.6.1.tgz} - name: espree - version: 9.6.1 + /espree@9.6.1: + resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dependencies: - acorn: registry.npmmirror.com/acorn@8.11.2 - acorn-jsx: registry.npmmirror.com/acorn-jsx@5.3.2(acorn@8.11.2) - eslint-visitor-keys: registry.npmmirror.com/eslint-visitor-keys@3.4.3 + acorn: 8.11.3 + acorn-jsx: 5.3.2(acorn@8.11.3) + eslint-visitor-keys: 3.4.3 dev: true - registry.npmmirror.com/esquery@1.5.0: - resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esquery/-/esquery-1.5.0.tgz} - name: esquery - version: 1.5.0 + /esquery@1.5.0: + resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} engines: {node: '>=0.10'} dependencies: - estraverse: registry.npmmirror.com/estraverse@5.3.0 + estraverse: 5.3.0 dev: true - registry.npmmirror.com/esrecurse@4.3.0: - resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esrecurse/-/esrecurse-4.3.0.tgz} - name: esrecurse - version: 4.3.0 + /esrecurse@4.3.0: + resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} engines: {node: '>=4.0'} dependencies: - estraverse: registry.npmmirror.com/estraverse@5.3.0 + estraverse: 5.3.0 dev: true - registry.npmmirror.com/estraverse@5.3.0: - resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/estraverse/-/estraverse-5.3.0.tgz} - name: estraverse - version: 5.3.0 + /estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} dev: true - registry.npmmirror.com/estree-walker@2.0.2: - resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz} - name: estree-walker - version: 2.0.2 + /estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} dev: true - registry.npmmirror.com/esutils@2.0.3: - resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/esutils/-/esutils-2.0.3.tgz} - name: esutils - version: 2.0.3 + /esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} dev: true - registry.npmmirror.com/fast-deep-equal@3.1.3: - resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz} - name: fast-deep-equal - version: 3.1.3 + /fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} dev: true - registry.npmmirror.com/fast-glob@3.3.2: - resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-glob/-/fast-glob-3.3.2.tgz} - name: fast-glob - version: 3.3.2 + /fast-glob@3.3.2: + resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} dependencies: - '@nodelib/fs.stat': registry.npmmirror.com/@nodelib/fs.stat@2.0.5 - '@nodelib/fs.walk': registry.npmmirror.com/@nodelib/fs.walk@1.2.8 - glob-parent: registry.npmmirror.com/glob-parent@5.1.2 - merge2: registry.npmmirror.com/merge2@1.4.1 - micromatch: registry.npmmirror.com/micromatch@4.0.5 + '@nodelib/fs.stat': 2.0.5 + '@nodelib/fs.walk': 1.2.8 + glob-parent: 5.1.2 + merge2: 1.4.1 + micromatch: 4.0.5 dev: true - registry.npmmirror.com/fast-json-stable-stringify@2.1.0: - resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz} - name: fast-json-stable-stringify - version: 2.1.0 + /fast-json-stable-stringify@2.1.0: + resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==} dev: true - registry.npmmirror.com/fast-levenshtein@2.0.6: - resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz} - name: fast-levenshtein - version: 2.0.6 + /fast-levenshtein@2.0.6: + resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: true - registry.npmmirror.com/fastq@1.15.0: - resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fastq/-/fastq-1.15.0.tgz} - name: fastq - version: 1.15.0 + /fastq@1.17.1: + resolution: {integrity: sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==} dependencies: - reusify: registry.npmmirror.com/reusify@1.0.4 + reusify: 1.0.4 dev: true - registry.npmmirror.com/file-entry-cache@6.0.1: - resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz} - name: file-entry-cache - version: 6.0.1 + /file-entry-cache@6.0.1: + resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flat-cache: registry.npmmirror.com/flat-cache@3.2.0 + flat-cache: 3.2.0 dev: true - registry.npmmirror.com/fill-range@7.0.1: - resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fill-range/-/fill-range-7.0.1.tgz} - name: fill-range - version: 7.0.1 + /fill-range@7.0.1: + resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} dependencies: - to-regex-range: registry.npmmirror.com/to-regex-range@5.0.1 + to-regex-range: 5.0.1 - registry.npmmirror.com/find-up@5.0.0: - resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/find-up/-/find-up-5.0.0.tgz} - name: find-up - version: 5.0.0 + /find-up@5.0.0: + resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} dependencies: - locate-path: registry.npmmirror.com/locate-path@6.0.0 - path-exists: registry.npmmirror.com/path-exists@4.0.0 + locate-path: 6.0.0 + path-exists: 4.0.0 dev: true - registry.npmmirror.com/flat-cache@3.2.0: - resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/flat-cache/-/flat-cache-3.2.0.tgz} - name: flat-cache - version: 3.2.0 + /flat-cache@3.2.0: + resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} dependencies: - flatted: registry.npmmirror.com/flatted@3.2.9 - keyv: registry.npmmirror.com/keyv@4.5.4 - rimraf: registry.npmmirror.com/rimraf@3.0.2 + flatted: 3.3.1 + keyv: 4.5.4 + rimraf: 3.0.2 dev: true - registry.npmmirror.com/flatted@3.2.9: - resolution: {integrity: sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/flatted/-/flatted-3.2.9.tgz} - name: flatted - version: 3.2.9 + /flatted@3.3.1: + resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} dev: true - registry.npmmirror.com/fs.realpath@1.0.0: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz} - name: fs.realpath - version: 1.0.0 + /fs.realpath@1.0.0: + resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} - registry.npmmirror.com/fsevents@2.3.3: - resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz} - name: fsevents - version: 2.3.3 + /fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true optional: true - registry.npmmirror.com/gensync@1.0.0-beta.2: - resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/gensync/-/gensync-1.0.0-beta.2.tgz} - name: gensync - version: 1.0.0-beta.2 + /gensync@1.0.0-beta.2: + resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} dev: true - registry.npmmirror.com/glob-parent@5.1.2: - resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/glob-parent/-/glob-parent-5.1.2.tgz} - name: glob-parent - version: 5.1.2 + /glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} engines: {node: '>= 6'} dependencies: - is-glob: registry.npmmirror.com/is-glob@4.0.3 + is-glob: 4.0.3 - registry.npmmirror.com/glob-parent@6.0.2: - resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/glob-parent/-/glob-parent-6.0.2.tgz} - name: glob-parent - version: 6.0.2 + /glob-parent@6.0.2: + resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==} engines: {node: '>=10.13.0'} dependencies: - is-glob: registry.npmmirror.com/is-glob@4.0.3 + is-glob: 4.0.3 dev: true - registry.npmmirror.com/glob@7.2.3: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/glob/-/glob-7.2.3.tgz} - name: glob - version: 7.2.3 + /glob@7.2.3: + resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} dependencies: - fs.realpath: registry.npmmirror.com/fs.realpath@1.0.0 - inflight: registry.npmmirror.com/inflight@1.0.6 - inherits: registry.npmmirror.com/inherits@2.0.4 - minimatch: registry.npmmirror.com/minimatch@3.1.2 - once: registry.npmmirror.com/once@1.4.0 - path-is-absolute: registry.npmmirror.com/path-is-absolute@1.0.1 + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 - registry.npmmirror.com/globals@11.12.0: - resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/globals/-/globals-11.12.0.tgz} - name: globals - version: 11.12.0 + /globals@11.12.0: + resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==} engines: {node: '>=4'} dev: true - registry.npmmirror.com/globals@13.23.0: - resolution: {integrity: sha512-XAmF0RjlrjY23MA51q3HltdlGxUpXPvg0GioKiD9X6HD28iMjo2dKC8Vqwm7lne4GNr78+RHTfliktR6ZH09wA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/globals/-/globals-13.23.0.tgz} - name: globals - version: 13.23.0 + /globals@13.24.0: + resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} dependencies: - type-fest: registry.npmmirror.com/type-fest@0.20.2 + type-fest: 0.20.2 dev: true - registry.npmmirror.com/globby@11.1.0: - resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/globby/-/globby-11.1.0.tgz} - name: globby - version: 11.1.0 + /globby@11.1.0: + resolution: {integrity: sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==} engines: {node: '>=10'} dependencies: - array-union: registry.npmmirror.com/array-union@2.1.0 - dir-glob: registry.npmmirror.com/dir-glob@3.0.1 - fast-glob: registry.npmmirror.com/fast-glob@3.3.2 - ignore: registry.npmmirror.com/ignore@5.3.0 - merge2: registry.npmmirror.com/merge2@1.4.1 - slash: registry.npmmirror.com/slash@3.0.0 + array-union: 2.1.0 + dir-glob: 3.0.1 + fast-glob: 3.3.2 + ignore: 5.3.1 + merge2: 1.4.1 + slash: 3.0.0 dev: true - registry.npmmirror.com/graphemer@1.4.0: - resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz} - name: graphemer - version: 1.4.0 + /graphemer@1.4.0: + resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} dev: true - registry.npmmirror.com/has-flag@3.0.0: - resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/has-flag/-/has-flag-3.0.0.tgz} - name: has-flag - version: 3.0.0 + /has-flag@3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} engines: {node: '>=4'} dev: true - registry.npmmirror.com/has-flag@4.0.0: - resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz} - name: has-flag - version: 4.0.0 + /has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/ignore@5.3.0: - resolution: {integrity: sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ignore/-/ignore-5.3.0.tgz} - name: ignore - version: 5.3.0 + /ignore@5.3.1: + resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} engines: {node: '>= 4'} dev: true - registry.npmmirror.com/immutable@4.3.4: - resolution: {integrity: sha512-fsXeu4J4i6WNWSikpI88v/PcVflZz+6kMhUfIwc5SY+poQRPnaf5V7qds6SUyUN3cVxEzuCab7QIoLOQ+DQ1wA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/immutable/-/immutable-4.3.4.tgz} - name: immutable - version: 4.3.4 + /immutable@4.3.5: + resolution: {integrity: sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==} - registry.npmmirror.com/import-fresh@3.3.0: - resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/import-fresh/-/import-fresh-3.3.0.tgz} - name: import-fresh - version: 3.3.0 + /import-fresh@3.3.0: + resolution: {integrity: sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==} engines: {node: '>=6'} dependencies: - parent-module: registry.npmmirror.com/parent-module@1.0.1 - resolve-from: registry.npmmirror.com/resolve-from@4.0.0 + parent-module: 1.0.1 + resolve-from: 4.0.0 dev: true - registry.npmmirror.com/imurmurhash@0.1.4: - resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/imurmurhash/-/imurmurhash-0.1.4.tgz} - name: imurmurhash - version: 0.1.4 + /imurmurhash@0.1.4: + resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} dev: true - registry.npmmirror.com/inflight@1.0.6: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/inflight/-/inflight-1.0.6.tgz} - name: inflight - version: 1.0.6 + /inflight@1.0.6: + resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} dependencies: - once: registry.npmmirror.com/once@1.4.0 - wrappy: registry.npmmirror.com/wrappy@1.0.2 + once: 1.4.0 + wrappy: 1.0.2 - registry.npmmirror.com/inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/inherits/-/inherits-2.0.4.tgz} - name: inherits - version: 2.0.4 + /inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} - registry.npmmirror.com/is-arrayish@0.2.1: - resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-arrayish/-/is-arrayish-0.2.1.tgz} - name: is-arrayish - version: 0.2.1 + /is-arrayish@0.2.1: + resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} dev: true - registry.npmmirror.com/is-binary-path@2.1.0: - resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-binary-path/-/is-binary-path-2.1.0.tgz} - name: is-binary-path - version: 2.1.0 + /is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} engines: {node: '>=8'} dependencies: - binary-extensions: registry.npmmirror.com/binary-extensions@2.2.0 + binary-extensions: 2.3.0 - registry.npmmirror.com/is-extglob@2.1.1: - resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-extglob/-/is-extglob-2.1.1.tgz} - name: is-extglob - version: 2.1.1 + /is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} - registry.npmmirror.com/is-glob@4.0.3: - resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-glob/-/is-glob-4.0.3.tgz} - name: is-glob - version: 4.0.3 + /is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} dependencies: - is-extglob: registry.npmmirror.com/is-extglob@2.1.1 + is-extglob: 2.1.1 - registry.npmmirror.com/is-number@7.0.0: - resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz} - name: is-number - version: 7.0.0 + /is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} - registry.npmmirror.com/is-path-inside@3.0.3: - resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/is-path-inside/-/is-path-inside-3.0.3.tgz} - name: is-path-inside - version: 3.0.3 + /is-path-inside@3.0.3: + resolution: {integrity: sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/isexe@2.0.0: - resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/isexe/-/isexe-2.0.0.tgz} - name: isexe - version: 2.0.0 + /isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} dev: true - registry.npmmirror.com/js-cookie@3.0.5: - resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/js-cookie/-/js-cookie-3.0.5.tgz} - name: js-cookie - version: 3.0.5 + /js-cookie@3.0.5: + resolution: {integrity: sha512-cEiJEAEoIbWfCZYKWhVwFuvPX1gETRYPw6LlaTKoxD3s2AkXzkCjnp6h0V77ozyqj0jakteJ4YqDJT830+lVGw==} engines: {node: '>=14'} dev: false - registry.npmmirror.com/js-tokens@4.0.0: - resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz} - name: js-tokens - version: 4.0.0 + /js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} - registry.npmmirror.com/js-yaml@4.1.0: - resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/js-yaml/-/js-yaml-4.1.0.tgz} - name: js-yaml - version: 4.1.0 + /js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true dependencies: - argparse: registry.npmmirror.com/argparse@2.0.1 + argparse: 2.0.1 dev: true - registry.npmmirror.com/jsesc@2.5.2: - resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz} - name: jsesc - version: 2.5.2 + /jsesc@2.5.2: + resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} hasBin: true dev: true - registry.npmmirror.com/json-buffer@3.0.1: - resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-buffer/-/json-buffer-3.0.1.tgz} - name: json-buffer - version: 3.0.1 + /json-buffer@3.0.1: + resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} dev: true - registry.npmmirror.com/json-parse-even-better-errors@2.3.1: - resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz} - name: json-parse-even-better-errors - version: 2.3.1 + /json-parse-even-better-errors@2.3.1: + resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} dev: true - registry.npmmirror.com/json-schema-traverse@0.4.1: - resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz} - name: json-schema-traverse - version: 0.4.1 + /json-schema-traverse@0.4.1: + resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==} dev: true - registry.npmmirror.com/json-stable-stringify-without-jsonify@1.0.1: - resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz} - name: json-stable-stringify-without-jsonify - version: 1.0.1 + /json-stable-stringify-without-jsonify@1.0.1: + resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} dev: true - registry.npmmirror.com/json5@2.2.3: - resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/json5/-/json5-2.2.3.tgz} - name: json5 - version: 2.2.3 + /json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} engines: {node: '>=6'} hasBin: true dev: true - registry.npmmirror.com/keyv@4.5.4: - resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz} - name: keyv - version: 4.5.4 + /keyv@4.5.4: + resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} dependencies: - json-buffer: registry.npmmirror.com/json-buffer@3.0.1 + json-buffer: 3.0.1 dev: true - registry.npmmirror.com/levn@0.4.1: - resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/levn/-/levn-0.4.1.tgz} - name: levn - version: 0.4.1 + /levn@0.4.1: + resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} dependencies: - prelude-ls: registry.npmmirror.com/prelude-ls@1.2.1 - type-check: registry.npmmirror.com/type-check@0.4.0 + prelude-ls: 1.2.1 + type-check: 0.4.0 dev: true - registry.npmmirror.com/lines-and-columns@1.2.4: - resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz} - name: lines-and-columns - version: 1.2.4 + /lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} dev: true - registry.npmmirror.com/locate-path@6.0.0: - resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/locate-path/-/locate-path-6.0.0.tgz} - name: locate-path - version: 6.0.0 + /locate-path@6.0.0: + resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} dependencies: - p-locate: registry.npmmirror.com/p-locate@5.0.0 + p-locate: 5.0.0 dev: true - registry.npmmirror.com/lodash.merge@4.6.2: - resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lodash.merge/-/lodash.merge-4.6.2.tgz} - name: lodash.merge - version: 4.6.2 + /lodash.merge@4.6.2: + resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} dev: true - registry.npmmirror.com/lodash@4.17.21: - resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz} - name: lodash - version: 4.17.21 + /lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} dev: false - registry.npmmirror.com/loose-envify@1.4.0: - resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/loose-envify/-/loose-envify-1.4.0.tgz} - name: loose-envify - version: 1.4.0 + /loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true dependencies: - js-tokens: registry.npmmirror.com/js-tokens@4.0.0 + js-tokens: 4.0.0 dev: false - registry.npmmirror.com/lower-case@2.0.2: - resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lower-case/-/lower-case-2.0.2.tgz} - name: lower-case - version: 2.0.2 + /lower-case@2.0.2: + resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} dependencies: - tslib: registry.npmmirror.com/tslib@2.6.2 + tslib: 2.6.2 dev: true - registry.npmmirror.com/lru-cache@5.1.1: - resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lru-cache/-/lru-cache-5.1.1.tgz} - name: lru-cache - version: 5.1.1 + /lru-cache@5.1.1: + resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} dependencies: - yallist: registry.npmmirror.com/yallist@3.1.1 + yallist: 3.1.1 dev: true - registry.npmmirror.com/lru-cache@6.0.0: - resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz} - name: lru-cache - version: 6.0.0 + /lru-cache@6.0.0: + resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==} engines: {node: '>=10'} dependencies: - yallist: registry.npmmirror.com/yallist@4.0.0 + yallist: 4.0.0 dev: true - registry.npmmirror.com/memoize-one@5.2.1: - resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/memoize-one/-/memoize-one-5.2.1.tgz} - name: memoize-one - version: 5.2.1 + /memoize-one@5.2.1: + resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==} dev: false - registry.npmmirror.com/merge2@1.4.1: - resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/merge2/-/merge2-1.4.1.tgz} - name: merge2 - version: 1.4.1 + /merge2@1.4.1: + resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} dev: true - registry.npmmirror.com/micromatch@4.0.5: - resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/micromatch/-/micromatch-4.0.5.tgz} - name: micromatch - version: 4.0.5 + /micromatch@4.0.5: + resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==} engines: {node: '>=8.6'} dependencies: - braces: registry.npmmirror.com/braces@3.0.2 - picomatch: registry.npmmirror.com/picomatch@2.3.1 + braces: 3.0.2 + picomatch: 2.3.1 dev: true - registry.npmmirror.com/minimatch@3.1.2: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/minimatch/-/minimatch-3.1.2.tgz} - name: minimatch - version: 3.1.2 + /minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} dependencies: - brace-expansion: registry.npmmirror.com/brace-expansion@1.1.11 + brace-expansion: 1.1.11 - registry.npmmirror.com/moment@2.29.4: - resolution: {integrity: sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/moment/-/moment-2.29.4.tgz} - name: moment - version: 2.29.4 + /moment@2.29.4: + resolution: {integrity: sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==} dev: false - registry.npmmirror.com/ms@2.1.2: - resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz} - name: ms - version: 2.1.2 + /ms@2.1.2: + resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} dev: true - registry.npmmirror.com/nanoid@3.3.7: - resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/nanoid/-/nanoid-3.3.7.tgz} - name: nanoid - version: 3.3.7 + /nanoid@3.3.7: + resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true dev: true - registry.npmmirror.com/natural-compare@1.4.0: - resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/natural-compare/-/natural-compare-1.4.0.tgz} - name: natural-compare - version: 1.4.0 + /natural-compare@1.4.0: + resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - registry.npmmirror.com/no-case@3.0.4: - resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/no-case/-/no-case-3.0.4.tgz} - name: no-case - version: 3.0.4 + /no-case@3.0.4: + resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} dependencies: - lower-case: registry.npmmirror.com/lower-case@2.0.2 - tslib: registry.npmmirror.com/tslib@2.6.2 + lower-case: 2.0.2 + tslib: 2.6.2 dev: true - registry.npmmirror.com/node-releases@2.0.13: - resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/node-releases/-/node-releases-2.0.13.tgz} - name: node-releases - version: 2.0.13 + /node-releases@2.0.14: + resolution: {integrity: sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==} dev: true - registry.npmmirror.com/normalize-path@3.0.0: - resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/normalize-path/-/normalize-path-3.0.0.tgz} - name: normalize-path - version: 3.0.0 + /normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} - registry.npmmirror.com/object-assign@4.1.1: - resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz} - name: object-assign - version: 4.1.1 + /object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} engines: {node: '>=0.10.0'} dev: false - registry.npmmirror.com/once@1.4.0: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/once/-/once-1.4.0.tgz} - name: once - version: 1.4.0 + /once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} dependencies: - wrappy: registry.npmmirror.com/wrappy@1.0.2 + wrappy: 1.0.2 - registry.npmmirror.com/optionator@0.9.3: - resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/optionator/-/optionator-0.9.3.tgz} - name: optionator - version: 0.9.3 + /optionator@0.9.3: + resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} engines: {node: '>= 0.8.0'} dependencies: - '@aashutoshrathi/word-wrap': registry.npmmirror.com/@aashutoshrathi/word-wrap@1.2.6 - deep-is: registry.npmmirror.com/deep-is@0.1.4 - fast-levenshtein: registry.npmmirror.com/fast-levenshtein@2.0.6 - levn: registry.npmmirror.com/levn@0.4.1 - prelude-ls: registry.npmmirror.com/prelude-ls@1.2.1 - type-check: registry.npmmirror.com/type-check@0.4.0 + '@aashutoshrathi/word-wrap': 1.2.6 + deep-is: 0.1.4 + fast-levenshtein: 2.0.6 + levn: 0.4.1 + prelude-ls: 1.2.1 + type-check: 0.4.0 dev: true - registry.npmmirror.com/p-limit@3.1.0: - resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz} - name: p-limit - version: 3.1.0 + /p-limit@3.1.0: + resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} dependencies: - yocto-queue: registry.npmmirror.com/yocto-queue@0.1.0 + yocto-queue: 0.1.0 dev: true - registry.npmmirror.com/p-locate@5.0.0: - resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/p-locate/-/p-locate-5.0.0.tgz} - name: p-locate - version: 5.0.0 + /p-locate@5.0.0: + resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} dependencies: - p-limit: registry.npmmirror.com/p-limit@3.1.0 + p-limit: 3.1.0 dev: true - registry.npmmirror.com/parent-module@1.0.1: - resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/parent-module/-/parent-module-1.0.1.tgz} - name: parent-module - version: 1.0.1 + /parent-module@1.0.1: + resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} dependencies: - callsites: registry.npmmirror.com/callsites@3.1.0 + callsites: 3.1.0 dev: true - registry.npmmirror.com/parse-json@5.2.0: - resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/parse-json/-/parse-json-5.2.0.tgz} - name: parse-json - version: 5.2.0 + /parse-json@5.2.0: + resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} dependencies: - '@babel/code-frame': registry.npmmirror.com/@babel/code-frame@7.23.5 - error-ex: registry.npmmirror.com/error-ex@1.3.2 - json-parse-even-better-errors: registry.npmmirror.com/json-parse-even-better-errors@2.3.1 - lines-and-columns: registry.npmmirror.com/lines-and-columns@1.2.4 + '@babel/code-frame': 7.24.2 + error-ex: 1.3.2 + json-parse-even-better-errors: 2.3.1 + lines-and-columns: 1.2.4 dev: true - registry.npmmirror.com/path-exists@4.0.0: - resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-exists/-/path-exists-4.0.0.tgz} - name: path-exists - version: 4.0.0 + /path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/path-is-absolute@1.0.1: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz} - name: path-is-absolute - version: 1.0.1 + /path-is-absolute@1.0.1: + resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==} engines: {node: '>=0.10.0'} - registry.npmmirror.com/path-key@3.1.1: - resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-key/-/path-key-3.1.1.tgz} - name: path-key - version: 3.1.1 + /path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/path-type@4.0.0: - resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/path-type/-/path-type-4.0.0.tgz} - name: path-type - version: 4.0.0 + /path-type@4.0.0: + resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/picocolors@1.0.0: - resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/picocolors/-/picocolors-1.0.0.tgz} - name: picocolors - version: 1.0.0 + /picocolors@1.0.0: + resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} dev: true - registry.npmmirror.com/picomatch@2.3.1: - resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/picomatch/-/picomatch-2.3.1.tgz} - name: picomatch - version: 2.3.1 + /picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - registry.npmmirror.com/postcss@8.4.31: - resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/postcss/-/postcss-8.4.31.tgz} - name: postcss - version: 8.4.31 + /postcss@8.4.38: + resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==} engines: {node: ^10 || ^12 || >=14} dependencies: - nanoid: registry.npmmirror.com/nanoid@3.3.7 - picocolors: registry.npmmirror.com/picocolors@1.0.0 - source-map-js: registry.npmmirror.com/source-map-js@1.0.2 + nanoid: 3.3.7 + picocolors: 1.0.0 + source-map-js: 1.2.0 dev: true - registry.npmmirror.com/prelude-ls@1.2.1: - resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/prelude-ls/-/prelude-ls-1.2.1.tgz} - name: prelude-ls - version: 1.2.1 + /prelude-ls@1.2.1: + resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} dev: true - registry.npmmirror.com/prop-types@15.8.1: - resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/prop-types/-/prop-types-15.8.1.tgz} - name: prop-types - version: 15.8.1 + /prop-types@15.8.1: + resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} dependencies: - loose-envify: registry.npmmirror.com/loose-envify@1.4.0 - object-assign: registry.npmmirror.com/object-assign@4.1.1 - react-is: registry.npmmirror.com/react-is@16.13.1 + loose-envify: 1.4.0 + object-assign: 4.1.1 + react-is: 16.13.1 dev: false - registry.npmmirror.com/punycode@2.3.1: - resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/punycode/-/punycode-2.3.1.tgz} - name: punycode - version: 2.3.1 + /punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} dev: true - registry.npmmirror.com/queue-microtask@1.2.3: - resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/queue-microtask/-/queue-microtask-1.2.3.tgz} - name: queue-microtask - version: 1.2.3 + /queue-microtask@1.2.3: + resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true - registry.npmmirror.com/react-dom@18.2.0(react@18.2.0): - resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-dom/-/react-dom-18.2.0.tgz} - id: registry.npmmirror.com/react-dom/18.2.0 - name: react-dom - version: 18.2.0 + /react-dom@18.2.0(react@18.2.0): + resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} peerDependencies: react: ^18.2.0 dependencies: - loose-envify: registry.npmmirror.com/loose-envify@1.4.0 - react: registry.npmmirror.com/react@18.2.0 - scheduler: registry.npmmirror.com/scheduler@0.23.0 + loose-envify: 1.4.0 + react: 18.2.0 + scheduler: 0.23.0 dev: false - registry.npmmirror.com/react-draggable@4.4.6(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-LtY5Xw1zTPqHkVmtM3X8MUOxNDOUhv/khTgBgrUvwaS064bwVvxT+q5El0uUFNx5IEPKXuRejr7UqLwBIg5pdw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-draggable/-/react-draggable-4.4.6.tgz} - id: registry.npmmirror.com/react-draggable/4.4.6 - name: react-draggable - version: 4.4.6 + /react-draggable@4.4.6(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-LtY5Xw1zTPqHkVmtM3X8MUOxNDOUhv/khTgBgrUvwaS064bwVvxT+q5El0uUFNx5IEPKXuRejr7UqLwBIg5pdw==} peerDependencies: react: '>= 16.3.0' react-dom: '>= 16.3.0' dependencies: - clsx: registry.npmmirror.com/clsx@1.2.1 - prop-types: registry.npmmirror.com/prop-types@15.8.1 - react: registry.npmmirror.com/react@18.2.0 - react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + clsx: 1.2.1 + prop-types: 15.8.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) dev: false - registry.npmmirror.com/react-is@16.13.1: - resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz} - name: react-is - version: 16.13.1 + /react-is@16.13.1: + resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} dev: false - registry.npmmirror.com/react-refresh@0.14.0: - resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-refresh/-/react-refresh-0.14.0.tgz} - name: react-refresh - version: 0.14.0 + /react-refresh@0.14.0: + resolution: {integrity: sha512-wViHqhAd8OHeLS/IRMJjTSDHF3U9eWi62F/MledQGPdJGDhodXJ9PBLNGr6WWL7qlH12Mt3TyTpbS+hGXMjCzQ==} engines: {node: '>=0.10.0'} dev: true - registry.npmmirror.com/react-resizable@3.0.5(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-resizable/-/react-resizable-3.0.5.tgz} - id: registry.npmmirror.com/react-resizable/3.0.5 - name: react-resizable - version: 3.0.5 + /react-resizable@3.0.5(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-vKpeHhI5OZvYn82kXOs1bC8aOXktGU5AmKAgaZS4F5JPburCtbmDPqE7Pzp+1kN4+Wb81LlF33VpGwWwtXem+w==} peerDependencies: react: '>= 16.3' dependencies: - prop-types: registry.npmmirror.com/prop-types@15.8.1 - react: registry.npmmirror.com/react@18.2.0 - react-draggable: registry.npmmirror.com/react-draggable@4.4.6(react-dom@18.2.0)(react@18.2.0) + prop-types: 15.8.1 + react: 18.2.0 + react-draggable: 4.4.6(react-dom@18.2.0)(react@18.2.0) transitivePeerDependencies: - react-dom dev: false - registry.npmmirror.com/react-router-dom@6.20.0(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-CbcKjEyiSVpA6UtCHOIYLUYn/UJfwzp55va4yEfpk7JBN3GPqWfHrdLkAvNCcpXr8QoihcDMuk0dzWZxtlB/mQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-router-dom/-/react-router-dom-6.20.0.tgz} - id: registry.npmmirror.com/react-router-dom/6.20.0 - name: react-router-dom - version: 6.20.0 + /react-router-dom@6.20.0(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-CbcKjEyiSVpA6UtCHOIYLUYn/UJfwzp55va4yEfpk7JBN3GPqWfHrdLkAvNCcpXr8QoihcDMuk0dzWZxtlB/mQ==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' react-dom: '>=16.8' dependencies: - '@remix-run/router': registry.npmmirror.com/@remix-run/router@1.13.0 - react: registry.npmmirror.com/react@18.2.0 - react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) - react-router: registry.npmmirror.com/react-router@6.20.0(react@18.2.0) + '@remix-run/router': 1.13.0 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + react-router: 6.20.0(react@18.2.0) dev: false - registry.npmmirror.com/react-router@6.20.0(react@18.2.0): - resolution: {integrity: sha512-pVvzsSsgUxxtuNfTHC4IxjATs10UaAtvLGVSA1tbUE4GDaOSU1Esu2xF5nWLz7KPiMuW8BJWuPFdlGYJ7/rW0w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-router/-/react-router-6.20.0.tgz} - id: registry.npmmirror.com/react-router/6.20.0 - name: react-router - version: 6.20.0 + /react-router@6.20.0(react@18.2.0): + resolution: {integrity: sha512-pVvzsSsgUxxtuNfTHC4IxjATs10UaAtvLGVSA1tbUE4GDaOSU1Esu2xF5nWLz7KPiMuW8BJWuPFdlGYJ7/rW0w==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' dependencies: - '@remix-run/router': registry.npmmirror.com/@remix-run/router@1.13.0 - react: registry.npmmirror.com/react@18.2.0 + '@remix-run/router': 1.13.0 + react: 18.2.0 dev: false - registry.npmmirror.com/react-window@1.8.10(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-Y0Cx+dnU6NLa5/EvoHukUD0BklJ8qITCtVEPY1C/nL8wwoZ0b5aEw8Ff1dOVHw7fCzMt55XfJDd8S8W8LCaUCg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react-window/-/react-window-1.8.10.tgz} - id: registry.npmmirror.com/react-window/1.8.10 - name: react-window - version: 1.8.10 + /react-window@1.8.10(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-Y0Cx+dnU6NLa5/EvoHukUD0BklJ8qITCtVEPY1C/nL8wwoZ0b5aEw8Ff1dOVHw7fCzMt55XfJDd8S8W8LCaUCg==} engines: {node: '>8.0.0'} peerDependencies: react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 react-dom: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 dependencies: - '@babel/runtime': registry.npmmirror.com/@babel/runtime@7.23.5 - memoize-one: registry.npmmirror.com/memoize-one@5.2.1 - react: registry.npmmirror.com/react@18.2.0 - react-dom: registry.npmmirror.com/react-dom@18.2.0(react@18.2.0) + '@babel/runtime': 7.24.4 + memoize-one: 5.2.1 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) dev: false - registry.npmmirror.com/react@18.2.0: - resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/react/-/react-18.2.0.tgz} - name: react - version: 18.2.0 + /react@18.2.0: + resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} engines: {node: '>=0.10.0'} dependencies: - loose-envify: registry.npmmirror.com/loose-envify@1.4.0 + loose-envify: 1.4.0 dev: false - registry.npmmirror.com/readdirp@3.6.0: - resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/readdirp/-/readdirp-3.6.0.tgz} - name: readdirp - version: 3.6.0 + /readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} dependencies: - picomatch: registry.npmmirror.com/picomatch@2.3.1 + picomatch: 2.3.1 - registry.npmmirror.com/regenerator-runtime@0.14.0: - resolution: {integrity: sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz} - name: regenerator-runtime - version: 0.14.0 + /regenerator-runtime@0.14.1: + resolution: {integrity: sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==} dev: false - registry.npmmirror.com/resize-observer-polyfill@1.5.1: - resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz} - name: resize-observer-polyfill - version: 1.5.1 + /resize-observer-polyfill@1.5.1: + resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} dev: false - registry.npmmirror.com/resolve-from@4.0.0: - resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/resolve-from/-/resolve-from-4.0.0.tgz} - name: resolve-from - version: 4.0.0 + /resolve-from@4.0.0: + resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==} engines: {node: '>=4'} dev: true - registry.npmmirror.com/reusify@1.0.4: - resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/reusify/-/reusify-1.0.4.tgz} - name: reusify - version: 1.0.4 + /reusify@1.0.4: + resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==} engines: {iojs: '>=1.0.0', node: '>=0.10.0'} dev: true - registry.npmmirror.com/rimraf@3.0.2: - resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz} - name: rimraf - version: 3.0.2 + /rimraf@3.0.2: + resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==} hasBin: true dependencies: - glob: registry.npmmirror.com/glob@7.2.3 + glob: 7.2.3 dev: true - registry.npmmirror.com/rollup@4.6.1: - resolution: {integrity: sha512-jZHaZotEHQaHLgKr8JnQiDT1rmatjgKlMekyksz+yk9jt/8z9quNjnKNRoaM0wd9DC2QKXjmWWuDYtM3jfF8pQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/rollup/-/rollup-4.6.1.tgz} - name: rollup - version: 4.6.1 + /rollup@4.14.0: + resolution: {integrity: sha512-Qe7w62TyawbDzB4yt32R0+AbIo6m1/sqO7UPzFS8Z/ksL5mrfhA0v4CavfdmFav3D+ub4QeAgsGEe84DoWe/nQ==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true + dependencies: + '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': registry.npmmirror.com/@rollup/rollup-android-arm-eabi@4.6.1 - '@rollup/rollup-android-arm64': registry.npmmirror.com/@rollup/rollup-android-arm64@4.6.1 - '@rollup/rollup-darwin-arm64': registry.npmmirror.com/@rollup/rollup-darwin-arm64@4.6.1 - '@rollup/rollup-darwin-x64': registry.npmmirror.com/@rollup/rollup-darwin-x64@4.6.1 - '@rollup/rollup-linux-arm-gnueabihf': registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf@4.6.1 - '@rollup/rollup-linux-arm64-gnu': registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu@4.6.1 - '@rollup/rollup-linux-arm64-musl': registry.npmmirror.com/@rollup/rollup-linux-arm64-musl@4.6.1 - '@rollup/rollup-linux-x64-gnu': registry.npmmirror.com/@rollup/rollup-linux-x64-gnu@4.6.1 - '@rollup/rollup-linux-x64-musl': registry.npmmirror.com/@rollup/rollup-linux-x64-musl@4.6.1 - '@rollup/rollup-win32-arm64-msvc': registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc@4.6.1 - '@rollup/rollup-win32-ia32-msvc': registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc@4.6.1 - '@rollup/rollup-win32-x64-msvc': registry.npmmirror.com/@rollup/rollup-win32-x64-msvc@4.6.1 - fsevents: registry.npmmirror.com/fsevents@2.3.3 - dev: true - - registry.npmmirror.com/run-parallel@1.2.0: - resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/run-parallel/-/run-parallel-1.2.0.tgz} - name: run-parallel - version: 1.2.0 - dependencies: - queue-microtask: registry.npmmirror.com/queue-microtask@1.2.3 - dev: true - - registry.npmmirror.com/sass@1.69.5: - resolution: {integrity: sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/sass/-/sass-1.69.5.tgz} - name: sass - version: 1.69.5 + '@rollup/rollup-android-arm-eabi': 4.14.0 + '@rollup/rollup-android-arm64': 4.14.0 + '@rollup/rollup-darwin-arm64': 4.14.0 + '@rollup/rollup-darwin-x64': 4.14.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.14.0 + '@rollup/rollup-linux-arm64-gnu': 4.14.0 + '@rollup/rollup-linux-arm64-musl': 4.14.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.14.0 + '@rollup/rollup-linux-riscv64-gnu': 4.14.0 + '@rollup/rollup-linux-s390x-gnu': 4.14.0 + '@rollup/rollup-linux-x64-gnu': 4.14.0 + '@rollup/rollup-linux-x64-musl': 4.14.0 + '@rollup/rollup-win32-arm64-msvc': 4.14.0 + '@rollup/rollup-win32-ia32-msvc': 4.14.0 + '@rollup/rollup-win32-x64-msvc': 4.14.0 + fsevents: 2.3.3 + dev: true + + /run-parallel@1.2.0: + resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} + dependencies: + queue-microtask: 1.2.3 + dev: true + + /sass@1.69.5: + resolution: {integrity: sha512-qg2+UCJibLr2LCVOt3OlPhr/dqVHWOa9XtZf2OjbLs/T4VPSJ00udtgJxH3neXZm+QqX8B+3cU7RaLqp1iVfcQ==} engines: {node: '>=14.0.0'} hasBin: true dependencies: - chokidar: registry.npmmirror.com/chokidar@3.5.3 - immutable: registry.npmmirror.com/immutable@4.3.4 - source-map-js: registry.npmmirror.com/source-map-js@1.0.2 + chokidar: 3.6.0 + immutable: 4.3.5 + source-map-js: 1.2.0 - registry.npmmirror.com/scheduler@0.23.0: - resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/scheduler/-/scheduler-0.23.0.tgz} - name: scheduler - version: 0.23.0 + /scheduler@0.23.0: + resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} dependencies: - loose-envify: registry.npmmirror.com/loose-envify@1.4.0 + loose-envify: 1.4.0 dev: false - registry.npmmirror.com/scroll-into-view-if-needed@2.2.31: - resolution: {integrity: sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.31.tgz} - name: scroll-into-view-if-needed - version: 2.2.31 + /scroll-into-view-if-needed@2.2.31: + resolution: {integrity: sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==} dependencies: - compute-scroll-into-view: registry.npmmirror.com/compute-scroll-into-view@1.0.20 + compute-scroll-into-view: 1.0.20 dev: false - registry.npmmirror.com/semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/semver/-/semver-6.3.1.tgz} - name: semver - version: 6.3.1 + /semver@6.3.1: + resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true dev: true - registry.npmmirror.com/semver@7.5.4: - resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/semver/-/semver-7.5.4.tgz} - name: semver - version: 7.5.4 + /semver@7.6.0: + resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==} engines: {node: '>=10'} hasBin: true dependencies: - lru-cache: registry.npmmirror.com/lru-cache@6.0.0 + lru-cache: 6.0.0 dev: true - registry.npmmirror.com/shebang-command@2.0.0: - resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz} - name: shebang-command - version: 2.0.0 + /shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} dependencies: - shebang-regex: registry.npmmirror.com/shebang-regex@3.0.0 + shebang-regex: 3.0.0 dev: true - registry.npmmirror.com/shebang-regex@3.0.0: - resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/shebang-regex/-/shebang-regex-3.0.0.tgz} - name: shebang-regex - version: 3.0.0 + /shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/slash@3.0.0: - resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/slash/-/slash-3.0.0.tgz} - name: slash - version: 3.0.0 + /slash@3.0.0: + resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/snake-case@3.0.4: - resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/snake-case/-/snake-case-3.0.4.tgz} - name: snake-case - version: 3.0.4 + /snake-case@3.0.4: + resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} dependencies: - dot-case: registry.npmmirror.com/dot-case@3.0.4 - tslib: registry.npmmirror.com/tslib@2.6.2 + dot-case: 3.0.4 + tslib: 2.6.2 dev: true - registry.npmmirror.com/source-map-js@1.0.2: - resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/source-map-js/-/source-map-js-1.0.2.tgz} - name: source-map-js - version: 1.0.2 + /source-map-js@1.2.0: + resolution: {integrity: sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==} engines: {node: '>=0.10.0'} - registry.npmmirror.com/strip-ansi@6.0.1: - resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz} - name: strip-ansi - version: 6.0.1 + /strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} engines: {node: '>=8'} dependencies: - ansi-regex: registry.npmmirror.com/ansi-regex@5.0.1 + ansi-regex: 5.0.1 dev: true - registry.npmmirror.com/strip-json-comments@3.1.1: - resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz} - name: strip-json-comments - version: 3.1.1 + /strip-json-comments@3.1.1: + resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==} engines: {node: '>=8'} dev: true - registry.npmmirror.com/supports-color@5.5.0: - resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-color/-/supports-color-5.5.0.tgz} - name: supports-color - version: 5.5.0 + /supports-color@5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} engines: {node: '>=4'} dependencies: - has-flag: registry.npmmirror.com/has-flag@3.0.0 + has-flag: 3.0.0 dev: true - registry.npmmirror.com/supports-color@7.2.0: - resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz} - name: supports-color - version: 7.2.0 + /supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} dependencies: - has-flag: registry.npmmirror.com/has-flag@4.0.0 + has-flag: 4.0.0 dev: true - registry.npmmirror.com/svg-parser@2.0.4: - resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/svg-parser/-/svg-parser-2.0.4.tgz} - name: svg-parser - version: 2.0.4 + /svg-parser@2.0.4: + resolution: {integrity: sha512-e4hG1hRwoOdRb37cIMSgzNsxyzKfayW6VOflrwvR+/bzrkyxY/31WkbgnQpgtrNp1SdpJvpUAGTa/ZoiPNDuRQ==} dev: true - registry.npmmirror.com/text-table@0.2.0: - resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/text-table/-/text-table-0.2.0.tgz} - name: text-table - version: 0.2.0 + /text-table@0.2.0: + resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} dev: true - registry.npmmirror.com/to-fast-properties@2.0.0: - resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz} - name: to-fast-properties - version: 2.0.0 + /to-fast-properties@2.0.0: + resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} dev: true - registry.npmmirror.com/to-regex-range@5.0.1: - resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz} - name: to-regex-range - version: 5.0.1 + /to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} dependencies: - is-number: registry.npmmirror.com/is-number@7.0.0 + is-number: 7.0.0 - registry.npmmirror.com/ts-api-utils@1.0.3(typescript@5.2.2): - resolution: {integrity: sha512-wNMeqtMz5NtwpT/UZGY5alT+VoKdSsOOP/kqHFcUW1P/VRhH2wJ48+DN2WwUliNbQ976ETwDL0Ifd2VVvgonvg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz} - id: registry.npmmirror.com/ts-api-utils/1.0.3 - name: ts-api-utils - version: 1.0.3 - engines: {node: '>=16.13.0'} + /ts-api-utils@1.3.0(typescript@5.2.2): + resolution: {integrity: sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ==} + engines: {node: '>=16'} peerDependencies: typescript: '>=4.2.0' dependencies: - typescript: registry.npmmirror.com/typescript@5.2.2 + typescript: 5.2.2 dev: true - registry.npmmirror.com/tslib@2.3.0: - resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz} - name: tslib - version: 2.3.0 + /tslib@2.3.0: + resolution: {integrity: sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==} dev: false - registry.npmmirror.com/tslib@2.6.2: - resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/tslib/-/tslib-2.6.2.tgz} - name: tslib - version: 2.6.2 + /tslib@2.6.2: + resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} - registry.npmmirror.com/type-check@0.4.0: - resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type-check/-/type-check-0.4.0.tgz} - name: type-check - version: 0.4.0 + /type-check@0.4.0: + resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} dependencies: - prelude-ls: registry.npmmirror.com/prelude-ls@1.2.1 + prelude-ls: 1.2.1 dev: true - registry.npmmirror.com/type-fest@0.20.2: - resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/type-fest/-/type-fest-0.20.2.tgz} - name: type-fest - version: 0.20.2 + /type-fest@0.20.2: + resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} dev: true - registry.npmmirror.com/typescript@5.2.2: - resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/typescript/-/typescript-5.2.2.tgz} - name: typescript - version: 5.2.2 + /typescript@5.2.2: + resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true dev: true - registry.npmmirror.com/update-browserslist-db@1.0.13(browserslist@4.22.1): - resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz} - id: registry.npmmirror.com/update-browserslist-db/1.0.13 - name: update-browserslist-db - version: 1.0.13 + /update-browserslist-db@1.0.13(browserslist@4.23.0): + resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==} hasBin: true peerDependencies: browserslist: '>= 4.21.0' dependencies: - browserslist: registry.npmmirror.com/browserslist@4.22.1 - escalade: registry.npmmirror.com/escalade@3.1.1 - picocolors: registry.npmmirror.com/picocolors@1.0.0 + browserslist: 4.23.0 + escalade: 3.1.2 + picocolors: 1.0.0 dev: true - registry.npmmirror.com/uri-js@4.4.1: - resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/uri-js/-/uri-js-4.4.1.tgz} - name: uri-js - version: 4.4.1 + /uri-js@4.4.1: + resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: - punycode: registry.npmmirror.com/punycode@2.3.1 + punycode: 2.3.1 dev: true - registry.npmmirror.com/use-sync-external-store@1.2.0(react@18.2.0): - resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz} - id: registry.npmmirror.com/use-sync-external-store/1.2.0 - name: use-sync-external-store - version: 1.2.0 + /use-sync-external-store@1.2.0(react@18.2.0): + resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 dependencies: - react: registry.npmmirror.com/react@18.2.0 + react: 18.2.0 dev: false - registry.npmmirror.com/utility-types@3.10.0: - resolution: {integrity: sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/utility-types/-/utility-types-3.10.0.tgz} - name: utility-types - version: 3.10.0 + /utility-types@3.11.0: + resolution: {integrity: sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==} engines: {node: '>= 4'} dev: false - registry.npmmirror.com/vite-plugin-svgr@4.2.0(typescript@5.2.2)(vite@5.0.0): - resolution: {integrity: sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vite-plugin-svgr/-/vite-plugin-svgr-4.2.0.tgz} - id: registry.npmmirror.com/vite-plugin-svgr/4.2.0 - name: vite-plugin-svgr - version: 4.2.0 + /vite-plugin-svgr@4.2.0(typescript@5.2.2)(vite@5.0.0): + resolution: {integrity: sha512-SC7+FfVtNQk7So0XMjrrtLAbEC8qjFPifyD7+fs/E6aaNdVde6umlVVh0QuwDLdOMu7vp5RiGFsB70nj5yo0XA==} peerDependencies: vite: ^2.6.0 || 3 || 4 || 5 dependencies: - '@rollup/pluginutils': registry.npmmirror.com/@rollup/pluginutils@5.1.0 - '@svgr/core': registry.npmmirror.com/@svgr/core@8.1.0(typescript@5.2.2) - '@svgr/plugin-jsx': registry.npmmirror.com/@svgr/plugin-jsx@8.1.0(@svgr/core@8.1.0) - vite: registry.npmmirror.com/vite@5.0.0(sass@1.69.5) + '@rollup/pluginutils': 5.1.0 + '@svgr/core': 8.1.0(typescript@5.2.2) + '@svgr/plugin-jsx': 8.1.0(@svgr/core@8.1.0) + vite: 5.0.0(sass@1.69.5) transitivePeerDependencies: - rollup - supports-color - typescript dev: true - registry.npmmirror.com/vite@5.0.0(sass@1.69.5): - resolution: {integrity: sha512-ESJVM59mdyGpsiNAeHQOR/0fqNoOyWPYesFto8FFZugfmhdHx8Fzd8sF3Q/xkVhZsyOxHfdM7ieiVAorI9RjFw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vite/-/vite-5.0.0.tgz} - id: registry.npmmirror.com/vite/5.0.0 - name: vite - version: 5.0.0 + /vite@5.0.0(sass@1.69.5): + resolution: {integrity: sha512-ESJVM59mdyGpsiNAeHQOR/0fqNoOyWPYesFto8FFZugfmhdHx8Fzd8sF3Q/xkVhZsyOxHfdM7ieiVAorI9RjFw==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -3195,61 +2557,46 @@ packages: terser: optional: true dependencies: - esbuild: registry.npmmirror.com/esbuild@0.19.8 - postcss: registry.npmmirror.com/postcss@8.4.31 - rollup: registry.npmmirror.com/rollup@4.6.1 - sass: registry.npmmirror.com/sass@1.69.5 + esbuild: 0.19.12 + postcss: 8.4.38 + rollup: 4.14.0 + sass: 1.69.5 optionalDependencies: - fsevents: registry.npmmirror.com/fsevents@2.3.3 + fsevents: 2.3.3 dev: true - registry.npmmirror.com/which@2.0.2: - resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/which/-/which-2.0.2.tgz} - name: which - version: 2.0.2 + /which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} hasBin: true dependencies: - isexe: registry.npmmirror.com/isexe@2.0.0 + isexe: 2.0.0 dev: true - registry.npmmirror.com/wrappy@1.0.2: - resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/wrappy/-/wrappy-1.0.2.tgz} - name: wrappy - version: 1.0.2 + /wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - registry.npmmirror.com/yallist@3.1.1: - resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/yallist/-/yallist-3.1.1.tgz} - name: yallist - version: 3.1.1 + /yallist@3.1.1: + resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==} dev: true - registry.npmmirror.com/yallist@4.0.0: - resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz} - name: yallist - version: 4.0.0 + /yallist@4.0.0: + resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true - registry.npmmirror.com/yocto-queue@0.1.0: - resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz} - name: yocto-queue - version: 0.1.0 + /yocto-queue@0.1.0: + resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} dev: true - registry.npmmirror.com/zrender@5.4.4: - resolution: {integrity: sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/zrender/-/zrender-5.4.4.tgz} - name: zrender - version: 5.4.4 + /zrender@5.4.4: + resolution: {integrity: sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw==} dependencies: - tslib: registry.npmmirror.com/tslib@2.3.0 + tslib: 2.3.0 dev: false - registry.npmmirror.com/zustand@4.3.8(react@18.2.0): - resolution: {integrity: sha512-4h28KCkHg5ii/wcFFJ5Fp+k1J3gJoasaIbppdgZFO4BPJnsNxL0mQXBSFgOgAdCdBj35aDTPvdAJReTMntFPGg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/zustand/-/zustand-4.3.8.tgz} - id: registry.npmmirror.com/zustand/4.3.8 - name: zustand - version: 4.3.8 + /zustand@4.3.8(react@18.2.0): + resolution: {integrity: sha512-4h28KCkHg5ii/wcFFJ5Fp+k1J3gJoasaIbppdgZFO4BPJnsNxL0mQXBSFgOgAdCdBj35aDTPvdAJReTMntFPGg==} engines: {node: '>=12.7.0'} peerDependencies: immer: '>=9.0' @@ -3260,6 +2607,6 @@ packages: react: optional: true dependencies: - react: registry.npmmirror.com/react@18.2.0 - use-sync-external-store: registry.npmmirror.com/use-sync-external-store@1.2.0(react@18.2.0) + react: 18.2.0 + use-sync-external-store: 1.2.0(react@18.2.0) dev: false From c8314fb8e2881d007f6f460df23711aa55def884 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 5 Apr 2024 23:33:51 +0900 Subject: [PATCH 047/148] Remove dropwizard configuration and jackson --- gateway-ha/pom.xml | 21 ++++++------------- .../gateway/ha/config/LdapConfiguration.java | 21 +++++++------------ 2 files changed, 14 insertions(+), 28 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index aa0ef576e..6e9b8d488 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -55,6 +55,11 @@ jackson-databind + + com.fasterxml.jackson.dataformat + jackson-dataformat-yaml + + com.google.errorprone error_prone_annotations @@ -143,11 +148,6 @@ - - io.dropwizard - dropwizard-configuration - - io.dropwizard dropwizard-core @@ -164,11 +164,6 @@ - - io.dropwizard - dropwizard-jackson - - io.dropwizard dropwizard-jersey @@ -232,11 +227,6 @@ jakarta.servlet-api - - jakarta.validation - jakarta.validation-api - - jakarta.ws.rs jakarta.ws.rs-api @@ -244,6 +234,7 @@ + joda-time joda-time diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java index 2201616e6..b36447c6e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/LdapConfiguration.java @@ -13,14 +13,17 @@ */ package io.trino.gateway.ha.config; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; import io.airlift.log.Logger; -import io.dropwizard.configuration.ConfigurationException; -import io.dropwizard.configuration.YamlConfigurationFactory; -import io.dropwizard.jackson.Jackson; + +import java.io.File; +import java.io.IOException; public class LdapConfiguration { private static final Logger log = Logger.get(LdapConfiguration.class); + private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(new YAMLFactory()); private String ldapHost; private Integer ldapPort; private boolean useTls; @@ -77,17 +80,9 @@ public static LdapConfiguration load(String path) { LdapConfiguration configuration = null; try { - configuration = - new YamlConfigurationFactory(LdapConfiguration.class, - null, - Jackson.newObjectMapper(), "lb") - .build(new java.io.File(path)); - } - catch (java.io.IOException e) { - log.error(e, "Error loading configuration file"); - throw new RuntimeException(e); + configuration = OBJECT_MAPPER.readValue(new File(path), LdapConfiguration.class); } - catch (ConfigurationException e) { + catch (IOException e) { log.error(e, "Error loading configuration file"); throw new RuntimeException(e); } From 404c90688fcacc71029eadbc231e91d38a2a4293 Mon Sep 17 00:00:00 2001 From: prakharsapre Date: Tue, 9 Apr 2024 14:08:31 -0500 Subject: [PATCH 048/148] fix typo in method names --- .../gateway/ha/clustermonitor/HealthCheckObserver.java | 2 +- .../io/trino/gateway/ha/resource/EntityEditorResource.java | 2 +- .../io/trino/gateway/ha/router/QueryCountBasedRouter.java | 2 +- .../java/io/trino/gateway/ha/router/RoutingManager.java | 6 +++--- .../trino/gateway/ha/router/TestQueryCountBasedRouter.java | 6 +++--- .../gateway/ha/router/TestStochasticRoutingManager.java | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java index 216d17153..5ce124570 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/HealthCheckObserver.java @@ -28,6 +28,6 @@ public HealthCheckObserver(RoutingManager routingManager) @Override public void observe(java.util.List clustersStats) { - routingManager.upateBackEndStats(clustersStats); + routingManager.updateBackEndStats(clustersStats); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java index 8eb6cba5c..7dcc7e0c3 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java @@ -87,7 +87,7 @@ public Response updateEntity( OBJECT_MAPPER.readValue(jsonPayload, ProxyBackendConfiguration.class); gatewayBackendManager.updateBackend(backend); log.info("Setting up the backend %s with healthy state", backend.getName()); - routingManager.upateBackEndHealth(backend.getName(), true); + routingManager.updateBackEndHealth(backend.getName(), true); break; case RESOURCE_GROUP: ResourceGroupsDetail resourceGroupDetails = OBJECT_MAPPER.readValue(jsonPayload, diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java index 404f0b7a4..6ba8a518f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java @@ -232,7 +232,7 @@ public String provideBackendForRoutingGroup(String routingGroup, String user) } @Override - public synchronized void upateBackEndStats(List stats) + public synchronized void updateBackEndStats(List stats) { clusterStats = stats.stream().map(a -> new LocalStats(a)).collect(Collectors.toList()); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java index 1dd12bcde..f40510f25 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/RoutingManager.java @@ -124,16 +124,16 @@ public String findBackendForQueryId(String queryId) return backendAddress; } - public void upateBackEndHealth(String backendId, Boolean value) + public void updateBackEndHealth(String backendId, Boolean value) { log.info("backend %s isHealthy %s", backendId, value); backendToHealth.put(backendId, value); } - public void upateBackEndStats(List stats) + public void updateBackEndStats(List stats) { for (ClusterStats clusterStats : stats) { - upateBackEndHealth(clusterStats.clusterId(), clusterStats.healthy()); + updateBackEndHealth(clusterStats.clusterId(), clusterStats.healthy()); } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java index 06b5e1eb2..45aa79872 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java @@ -156,7 +156,7 @@ public void init() .build(); queryCountBasedRouter = new QueryCountBasedRouter(null, null); - queryCountBasedRouter.upateBackEndStats(clusters); + queryCountBasedRouter.updateBackEndStats(clusters); } @Test @@ -227,7 +227,7 @@ public void testClusterWithLeastQueueCount() .addAll(clusters) .add(getClusterWithNoUserQueueAndMinQueueCount()) .build(); - queryCountBasedRouter.upateBackEndStats(clusters); + queryCountBasedRouter.updateBackEndStats(clusters); String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("NonExisting", "u1"); assertThat(BACKEND_URL_4).isEqualTo(proxyTo); @@ -244,7 +244,7 @@ public void testClusterWithLeastRunningCount() .add(getClusterWithMinRunnningQueries()) .build(); - queryCountBasedRouter.upateBackEndStats(clusters); + queryCountBasedRouter.updateBackEndStats(clusters); String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("NonExisting", "u1"); assertThat(BACKEND_URL_5).isEqualTo(proxyTo); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java index 4d0b81cf8..0ec4de68e 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestStochasticRoutingManager.java @@ -55,7 +55,7 @@ public void addMockBackends() proxyBackend.setExternalUrl("trino.example.com"); backendManager.addBackend(proxyBackend); //set backend as healthy start with - haRoutingManager.upateBackEndHealth(backend, true); + haRoutingManager.updateBackEndHealth(backend, true); } //Keep only 1st backend as healthy, mark all the others as unhealthy @@ -63,7 +63,7 @@ public void addMockBackends() for (int i = 1; i < numBackends; i++) { backend = groupName + i; - haRoutingManager.upateBackEndHealth(backend, false); + haRoutingManager.updateBackEndHealth(backend, false); } assertThat(haRoutingManager.provideBackendForRoutingGroup(groupName, "")) From 27110d191b3095079a61eefd226b32f58cdcdf0b Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 2 Apr 2024 20:31:39 +0900 Subject: [PATCH 049/148] Add airlift stats --- gateway-ha/pom.xml | 12 ++++ .../gateway/ha/handler/ProxyHandlerStats.java | 63 +++++++++++++++++++ .../handler/QueryIdCachingProxyHandler.java | 10 +-- .../ha/module/HaGatewayProviderModule.java | 11 ++-- 4 files changed, 85 insertions(+), 11 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 6e9b8d488..5f58ba9ef 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -121,6 +121,11 @@ log-manager + + io.airlift + stats + + io.dropwizard dropwizard-assets @@ -343,6 +348,11 @@ slf4j-api + + org.weakref + jmxutils + + io.dropwizard dropwizard-views-freemarker @@ -529,6 +539,8 @@ --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED + + false diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java new file mode 100644 index 000000000..e5f21c001 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.handler; + +import com.codahale.metrics.Meter; +import io.airlift.stats.CounterStat; +import io.dropwizard.core.setup.Environment; +import org.weakref.jmx.MBeanExporter; +import org.weakref.jmx.Managed; +import org.weakref.jmx.Nested; + +import java.lang.management.ManagementFactory; + +import static java.util.Objects.requireNonNull; + +public final class ProxyHandlerStats +{ + // Airlift + private final CounterStat requestCount = new CounterStat(); + + // Dropwizard + private final Meter requestMeter; + + private ProxyHandlerStats(Environment environment, String metricsName) + { + this.requestMeter = requireNonNull(environment, "environment is null") + .metrics() + .meter(requireNonNull(metricsName, "metricsName is null")); + } + + public void recordRequest() + { + requestCount.update(1); + requestMeter.mark(); + } + + // Replace this with Guice bind after migrated to Airlift + public static ProxyHandlerStats create(Environment environment, String metricsName) + { + ProxyHandlerStats proxyHandlerStats = new ProxyHandlerStats(environment, metricsName); + MBeanExporter exporter = new MBeanExporter(ManagementFactory.getPlatformMBeanServer()); + exporter.exportWithGeneratedName(proxyHandlerStats); + return proxyHandlerStats; + } + + @Managed + @Nested + public CounterStat getRequestCount() + { + return requestCount; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index 9922b0217..792496c30 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -13,7 +13,6 @@ */ package io.trino.gateway.ha.handler; -import com.codahale.metrics.Meter; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Splitter; import com.google.common.io.CharStreams; @@ -82,7 +81,7 @@ public class QueryIdCachingProxyHandler private final RoutingGroupSelector routingGroupSelector; private final QueryHistoryManager queryHistoryManager; - private final Meter requestMeter; + private final ProxyHandlerStats proxyHandlerStats; private final List extraWhitelistPaths; private final String applicationEndpoint; @@ -91,9 +90,10 @@ public QueryIdCachingProxyHandler( RoutingManager routingManager, RoutingGroupSelector routingGroupSelector, int serverApplicationPort, - Meter requestMeter, List extraWhitelistPaths) + ProxyHandlerStats proxyHandlerStats, + List extraWhitelistPaths) { - this.requestMeter = requestMeter; + this.proxyHandlerStats = proxyHandlerStats; this.routingManager = routingManager; this.routingGroupSelector = routingGroupSelector; this.queryHistoryManager = queryHistoryManager; @@ -238,7 +238,7 @@ public void preConnectionHook(HttpServletRequest request, Request proxyRequest) { if (request.getMethod().equals(HttpMethod.POST) && request.getRequestURI().startsWith(V1_STATEMENT_PATH)) { - requestMeter.mark(); + proxyHandlerStats.recordRequest(); try { String requestBody = CharStreams.toString(request.getReader()); log.info( diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index fc5f34f09..fa86d1cff 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -13,7 +13,6 @@ */ package io.trino.gateway.ha.module; -import com.codahale.metrics.Meter; import com.google.inject.Provides; import com.google.inject.Singleton; import io.dropwizard.auth.AuthFilter; @@ -28,6 +27,7 @@ import io.trino.gateway.ha.config.RequestRouterConfiguration; import io.trino.gateway.ha.config.RoutingRulesConfiguration; import io.trino.gateway.ha.config.UserConfiguration; +import io.trino.gateway.ha.handler.ProxyHandlerStats; import io.trino.gateway.ha.handler.QueryIdCachingProxyHandler; import io.trino.gateway.ha.router.BackendStateManager; import io.trino.gateway.ha.router.QueryHistoryManager; @@ -133,10 +133,9 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c protected ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, RoutingManager routingManager) { - Meter requestMeter = - getEnvironment() - .metrics() - .meter(getConfiguration().getRequestRouter().getName() + ".requests"); + ProxyHandlerStats proxyHandlerStats = ProxyHandlerStats.create( + getEnvironment(), + getConfiguration().getRequestRouter().getName() + ".requests"); // By default, use routing group header to route RoutingGroupSelector routingGroupSelector = RoutingGroupSelector.byRoutingGroupHeader(); @@ -152,7 +151,7 @@ protected ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, routingManager, routingGroupSelector, getApplicationPort(), - requestMeter, + proxyHandlerStats, extraWhitelistPaths); } From 5cff604a06fafa29202db97c7f4153c6de086199 Mon Sep 17 00:00:00 2001 From: Chris Ghyzel Date: Mon, 8 Apr 2024 17:59:51 -0700 Subject: [PATCH 050/148] Fix restUserInfo and findQueryHistory role-auth The restUserInfo method in the LoginResource class and the findQueryHistory method in the GatewayWapResource were using string manipulation of the getMemberOf method from the LbPrincipal to do role authorization. This change fixes the role authorization to be consistent throughout the app by utilizing the isUserInRole method that keeps the context of the LbAuthorization when checking user access to the ADMIN, USER, and API roles. --- .../gateway/ha/resource/GatewayWebAppResource.java | 8 ++------ .../io/trino/gateway/ha/resource/LoginResource.java | 13 ++++++++++++- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java index e3befd3b0..6d3671b7b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java @@ -33,7 +33,6 @@ import io.trino.gateway.ha.router.HaGatewayManager; import io.trino.gateway.ha.router.QueryHistoryManager; import io.trino.gateway.ha.router.ResourceGroupsManager; -import io.trino.gateway.ha.security.LbPrincipal; import jakarta.annotation.security.RolesAllowed; import jakarta.ws.rs.Consumes; import jakarta.ws.rs.POST; @@ -46,7 +45,6 @@ import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; -import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Map; @@ -110,10 +108,8 @@ public Response getAllBackends() @Path("/findQueryHistory") public Response findQueryHistory(QueryHistoryRequest query, @Context SecurityContext securityContext) { - LbPrincipal principal = (LbPrincipal) securityContext.getUserPrincipal(); - String[] roles = principal.getMemberOf().orElse("").split("_"); - if (!Arrays.asList(roles).contains("ADMIN")) { - query.setUser(principal.getName()); + if (!securityContext.isUserInRole("ADMIN")) { + query.setUser(securityContext.getUserPrincipal().getName()); } TableData queryHistory = queryHistoryManager.findQueryHistory(query); return Response.ok(Result.ok(queryHistory)).build(); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java index dd9ffbd57..1e2df268a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.resource; +import com.google.common.collect.ImmutableList; import com.google.inject.Inject; import io.trino.gateway.ha.domain.Result; import io.trino.gateway.ha.domain.request.RestLoginRequest; @@ -107,7 +108,17 @@ public Response processRESTLogin() public Response restUserinfo(@Context SecurityContext securityContext) { LbPrincipal principal = (LbPrincipal) securityContext.getUserPrincipal(); - List roles = List.of(principal.getMemberOf().map(String::toLowerCase).orElse("").split("_")); + ImmutableList.Builder rolesBuilder = ImmutableList.builder(); + if (securityContext.isUserInRole("ADMIN")) { + rolesBuilder.add("ADMIN"); + } + if (securityContext.isUserInRole("USER")) { + rolesBuilder.add("USER"); + } + if (securityContext.isUserInRole("API")) { + rolesBuilder.add("API"); + } + List roles = rolesBuilder.build(); List pagePermissions; if (formAuthManager != null) { pagePermissions = formAuthManager.processPagePermissions(roles); From c10405a5ffd55088457a862e004221579c3214e6 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 4 Apr 2024 22:30:58 +0900 Subject: [PATCH 051/148] Simplify module class inheritance --- .../io/trino/gateway/baseapp/AppModule.java | 62 ------------------- .../io/trino/gateway/baseapp/BaseApp.java | 32 +++++++--- .../ha/module/ClusterStateListenerModule.java | 8 +-- .../ha/module/ClusterStatsMonitorModule.java | 12 ++-- .../ha/module/HaGatewayProviderModule.java | 47 +++++++++++--- .../gateway/ha/module/NotifierModule.java | 40 ------------ .../module/QueryCountBasedRouterProvider.java | 9 +-- .../gateway/ha/module/RouterBaseModule.java | 8 +-- .../StochasticRoutingManagerProvider.java | 9 +-- 9 files changed, 77 insertions(+), 150 deletions(-) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/module/NotifierModule.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java deleted file mode 100644 index 95192284e..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppModule.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.baseapp; - -import com.google.inject.AbstractModule; -import io.dropwizard.core.server.DefaultServerFactory; -import io.dropwizard.core.server.SimpleServerFactory; -import io.dropwizard.jetty.ConnectorFactory; -import io.dropwizard.jetty.HttpConnectorFactory; - -import java.util.stream.Stream; - -public abstract class AppModule - extends AbstractModule -{ - private final T configuration; - private final E environment; - - public AppModule(T config, E env) - { - this.configuration = config; - this.environment = env; - } - - protected int getApplicationPort() - { - Stream connectors = - configuration.getServerFactory() instanceof DefaultServerFactory - ? ((DefaultServerFactory) configuration.getServerFactory()) - .getApplicationConnectors().stream() - : Stream.of((SimpleServerFactory) configuration.getServerFactory()) - .map(SimpleServerFactory::getConnector); - - return connectors - .filter(connector -> connector.getClass().isAssignableFrom(HttpConnectorFactory.class)) - .map(connector -> (HttpConnectorFactory) connector) - .mapToInt(HttpConnectorFactory::getPort) - .findFirst() - .orElseThrow(IllegalStateException::new); - } - - public T getConfiguration() - { - return this.configuration; - } - - public E getEnvironment() - { - return this.environment; - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 7fb3bb45a..09495721f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -42,11 +42,14 @@ import io.trino.gateway.ha.security.AuthorizedExceptionMapper; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; +import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.Set; +import static java.lang.String.format; + /** * Supports Guice in Dropwizard. * @@ -65,15 +68,24 @@ public abstract class BaseApp private static final Logger logger = Logger.get(BaseApp.class); private final ImmutableList.Builder appModules = ImmutableList.builder(); - private AppModule newModule(String clazz, T configuration, Environment environment) + private Module newModule(String clazz, T configuration, Environment environment) { try { logger.info("Trying to load module [%s]", clazz); - Object module = - Class.forName(clazz) - .getConstructor(configuration.getClass(), Environment.class) - .newInstance(configuration, environment); - return ((AppModule) module); + // Modules must have exactly one constructor. The signature must be either one: + // public Module constructor(HaGatewayConfiguration) + // public Module constructor(HaGatewayConfiguration, Environment) + Constructor[] constructors = Class.forName(clazz).getConstructors(); + if (constructors.length != 1) { + throw new RuntimeException(format("Failed to load module [%s]. Multiple constructors exist.", clazz)); + } + Constructor constructor = constructors[0]; + Object module = switch (constructor.getParameterCount()) { + case 1 -> constructor.newInstance(configuration); + case 2 -> constructor.newInstance(configuration, environment); + default -> throw new RuntimeException(format("Failed to load module [%s]. Unsupported constructor.", clazz)); + }; + return ((Module) module); } catch (Exception e) { logger.error(e, "Could not instantiate module [%s]", clazz); @@ -82,9 +94,9 @@ private AppModule newModule(String clazz, T configuration, Environment environme return null; } - private void validateModules(List modules, T configuration, Environment environment) + private void validateModules(List modules, T configuration, Environment environment) { - Optional routerProvider = modules.stream() + Optional routerProvider = modules.stream() .filter(module -> module instanceof RouterBaseModule) .collect(MoreCollectors.toOptional()); if (routerProvider.isEmpty()) { @@ -137,9 +149,9 @@ private void registerWithInjector(T configuration, Environment environment, Inje * @param configuration the app configuration * @return a list of modules to be provisioned by Guice */ - protected List addModules(T configuration, Environment environment) + protected List addModules(T configuration, Environment environment) { - List modules = new ArrayList<>(); + List modules = new ArrayList<>(); if (configuration.getModules() == null) { logger.warn("No modules to load."); return modules; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java index 8cde4a846..0e518c3b8 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java @@ -14,10 +14,9 @@ package io.trino.gateway.ha.module; import com.google.common.collect.ImmutableList; +import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.google.inject.Singleton; -import io.dropwizard.core.setup.Environment; -import io.trino.gateway.baseapp.AppModule; import io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor; import io.trino.gateway.ha.clustermonitor.ClusterStatsObserver; import io.trino.gateway.ha.clustermonitor.HealthCheckObserver; @@ -33,13 +32,12 @@ import java.util.List; public class ClusterStateListenerModule - extends AppModule + extends AbstractModule { MonitorConfiguration monitorConfig; - public ClusterStateListenerModule(HaGatewayConfiguration config, Environment env) + public ClusterStateListenerModule(HaGatewayConfiguration config) { - super(config, env); monitorConfig = config.getMonitor(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java index fe7495742..d289208ab 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStatsMonitorModule.java @@ -13,10 +13,9 @@ */ package io.trino.gateway.ha.module; +import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.google.inject.Singleton; -import io.dropwizard.core.setup.Environment; -import io.trino.gateway.baseapp.AppModule; import io.trino.gateway.ha.clustermonitor.ClusterStatsHttpMonitor; import io.trino.gateway.ha.clustermonitor.ClusterStatsInfoApiMonitor; import io.trino.gateway.ha.clustermonitor.ClusterStatsJdbcMonitor; @@ -25,15 +24,16 @@ import io.trino.gateway.ha.config.ClusterStatsConfiguration; import io.trino.gateway.ha.config.HaGatewayConfiguration; +import static java.util.Objects.requireNonNull; + public class ClusterStatsMonitorModule - extends AppModule + extends AbstractModule { private final HaGatewayConfiguration config; - public ClusterStatsMonitorModule(HaGatewayConfiguration config, Environment env) + public ClusterStatsMonitorModule(HaGatewayConfiguration config) { - super(config, env); - this.config = config; + this.config = requireNonNull(config, "config is null"); } @Provides diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index fa86d1cff..df8a5239d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -13,14 +13,18 @@ */ package io.trino.gateway.ha.module; +import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.google.inject.Singleton; import io.dropwizard.auth.AuthFilter; import io.dropwizard.auth.Authorizer; import io.dropwizard.auth.basic.BasicCredentialAuthFilter; import io.dropwizard.auth.chained.ChainedAuthFilter; +import io.dropwizard.core.server.DefaultServerFactory; +import io.dropwizard.core.server.SimpleServerFactory; import io.dropwizard.core.setup.Environment; -import io.trino.gateway.baseapp.AppModule; +import io.dropwizard.jetty.ConnectorFactory; +import io.dropwizard.jetty.HttpConnectorFactory; import io.trino.gateway.ha.config.AuthenticationConfiguration; import io.trino.gateway.ha.config.AuthorizationConfiguration; import io.trino.gateway.ha.config.HaGatewayConfiguration; @@ -53,9 +57,12 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; +import java.util.stream.Stream; + +import static java.util.Objects.requireNonNull; public class HaGatewayProviderModule - extends AppModule + extends AbstractModule { private final LbOAuthManager oauthManager; private final LbFormAuthManager formAuthManager; @@ -63,10 +70,13 @@ public class HaGatewayProviderModule private final BackendStateManager backendStateConnectionManager; private final AuthFilter authenticationFilter; private final List extraWhitelistPaths; + private final HaGatewayConfiguration configuration; + private final Environment environment; public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment environment) { - super(configuration, environment); + this.configuration = requireNonNull(configuration, "configuration is null"); + this.environment = requireNonNull(environment, "environment is null"); Map presetUsers = configuration.getPresetUsers(); oauthManager = getOAuthManager(configuration); @@ -130,17 +140,17 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c return new ChainedAuthFilter(authFilters); } - protected ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, + private ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, RoutingManager routingManager) { ProxyHandlerStats proxyHandlerStats = ProxyHandlerStats.create( - getEnvironment(), - getConfiguration().getRequestRouter().getName() + ".requests"); + environment, + configuration.getRequestRouter().getName() + ".requests"); // By default, use routing group header to route RoutingGroupSelector routingGroupSelector = RoutingGroupSelector.byRoutingGroupHeader(); // Use rules engine if enabled - RoutingRulesConfiguration routingRulesConfig = getConfiguration().getRoutingRules(); + RoutingRulesConfiguration routingRulesConfig = configuration.getRoutingRules(); if (routingRulesConfig.isRulesEngineEnabled()) { String rulesConfigPath = routingRulesConfig.getRulesConfigPath(); routingGroupSelector = RoutingGroupSelector.byRoutingRulesEngine(rulesConfigPath); @@ -155,7 +165,24 @@ protected ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, extraWhitelistPaths); } - protected AuthFilter getAuthFilter(HaGatewayConfiguration configuration) + private int getApplicationPort() + { + Stream connectors = + configuration.getServerFactory() instanceof DefaultServerFactory + ? ((DefaultServerFactory) configuration.getServerFactory()) + .getApplicationConnectors().stream() + : Stream.of((SimpleServerFactory) configuration.getServerFactory()) + .map(SimpleServerFactory::getConnector); + + return connectors + .filter(connector -> connector.getClass().isAssignableFrom(HttpConnectorFactory.class)) + .map(connector -> (HttpConnectorFactory) connector) + .mapToInt(HttpConnectorFactory::getPort) + .findFirst() + .orElseThrow(IllegalStateException::new); + } + + private AuthFilter getAuthFilter(HaGatewayConfiguration configuration) { AuthorizationConfiguration authorizationConfig = configuration.getAuthorization(); Authorizer authorizer = (authorizationConfig != null) @@ -179,9 +206,9 @@ public ProxyServer provideGateway(QueryHistoryManager queryHistoryManager, RoutingManager routingManager) { ProxyServer gateway = null; - if (getConfiguration().getRequestRouter() != null) { + if (configuration.getRequestRouter() != null) { // Setting up request router - RequestRouterConfiguration routerConfiguration = getConfiguration().getRequestRouter(); + RequestRouterConfiguration routerConfiguration = configuration.getRequestRouter(); ProxyServerConfiguration routerProxyConfig = new ProxyServerConfiguration(); routerProxyConfig.setLocalPort(routerConfiguration.getPort()); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/NotifierModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/NotifierModule.java deleted file mode 100644 index e57b25bcc..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/NotifierModule.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.module; - -import com.google.inject.Provides; -import com.google.inject.Singleton; -import io.dropwizard.core.setup.Environment; -import io.trino.gateway.baseapp.AppModule; -import io.trino.gateway.ha.config.HaGatewayConfiguration; -import io.trino.gateway.ha.config.NotifierConfiguration; -import io.trino.gateway.ha.notifier.EmailNotifier; -import io.trino.gateway.ha.notifier.Notifier; - -public class NotifierModule - extends AppModule -{ - public NotifierModule(HaGatewayConfiguration config, Environment env) - { - super(config, env); - } - - @Provides - @Singleton - public Notifier provideNotifier() - { - NotifierConfiguration notifierConfiguration = getConfiguration().getNotifier(); - return new EmailNotifier(notifierConfiguration); - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java index ce4fb8016..977911405 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/QueryCountBasedRouterProvider.java @@ -14,9 +14,7 @@ package io.trino.gateway.ha.module; import com.google.inject.Provides; -import io.dropwizard.core.setup.Environment; import io.trino.gateway.ha.config.HaGatewayConfiguration; -import io.trino.gateway.ha.router.HaQueryHistoryManager; import io.trino.gateway.ha.router.QueryCountBasedRouter; import io.trino.gateway.ha.router.RoutingManager; @@ -25,11 +23,10 @@ public class QueryCountBasedRouterProvider { private final QueryCountBasedRouter routingManager; - public QueryCountBasedRouterProvider(HaGatewayConfiguration configuration, Environment environment) + public QueryCountBasedRouterProvider(HaGatewayConfiguration configuration) { - super(configuration, environment); - routingManager = new QueryCountBasedRouter(gatewayBackendManager, - (HaQueryHistoryManager) queryHistoryManager); + super(configuration); + routingManager = new QueryCountBasedRouter(gatewayBackendManager, queryHistoryManager); } @Provides diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java index bb8bae8ad..e8ad26a45 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/RouterBaseModule.java @@ -13,9 +13,8 @@ */ package io.trino.gateway.ha.module; +import com.google.inject.AbstractModule; import com.google.inject.Provides; -import io.dropwizard.core.setup.Environment; -import io.trino.gateway.baseapp.AppModule; import io.trino.gateway.ha.config.HaGatewayConfiguration; import io.trino.gateway.ha.persistence.JdbcConnectionManager; import io.trino.gateway.ha.router.GatewayBackendManager; @@ -27,16 +26,15 @@ import org.jdbi.v3.core.Jdbi; public class RouterBaseModule - extends AppModule + extends AbstractModule { final ResourceGroupsManager resourceGroupsManager; final GatewayBackendManager gatewayBackendManager; final QueryHistoryManager queryHistoryManager; final JdbcConnectionManager connectionManager; - public RouterBaseModule(HaGatewayConfiguration configuration, Environment environment) + public RouterBaseModule(HaGatewayConfiguration configuration) { - super(configuration, environment); Jdbi jdbi = Jdbi.create(configuration.getDataStore().getJdbcUrl(), configuration.getDataStore().getUser(), configuration.getDataStore().getPassword()); connectionManager = new JdbcConnectionManager(jdbi, configuration.getDataStore()); resourceGroupsManager = new HaResourceGroupsManager(connectionManager); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java index 0e322242e..2949c7fdf 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/StochasticRoutingManagerProvider.java @@ -14,9 +14,7 @@ package io.trino.gateway.ha.module; import com.google.inject.Provides; -import io.dropwizard.core.setup.Environment; import io.trino.gateway.ha.config.HaGatewayConfiguration; -import io.trino.gateway.ha.router.HaQueryHistoryManager; import io.trino.gateway.ha.router.RoutingManager; import io.trino.gateway.ha.router.StochasticRoutingManager; @@ -25,11 +23,10 @@ public class StochasticRoutingManagerProvider { private final StochasticRoutingManager routingManager; - public StochasticRoutingManagerProvider(HaGatewayConfiguration configuration, Environment environment) + public StochasticRoutingManagerProvider(HaGatewayConfiguration configuration) { - super(configuration, environment); - routingManager = new StochasticRoutingManager(gatewayBackendManager, - (HaQueryHistoryManager) queryHistoryManager); + super(configuration); + routingManager = new StochasticRoutingManager(gatewayBackendManager, queryHistoryManager); } @Provides From 49a40b83dbdc313698cb843d8e897108118ca053 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 09:27:47 +0900 Subject: [PATCH 052/148] Remove AppConfiguration --- .../gateway/baseapp/AppConfiguration.java | 52 ------------------- .../io/trino/gateway/baseapp/BaseApp.java | 19 +++---- .../trino/gateway/ha/HaGatewayLauncher.java | 2 +- .../ha/config/HaGatewayConfiguration.java | 30 ++++++++++- 4 files changed, 39 insertions(+), 64 deletions(-) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/baseapp/AppConfiguration.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppConfiguration.java deleted file mode 100644 index 3186438af..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/AppConfiguration.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.baseapp; - -import io.dropwizard.core.Configuration; - -import java.util.List; - -public class AppConfiguration - extends Configuration -{ - // List of Modules with FQCN (Fully Qualified Class Name) - private List modules; - - // List of ManagedApps with FQCN (Fully Qualified Class Name) - private List managedApps; - - public AppConfiguration() - { - } - - public List getModules() - { - return this.modules; - } - - public List getManagedApps() - { - return this.managedApps; - } - - public void setModules(List modules) - { - this.modules = modules; - } - - public void setManagedApps(List managedApps) - { - this.managedApps = managedApps; - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 09495721f..c602411e1 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -28,6 +28,7 @@ import io.dropwizard.core.setup.Environment; import io.dropwizard.lifecycle.Managed; import io.dropwizard.lifecycle.setup.LifecycleEnvironment; +import io.trino.gateway.ha.config.HaGatewayConfiguration; import io.trino.gateway.ha.log.GatewayRequestLogFactory; import io.trino.gateway.ha.module.RouterBaseModule; import io.trino.gateway.ha.module.StochasticRoutingManagerProvider; @@ -62,13 +63,13 @@ *

GuiceApplication also makes {@link com.codahale.metrics.MetricRegistry} available for * injection. */ -public abstract class BaseApp - extends Application +public abstract class BaseApp + extends Application { private static final Logger logger = Logger.get(BaseApp.class); private final ImmutableList.Builder appModules = ImmutableList.builder(); - private Module newModule(String clazz, T configuration, Environment environment) + private Module newModule(String clazz, HaGatewayConfiguration configuration, Environment environment) { try { logger.info("Trying to load module [%s]", clazz); @@ -94,7 +95,7 @@ private Module newModule(String clazz, T configuration, Environment environment) return null; } - private void validateModules(List modules, T configuration, Environment environment) + private void validateModules(List modules, HaGatewayConfiguration configuration, Environment environment) { Optional routerProvider = modules.stream() .filter(module -> module instanceof RouterBaseModule) @@ -117,14 +118,14 @@ protected void bootstrapLogging() {} * @throws Exception if something goes wrong */ @Override - public void run(T configuration, Environment environment) + public void run(HaGatewayConfiguration configuration, Environment environment) throws Exception { ((DefaultServerFactory) configuration.getServerFactory()).setRequestLogFactory(new GatewayRequestLogFactory()); configureGuice(configuration, environment); } - private void configureGuice(T configuration, Environment environment) + private void configureGuice(HaGatewayConfiguration configuration, Environment environment) { appModules.add(new MetricRegistryModule(environment.metrics())); appModules.addAll(addModules(configuration, environment)); @@ -133,7 +134,7 @@ private void configureGuice(T configuration, Environment environment) registerWithInjector(configuration, environment, injector); } - private void registerWithInjector(T configuration, Environment environment, Injector injector) + private void registerWithInjector(HaGatewayConfiguration configuration, Environment environment, Injector injector) { logger.info("op=register_start configuration=%s", configuration.toString()); registerAuthFilters(environment, injector); @@ -149,7 +150,7 @@ private void registerWithInjector(T configuration, Environment environment, Inje * @param configuration the app configuration * @return a list of modules to be provisioned by Guice */ - protected List addModules(T configuration, Environment environment) + protected List addModules(HaGatewayConfiguration configuration, Environment environment) { List modules = new ArrayList<>(); if (configuration.getModules() == null) { @@ -169,7 +170,7 @@ protected List addModules(T configuration, Environment environment) * Supply a list of managed apps. */ protected List addManagedApps( - T configuration, Environment environment, Injector injector) + HaGatewayConfiguration configuration, Environment environment, Injector injector) { List managedApps = new ArrayList<>(); if (configuration.getManagedApps() == null) { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index 401c1a11c..8ff771b0c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -26,7 +26,7 @@ import static io.airlift.configuration.ConfigurationLoader.getSystemProperties; public class HaGatewayLauncher - extends BaseApp + extends BaseApp { @Override public void initialize(Bootstrap bootstrap) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 2a4fabc32..a0ec3d6b4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -13,7 +13,7 @@ */ package io.trino.gateway.ha.config; -import io.trino.gateway.baseapp.AppConfiguration; +import io.dropwizard.core.Configuration; import java.util.ArrayList; import java.util.HashMap; @@ -21,7 +21,7 @@ import java.util.Map; public class HaGatewayConfiguration - extends AppConfiguration + extends Configuration { private RequestRouterConfiguration requestRouter; private NotifierConfiguration notifier; @@ -36,6 +36,12 @@ public class HaGatewayConfiguration private ClusterStatsConfiguration clusterStatsConfiguration; private List extraWhitelistPaths = new ArrayList<>(); + // List of Modules with FQCN (Fully Qualified Class Name) + private List modules; + + // List of ManagedApps with FQCN (Fully Qualified Class Name) + private List managedApps; + public HaGatewayConfiguration() {} public RequestRouterConfiguration getRequestRouter() @@ -157,4 +163,24 @@ public void setExtraWhitelistPaths(List extraWhitelistPaths) { this.extraWhitelistPaths = extraWhitelistPaths; } + + public List getModules() + { + return this.modules; + } + + public void setModules(List modules) + { + this.modules = modules; + } + + public List getManagedApps() + { + return this.managedApps; + } + + public void setManagedApps(List managedApps) + { + this.managedApps = managedApps; + } } From 656bdbfa2648f52d5a5f9fd566b4b0843cf8b9c2 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 22:16:49 +0900 Subject: [PATCH 053/148] Update JWKS RSA to 0.22.1 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 5f58ba9ef..d2bb8e918 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -37,7 +37,7 @@ com.auth0 jwks-rsa - 0.9.0 + 0.22.1 From d30f5f430ec224d5a2aa8bcff956017f03993f20 Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Tue, 9 Apr 2024 17:07:14 +0900 Subject: [PATCH 054/148] Remove console logging in web UI --- webapp/src/components/cluster.tsx | 12 ++++-------- webapp/src/components/layout.tsx | 4 +--- webapp/src/components/resource-group.tsx | 9 +++------ webapp/src/components/selector.tsx | 9 +++------ 4 files changed, 11 insertions(+), 23 deletions(-) diff --git a/webapp/src/components/cluster.tsx b/webapp/src/components/cluster.tsx index 99ee70d07..4cceca57a 100644 --- a/webapp/src/components/cluster.tsx +++ b/webapp/src/components/cluster.tsx @@ -52,8 +52,7 @@ export function Cluster() { position="bottomRight" onConfirm={() => { backendDeleteApi({ name: record.name }) - .then(data => { - console.log(data) + .then(() => { list(); }).catch(() => { }); }} @@ -116,15 +115,13 @@ export function Cluster() { onSubmit={(values) => { if (form === undefined) { backendSaveApi(values) - .then(data => { - console.log(data); + .then(() => { list(); setVisibleForm(false); }).catch(() => { }); } else { backendUpdateApi(values) - .then(data => { - console.log(data); + .then(() => { list(); setVisibleForm(false); }).catch(() => { }); @@ -192,8 +189,7 @@ const SwitchRender = (props: { setLoading(true); props.record.active = v; backendUpdateApi(props.record) - .then(data => { - console.log(data); + .then(() => { setLoading(false); props.list(); }).catch(() => { }); diff --git a/webapp/src/components/layout.tsx b/webapp/src/components/layout.tsx index 8db24fa41..be74b912a 100644 --- a/webapp/src/components/layout.tsx +++ b/webapp/src/components/layout.tsx @@ -27,8 +27,7 @@ export const RootLayout = (props: { }, [location]); const logout = () => { - logoutApi({}).then(data => { - console.log(data); + logoutApi({}).then(() => { access.updateToken(""); Toast.success(Locale.Auth.LogoutSuccess); }).catch(() => { }); @@ -112,7 +111,6 @@ export const RootLayout = (props: { mode="vertical" className={styles.nav} isCollapsed={collapsed} - onCollapseChange={(e) => { console.log(e) }} renderWrapper={({ itemElement, props }) => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore diff --git a/webapp/src/components/resource-group.tsx b/webapp/src/components/resource-group.tsx index 3412a824c..8d1f69f76 100644 --- a/webapp/src/components/resource-group.tsx +++ b/webapp/src/components/resource-group.tsx @@ -44,8 +44,7 @@ export function ResourceGroup() { data: { resourceGroupId: record.resourceGroupId } - }).then(data => { - console.log(data); + }).then(() => { list(); }).catch(() => { }); }} @@ -117,8 +116,7 @@ export function ResourceGroup() { resourceGroupSaveApi({ useSchema: useSchema, data: values - }).then(data => { - console.log(data); + }).then(() => { list(); setVisibleForm(false); }).catch(() => { }); @@ -126,8 +124,7 @@ export function ResourceGroup() { resourceGroupUpdateApi({ useSchema: useSchema, data: values - }).then(data => { - console.log(data); + }).then(() => { list(); setVisibleForm(false); }).catch(() => { }); diff --git a/webapp/src/components/selector.tsx b/webapp/src/components/selector.tsx index 0180c50d4..b689f7b1d 100644 --- a/webapp/src/components/selector.tsx +++ b/webapp/src/components/selector.tsx @@ -42,8 +42,7 @@ export function Selector() { selectorDeleteApi({ useSchema: useSchema, data: record - }).then(data => { - console.log(data); + }).then(() => { list(); }).catch(() => { }); }} @@ -109,8 +108,7 @@ export function Selector() { selectorSaveApi({ useSchema: useSchema, data: values - }).then(data => { - console.log(data); + }).then(() => { list(); setVisibleForm(false); }).catch(() => { }); @@ -119,8 +117,7 @@ export function Selector() { useSchema: useSchema, data: values, oldData: form - }).then(data => { - console.log(data); + }).then(() => { list(); setVisibleForm(false); }).catch(() => { }); From 931208d58f1f96f76549dd9c53dacbdce175e2c3 Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Fri, 12 Apr 2024 07:35:26 -0400 Subject: [PATCH 055/148] Standardize the path for the gateway jar on the docker image (#318) --- docker/Dockerfile | 5 +---- docker/build.sh | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 576d7ed5f..66a8c67f3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -45,12 +45,9 @@ RUN \ COPY --chown=trino:trino gateway-ha /usr/lib/trino -ARG TRINO_GATEWAY_VERSION -ENV GATEWAY_JAR_PATH "/usr/lib/trino/gateway-ha-${TRINO_GATEWAY_VERSION}-jar-with-dependencies.jar" - EXPOSE 8080 USER trino:trino -CMD java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar "${GATEWAY_JAR_PATH}" "server" "/opt/trino/gateway-ha-config.yml" +CMD java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar "server" "/opt/trino/gateway-ha-config.yml" HEALTHCHECK --interval=10s --timeout=5s --start-period=10s \ CMD /usr/lib/trino/bin/health-check diff --git a/docker/build.sh b/docker/build.sh index 7f2e61c51..033d5b274 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -110,7 +110,7 @@ echo "🧱 Preparing the image build context directory" WORK_DIR="$(mktemp -d)" GATEWAY_WORK_DIR="${WORK_DIR}/gateway-ha" mkdir "${GATEWAY_WORK_DIR}" -cp "$trino_gateway_ha" "${GATEWAY_WORK_DIR}" +cp "$trino_gateway_ha" "${GATEWAY_WORK_DIR}/gateway-ha-jar-with-dependencies.jar" cp -R bin "${GATEWAY_WORK_DIR}" cp "${SCRIPT_DIR}/Dockerfile" "${WORK_DIR}" @@ -126,7 +126,6 @@ for arch in "${ARCHITECTURES[@]}"; do --pull \ --build-arg JDK_VERSION="${JDK_VERSION}" \ --build-arg JDK_DOWNLOAD_LINK="$(temurin_jdk_link "${JDK_VERSION}" "${arch}")" \ - --build-arg TRINO_GATEWAY_VERSION="${TRINO_GATEWAY_VERSION}" \ --build-arg TRINO_GATEWAY_BASE_IMAGE="${TRINO_GATEWAY_BASE_IMAGE}" \ --platform "linux/$arch" \ -f Dockerfile \ From 5ebeae69816df98ef5751cd73279c1ea83103bed Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Wed, 3 Apr 2024 09:14:40 -0700 Subject: [PATCH 056/148] Add Trino configuration docs - with process forwarding config only for now --- docs/installation.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 0fee2b91e..f879a9c1f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -89,6 +89,32 @@ various cloud platforms, such as Amazon EKS also work. However Amazon Athena does not work since it uses alternative, custom protocols and lacks the concept of individual clusters. +### Trino configuration + +From a users perspective Trino Gateway acts as a transparent proxy for one +or more Trino clusters. The following Trino configuration tips should be +taken into account for all clusters behind the Trino Gateway. + +Process forwarding must be enabled: + +```commandline +http-server.process-forwarded=true +``` + +Without this setting, first requests go from the user to Trino Gateway and then +to Trino correctly. However, the URL for subsequent next URIs for more results +in a query provided by Trino is then using the local URL of the Trino cluster, +and not the URL of the Trino Gateway. This circumvents the Trino Gateway for all +these requests, and is contrary to the purpose of using the Trino Gateway. In +scenarios, where the local URL of the Trino cluster is private to the Trino +cluster on the DNS/network level, these following calls might not work at all +for users. + +This setting is also required for Trino to authenticate in the case TLS is +terminated at the Trino Gateway. Normally it refuses to authenticate plain HTTP +requests, but if `http-server.process-forwarded=true` it authenticates over +HTTP if the request includes `X-Forwarded-Proto: HTTPS`. + ## Configuration After downloading or building the JAR, rename it to `gateway-ha.jar`, From 99498a134bfba3cd3986bd508f0524af31a4ad76 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 10 Apr 2024 14:16:51 +0900 Subject: [PATCH 057/148] Annotate JsonProperty on getter Ensure objects are serializable without AUTO_DETECT_GETTERS. Convert request objects into record to reduce boilerplate. --- .../gateway/ha/clustermonitor/ServerInfo.java | 1 + .../ha/config/ProxyBackendConfiguration.java | 4 + .../io/trino/gateway/ha/domain/Result.java | 6 +- .../io/trino/gateway/ha/domain/TableData.java | 4 +- .../domain/request/GlobalPropertyRequest.java | 34 +-- .../request/QueryDistributionRequest.java | 21 +- .../request/QueryGlobalPropertyRequest.java | 39 +-- .../domain/request/QueryHistoryRequest.java | 95 ++----- .../request/QueryResourceGroupsRequest.java | 39 +-- .../domain/request/QuerySelectorsRequest.java | 39 +-- .../domain/request/ResourceGroupsRequest.java | 34 +-- .../ha/domain/request/RestLoginRequest.java | 29 +-- .../ha/domain/request/SelectorsRequest.java | 57 +---- .../ha/domain/response/BackendResponse.java | 4 +- .../domain/response/DistributionResponse.java | 25 +- .../ha/resource/GatewayWebAppResource.java | 72 +++--- .../gateway/ha/resource/LoginResource.java | 2 +- .../ha/router/HaQueryHistoryManager.java | 16 +- .../ha/router/ResourceGroupsManager.java | 29 +++ .../ha/security/LbFormAuthManager.java | 4 +- .../gateway/ha/security/LbOAuthManager.java | 12 +- .../proxyserver/ProxyServerConfiguration.java | 4 + .../gateway/ha/TestObjectSerializable.java | 240 ++++++++++++++++++ .../ha/security/TestLbAuthenticator.java | 4 +- 24 files changed, 419 insertions(+), 395 deletions(-) create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/TestObjectSerializable.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java index 6137070c9..9ace5fa0c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ServerInfo.java @@ -31,6 +31,7 @@ public ServerInfo( this.starting = requireNonNull(starting, "starting is null"); } + @JsonProperty public boolean isStarting() { return starting; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java index 6c1020e51..a1854e83c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.config; +import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.proxyserver.ProxyServerConfiguration; public class ProxyBackendConfiguration @@ -24,6 +25,7 @@ public class ProxyBackendConfiguration public ProxyBackendConfiguration() {} + @JsonProperty public String getExternalUrl() { if (externalUrl == null) { @@ -37,6 +39,7 @@ public void setExternalUrl(String externalUrl) this.externalUrl = externalUrl; } + @JsonProperty public boolean isActive() { return this.active; @@ -47,6 +50,7 @@ public void setActive(boolean active) this.active = active; } + @JsonProperty public String getRoutingGroup() { return this.routingGroup; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java index ca21a7197..daa95db35 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/Result.java @@ -29,13 +29,10 @@ public class Result public static final int FAIL = 500; - @JsonProperty private int code; - @JsonProperty private String msg; - @JsonProperty private T data; public static Result ok() @@ -84,6 +81,7 @@ public static Boolean isSuccess(Result ret) public Result() {} + @JsonProperty public int getCode() { return code; @@ -94,6 +92,7 @@ public void setCode(int code) this.code = code; } + @JsonProperty public String getMsg() { return msg; @@ -104,6 +103,7 @@ public void setMsg(String msg) this.msg = msg; } + @JsonProperty public T getData() { return data; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java index cc32e7644..c8ae74a1a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/TableData.java @@ -28,13 +28,11 @@ public class TableData /** * Total number of table data */ - @JsonProperty private long total; /** * page data */ - @JsonProperty private List rows; public TableData(List list, long total) @@ -50,6 +48,7 @@ public static TableData build(List list, long total) public TableData() {} + @JsonProperty public long getTotal() { return total; @@ -60,6 +59,7 @@ public void setTotal(long total) this.total = total; } + @JsonProperty public List getRows() { return rows; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java index 756452549..5476913d6 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java @@ -14,40 +14,16 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.router.ResourceGroupsManager; /** * Parameters for adding, modifying, and deleting GlobalProperty. + * + * @param useSchema Optional, defaults to the Schema of the configuration file. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class GlobalPropertyRequest +public record GlobalPropertyRequest( + String useSchema, + ResourceGroupsManager.GlobalPropertiesDetail data) { - /** - * Optional, defaults to the Schema of the configuration file. - */ - @JsonProperty - private String useSchema; - @JsonProperty - private ResourceGroupsManager.GlobalPropertiesDetail data; - - public String getUseSchema() - { - return useSchema; - } - - public void setUseSchema(String useSchema) - { - this.useSchema = useSchema; - } - - public ResourceGroupsManager.GlobalPropertiesDetail getData() - { - return data; - } - - public void setData(ResourceGroupsManager.GlobalPropertiesDetail data) - { - this.data = data; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java index 7d41e8973..7dd87a43a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java @@ -14,27 +14,18 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for Distribution + * + * @param latestHour Latest statistics for multiple hours. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class QueryDistributionRequest +public record QueryDistributionRequest( + Integer latestHour) { - /** - * Latest statistics for multiple hours. - */ - @JsonProperty - private Integer latestHour = 1; - - public Integer getLatestHour() - { - return latestHour; - } - - public void setLatestHour(Integer latestHour) + public QueryDistributionRequest { - this.latestHour = latestHour; + latestHour = latestHour == null ? 1 : latestHour; } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java index 79f65eb0d..bc9964d06 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java @@ -14,43 +14,16 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for GlobalProperty + * + * @param useSchema Optional, defaults to the Schema of the configuration file. + * @param name Optional, you can query the configuration for a specific name. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class QueryGlobalPropertyRequest +public record QueryGlobalPropertyRequest( + String useSchema, + String name) { - /** - * Optional, defaults to the Schema of the configuration file. - */ - @JsonProperty - private String useSchema; - - /** - * Optional, you can query the configuration for a specific name. - */ - @JsonProperty - private String name; - - public String getUseSchema() - { - return useSchema; - } - - public void setUseSchema(String useSchema) - { - this.useSchema = useSchema; - } - - public String getName() - { - return name; - } - - public void setName(String name) - { - this.name = name; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java index 929311f3e..c3931554d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java @@ -14,92 +14,27 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for History + * + * @param page page index + * @param size page size + * @param user Query histories of specified user. ADMIN role is optional, other roles are mandatory. + * @param backendUrl Optional, you can query the history based on the backendUrl. + * @param queryId Optional, you can query the query history based on the queryId of Trino. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class QueryHistoryRequest +public record QueryHistoryRequest( + Integer page, + Integer size, + String user, + String backendUrl, + String queryId) { - /** - * page index - */ - @JsonProperty - private Integer page = 1; - - /** - * page size - */ - @JsonProperty - private Integer size = 10; - - /** - * Query histories of specified user. - * ADMIN role is optional, other roles are mandatory. - */ - @JsonProperty - private String user; - - /** - * Optional, you can query the history based on the backendUrl. - */ - @JsonProperty - private String backendUrl; - - /** - * Optional, you can query the query history based on the queryId of Trino. - */ - @JsonProperty - private String queryId; - - public Integer getPage() - { - return page; - } - - public void setPage(Integer page) - { - this.page = page; - } - - public Integer getSize() - { - return size; - } - - public void setSize(Integer size) - { - this.size = size; - } - - public String getUser() - { - return user; - } - - public void setUser(String user) - { - this.user = user; - } - - public String getBackendUrl() - { - return backendUrl; - } - - public void setBackendUrl(String backendUrl) - { - this.backendUrl = backendUrl; - } - - public String getQueryId() - { - return queryId; - } - - public void setQueryId(String queryId) + public QueryHistoryRequest { - this.queryId = queryId; + page = page == null ? 1 : page; + size = size == null ? 10 : size; } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java index 50ce3eba7..8f23ff330 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java @@ -14,43 +14,16 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for ResourceGroups + * + * @param useSchema Optional, defaults to the Schema of the configuration file. + * @param resourceGroupId Query a single item by id. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class QueryResourceGroupsRequest +public record QueryResourceGroupsRequest( + String useSchema, + Long resourceGroupId) { - /** - * Optional, defaults to the Schema of the configuration file. - */ - @JsonProperty - private String useSchema; - - /** - * Query a single item by id. - */ - @JsonProperty - private Long resourceGroupId; - - public String getUseSchema() - { - return useSchema; - } - - public void setUseSchema(String useSchema) - { - this.useSchema = useSchema; - } - - public Long getResourceGroupId() - { - return resourceGroupId; - } - - public void setResourceGroupId(Long resourceGroupId) - { - this.resourceGroupId = resourceGroupId; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java index 1ffeaf09a..c60bca224 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java @@ -14,43 +14,16 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for Selectors + * + * @param useSchema Optional, defaults to the Schema of the configuration file. + * @param resourceGroupId Query the selectors under the resource Group. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class QuerySelectorsRequest +public record QuerySelectorsRequest( + String useSchema, + Long resourceGroupId) { - /** - * Optional, defaults to the Schema of the configuration file. - */ - @JsonProperty - private String useSchema; - - /** - * Query the selectors under the resource Group. - */ - @JsonProperty - private Long resourceGroupId; - - public String getUseSchema() - { - return useSchema; - } - - public void setUseSchema(String useSchema) - { - this.useSchema = useSchema; - } - - public Long getResourceGroupId() - { - return resourceGroupId; - } - - public void setResourceGroupId(Long resourceGroupId) - { - this.resourceGroupId = resourceGroupId; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java index 862f78ad9..fe16e1c78 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java @@ -14,40 +14,16 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.router.ResourceGroupsManager; /** * Parameters for adding, modifying, and deleting ResourceGroups. + * + * @param useSchema Optional, defaults to the Schema of the configuration file. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class ResourceGroupsRequest +public record ResourceGroupsRequest( + String useSchema, + ResourceGroupsManager.ResourceGroupsDetail data) { - /** - * Optional, defaults to the Schema of the configuration file. - */ - @JsonProperty - private String useSchema; - @JsonProperty - private ResourceGroupsManager.ResourceGroupsDetail data; - - public String getUseSchema() - { - return useSchema; - } - - public void setUseSchema(String useSchema) - { - this.useSchema = useSchema; - } - - public ResourceGroupsManager.ResourceGroupsDetail getData() - { - return data; - } - - public void setData(ResourceGroupsManager.ResourceGroupsDetail data) - { - this.data = data; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java index 47fa1db3c..bed10be7e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java @@ -14,36 +14,13 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; /** * Receiving form login parameters. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class RestLoginRequest +public record RestLoginRequest( + String username, + String password) { - @JsonProperty - private String username; - @JsonProperty - private String password; - - public String getUsername() - { - return username; - } - - public void setUsername(String username) - { - this.username = username; - } - - public String getPassword() - { - return password; - } - - public void setPassword(String password) - { - this.password = password; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java index 714420c7b..525f362a9 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java @@ -14,60 +14,19 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.router.ResourceGroupsManager; /** * Parameters for adding, modifying, and deleting Selectors. + * + * @param useSchema Optional, defaults to the Schema of the configuration file. + * @param data This field is used for adding, modifying, and deleting. + * @param oldData This field is only used for modification. */ @JsonIgnoreProperties(ignoreUnknown = true) -public class SelectorsRequest +public record SelectorsRequest( + String useSchema, + ResourceGroupsManager.SelectorsDetail data, + ResourceGroupsManager.SelectorsDetail oldData) { - /** - * Optional, defaults to the Schema of the configuration file. - */ - @JsonProperty - private String useSchema; - - /** - * This field is used for adding, modifying, and deleting. - */ - @JsonProperty - private ResourceGroupsManager.SelectorsDetail data; - - /** - * This field is only used for modification - */ - @JsonProperty - private ResourceGroupsManager.SelectorsDetail oldData; - - public String getUseSchema() - { - return useSchema; - } - - public void setUseSchema(String useSchema) - { - this.useSchema = useSchema; - } - - public ResourceGroupsManager.SelectorsDetail getData() - { - return data; - } - - public void setData(ResourceGroupsManager.SelectorsDetail data) - { - this.data = data; - } - - public ResourceGroupsManager.SelectorsDetail getOldData() - { - return oldData; - } - - public void setOldData(ResourceGroupsManager.SelectorsDetail oldData) - { - this.oldData = oldData; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java index dea11f417..aaf6c2dc7 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/BackendResponse.java @@ -19,11 +19,10 @@ public class BackendResponse extends ProxyBackendConfiguration { - @JsonProperty private Integer queued; - @JsonProperty private Integer running; + @JsonProperty public Integer getQueued() { return queued; @@ -34,6 +33,7 @@ public void setQueued(Integer queued) this.queued = queued; } + @JsonProperty public Integer getRunning() { return running; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java index 253b48cf0..1d3bdaad3 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/response/DistributionResponse.java @@ -20,50 +20,42 @@ public class DistributionResponse { - @JsonProperty private Integer totalBackendCount; - @JsonProperty private Integer offlineBackendCount; - @JsonProperty private Integer onlineBackendCount; /** * Total number of queries. * The QueryDistributionRequest's latestHour parameter will affect the statistical range. */ - @JsonProperty private Long totalQueryCount; /** * Average number of queries per minute. * The QueryDistributionRequest's latestHour parameter will affect the statistical range. */ - @JsonProperty private Double averageQueryCountMinute; /** * Average number of queries per second. * The QueryDistributionRequest's latestHour parameter will affect the statistical range. */ - @JsonProperty private Double averageQueryCountSecond; /** * Pie chart of the number of backend queries. * The QueryDistributionRequest's latestHour parameter will affect the statistical range. */ - @JsonProperty private List distributionChart; /** * Line graph of the number of queries per minute for each backend. * The QueryDistributionRequest's latestHour parameter will affect the statistical range. */ - @JsonProperty private Map> lineChart; - @JsonProperty private String startTime; + @JsonProperty public String getStartTime() { return startTime; @@ -74,6 +66,7 @@ public void setStartTime(String startTime) this.startTime = startTime; } + @JsonProperty public Integer getTotalBackendCount() { return totalBackendCount; @@ -84,6 +77,7 @@ public void setTotalBackendCount(Integer totalBackendCount) this.totalBackendCount = totalBackendCount; } + @JsonProperty public Integer getOfflineBackendCount() { return offlineBackendCount; @@ -94,6 +88,7 @@ public void setOfflineBackendCount(Integer offlineBackendCount) this.offlineBackendCount = offlineBackendCount; } + @JsonProperty public Integer getOnlineBackendCount() { return onlineBackendCount; @@ -104,6 +99,7 @@ public void setOnlineBackendCount(Integer onlineBackendCount) this.onlineBackendCount = onlineBackendCount; } + @JsonProperty public Long getTotalQueryCount() { return totalQueryCount; @@ -114,6 +110,7 @@ public void setTotalQueryCount(Long totalQueryCount) this.totalQueryCount = totalQueryCount; } + @JsonProperty public Double getAverageQueryCountMinute() { return averageQueryCountMinute; @@ -124,6 +121,7 @@ public void setAverageQueryCountMinute(Double averageQueryCountMinute) this.averageQueryCountMinute = averageQueryCountMinute; } + @JsonProperty public Double getAverageQueryCountSecond() { return averageQueryCountSecond; @@ -134,6 +132,7 @@ public void setAverageQueryCountSecond(Double averageQueryCountSecond) this.averageQueryCountSecond = averageQueryCountSecond; } + @JsonProperty public List getDistributionChart() { return distributionChart; @@ -144,6 +143,7 @@ public void setDistributionChart(List distributionChart) this.distributionChart = distributionChart; } + @JsonProperty public Map> getLineChart() { return lineChart; @@ -160,6 +160,7 @@ public static class DistributionChart private Long queryCount; private String name; + @JsonProperty public String getBackendUrl() { return backendUrl; @@ -170,6 +171,7 @@ public void setBackendUrl(String backendUrl) this.backendUrl = backendUrl; } + @JsonProperty public Long getQueryCount() { return queryCount; @@ -180,6 +182,7 @@ public void setQueryCount(Long queryCount) this.queryCount = queryCount; } + @JsonProperty public String getName() { return name; @@ -198,6 +201,7 @@ public static class LineChart private Long queryCount; private String name; + @JsonProperty public String getMinute() { return minute; @@ -208,6 +212,7 @@ public void setMinute(String minute) this.minute = minute; } + @JsonProperty public String getBackendUrl() { return backendUrl; @@ -218,6 +223,7 @@ public void setBackendUrl(String backendUrl) this.backendUrl = backendUrl; } + @JsonProperty public Long getQueryCount() { return queryCount; @@ -228,6 +234,7 @@ public void setQueryCount(Long queryCount) this.queryCount = queryCount; } + @JsonProperty public String getName() { return name; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java index 6d3671b7b..7ad73954c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java @@ -108,10 +108,18 @@ public Response getAllBackends() @Path("/findQueryHistory") public Response findQueryHistory(QueryHistoryRequest query, @Context SecurityContext securityContext) { + TableData queryHistory; if (!securityContext.isUserInRole("ADMIN")) { - query.setUser(securityContext.getUserPrincipal().getName()); + queryHistory = queryHistoryManager.findQueryHistory(new QueryHistoryRequest( + query.page(), + query.size(), + securityContext.getUserPrincipal().getName(), + query.backendUrl(), + query.queryId())); + } + else { + queryHistory = queryHistoryManager.findQueryHistory(query); } - TableData queryHistory = queryHistoryManager.findQueryHistory(query); return Response.ok(Result.ok(queryHistory)).build(); } @@ -127,7 +135,7 @@ public Response getDistribution(QueryDistributionRequest query) Map urlToNameMap = allBackends .stream().collect(Collectors.toMap(ProxyBackendConfiguration::getProxyTo, ProxyBackendConfiguration::getName, (o, n) -> n)); Map> activeMap = allBackends.stream().collect(Collectors.groupingBy(ProxyBackendConfiguration::isActive)); - Integer latestHour = query.getLatestHour(); + Integer latestHour = query.latestHour(); Long ts = System.currentTimeMillis() - (latestHour * 60 * 60 * 1000); List lineChart = queryHistoryManager.findDistribution(ts); lineChart.forEach(qh -> qh.setName(urlToNameMap.get(qh.getBackendUrl()))); @@ -196,7 +204,7 @@ public Response deleteBackend(ProxyBackendConfiguration backend) public Response saveResourceGroup(ResourceGroupsRequest request) { ResourceGroupsManager.ResourceGroupsDetail newResourceGroup = - resourceGroupsManager.createResourceGroup(request.getData(), request.getUseSchema()); + resourceGroupsManager.createResourceGroup(request.data(), request.useSchema()); return Response.ok(Result.ok(newResourceGroup)).build(); } @@ -208,7 +216,7 @@ public Response saveResourceGroup(ResourceGroupsRequest request) public Response updateResourceGroup(ResourceGroupsRequest request) { ResourceGroupsManager.ResourceGroupsDetail newResourceGroup = - resourceGroupsManager.updateResourceGroup(request.getData(), request.getUseSchema()); + resourceGroupsManager.updateResourceGroup(request.data(), request.useSchema()); return Response.ok(Result.ok(newResourceGroup)).build(); } @@ -219,8 +227,8 @@ public Response updateResourceGroup(ResourceGroupsRequest request) @Path("/deleteResourceGroup") public Response deleteResourceGroup(ResourceGroupsRequest request) { - ResourceGroupsManager.ResourceGroupsDetail resourceGroupsDetail = request.getData(); - resourceGroupsManager.deleteResourceGroup(resourceGroupsDetail.getResourceGroupId(), request.getUseSchema()); + ResourceGroupsManager.ResourceGroupsDetail resourceGroupsDetail = request.data(); + resourceGroupsManager.deleteResourceGroup(resourceGroupsDetail.getResourceGroupId(), request.useSchema()); return Response.ok(Result.ok(true)).build(); } @@ -231,7 +239,7 @@ public Response deleteResourceGroup(ResourceGroupsRequest request) @Path("/findResourceGroup") public Response findResourceGroup(QueryResourceGroupsRequest request) { - List resourceGroupsDetailList = resourceGroupsManager.readAllResourceGroups(request.getUseSchema()); + List resourceGroupsDetailList = resourceGroupsManager.readAllResourceGroups(request.useSchema()); return Response.ok(Result.ok(resourceGroupsDetailList)).build(); } @@ -242,12 +250,12 @@ public Response findResourceGroup(QueryResourceGroupsRequest request) @Path("/getResourceGroup") public Response readResourceGroup(QueryResourceGroupsRequest request) { - if (Objects.isNull(request.getResourceGroupId())) { + if (Objects.isNull(request.resourceGroupId())) { return Response.ok(Result.fail("ResourceGroupId cannot be null!")).build(); } List resourceGroup = resourceGroupsManager.readResourceGroup( - request.getResourceGroupId(), - request.getUseSchema()); + request.resourceGroupId(), + request.useSchema()); return Response.ok(Result.ok(resourceGroup.stream().findFirst())).build(); } @@ -259,8 +267,8 @@ public Response readResourceGroup(QueryResourceGroupsRequest request) public Response saveSelector(SelectorsRequest selectorsRequest) { ResourceGroupsManager.SelectorsDetail updatedSelector = this.resourceGroupsManager.createSelector( - selectorsRequest.getData(), - selectorsRequest.getUseSchema()); + selectorsRequest.data(), + selectorsRequest.useSchema()); return Response.ok(Result.ok(updatedSelector)).build(); } @@ -272,9 +280,9 @@ public Response saveSelector(SelectorsRequest selectorsRequest) public Response updateSelector(SelectorsRequest selectorsRequest) { ResourceGroupsManager.SelectorsDetail updatedSelector = resourceGroupsManager.updateSelector( - selectorsRequest.getOldData(), - selectorsRequest.getData(), - selectorsRequest.getUseSchema()); + selectorsRequest.oldData(), + selectorsRequest.data(), + selectorsRequest.useSchema()); return Response.ok(Result.ok(updatedSelector)).build(); } @@ -285,7 +293,7 @@ public Response updateSelector(SelectorsRequest selectorsRequest) @Path("/deleteSelector") public Response deleteSelector(SelectorsRequest request) { - resourceGroupsManager.deleteSelector(request.getData(), request.getUseSchema()); + resourceGroupsManager.deleteSelector(request.data(), request.useSchema()); return Response.ok(Result.ok(true)).build(); } @@ -297,7 +305,7 @@ public Response deleteSelector(SelectorsRequest request) public Response findSelector(QuerySelectorsRequest request) { List selectorsDetailList = resourceGroupsManager.readAllSelectors( - request.getUseSchema()); + request.useSchema()); return Response.ok(Result.ok(selectorsDetailList)).build(); } @@ -308,12 +316,12 @@ public Response findSelector(QuerySelectorsRequest request) @Path("/getSelector") public Response getSelector(QuerySelectorsRequest request) { - if (Objects.isNull(request.getResourceGroupId())) { + if (Objects.isNull(request.resourceGroupId())) { return Response.ok(Result.fail("ResourceGroupId cannot be null!")).build(); } List selectors = resourceGroupsManager.readSelector( - request.getResourceGroupId(), - request.getUseSchema()); + request.resourceGroupId(), + request.useSchema()); return Response.ok(Result.ok(selectors.stream().findFirst())).build(); } @@ -325,8 +333,8 @@ public Response getSelector(QuerySelectorsRequest request) public Response saveGlobalProperty(GlobalPropertyRequest request) { ResourceGroupsManager.GlobalPropertiesDetail globalProperty = resourceGroupsManager.createGlobalProperty( - request.getData(), - request.getUseSchema()); + request.data(), + request.useSchema()); return Response.ok(Result.ok(globalProperty)).build(); } @@ -338,8 +346,8 @@ public Response saveGlobalProperty(GlobalPropertyRequest request) public Response updateGlobalProperty(GlobalPropertyRequest request) { ResourceGroupsManager.GlobalPropertiesDetail globalProperty = resourceGroupsManager.updateGlobalProperty( - request.getData(), - request.getUseSchema()); + request.data(), + request.useSchema()); return Response.ok(Result.ok(globalProperty)).build(); } @@ -350,10 +358,10 @@ public Response updateGlobalProperty(GlobalPropertyRequest request) @Path("/deleteGlobalProperty") public Response deleteGlobalProperty(GlobalPropertyRequest request) { - ResourceGroupsManager.GlobalPropertiesDetail globalPropertiesDetail = request.getData(); + ResourceGroupsManager.GlobalPropertiesDetail globalPropertiesDetail = request.data(); resourceGroupsManager.deleteGlobalProperty( globalPropertiesDetail.getName(), - request.getUseSchema()); + request.useSchema()); return Response.ok(Result.ok(true)).build(); } @@ -365,11 +373,11 @@ public Response deleteGlobalProperty(GlobalPropertyRequest request) public Response readAllGlobalProperties(QueryGlobalPropertyRequest request) { List globalPropertiesDetailList; - if (Strings.isNullOrEmpty(request.getName())) { - globalPropertiesDetailList = resourceGroupsManager.readAllGlobalProperties(request.getUseSchema()); + if (Strings.isNullOrEmpty(request.name())) { + globalPropertiesDetailList = resourceGroupsManager.readAllGlobalProperties(request.useSchema()); } else { - globalPropertiesDetailList = resourceGroupsManager.readGlobalProperty(request.getName(), request.getUseSchema()); + globalPropertiesDetailList = resourceGroupsManager.readGlobalProperty(request.name(), request.useSchema()); } return Response.ok(Result.ok(globalPropertiesDetailList)).build(); } @@ -381,10 +389,10 @@ public Response readAllGlobalProperties(QueryGlobalPropertyRequest request) @Path("/getGlobalProperty") public Response readGlobalProperty(QueryGlobalPropertyRequest request) { - if (Strings.isNullOrEmpty(request.getName())) { + if (Strings.isNullOrEmpty(request.name())) { return Response.ok(Result.fail("Name cannot be null!")).build(); } - List globalProperty = resourceGroupsManager.readGlobalProperty(request.getName(), request.getUseSchema()); + List globalProperty = resourceGroupsManager.readGlobalProperty(request.name(), request.useSchema()); return Response.ok(Result.ok(globalProperty.stream().findFirst())).build(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java index 1e2df268a..1f1840c4d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java @@ -83,7 +83,7 @@ public Response processRESTLogin(RestLoginRequest loginForm) { if (formAuthManager == null) { if (oauthManager == null) { - return Response.ok(Result.ok(Map.of("token", loginForm.getUsername()))).build(); + return Response.ok(Result.ok(Map.of("token", loginForm.username()))).build(); } throw new WebApplicationException("Form authentication is not setup"); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java index 9e1ee118b..fcfcdaa66 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaQueryHistoryManager.java @@ -98,18 +98,18 @@ public String getBackendForQueryId(String queryId) @Override public TableData findQueryHistory(QueryHistoryRequest query) { - int start = PageUtil.getStart(query.getPage(), query.getSize()); + int start = PageUtil.getStart(query.page(), query.size()); String condition = ""; - if (!Strings.isNullOrEmpty(query.getUser())) { - condition += " and user_name = '" + query.getUser() + "'"; + if (!Strings.isNullOrEmpty(query.user())) { + condition += " and user_name = '" + query.user() + "'"; } - if (!Strings.isNullOrEmpty(query.getBackendUrl())) { - condition += " and backend_url = '" + query.getBackendUrl() + "'"; + if (!Strings.isNullOrEmpty(query.backendUrl())) { + condition += " and backend_url = '" + query.backendUrl() + "'"; } - if (!Strings.isNullOrEmpty(query.getQueryId())) { - condition += " and query_id = '" + query.getQueryId() + "'"; + if (!Strings.isNullOrEmpty(query.queryId())) { + condition += " and query_id = '" + query.queryId() + "'"; } - List histories = dao.pageQueryHistory(condition, query.getSize(), start); + List histories = dao.pageQueryHistory(condition, query.size(), start); List rows = upcast(histories); Long total = dao.count(condition); return TableData.build(rows, total); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java index 5ef4c2f37..59f2b3116 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.router; +import com.fasterxml.jackson.annotation.JsonProperty; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; @@ -106,6 +107,7 @@ public int compareTo(ResourceGroupsDetail o) } } + @JsonProperty public long getResourceGroupId() { return this.resourceGroupId; @@ -117,6 +119,7 @@ public void setResourceGroupId(long resourceGroupId) } @Nonnull + @JsonProperty public String getName() { return this.name; @@ -127,6 +130,7 @@ public void setName(@Nonnull String name) this.name = name; } + @JsonProperty public Long getParent() { return this.parent; @@ -137,6 +141,7 @@ public void setParent(Long parent) this.parent = parent; } + @JsonProperty public Boolean getJmxExport() { return this.jmxExport; @@ -147,6 +152,7 @@ public void setJmxExport(Boolean jmxExport) this.jmxExport = jmxExport; } + @JsonProperty public String getSchedulingPolicy() { return this.schedulingPolicy; @@ -157,16 +163,19 @@ public void setSchedulingPolicy(String schedulingPolicy) this.schedulingPolicy = schedulingPolicy; } + @JsonProperty public Integer getSchedulingWeight() { return this.schedulingWeight; } + @JsonProperty public void setSchedulingWeight(Integer schedulingWeight) { this.schedulingWeight = schedulingWeight; } + @JsonProperty @Nonnull public String getSoftMemoryLimit() { @@ -178,6 +187,7 @@ public void setSoftMemoryLimit(@Nonnull String softMemoryLimit) this.softMemoryLimit = softMemoryLimit; } + @JsonProperty public int getMaxQueued() { return this.maxQueued; @@ -188,6 +198,7 @@ public void setMaxQueued(int maxQueued) this.maxQueued = maxQueued; } + @JsonProperty public int getHardConcurrencyLimit() { return this.hardConcurrencyLimit; @@ -198,6 +209,7 @@ public void setHardConcurrencyLimit(int hardConcurrencyLimit) this.hardConcurrencyLimit = hardConcurrencyLimit; } + @JsonProperty public Integer getSoftConcurrencyLimit() { return this.softConcurrencyLimit; @@ -208,6 +220,7 @@ public void setSoftConcurrencyLimit(Integer softConcurrencyLimit) this.softConcurrencyLimit = softConcurrencyLimit; } + @JsonProperty public String getSoftCpuLimit() { return this.softCpuLimit; @@ -218,6 +231,7 @@ public void setSoftCpuLimit(String softCpuLimit) this.softCpuLimit = softCpuLimit; } + @JsonProperty public String getHardCpuLimit() { return this.hardCpuLimit; @@ -228,6 +242,7 @@ public void setHardCpuLimit(String hardCpuLimit) this.hardCpuLimit = hardCpuLimit; } + @JsonProperty public String getEnvironment() { return this.environment; @@ -322,6 +337,7 @@ public int compareTo(SelectorsDetail o) } } + @JsonProperty public long getResourceGroupId() { return this.resourceGroupId; @@ -332,6 +348,7 @@ public void setResourceGroupId(long resourceGroupId) this.resourceGroupId = resourceGroupId; } + @JsonProperty public long getPriority() { return this.priority; @@ -342,6 +359,7 @@ public void setPriority(long priority) this.priority = priority; } + @JsonProperty public String getUserRegex() { return this.userRegex; @@ -352,6 +370,7 @@ public void setUserRegex(String userRegex) this.userRegex = userRegex; } + @JsonProperty public String getSourceRegex() { return this.sourceRegex; @@ -362,6 +381,7 @@ public void setSourceRegex(String sourceRegex) this.sourceRegex = sourceRegex; } + @JsonProperty public String getQueryType() { return this.queryType; @@ -372,6 +392,7 @@ public void setQueryType(String queryType) this.queryType = queryType; } + @JsonProperty public String getClientTags() { return this.clientTags; @@ -382,6 +403,7 @@ public void setClientTags(String clientTags) this.clientTags = clientTags; } + @JsonProperty public String getSelectorResourceEstimate() { return this.selectorResourceEstimate; @@ -453,6 +475,7 @@ public int compareTo(GlobalPropertiesDetail o) } @Nonnull + @JsonProperty public String getName() { return this.name; @@ -463,6 +486,7 @@ public void setName(@Nonnull String name) this.name = name; } + @JsonProperty public String getValue() { return this.value; @@ -530,6 +554,7 @@ public int compareTo(ExactSelectorsDetail o) return 0; } + @JsonProperty @Nonnull public String getResourceGroupId() { @@ -541,6 +566,7 @@ public void setResourceGroupId(@Nonnull String resourceGroupId) this.resourceGroupId = resourceGroupId; } + @JsonProperty @Nonnull public String getUpdateTime() { @@ -552,6 +578,7 @@ public void setUpdateTime(@Nonnull String updateTime) this.updateTime = updateTime; } + @JsonProperty @Nonnull public String getSource() { @@ -563,6 +590,7 @@ public void setSource(@Nonnull String source) this.source = source; } + @JsonProperty public String getEnvironment() { return this.environment; @@ -573,6 +601,7 @@ public void setEnvironment(String environment) this.environment = environment; } + @JsonProperty public String getQueryType() { return this.queryType; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java index 8846cd675..7169dcbb4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java @@ -79,8 +79,8 @@ public String getUserIdField() */ public Result processRESTLogin(RestLoginRequest loginForm) { - if (authenticate(new BasicCredentials(loginForm.getUsername(), loginForm.getPassword()))) { - String token = getSelfSignedToken(loginForm.getUsername()); + if (authenticate(new BasicCredentials(loginForm.username(), loginForm.password()))) { + String token = getSelfSignedToken(loginForm.username()); return Result.ok(Map.of("token", token)); } return Result.fail("Authentication failed."); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index 7467f81dc..1e60d667e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -165,17 +165,11 @@ public List processPagePermissions(List roles) @JsonIgnoreProperties(ignoreUnknown = true) static final class OidcTokens { - @JsonProperty private final String accessToken; - @JsonProperty private final String idToken; - @JsonProperty private final String scope; - @JsonProperty private final String refreshToken; - @JsonProperty private final String tokenType; - @JsonProperty private final String expiresIn; @JsonCreator @@ -194,31 +188,37 @@ public OidcTokens(@JsonProperty("id_token") String idToken, this.refreshToken = refreshToken; } + @JsonProperty public String getAccessToken() { return this.accessToken; } + @JsonProperty public String getIdToken() { return this.idToken; } + @JsonProperty public String getScope() { return this.scope; } + @JsonProperty public String getRefreshToken() { return this.refreshToken; } + @JsonProperty public String getTokenType() { return this.tokenType; } + @JsonProperty public String getExpiresIn() { return this.expiresIn; diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java index 08f0eba1c..8ab5547b4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java @@ -13,6 +13,8 @@ */ package io.trino.gateway.proxyserver; +import com.fasterxml.jackson.annotation.JsonProperty; + public class ProxyServerConfiguration { private String name; @@ -100,11 +102,13 @@ protected int getResponseBufferSize() return responseBufferSize; } + @JsonProperty public String getName() { return this.name; } + @JsonProperty public String getProxyTo() { return this.proxyTo; diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestObjectSerializable.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestObjectSerializable.java new file mode 100644 index 000000000..7ef736d2f --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestObjectSerializable.java @@ -0,0 +1,240 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import io.airlift.json.ObjectMapperProvider; +import io.trino.gateway.ha.clustermonitor.ServerInfo; +import io.trino.gateway.ha.config.ProxyBackendConfiguration; +import io.trino.gateway.ha.domain.Result; +import io.trino.gateway.ha.domain.TableData; +import io.trino.gateway.ha.domain.request.GlobalPropertyRequest; +import io.trino.gateway.ha.domain.request.QueryDistributionRequest; +import io.trino.gateway.ha.domain.request.QueryGlobalPropertyRequest; +import io.trino.gateway.ha.domain.request.QueryHistoryRequest; +import io.trino.gateway.ha.domain.request.QueryResourceGroupsRequest; +import io.trino.gateway.ha.domain.request.QuerySelectorsRequest; +import io.trino.gateway.ha.domain.request.ResourceGroupsRequest; +import io.trino.gateway.ha.domain.request.RestLoginRequest; +import io.trino.gateway.ha.domain.request.SelectorsRequest; +import io.trino.gateway.ha.domain.response.BackendResponse; +import io.trino.gateway.ha.domain.response.DistributionResponse; +import io.trino.gateway.ha.router.ResourceGroupsManager; +import org.junit.jupiter.api.Test; + +import java.util.List; + +import static org.assertj.core.api.Assertions.assertThat; + +public class TestObjectSerializable +{ + private final ObjectMapper objectMapper = new ObjectMapperProvider().get(); + + @Test + public void testServerInfo() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new ServerInfo(true))) + .contains("starting"); + } + + @Test + public void testProxyBackendConfiguration() + throws JsonProcessingException + { + ProxyBackendConfiguration proxyBackendConfiguration = new ProxyBackendConfiguration(); + proxyBackendConfiguration.setExternalUrl("http://localhost:8080"); + proxyBackendConfiguration.setActive(false); + proxyBackendConfiguration.setRoutingGroup("batch-1"); + assertThat(objectMapper.writeValueAsString(proxyBackendConfiguration)) + .contains(ImmutableList.of("externalUrl", "active", "routingGroup")); + } + + @Test + public void testResult() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(Result.ok())) + .contains(ImmutableList.of("code", "msg")); + assertThat(objectMapper.writeValueAsString(Result.ok("some_msg"))) + .contains(ImmutableList.of("code", "msg")); + assertThat(objectMapper.writeValueAsString(Result.ok(123))) + .contains(ImmutableList.of("code", "msg", "data")); + } + + @Test + public void testTableData() + throws JsonProcessingException + { + TableData tableData = new TableData<>(ImmutableList.of("t1", "t2"), 2); + assertThat(objectMapper.writeValueAsString(tableData)) + .contains(ImmutableList.of("total", "rows")); + } + + @Test + public void testGlobalPropertyRequest() + throws JsonProcessingException + { + ResourceGroupsManager.GlobalPropertiesDetail data = new ResourceGroupsManager.GlobalPropertiesDetail("cpu_quota_period"); + assertThat(objectMapper.writeValueAsString(new GlobalPropertyRequest(null, data))) + .contains("data"); + assertThat(objectMapper.writeValueAsString(new GlobalPropertyRequest("some_schema", data))) + .contains(ImmutableList.of("useSchema", "data")); + } + + @Test + public void testQueryDistributionRequest() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new QueryDistributionRequest(null))) + .contains("\"latestHour\":1"); + assertThat(objectMapper.writeValueAsString(new QueryDistributionRequest(3))) + .contains("\"latestHour\":3"); + } + + @Test + public void testQueryGlobalPropertyRequest() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new QueryGlobalPropertyRequest(null, null))) + .isEqualTo("{}"); + assertThat(objectMapper.writeValueAsString(new QueryGlobalPropertyRequest("some_schema", null))) + .contains("\"useSchema\":\"some_schema\""); + assertThat(objectMapper.writeValueAsString(new QueryGlobalPropertyRequest("some_schema", "some_name"))) + .contains(ImmutableList.of("\"useSchema\":\"some_schema\"", "\"name\":\"some_name\"")); + } + + @Test + public void testQueryHistoryRequest() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new QueryHistoryRequest(null, null, "user1", "url1", "query_id"))) + .contains(ImmutableList.of("\"page\":1", "\"size\":10", "user", "backendUrl", "queryId")); + assertThat(objectMapper.writeValueAsString(new QueryHistoryRequest(5, 6, "user1", "url1", "query_id"))) + .contains(ImmutableList.of("\"page\":5", "\"size\":6", "user", "backendUrl", "queryId")); + } + + @Test + public void testQueryResourceGroupsRequest() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new QueryResourceGroupsRequest(null, 123L))) + .contains("resourceGroupId"); + assertThat(objectMapper.writeValueAsString(new QueryResourceGroupsRequest("some_schema", 123L))) + .contains(ImmutableList.of("useSchema", "resourceGroupId")); + } + + @Test + public void testQuerySelectorsRequest() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new QuerySelectorsRequest(null, 123L))) + .contains("resourceGroupId"); + assertThat(objectMapper.writeValueAsString(new QuerySelectorsRequest("some_schema", 123L))) + .contains(ImmutableList.of("useSchema", "resourceGroupId")); + } + + @Test + public void testResourceGroupsRequest() + throws JsonProcessingException + { + ResourceGroupsManager.ResourceGroupsDetail data = new ResourceGroupsManager.ResourceGroupsDetail(); + assertThat(objectMapper.writeValueAsString(new ResourceGroupsRequest(null, data))) + .contains(ImmutableList.of("data", "resourceGroupId")); + assertThat(objectMapper.writeValueAsString(new ResourceGroupsRequest("some_schema", data))) + .contains(ImmutableList.of("useSchema", "data", "resourceGroupId")); + } + + @Test + public void testRestLoginRequest() + throws JsonProcessingException + { + assertThat(objectMapper.writeValueAsString(new RestLoginRequest("user", "pass"))) + .contains(ImmutableList.of("username", "password")); + } + + @Test + public void testSelectorsRequest() + throws JsonProcessingException + { + ResourceGroupsManager.SelectorsDetail data = new ResourceGroupsManager.SelectorsDetail(); + ResourceGroupsManager.SelectorsDetail oldData = new ResourceGroupsManager.SelectorsDetail(); + assertThat(objectMapper.writeValueAsString(new SelectorsRequest(null, data, oldData))) + .contains(ImmutableList.of("data", "oldData")); + assertThat(objectMapper.writeValueAsString(new SelectorsRequest("some_schema", data, oldData))) + .contains(ImmutableList.of("useSchema", "data", "oldData")); + } + + @Test + public void testBackendResponse() + throws JsonProcessingException + { + BackendResponse backendResponse = new BackendResponse(); + backendResponse.setQueued(4); + backendResponse.setRunning(5); + backendResponse.setName("foo"); + backendResponse.setProxyTo("example.com"); + backendResponse.setActive(false); + backendResponse.setRoutingGroup("batch-1"); + backendResponse.setExternalUrl("example.com"); + assertThat(objectMapper.writeValueAsString(backendResponse)) + .contains(ImmutableList.of("queued", "running", "active", "routingGroup", "externalUrl", "name", "proxyTo")); + } + + @Test + public void testDistributionResponse() + throws JsonProcessingException + { + DistributionResponse.LineChart lineChart = new DistributionResponse.LineChart(); + lineChart.setMinute("11:22"); + lineChart.setBackendUrl("example.com"); + lineChart.setName("name1"); + lineChart.setQueryCount(6L); + DistributionResponse.DistributionChart distributionChart = new DistributionResponse.DistributionChart(); + distributionChart.setName("name2"); + distributionChart.setBackendUrl("example.com"); + distributionChart.setQueryCount(1L); + DistributionResponse distributionResponse = new DistributionResponse(); + distributionResponse.setTotalBackendCount(5); + distributionResponse.setOfflineBackendCount(3); + distributionResponse.setOnlineBackendCount(2); + distributionResponse.setLineChart(ImmutableMap.of("k1", ImmutableList.of(lineChart))); + distributionResponse.setDistributionChart(List.of(distributionChart)); + distributionResponse.setTotalQueryCount(123L); + distributionResponse.setAverageQueryCountSecond(5.0); + distributionResponse.setAverageQueryCountMinute(10.0); + distributionResponse.setStartTime("2024-04-01 12:34:56"); + assertThat(objectMapper.writeValueAsString(distributionResponse)) + .contains(ImmutableList.of( + "totalBackendCount", // DistributionResponse + "offlineBackendCount", + "onlineBackendCount", + "totalQueryCount", + "averageQueryCountMinute", + "averageQueryCountSecond", + "distributionChart", + "lineChart", + "startTime", + "minute", // LineChart + "backendUrl", + "queryCount", + "\"name\":\"name1\"", + "\"name\":\"name2\"", // DistributionChart + "backendUrl", + "queryCount")); + } +} diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java index f4a0553d2..119022519 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java @@ -159,9 +159,7 @@ public void testLoginForm() "user2", new UserConfiguration("priv2, priv2", "pass2")); LbFormAuthManager lbFormAuthManager = new LbFormAuthManager(formAuthConfig, presetUsers, new HashMap<>()); - RestLoginRequest restLoginRequest = new RestLoginRequest(); - restLoginRequest.setUsername("user1"); - restLoginRequest.setPassword("pass1"); + RestLoginRequest restLoginRequest = new RestLoginRequest("user1", "pass1"); Result r = lbFormAuthManager.processRESTLogin(restLoginRequest); assertThat(Result.isSuccess(r)).isTrue(); Map data = (Map) r.getData(); From dd75670537a470b2e5877009851e66dd4692e7f2 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 15 Apr 2024 22:02:40 +0900 Subject: [PATCH 058/148] Rename LbLdapClientTest to TestLbLdapClient --- .../{LbLdapClientTest.java => TestLbLdapClient.java} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename gateway-ha/src/test/java/io/trino/gateway/ha/security/{LbLdapClientTest.java => TestLbLdapClient.java} (97%) diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbLdapClient.java similarity index 97% rename from gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java rename to gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbLdapClient.java index 47c93a3ec..bece5da79 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/LbLdapClientTest.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbLdapClient.java @@ -33,9 +33,9 @@ import static org.mockito.Mockito.eq; @ExtendWith(MockitoExtension.class) -public class LbLdapClientTest +public class TestLbLdapClient { - private static final Logger log = Logger.get(LbLdapClientTest.class); + private static final Logger log = Logger.get(TestLbLdapClient.class); @Mock LdapConnectionTemplate ldapConnectionTemplate; @Spy @@ -84,7 +84,7 @@ public void testAuthenticate() filter, SearchScope.SUBTREE, password.toCharArray())) - .thenReturn(new LbLdapClientTest.DummyPasswordWarning()); + .thenReturn(new TestLbLdapClient.DummyPasswordWarning()); //Warning case assertThat(lbLdapClient.authenticate(user, password)).isTrue(); From 4f2f416ae7a4085971242ed6310194f20f8e6d49 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 15 Apr 2024 23:28:39 +0900 Subject: [PATCH 059/148] Add test for authorization --- .../ha/security/TestAuthorization.java | 114 ++++++++++++++++++ .../test/resources/auth/auth-test-config.yml | 50 ++++++++ 2 files changed, 164 insertions(+) create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java create mode 100644 gateway-ha/src/test/resources/auth/auth-test-config.yml diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java new file mode 100644 index 000000000..e683349c9 --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java @@ -0,0 +1,114 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectReader; +import com.google.common.collect.ImmutableList; +import io.trino.gateway.ha.HaGatewayLauncher; +import io.trino.gateway.ha.HaGatewayTestUtils; +import okhttp3.MediaType; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInstance; +import org.junit.jupiter.api.TestInstance.Lifecycle; + +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Base64; +import java.util.List; +import java.util.Optional; + +import static org.assertj.core.api.Assertions.assertThat; + +@TestInstance(Lifecycle.PER_CLASS) +public class TestAuthorization +{ + private static final OkHttpClient httpClient = new OkHttpClient(); + private static final ObjectMapper objectMapper = new ObjectMapper(); + + int routerPort = 22000 + (int) (Math.random() * 1000); + + @BeforeAll + public void setup() + throws Exception + { + HaGatewayTestUtils.TestConfig testConfig = HaGatewayTestUtils.buildGatewayConfigAndSeedDb(routerPort, "auth/auth-test-config.yml"); + String[] args = {"server", testConfig.configFilePath()}; + HaGatewayLauncher.main(args); + } + + @Test + public void testUnauthorized() + throws IOException + { + try (Response response = makeRequest(Optional.empty())) { + assertThat(response.code()).isBetween(400, 499); + } + } + + @Test + public void testBadCredentials() + throws IOException + { + try (Response response = makeRequest(Optional.of("unknown:unknown"))) { + assertThat(response.code()).isBetween(400, 499); + } + } + + @Test + public void testGoodCredentials() + throws IOException + { + List adminRoleList = getRoles("admin1:admin1_password"); + assertThat(adminRoleList).containsAll(ImmutableList.of("ADMIN", "USER")); + + List userRoleList = getRoles("user1:password_user1"); + assertThat(userRoleList).containsAll(ImmutableList.of("USER", "API")); + } + + private List getRoles(String credentials) + throws IOException + { + try (Response response = makeRequest(Optional.of(credentials))) { + assertThat(response.code()).isEqualTo(200); + + JsonNode roles = objectMapper.readTree(response.body().string()).get("data").get("roles"); + assertThat(roles.isArray()).isTrue(); + + ObjectReader reader = objectMapper.readerFor(new TypeReference>() {}); + return reader.readValue(roles.toString()); + } + } + + private Response makeRequest(Optional credentials) + throws IOException + { + RequestBody emptyRequestBody = RequestBody.create(MediaType.parse("application/json; charset=utf-8"), ""); + Request.Builder builder = new Request.Builder() + .url("http://localhost:" + routerPort + "/userinfo") + .post(emptyRequestBody); + if (credentials.isPresent()) { + String encodedCredentials = "Basic " + Base64.getEncoder().encodeToString(credentials.orElseThrow().getBytes(StandardCharsets.ISO_8859_1)); + credentials.ifPresent(s -> builder.addHeader("Authorization", encodedCredentials)); + } + return httpClient.newCall(builder.build()).execute(); + } +} diff --git a/gateway-ha/src/test/resources/auth/auth-test-config.yml b/gateway-ha/src/test/resources/auth/auth-test-config.yml new file mode 100644 index 000000000..e3efbe23e --- /dev/null +++ b/gateway-ha/src/test/resources/auth/auth-test-config.yml @@ -0,0 +1,50 @@ +requestRouter: + port: REQUEST_ROUTER_PORT + name: testTrinoRouter + historySize: 1000 + +server: + applicationConnectors: + - type: http + port: APPLICATION_CONNECTOR_PORT + adminConnectors: + - type: http + port: ADMIN_CONNECTOR_PORT + +dataStore: + jdbcUrl: jdbc:h2:DB_FILE_PATH + user: sa + password: sa + driver: org.h2.Driver + +modules: + - io.trino.gateway.ha.module.HaGatewayProviderModule + +managedApps: + - io.trino.gateway.ha.GatewayManagedApp + +extraWhitelistPaths: + - "/v1/custom" + +logging: + type: external + +authorization: + admin: .*FOO.* + user: .*BAR.* + api: .*BAZ.* + +presetUsers: + admin1: + password: admin1_password + privileges: FOO_BAR + user1: + password: password_user1 + privileges: BAR_BAZ + +authentication: + defaultType: "form" + form: + selfSignKeyPair: + privateKeyRsa: src/test/resources/auth/test_private_key.pem + publicKeyRsa: src/test/resources/auth/test_public_key.pem From 4e69989c0434435f40ba99335e067d2b8407b928 Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Fri, 15 Sep 2023 15:20:07 -0400 Subject: [PATCH 060/148] Add cookie based routing for selected paths --- gateway-ha/pom.xml | 6 + .../ha/config/GatewayCookieConfiguration.java | 45 +++ ...CookieConfigurationPropertiesProvider.java | 57 ++++ .../ha/config/HaGatewayConfiguration.java | 22 ++ .../OAuth2GatewayCookieConfiguration.java | 58 ++++ ...CookieConfigurationPropertiesProvider.java | 63 ++++ .../handler/QueryIdCachingProxyHandler.java | 147 +++++---- .../ha/module/HaGatewayProviderModule.java | 8 + .../gateway/ha/router/GatewayCookie.java | 289 ++++++++++++++++++ .../ha/router/OAuth2GatewayCookie.java | 36 +++ .../gateway/proxyserver/ProxyHandler.java | 8 + .../gateway/proxyserver/ProxyServletImpl.java | 10 + .../trino/gateway/ha/HaGatewayTestUtils.java | 20 ++ .../ha/TestGatewayHaMultipleBackend.java | 120 +++++++- .../test/resources/test-config-template.yml | 8 + 15 files changed, 833 insertions(+), 64 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfiguration.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfigurationPropertiesProvider.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfiguration.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfigurationPropertiesProvider.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/router/OAuth2GatewayCookie.java diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index d2bb8e918..3c3ae5837 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -126,6 +126,12 @@ stats + + io.airlift + units + 1.10 + + io.dropwizard dropwizard-assets diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfiguration.java new file mode 100644 index 000000000..e19133596 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfiguration.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.config; + +import javax.crypto.SecretKey; +import javax.crypto.spec.SecretKeySpec; + +import static java.nio.charset.StandardCharsets.UTF_8; + +public class GatewayCookieConfiguration +{ + private SecretKey cookieSigningKey; + private boolean enabled; + + public boolean isEnabled() + { + return enabled; + } + + public void setEnabled(boolean enabled) + { + this.enabled = enabled; + } + + public SecretKey getCookieSigningKey() + { + return cookieSigningKey; + } + + public void setCookieSigningSecret(String cookieSigningSecret) + { + cookieSigningKey = new SecretKeySpec(cookieSigningSecret.getBytes(UTF_8), "HmacSHA256"); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfigurationPropertiesProvider.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfigurationPropertiesProvider.java new file mode 100644 index 000000000..e5f0dedee --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/GatewayCookieConfigurationPropertiesProvider.java @@ -0,0 +1,57 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.config; + +import javax.crypto.SecretKey; + +public class GatewayCookieConfigurationPropertiesProvider +{ + private static final GatewayCookieConfigurationPropertiesProvider instance = new GatewayCookieConfigurationPropertiesProvider(); + private GatewayCookieConfiguration gatewayCookieConfiguration; + + private GatewayCookieConfigurationPropertiesProvider() + {} + + public void initialize(GatewayCookieConfiguration gatewayCookieConfiguration) + { + if (gatewayCookieConfiguration.isEnabled() && gatewayCookieConfiguration.getCookieSigningKey() == null) { + throw new IllegalArgumentException("gatewayCookieConfiguration.cookieSigningSecret must be provided when cookies are enabled"); + } + this.gatewayCookieConfiguration = gatewayCookieConfiguration; + } + + public static GatewayCookieConfigurationPropertiesProvider getInstance() + { + return instance; + } + + public boolean isEnabled() + { + ensureInitialized(); + return gatewayCookieConfiguration.isEnabled(); + } + + public SecretKey getCookieSigningKey() + { + ensureInitialized(); + return gatewayCookieConfiguration.getCookieSigningKey(); + } + + private void ensureInitialized() + { + if (gatewayCookieConfiguration == null) { + throw new IllegalStateException("getInstance.initialize(GatewayCookieConfiguration) must be called before use"); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index a0ec3d6b4..83bba6172 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -35,6 +35,8 @@ public class HaGatewayConfiguration private BackendStateConfiguration backendState; private ClusterStatsConfiguration clusterStatsConfiguration; private List extraWhitelistPaths = new ArrayList<>(); + private OAuth2GatewayCookieConfiguration oauth2GatewayCookieConfiguration = new OAuth2GatewayCookieConfiguration(); + private GatewayCookieConfiguration gatewayCookieConfiguration = new GatewayCookieConfiguration(); // List of Modules with FQCN (Fully Qualified Class Name) private List modules; @@ -164,6 +166,26 @@ public void setExtraWhitelistPaths(List extraWhitelistPaths) this.extraWhitelistPaths = extraWhitelistPaths; } + public OAuth2GatewayCookieConfiguration getOauth2GatewayCookieConfiguration() + { + return oauth2GatewayCookieConfiguration; + } + + public void setOauth2GatewayCookieConfiguration(OAuth2GatewayCookieConfiguration oauth2GatewayCookieConfiguration) + { + this.oauth2GatewayCookieConfiguration = oauth2GatewayCookieConfiguration; + } + + public GatewayCookieConfiguration getGatewayCookieConfiguration() + { + return gatewayCookieConfiguration; + } + + public void setGatewayCookieConfiguration(GatewayCookieConfiguration gatewayCookieConfiguration) + { + this.gatewayCookieConfiguration = gatewayCookieConfiguration; + } + public List getModules() { return this.modules; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfiguration.java new file mode 100644 index 000000000..d5224a16e --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfiguration.java @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.config; + +import com.google.common.collect.ImmutableList; +import io.airlift.units.Duration; + +import java.util.List; + +public class OAuth2GatewayCookieConfiguration +{ + // Configuration initialization using dropwizard requires + // instance method setters. Values are global, and can be accessed using static getters + private List routingPaths = ImmutableList.of("/oauth2"); + private List deletePaths = ImmutableList.of("/logout", "/oauth2/logout"); + private Duration lifetime = Duration.valueOf("10m"); + + public List getDeletePaths() + { + return deletePaths; + } + + public void setDeletePaths(List deletePaths) + { + this.deletePaths = deletePaths; + } + + public List getRoutingPaths() + { + return routingPaths; + } + + public void setRoutingPaths(List routingPaths) + { + this.routingPaths = routingPaths; + } + + public Duration getLifetime() + { + return lifetime; + } + + public void setLifetime(String lifetime) + { + this.lifetime = Duration.valueOf(lifetime); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfigurationPropertiesProvider.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfigurationPropertiesProvider.java new file mode 100644 index 000000000..dfbd14560 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuth2GatewayCookieConfigurationPropertiesProvider.java @@ -0,0 +1,63 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.config; + +import io.airlift.units.Duration; + +import java.util.List; + +public class OAuth2GatewayCookieConfigurationPropertiesProvider +{ + private static final OAuth2GatewayCookieConfigurationPropertiesProvider instance = new OAuth2GatewayCookieConfigurationPropertiesProvider(); + + private OAuth2GatewayCookieConfiguration oAuth2GatewayCookieConfiguration; + + private OAuth2GatewayCookieConfigurationPropertiesProvider() + {} + + public static OAuth2GatewayCookieConfigurationPropertiesProvider getInstance() + { + return instance; + } + + public void initialize(OAuth2GatewayCookieConfiguration oAuth2GatewayCookieConfiguration) + { + this.oAuth2GatewayCookieConfiguration = oAuth2GatewayCookieConfiguration; + } + + public List getDeletePaths() + { + ensureInitialized(); + return oAuth2GatewayCookieConfiguration.getDeletePaths(); + } + + public List getRoutingPaths() + { + ensureInitialized(); + return oAuth2GatewayCookieConfiguration.getRoutingPaths(); + } + + public Duration getLifetime() + { + ensureInitialized(); + return oAuth2GatewayCookieConfiguration.getLifetime(); + } + + private void ensureInitialized() + { + if (oAuth2GatewayCookieConfiguration == null) { + throw new IllegalStateException("getInstance.initialize(OAuth2GatewayCookieConfiguration) must be called before use"); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index 792496c30..4a401a35e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -15,13 +15,18 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Splitter; +import com.google.common.collect.ImmutableList; import com.google.common.io.CharStreams; import io.airlift.log.Logger; +import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; +import io.trino.gateway.ha.router.GatewayCookie; +import io.trino.gateway.ha.router.OAuth2GatewayCookie; import io.trino.gateway.ha.router.QueryHistoryManager; import io.trino.gateway.ha.router.RoutingGroupSelector; import io.trino.gateway.ha.router.RoutingManager; import io.trino.gateway.proxyserver.ProxyHandler; import io.trino.gateway.proxyserver.wrapper.MultiReadHttpServletRequest; +import jakarta.servlet.http.Cookie; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import jakarta.ws.rs.HttpMethod; @@ -32,9 +37,11 @@ import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; +import java.util.Arrays; import java.util.Base64; import java.util.HashMap; import java.util.List; +import java.util.Optional; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -84,6 +91,7 @@ public class QueryIdCachingProxyHandler private final ProxyHandlerStats proxyHandlerStats; private final List extraWhitelistPaths; private final String applicationEndpoint; + private final boolean cookiesEnabled; public QueryIdCachingProxyHandler( QueryHistoryManager queryHistoryManager, @@ -99,6 +107,7 @@ public QueryIdCachingProxyHandler( this.queryHistoryManager = queryHistoryManager; this.extraWhitelistPaths = extraWhitelistPaths; this.applicationEndpoint = "http://localhost:" + serverApplicationPort; + cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); } protected static String extractQueryIdIfPresent(String path, String queryParams) @@ -269,9 +278,23 @@ private boolean isPathWhiteListed(String path) || extraWhitelistPaths.stream().anyMatch(s -> path.startsWith(s)); } - public boolean handleAuthRequest(HttpServletRequest request) + @Override + public List generateDeleteCookieList(HttpServletRequest clientRequest) { - return true; + if (!cookiesEnabled || clientRequest.getCookies() == null) { + return ImmutableList.of(); + } + + return Arrays.stream(clientRequest.getCookies()) + .filter(c -> c.getName().startsWith(GatewayCookie.PREFIX)) + .map(GatewayCookie::fromCookie) + .filter(c -> !c.isValid() || c.matchesDeletePath(clientRequest.getRequestURI())) + .map(GatewayCookie::toCookie) + .peek(c -> { + c.setValue("delete"); + c.setMaxAge(0); + }) + .toList(); } @Override @@ -281,10 +304,10 @@ public String rewriteTarget(HttpServletRequest request) return buildUriWithNewBackend(applicationEndpoint, request); } - if (isUseStickyRouting(request)) { - String backend = getPreviousBackend(request); - logRewrite(backend, request); - return buildUriWithNewBackend(backend, request); + Optional previousBackend = getPreviousBackend(request); + if (previousBackend.isPresent()) { + logRewrite(previousBackend.orElseThrow(), request); + return previousBackend.map(b -> buildUriWithNewBackend(b, request)).orElseThrow(); } String backend = getBackendFromRoutingGroup(request); @@ -322,21 +345,27 @@ private String getBackendFromRoutingGroup(HttpServletRequest request) return routingManager.provideAdhocBackend(user); } - private String getPreviousBackend(HttpServletRequest request) + private Optional getPreviousBackend(HttpServletRequest request) { String queryId = extractQueryIdIfPresent(request); - - // Find query id and get url from cache if (!isNullOrEmpty(queryId)) { - return routingManager.findBackendForQueryId(queryId); + return Optional.of(routingManager.findBackendForQueryId(queryId)); + } + if (cookiesEnabled && request.getCookies() != null) { + List cookies = Arrays.stream(request.getCookies()) + .filter(c -> c.getName().startsWith(GatewayCookie.PREFIX)) + .map(GatewayCookie::fromCookie) + .filter(GatewayCookie::isValid) + .filter(c -> !isNullOrEmpty(c.getBackend())) + .filter(c -> c.matchesRoutingPath(request.getRequestURI())) + .sorted() + .toList(); + if (!cookies.isEmpty()) { + return Optional.of(cookies.getFirst().getBackend()); + } } - log.error("No backend found for queryId %s", queryId); - return getBackendFromRoutingGroup(request); - } - private boolean isUseStickyRouting(HttpServletRequest request) - { - return !isNullOrEmpty(extractQueryIdIfPresent(request)); + return Optional.empty(); } @Override @@ -349,50 +378,14 @@ protected void postConnectionHook( Callback callback) { try { - String requestPath = request.getRequestURI(); - if (requestPath.startsWith(V1_STATEMENT_PATH) - && request.getMethod().equals(HttpMethod.POST)) { - String output; - boolean isGZipEncoding = isGZipEncoding(response); - if (isGZipEncoding) { - output = plainTextFromGz(buffer); - } - else { - output = new String(buffer); - } - log.debug("For Request [%s] got Response output [%s]", request.getRequestURI(), output); - - QueryHistoryManager.QueryDetail queryDetail = getQueryDetailsFromRequest(request); - log.debug("Extracting Proxy destination : [%s] for request : [%s]", - queryDetail.getBackendUrl(), request.getRequestURI()); - - if (response.getStatus() == HttpStatus.OK_200) { - HashMap results = OBJECT_MAPPER.readValue(output, HashMap.class); - queryDetail.setQueryId(results.get("id")); - - if (!isNullOrEmpty(queryDetail.getQueryId())) { - routingManager.setBackendForQueryId( - queryDetail.getQueryId(), queryDetail.getBackendUrl()); - log.debug( - "QueryId [%s] mapped with proxy [%s]", - queryDetail.getQueryId(), - queryDetail.getBackendUrl()); - } - else { - log.debug("QueryId [%s] could not be cached", queryDetail.getQueryId()); - } - } - else { - log.error( - "Non OK HTTP Status code with response [%s] , Status code [%s]", - output, - response.getStatus()); - } - // Saving history at gateway. - queryHistoryManager.submitQueryDetail(queryDetail); + if (request.getRequestURI().startsWith(V1_STATEMENT_PATH) && request.getMethod().equals(HttpMethod.POST)) { + recordBackendForQueryId(request, response, buffer); } - else { - log.debug("SKIPPING For %s", requestPath); + else if (cookiesEnabled && request.getRequestURI().startsWith(OAuth2GatewayCookie.OAUTH2_PATH) + && !(request.getCookies() != null + && Arrays.stream(request.getCookies()).anyMatch(c -> c.getName().equals(OAuth2GatewayCookie.NAME)))) { + GatewayCookie oauth2Cookie = new OAuth2GatewayCookie(request.getHeader(PROXY_TARGET_HEADER)); + response.addCookie(oauth2Cookie.toCookie()); } } catch (Exception e) { @@ -401,6 +394,42 @@ protected void postConnectionHook( super.postConnectionHook(request, response, buffer, offset, length, callback); } + void recordBackendForQueryId(HttpServletRequest request, HttpServletResponse response, byte[] buffer) + throws IOException + { + String output; + boolean isGZipEncoding = isGZipEncoding(response); + if (isGZipEncoding) { + output = plainTextFromGz(buffer); + } + else { + output = new String(buffer); + } + log.debug("For Request [%s] got Response output [%s]", request.getRequestURI(), output); + + QueryHistoryManager.QueryDetail queryDetail = getQueryDetailsFromRequest(request); + + if (queryDetail.getBackendUrl() == null) { + log.error("Server response to request %s does not contain proxytarget header", request.getRequestURI()); + } + log.debug("Extracting Proxy destination : [%s] for request : [%s]", queryDetail.getBackendUrl(), request.getRequestURI()); + + if (response.getStatus() == HttpStatus.OK_200) { + HashMap results = OBJECT_MAPPER.readValue(output, HashMap.class); + queryDetail.setQueryId(results.get("id")); + + if (!isNullOrEmpty(queryDetail.getQueryId())) { + routingManager.setBackendForQueryId(queryDetail.getQueryId(), queryDetail.getBackendUrl()); + log.debug("QueryId [%s] mapped with proxy [%s]", queryDetail.getQueryId(), queryDetail.getBackendUrl()); + } + } + else { + log.error("Non OK HTTP Status code with response [%s] , Status code [%s]", output, response.getStatus()); + } + // Save history in Trino Gateway. + queryHistoryManager.submitQueryDetail(queryDetail); + } + private QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(HttpServletRequest request) throws IOException { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index df8a5239d..8ee294d5a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -27,7 +27,9 @@ import io.dropwizard.jetty.HttpConnectorFactory; import io.trino.gateway.ha.config.AuthenticationConfiguration; import io.trino.gateway.ha.config.AuthorizationConfiguration; +import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; import io.trino.gateway.ha.config.HaGatewayConfiguration; +import io.trino.gateway.ha.config.OAuth2GatewayCookieConfigurationPropertiesProvider; import io.trino.gateway.ha.config.RequestRouterConfiguration; import io.trino.gateway.ha.config.RoutingRulesConfiguration; import io.trino.gateway.ha.config.UserConfiguration; @@ -86,6 +88,12 @@ public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment authenticationFilter = getAuthFilter(configuration); backendStateConnectionManager = new BackendStateManager(); extraWhitelistPaths = configuration.getExtraWhitelistPaths(); + + GatewayCookieConfigurationPropertiesProvider gatewayCookieConfigurationPropertiesProvider = GatewayCookieConfigurationPropertiesProvider.getInstance(); + gatewayCookieConfigurationPropertiesProvider.initialize(configuration.getGatewayCookieConfiguration()); + + OAuth2GatewayCookieConfigurationPropertiesProvider oAuth2GatewayCookieConfigurationPropertiesProvider = OAuth2GatewayCookieConfigurationPropertiesProvider.getInstance(); + oAuth2GatewayCookieConfigurationPropertiesProvider.initialize(configuration.getOauth2GatewayCookieConfiguration()); } private LbOAuthManager getOAuthManager(HaGatewayConfiguration configuration) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java new file mode 100644 index 000000000..3e86f2224 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java @@ -0,0 +1,289 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.router; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.google.common.hash.Hashing; +import io.airlift.json.JsonCodec; +import io.airlift.log.Logger; +import io.airlift.units.Duration; +import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; +import jakarta.servlet.http.Cookie; + +import java.util.Base64; +import java.util.List; + +import static com.google.common.base.Strings.isNullOrEmpty; +import static java.nio.charset.StandardCharsets.UTF_8; +import static java.util.Objects.requireNonNull; + +@JsonPropertyOrder(alphabetic = true) +public class GatewayCookie + implements Comparable +{ + private static final Logger log = Logger.get(GatewayCookie.class); + private String signature; + private final UnsignedGatewayCookie unsignedGatewayCookie; + private final GatewayCookieConfigurationPropertiesProvider gatewayCookieConfigurationPropertiesProvider = GatewayCookieConfigurationPropertiesProvider.getInstance(); + + public static final String PREFIX = "TG."; + + public static final JsonCodec CODEC = JsonCodec.jsonCodec(GatewayCookie.class); + + @JsonCreator + public GatewayCookie( + @JsonProperty("ts") Long ts, + @JsonProperty("name") String name, + @JsonProperty("payload") String payload, + @JsonProperty("routingPaths") List routingPaths, + @JsonProperty("deletePaths") List deletePaths, + @JsonProperty("backend") String backend, + @JsonProperty("priority") Integer priority, + @JsonProperty("ttl") Duration ttl, + @JsonProperty("signature") String signature) + { + this.unsignedGatewayCookie = new UnsignedGatewayCookie( + requireNonNull(ts), + requireNonNull(name), + payload, + backend, + requireNonNull(routingPaths), + requireNonNull(deletePaths), + requireNonNull(ttl), + priority); + this.signature = signature; + } + + public GatewayCookie(String name, String payload, String backend, List routingPaths, List deletePaths, Duration ttl, int priority) + { + this.unsignedGatewayCookie = new UnsignedGatewayCookie( + System.currentTimeMillis(), + requireNonNull(name.startsWith(PREFIX) ? name : PREFIX + name), + payload, + backend, + requireNonNull(routingPaths), + requireNonNull(deletePaths), + requireNonNull(ttl), + priority); + signature = computeSignature(); + } + + @JsonProperty + public Long getTs() + { + return unsignedGatewayCookie.getTs(); + } + + @JsonProperty + public String getName() + { + return unsignedGatewayCookie.getName(); + } + + @JsonProperty + public String getPayload() + { + return unsignedGatewayCookie.getPayload(); + } + + @JsonProperty + public String getBackend() + { + return unsignedGatewayCookie.getBackend(); + } + + @JsonProperty + public int getPriority() + { + return unsignedGatewayCookie.getPriority(); + } + + @JsonProperty + public List getRoutingPaths() + { + return unsignedGatewayCookie.getRoutingPaths(); + } + + @JsonProperty + public List getDeletePaths() + { + return unsignedGatewayCookie.getDeletePaths(); + } + + @JsonProperty + public Duration getTtl() + { + return unsignedGatewayCookie.getTtl(); + } + + @JsonProperty + public String getSignature() + { + return signature; + } + + public void setTs(Long ts) + { + unsignedGatewayCookie.setTs(ts); + } + + private String computeSignature() + { + return Hashing.hmacSha256(gatewayCookieConfigurationPropertiesProvider.getCookieSigningKey()) + .hashString(UnsignedGatewayCookie.CODEC.toJson(unsignedGatewayCookie), UTF_8) + .toString(); + } + + @Override + public int compareTo(GatewayCookie o) + { + int priorityDelta = unsignedGatewayCookie.getPriority() - o.getPriority(); + return priorityDelta != 0 ? priorityDelta : (int) (unsignedGatewayCookie.getTs() - o.getTs()); + } + + public Cookie toCookie() + { + Cookie cookie = new Cookie(unsignedGatewayCookie.getName(), Base64.getUrlEncoder().encodeToString(CODEC.toJson(this).getBytes(UTF_8))); + cookie.setMaxAge((int) unsignedGatewayCookie.getTtl().toMillis() / 1000); + return cookie; + } + + public static GatewayCookie fromCookie(Cookie cookie) + { + return GatewayCookie.CODEC.fromJson(Base64.getUrlDecoder().decode(cookie.getValue())); + } + + public boolean matchesRoutingPath(String path) + { + if (matchesDeletePath(path)) { + return false; + } + + return unsignedGatewayCookie.getRoutingPaths().stream().anyMatch(path::startsWith); + } + + public boolean matchesDeletePath(String path) + { + return unsignedGatewayCookie.getDeletePaths().contains(path); + } + + public boolean isValid() + { + if (System.currentTimeMillis() > unsignedGatewayCookie.getTs() + unsignedGatewayCookie.getTtl().toMillis()) { + return false; + } + + if (isNullOrEmpty(signature) || !signature.equals(computeSignature())) { + log.error("Invalid cookie: %s", CODEC.toJson(this)); + throw new IllegalArgumentException("Invalid cookie signature"); + } + + return true; + } + + @JsonPropertyOrder(alphabetic = true) + public static class UnsignedGatewayCookie + { + public static final JsonCodec CODEC = JsonCodec.jsonCodec(UnsignedGatewayCookie.class); + private Long ts; // timestamp. The shortened name saves 8 bytes of cookie size + private final String name; + private final String payload; + private final List routingPaths; + + private final List deletePaths; + + private final int priority; + private final Duration ttl; + private final String backend; + + public UnsignedGatewayCookie(GatewayCookie gatewayCookie) + { + this.ts = gatewayCookie.getTs(); + this.name = gatewayCookie.getName(); + this.payload = gatewayCookie.getPayload(); + this.routingPaths = gatewayCookie.getRoutingPaths(); + this.deletePaths = gatewayCookie.getDeletePaths(); + this.priority = gatewayCookie.getPriority(); + this.ttl = gatewayCookie.getTtl(); + this.backend = gatewayCookie.getBackend(); + } + + public UnsignedGatewayCookie(Long ts, String name, String payload, String backend, List routingPaths, List deletePaths, Duration ttl, int priority) + { + this.name = name.startsWith(PREFIX) ? name : PREFIX + name; + this.payload = payload; + this.backend = backend; + this.routingPaths = routingPaths; + this.deletePaths = deletePaths; + this.ttl = ttl; + this.ts = ts; + this.priority = priority; + } + + @JsonProperty + public Long getTs() + { + return ts; + } + + public void setTs(Long ts) + { + this.ts = ts; + } + + @JsonProperty + public String getName() + { + return name; + } + + @JsonProperty + public String getPayload() + { + return payload; + } + + @JsonProperty + public String getBackend() + { + return backend; + } + + @JsonProperty + public int getPriority() + { + return priority; + } + + @JsonProperty + public List getRoutingPaths() + { + return routingPaths; + } + + @JsonProperty + public List getDeletePaths() + { + return deletePaths; + } + + @JsonProperty + public Duration getTtl() + { + return ttl; + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/OAuth2GatewayCookie.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/OAuth2GatewayCookie.java new file mode 100644 index 000000000..47be10ef7 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/OAuth2GatewayCookie.java @@ -0,0 +1,36 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.router; + +import com.google.common.collect.ImmutableList; +import io.trino.gateway.ha.config.OAuth2GatewayCookieConfigurationPropertiesProvider; + +public class OAuth2GatewayCookie + extends GatewayCookie +{ + public static final String NAME = GatewayCookie.PREFIX + "OAUTH2"; + public static final String OAUTH2_PATH = "/oauth2"; + + public OAuth2GatewayCookie(String backend) + { + super( + NAME, + null, + backend, + ImmutableList.of(OAUTH2_PATH), + OAuth2GatewayCookieConfigurationPropertiesProvider.getInstance().getDeletePaths(), + OAuth2GatewayCookieConfigurationPropertiesProvider.getInstance().getLifetime(), + 0); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java index 088536940..bd1a94bdd 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java @@ -13,7 +13,9 @@ */ package io.trino.gateway.proxyserver; +import com.google.common.collect.ImmutableList; import io.airlift.log.Logger; +import jakarta.servlet.http.Cookie; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import org.eclipse.jetty.client.api.Request; @@ -27,6 +29,7 @@ import java.nio.charset.Charset; import java.util.Arrays; import java.util.Enumeration; +import java.util.List; import java.util.zip.GZIPInputStream; /* Order of control => rewriteTarget, preConnectionHook, postConnectionHook. */ @@ -114,4 +117,9 @@ protected boolean isCompressed(final byte[] compressed) return (compressed[0] == (byte) GZIPInputStream.GZIP_MAGIC) && (compressed[1] == (byte) (GZIPInputStream.GZIP_MAGIC >> 8)); } + + public List generateDeleteCookieList(HttpServletRequest clientRequest) + { + return ImmutableList.of(); + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java index 5267d7c89..da013d613 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java @@ -98,6 +98,16 @@ protected String rewriteTarget(HttpServletRequest request) return target; } + @Override + protected void onServerResponseHeaders( + HttpServletRequest clientRequest, + HttpServletResponse proxyResponse, + Response serverResponse) + { + this.proxyHandler.generateDeleteCookieList(clientRequest).forEach(proxyResponse::addCookie); + super.onServerResponseHeaders(clientRequest, proxyResponse, serverResponse); + } + /** * Customize the response returned from remote server. */ diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java index 8cc8a6a75..69f42be65 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java @@ -19,8 +19,10 @@ import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; +import okhttp3.mockwebserver.Dispatcher; import okhttp3.mockwebserver.MockResponse; import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; import org.jdbi.v3.core.Handle; import org.jdbi.v3.core.Jdbi; @@ -28,6 +30,7 @@ import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; +import java.util.Map; import java.util.Random; import java.util.Scanner; @@ -66,6 +69,23 @@ public static void prepareMockBackend( .setResponseCode(200)); } + public static void setPathSpecificResponses( + MockWebServer backend, Map pathResponseMap) + { + Dispatcher dispatcher = new Dispatcher() + { + @Override + public MockResponse dispatch(RecordedRequest request) + { + if (pathResponseMap.containsKey(request.getPath())) { + return new MockResponse().setResponseCode(200).setBody(pathResponseMap.get(request.getPath())); + } + return new MockResponse().setResponseCode(404); + } + }; + backend.setDispatcher(dispatcher); + } + public static TestConfig buildGatewayConfigAndSeedDb(int routerPort, String configFile) throws IOException { diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java index a213acec5..b123415e7 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java @@ -14,14 +14,17 @@ package io.trino.gateway.ha; import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.common.collect.ImmutableMap; import io.trino.gateway.ha.config.ProxyBackendConfiguration; +import io.trino.gateway.ha.router.GatewayCookie; +import io.trino.gateway.ha.router.OAuth2GatewayCookie; +import okhttp3.Cookie; import okhttp3.MediaType; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; import okhttp3.mockwebserver.MockWebServer; -import okhttp3.mockwebserver.RecordedRequest; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; @@ -29,6 +32,12 @@ import org.junit.jupiter.api.TestInstance.Lifecycle; import org.testcontainers.containers.TrinoContainer; +import java.io.IOException; +import java.util.Base64; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.TimeUnit; + import static org.assertj.core.api.Assertions.assertThat; @TestInstance(Lifecycle.PER_CLASS) @@ -40,6 +49,11 @@ public class TestGatewayHaMultipleBackend private TrinoContainer adhocTrino; private TrinoContainer scheduledTrino; + public static String oauthInitiatePath = OAuth2GatewayCookie.OAUTH2_PATH; + public static String oauthCallbackPath = oauthInitiatePath + "/callback"; + public static String oauthInitialResponse = "abc"; + public static String oauthCallbackResponse = "xyz"; + final int routerPort = 20000 + (int) (Math.random() * 1000); final int customBackendPort = 21000 + (int) (Math.random() * 1000); @@ -59,7 +73,11 @@ public void setup() int backend1Port = adhocTrino.getMappedPort(8080); int backend2Port = scheduledTrino.getMappedPort(8080); - HaGatewayTestUtils.prepareMockBackend(customBackend, customBackendPort, CUSTOM_RESPONSE); + HaGatewayTestUtils.prepareMockBackend(customBackend, customBackendPort, "default custom response"); + HaGatewayTestUtils.setPathSpecificResponses(customBackend, ImmutableMap.of( + oauthInitiatePath, oauthInitialResponse, + oauthCallbackPath, oauthCallbackResponse, + CUSTOM_PATH, CUSTOM_RESPONSE)); // seed database HaGatewayTestUtils.TestConfig testConfig = @@ -93,9 +111,6 @@ public void testCustomPath() .build(); Response response1 = httpClient.newCall(request1).execute(); assertThat(response1.body().string()).isEqualTo(CUSTOM_RESPONSE); - RecordedRequest recordedRequest = customBackend.takeRequest(); - assertThat(recordedRequest.getMethod()).isEqualTo("POST"); - assertThat(recordedRequest.getPath()).isEqualTo(CUSTOM_PATH); Request request2 = new Request.Builder() @@ -162,6 +177,101 @@ public void testBackendConfiguration() assertThat(backendConfiguration[2].getExternalUrl()).isEqualTo("externalUrl"); } + @Test + public void testCookieBasedRouting() + throws IOException + { + // This simulates the Trino oauth handshake + OkHttpClient httpClient = new OkHttpClient.Builder() + .connectTimeout(10, TimeUnit.SECONDS) + .writeTimeout(10, TimeUnit.SECONDS) + .readTimeout(60, TimeUnit.SECONDS) + .build(); + String oauthInitiateBody = "anything"; + RequestBody requestBody = + RequestBody.create( + MediaType.parse("application/json; charset=utf-8"), oauthInitiateBody); + + Request initiateRequest = + new Request.Builder() + .url("http://localhost:" + routerPort + oauthInitiatePath) + .post(requestBody) + .addHeader("X-Trino-Routing-Group", "custom") + .build(); + Response initiateResponse = httpClient.newCall(initiateRequest).execute(); + assertThat(initiateResponse.header("set-cookie")).isNotEmpty(); + + Request callbackRequest = + new Request.Builder() + .url("http://localhost:" + routerPort + oauthCallbackPath) + .post(requestBody) + .addHeader("Cookie", initiateResponse.header("set-cookie")) + .build(); + Response callbackResponse = httpClient.newCall(callbackRequest).execute(); + assertThat(callbackResponse.body().string()).isEqualTo(oauthCallbackResponse); + + Request logoutRequest = + new Request.Builder() + .url("http://localhost:" + routerPort + "/custom/logout") + .post(requestBody) + .addHeader("Cookie", initiateResponse.header("set-cookie")) + .build(); + Response logoutResponse = httpClient.newCall(logoutRequest).execute(); + + List cookies = Cookie.parseAll(logoutResponse.request().url(), logoutResponse.headers()); + Optional cookie = cookies.stream().filter(c -> c.name().equals(OAuth2GatewayCookie.NAME)).findAny(); + assertThat(cookie).isNotEmpty(); + assertThat(cookie.orElseThrow().value()).isEqualTo("delete"); + // expires-at has been deprecated in favor of max-age. However, okhttp3 does not expose a max-age property, + // but instead sets expires-at to Long.MIN_VALUE when max-age is set to 0 + // https://github.com/square/okhttp/blob/577d621585f7525d3e98a9161bc26d2965686538/okhttp/src/main/kotlin/okhttp3/Cookie.kt#L673 + assertThat(cookie.orElseThrow().expiresAt()).isEqualTo(Long.MIN_VALUE); + } + + @Test + public void testCookieSigning() + throws IOException + { + OkHttpClient httpClient = new OkHttpClient.Builder() + .connectTimeout(10, TimeUnit.SECONDS) + .writeTimeout(10, TimeUnit.SECONDS) + .readTimeout(60, TimeUnit.SECONDS) + .build(); + String oauthInitiateBody = "anything"; + RequestBody requestBody = + RequestBody.create( + MediaType.parse("application/json; charset=utf-8"), oauthInitiateBody); + + Request initiateRequest = + new Request.Builder() + .url("http://localhost:" + routerPort + oauthInitiatePath) + .post(requestBody) + .addHeader("X-Trino-Routing-Group", "custom") + .build(); + Response initiateResponse = httpClient.newCall(initiateRequest).execute(); + String cookieHeader = initiateResponse.header("set-cookie"); + assertThat(cookieHeader).isNotEmpty(); + List cookies = Cookie.parseAll(initiateResponse.request().url(), initiateResponse.headers()); + Optional cookie = cookies.stream().filter(c -> c.name().equals(OAuth2GatewayCookie.NAME)).findAny(); + assertThat(cookie).isNotEmpty(); + + GatewayCookie gatewayCookie = GatewayCookie.CODEC.fromJson(Base64.getUrlDecoder().decode(cookie.orElseThrow().value())); + assertThat(gatewayCookie.getSignature()).isNotEmpty(); + + // Tamper with values. This will cause the cookie to be ignored because its values will not match the signature, + // causing the request will be routed to the adhoc backend + gatewayCookie.setTs(gatewayCookie.getTs() + 1000); + jakarta.servlet.http.Cookie tamperedCookie = gatewayCookie.toCookie(); + Request callbackRequest = + new Request.Builder() + .url("http://localhost:" + routerPort + oauthCallbackPath) + .post(requestBody) + .addHeader("Cookie", String.format("%s=%s", tamperedCookie.getName(), tamperedCookie.getValue())) + .build(); + Response callbackResponse = httpClient.newCall(callbackRequest).execute(); + assertThat(callbackResponse.code()).isEqualTo(500); + } + @AfterAll public void cleanup() { diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index 8983890ed..4781e179a 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -26,5 +26,13 @@ managedApps: extraWhitelistPaths: - "/v1/custom" +gatewayCookieConfiguration: + enabled: true + cookieSigningSecret: "kjlhbfrewbyuo452cds3dc1234ancdsjh" + +oauth2GatewayCookieConfiguration: + deletePaths: + - "/custom/logout" + logging: type: external From 9fccf479f6723b3014deb3485ba3366e97860c64 Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Tue, 5 Mar 2024 18:12:59 -0500 Subject: [PATCH 061/148] Document routing logic and cookie routing configuration --- docs/assets/gateway-routing-flow.svg | 1665 ++++++++++++++++++++++++++ docs/design.md | 3 +- docs/development.md | 1 + docs/gateway-api.md | 1 + docs/installation.md | 1 + docs/operation.md | 1 + docs/quickstart.md | 1 + docs/references.md | 1 + docs/release-notes.md | 1 + docs/resource-groups-api.md | 1 + docs/routing-logic.md | 111 ++ docs/routing-rules.md | 1 + docs/security.md | 1 + 13 files changed, 1788 insertions(+), 1 deletion(-) create mode 100644 docs/assets/gateway-routing-flow.svg create mode 100644 docs/routing-logic.md diff --git a/docs/assets/gateway-routing-flow.svg b/docs/assets/gateway-routing-flow.svg new file mode 100644 index 000000000..07db084f8 --- /dev/null +++ b/docs/assets/gateway-routing-flow.svg @@ -0,0 +1,1665 @@ + + + + + + + + + + + + + Request + Client + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Send request to random member of routing group + + Send request to least loaded member of Routing Group + Is Adaptive Load Balancing enabled? + Select "adhoc" routing group + Select Routing Group from highest priority matched rule + Does request match a Routing Rule? + Is request related to a previous request? + Send to same backend as previous + + + + + diff --git a/docs/design.md b/docs/design.md index 91befeaa8..5cf2e492d 100644 --- a/docs/design.md +++ b/docs/design.md @@ -18,7 +18,8 @@

  • Resource groups API
  • Routing rules
  • - +
  • Routing logic
  • + diff --git a/docs/gateway-api.md b/docs/gateway-api.md index 81388107b..558a8da1e 100644 --- a/docs/gateway-api.md +++ b/docs/gateway-api.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/installation.md b/docs/installation.md index f879a9c1f..35b2f6a71 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/operation.md b/docs/operation.md index e0c167f9e..c107899b0 100644 --- a/docs/operation.md +++ b/docs/operation.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/quickstart.md b/docs/quickstart.md index 73a97240c..d5730e443 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/references.md b/docs/references.md index 884914642..d8df9238d 100644 --- a/docs/references.md +++ b/docs/references.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/release-notes.md b/docs/release-notes.md index b9c04da0d..78cc3a6a5 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/resource-groups-api.md b/docs/resource-groups-api.md index 330e93616..9e4680f8b 100644 --- a/docs/resource-groups-api.md +++ b/docs/resource-groups-api.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/routing-logic.md b/docs/routing-logic.md new file mode 100644 index 000000000..a3c3ed18b --- /dev/null +++ b/docs/routing-logic.md @@ -0,0 +1,111 @@ +**Trino Gateway documentation** + + + + + + + + +
    + + + + + + + +
    + +# Routing Logic + +## Overview + +Trino Gateway checks incoming requests to see if they're related to previous +ones it handled. If they are, then Trino Gateway sends them to the same backend +that dealt with the earlier requests. + +If it is a new request, the Trino Gateway refers to [Routing rules](routing-rules.md) +to decide which group of backends, called a 'Routing Group,' should handle it. +It then picks a backend from that Routing Group to handle the request using +either an adaptive or round-robin strategy. + +![Request Routing Flow](assets/gateway-routing-flow.svg) + +## Sticky routing + +A request related to an ongoing process, or to state maintained on a single +backend cluster, must be routed to that backend for proper handling. Two +mechanisms for identifying related requests are currently implemented. By default, +only routing based on query identifier is enabled. + +### Routing based on query identifier (default) + +When a query is initiated through the Trino Gateway, the query id will be +extracted from the response and mapped to the backend that provided the +response. Any subsequent request containing that query id will be forwarded +to that backend. For example, to retrieve query results, the trino client +polls a URI of the form +`v1/statement/executing/queryid/nonce/counter`. The Trino Gateway will extract +the queryid from this URI. + +### Routing based on cookies + +OAuth2 authentication requires that the same backend is used for each step of +the handshake. When `gatewayCookieConfiguration.enabled` is set to true, a cookie +will be added to requests made to paths beginning with `/oauth2` unless they already have +a cookie present, which is used to route further `/oauth2/*` requests to the correct backend. +Cookies are not added to requests to `v1/*` and other Trino endpoints. + +Trino Gateway signs its cookies to ensure that they are not tampered with. You +must set a `cookieSigningSecret` string in your configuration +```yaml +gatewayCookieConfiguration: + enabled: true + cookieSigningSecret: "ahighentropystring" +``` +when making use of this feature. If you load balance request across multiple Trino Gateway +instances, ensure each instance has the same `cookieSigningSecret`. + +The Trino Gateway handles standard Trino OAuth2 handshakes with no additional +configuration. If you are using a customized or commercial Trino distribution, then +the paths used to define the OAuth handshake may be modified. + +`routingPaths`: If the request URI starts with a path in this list, then +* If no cookie is present, add a routing cookie +* If a cookie is present, route the request to the backend defined by that cookie + +`deletePaths`: If the request URI starts with a path in this list, +return a response that instructs the client to delete the cookie. + +Additionally, the `lifetime` property sets the duration for which a cookie remains in +effect after creation. Ensure that it is greater than +the time required to complete the handshake. Default `lifetime` is 10 minutes. + +These properties are defined under the `oauth2GatewayCookieConfiguration` node: + +```yaml +oauth2GatewayCookieConfiguration: + routingPaths: + - "/oauth2" + - "/custom/oauth2/callback" + - "/alternative/oauth2/initiate" + deletePaths: + - "/custom/logout" + lifetime: "5m" +``` diff --git a/docs/routing-rules.md b/docs/routing-rules.md index 006ec19d7..e7a3733ef 100644 --- a/docs/routing-rules.md +++ b/docs/routing-rules.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • diff --git a/docs/security.md b/docs/security.md index 4746d712d..147543e7a 100644 --- a/docs/security.md +++ b/docs/security.md @@ -18,6 +18,7 @@
  • Gateway API
  • Resource groups API
  • Routing rules
  • +
  • Routing logic
  • From 6a23a2eddcb62159208e9e85aac202b2bcbb333f Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Thu, 2 May 2024 15:50:06 -0700 Subject: [PATCH 062/148] Add explicit link titles --- docs/release-notes.md | 46 +++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 78cc3a6a5..62233323f 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -61,10 +61,10 @@ Docker container `trinodb/trino-gateway:6` [gateway-ha-5-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/5/gateway-ha-5-jar-with-dependencies.jar) -* Add support for OAuth 2 audience use. (https://github.com/trinodb/trino-gateway/pull/164) -* Add quickstart scripts and documentation. (https://github.com/trinodb/trino-gateway/pull/110) -* Add project logo. (https://github.com/trinodb/trino-gateway/pull/111) -* Prevent ignoring HTTP header configuration. (https://github.com/trinodb/trino-gateway/issues/100) +* Add support for OAuth 2 audience use. ([#164](https://github.com/trinodb/trino-gateway/pull/164)) +* Add quickstart scripts and documentation. ([#110](https://github.com/trinodb/trino-gateway/pull/110)) +* Add project logo. ([#111](https://github.com/trinodb/trino-gateway/pull/111)) +* Prevent ignoring HTTP header configuration. ([#100](https://github.com/trinodb/trino-gateway/issues/100)) [Details about all merged pull requests](https://github.com/trinodb/trino-gateway/pull/168) @@ -72,16 +72,16 @@ Docker container `trinodb/trino-gateway:6` [gateway-ha-4-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/4/gateway-ha-4-jar-with-dependencies.jar) -* Add support for configuring additional whitelisted URL paths. (https://github.com/trinodb/trino-gateway/pull/63) -* Improve flexibility of user and group name matching for authorization. (https://github.com/trinodb/trino-gateway/pull/32) -* Add support to use external URL for backend creation. (https://github.com/trinodb/trino-gateway/pull/76) -* Enable configuration of HTTP header size. (https://github.com/trinodb/trino-gateway/pull/67) +* Add support for configuring additional whitelisted URL paths. ([#63](https://github.com/trinodb/trino-gateway/pull/63)) +* Improve flexibility of user and group name matching for authorization. ([#32](https://github.com/trinodb/trino-gateway/pull/32)) +* Add support to use external URL for backend creation. ([#76](https://github.com/trinodb/trino-gateway/pull/76)) +* Enable configuration of HTTP header size. ([#67](https://github.com/trinodb/trino-gateway/pull/67)) * Automatically set JDBC configuration parameter for TLS when connecting to - clusters for monitoring. (https://github.com/trinodb/trino-gateway/pull/71) + clusters for monitoring. ([#71](https://github.com/trinodb/trino-gateway/pull/71)) * Modernize application and remove potential for undiscovered bugs and security - issues with update of many core dependencies. (https://github.com/trinodb/trino-gateway/pull/59) -* Avoid failure when unhandled OIDC properties are present. (https://github.com/trinodb/trino-gateway/pull/69) -* Prevent failures resulting from reloading and parsing rules file. (https://github.com/trinodb/trino-gateway/pull/5) + issues with update of many core dependencies. ([#59](https://github.com/trinodb/trino-gateway/pull/59)) +* Avoid failure when unhandled OIDC properties are present. ([#69](https://github.com/trinodb/trino-gateway/pull/69)) +* Prevent failures resulting from reloading and parsing rules file. ([#5](https://github.com/trinodb/trino-gateway/pull/5)) [Details about all merged pull requests](https://github.com/trinodb/trino-gateway/pull/73) @@ -94,16 +94,16 @@ Gateway](https://github.com/lyft/presto-gateway/) 1.9.5 codebase [#4](#4), with these additions: * Add authentication and authorization with LDAP, OIDC and user list from config - file. (https://github.com/trinodb/trino-gateway/pull/9) -* Add support for user, admin and API roles. (https://github.com/trinodb/trino-gateway/pull/9) -* Add healthcheck for Trino backends using JDBC. (https://github.com/trinodb/trino-gateway/pull/9) -* Add TCP check for routing. (https://github.com/trinodb/trino-gateway/pull/9) -* Add logic to route requests only to healthy backends. (https://github.com/trinodb/trino-gateway/pull/13) -* Add PostgreSQL support for backend database. (https://github.com/trinodb/trino-gateway/pull/13) -* Allow routing of `/v1/node` endpoint URL. (https://github.com/trinodb/trino-gateway/pull/27) -* Filter logs for sensitive information. (https://github.com/trinodb/trino-gateway/pull/9) -* Require Java 17 for build and runtime. (https://github.com/trinodb/trino-gateway/pull/16) -* Deactivate clusters with zero workers. (https://github.com/trinodb/trino-gateway/pull/13) -* Remove concurrency issue from repeated rules file loading. (https://github.com/trinodb/trino-gateway/pull/9) + file. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) +* Add support for user, admin and API roles. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) +* Add healthcheck for Trino backends using JDBC. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) +* Add TCP check for routing. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) +* Add logic to route requests only to healthy backends. ([#13](https://github.com/trinodb/trino-gateway/pull/13)) +* Add PostgreSQL support for backend database. ([#13](https://github.com/trinodb/trino-gateway/pull/13)) +* Allow routing of `/v1/node` endpoint URL. ([#27](https://github.com/trinodb/trino-gateway/pull/27)) +* Filter logs for sensitive information. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) +* Require Java 17 for build and runtime. ([#16](https://github.com/trinodb/trino-gateway/pull/16)) +* Deactivate clusters with zero workers. ([#13](https://github.com/trinodb/trino-gateway/pull/13)) +* Remove concurrency issue from repeated rules file loading. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) [Details about all merged pull requests](https://github.com/trinodb/trino-gateway/pull/52) From 1e284d9739f0356ae202f3692bf1a5cec5d09432 Mon Sep 17 00:00:00 2001 From: Vishal Jadhav Date: Fri, 3 May 2024 16:50:01 -0400 Subject: [PATCH 063/148] Initialize the null userQueueCount map --- .../gateway/ha/router/QueryCountBasedRouter.java | 3 +++ .../ha/router/TestQueryCountBasedRouter.java | 15 +++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java index 6ba8a518f..d1cbfe54d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryCountBasedRouter.java @@ -63,6 +63,9 @@ static class LocalStats if (stats.userQueuedCount() != null) { userQueuedCount = new HashMap(stats.userQueuedCount()); } + else { + userQueuedCount = new HashMap(); + } } public String clusterId() diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java index 45aa79872..867f7cf07 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestQueryCountBasedRouter.java @@ -47,7 +47,7 @@ public class TestQueryCountBasedRouter // Helper function to generate the ClusterStat list private static List getClusterStatsList(String routingGroup) { - ImmutableList.Builder clustersBuilder = new ImmutableList.Builder(); + ImmutableList.Builder clustersBuilder = new ImmutableList.Builder(); // Set Cluster1 stats { ClusterStats.Builder cluster = ClusterStats.builder("c1"); @@ -130,11 +130,10 @@ static ClusterStats getClusterWithNoUserQueueAndMinQueueCount() cluster.routingGroup("adhoc"); cluster.runningQueryCount(5); cluster.queuedQueryCount(LEAST_QUEUED_COUNT); - cluster.userQueuedCount(new HashMap()); return cluster.build(); } - static ClusterStats getClusterWithMinRunnningQueries() + static ClusterStats getClusterWithMinRunningQueries() { ClusterStats.Builder cluster = ClusterStats.builder("c-Minimal-Running"); cluster.proxyTo(BACKEND_URL_5); @@ -150,7 +149,7 @@ static ClusterStats getClusterWithMinRunnningQueries() public void init() { //Have a adoc and an etl routing groups - 2 sets of clusters - clusters = new ImmutableList.Builder() + clusters = new ImmutableList.Builder() .addAll(getClusterStatsList("adhoc")) .addAll(getClusterStatsList("etl")) .build(); @@ -211,7 +210,7 @@ public void testUserWithNoQueuedQueries() } @Test - public void testAdhocroutingGroupFailOver() + public void testAdhocRoutingGroupFailOver() { // The ETL routing group doesn't exist String proxyTo = queryCountBasedRouter.provideBackendForRoutingGroup("NonExisting", "u1"); @@ -223,7 +222,7 @@ public void testAdhocroutingGroupFailOver() public void testClusterWithLeastQueueCount() { // Add a cluster with minimal queuelength - clusters = new ImmutableList.Builder() + clusters = new ImmutableList.Builder() .addAll(clusters) .add(getClusterWithNoUserQueueAndMinQueueCount()) .build(); @@ -238,10 +237,10 @@ public void testClusterWithLeastQueueCount() public void testClusterWithLeastRunningCount() { // Add a cluster with minimal queuelength - clusters = new ImmutableList.Builder() + clusters = new ImmutableList.Builder() .addAll(clusters) .add(getClusterWithNoUserQueueAndMinQueueCount()) - .add(getClusterWithMinRunnningQueries()) + .add(getClusterWithMinRunningQueries()) .build(); queryCountBasedRouter.updateBackEndStats(clusters); From 8a3146580923dcc422080468d585fccd5cc49903 Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Thu, 11 Apr 2024 21:42:39 -0400 Subject: [PATCH 064/148] Add Helm chart for k8s deployments m --- docs/installation.md | 92 +++++++++++ helm/trino-gateway/.helmignore | 23 +++ helm/trino-gateway/Chart.yaml | 24 +++ helm/trino-gateway/templates/NOTES.txt | 28 ++++ helm/trino-gateway/templates/_helpers.tpl | 62 ++++++++ helm/trino-gateway/templates/deployment.yaml | 112 ++++++++++++++ helm/trino-gateway/templates/hpa.yaml | 32 ++++ helm/trino-gateway/templates/ingress.yaml | 61 ++++++++ helm/trino-gateway/templates/secrets.yaml | 22 +++ helm/trino-gateway/templates/service.yaml | 24 +++ .../templates/serviceaccount.yaml | 13 ++ .../templates/tests/test-connection.yaml | 15 ++ helm/trino-gateway/values.yaml | 145 ++++++++++++++++++ 13 files changed, 653 insertions(+) create mode 100644 helm/trino-gateway/.helmignore create mode 100644 helm/trino-gateway/Chart.yaml create mode 100644 helm/trino-gateway/templates/NOTES.txt create mode 100644 helm/trino-gateway/templates/_helpers.tpl create mode 100644 helm/trino-gateway/templates/deployment.yaml create mode 100644 helm/trino-gateway/templates/hpa.yaml create mode 100644 helm/trino-gateway/templates/ingress.yaml create mode 100644 helm/trino-gateway/templates/secrets.yaml create mode 100644 helm/trino-gateway/templates/service.yaml create mode 100644 helm/trino-gateway/templates/serviceaccount.yaml create mode 100644 helm/trino-gateway/templates/tests/test-connection.yaml create mode 100644 helm/trino-gateway/values.yaml diff --git a/docs/installation.md b/docs/installation.md index 35b2f6a71..52b49790e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -170,3 +170,95 @@ java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 \ --add-opens=java.base/java.net=ALL-UNNAMED \ -jar gateway-ha.jar server gateway-config.yml ``` + +### Helm + +Helm manages the deployment of Kubernetes applications by templating Kubernetes +resources with a set of Helm charts. The Trino Gateway Helm chart consists +of the following compnents: + +* A `config` node for general configuration +* `dataStoreSecret`, `backendStateSecret` and `authenticationSecret` for + providing sensitive configurations through Kubernetes secrets, +* Standard Helm options such as `replicaCount`, `resources` and `ingress`. + +The default [values.yaml](../helm/trino-gateway/values.yaml) includes basic +configuration options as an example. For a simple deployment, proceed with +the following steps: + +Create a yaml file containing the configuration for your `datastore`: + +```shell +cat << EOF > datastore.yaml +dataStore: + jdbcUrl: jdbc:postgresql://yourdatabasehost:5432/gateway + user: postgres + password: secretpassword + driver: org.postgresql.Driver +EOF +``` +Create a Kubernetes secret from this file: + +```shell +kubectl create secret generic datastore-yaml --from-file datastore.yaml --dry-run=client -o yaml | kubectl apply -f - +``` + +Create a values override with a name such as `values-override.yaml` and +reference this secret in the `backendStateSecret` node: + +```yaml +backendStateSecret: + name: "datastore-yaml" + key: "datastore.yaml" +``` + +When a Secret is created with the `--from-file` option, the filename is used as +the key. Finally, you can deploy Trino Gateway with the chart from the root +of this repository: + +```shell +helm install tg --values values-override.yaml helm/trino-gateway +``` + +Secrets for `authenticationSecret` and `backendState` can be provisioned +similarly. Alternatively, you can directly define the `config.backEndState` +node in `values-override.yaml` and leave `backendStateSecret` undefined. +However, a [Secret](https://kubernetes. +io/docs/concepts/configuration/secret/) +is recommended to protect the database credentials required for this +configuration. + +#### Additional options + +To implement routing rules, create a ConfigMap from your routing rules yaml +definition: + +```shell +kubectl create cm routing-rules --from-file your-routing-rules.yaml +``` + +Then mount it to your container: + +```yaml +volumes: + - name: routing-rules + configMap: + name: routing-rules + items: + name: your-routing-rules.yaml + path: your-routing-rules.yaml + +volumeMounts: + - name: routing-rules + mountPath: "/etc/routing-rules/your-routing-rules.yaml" + subPath: your-routing-rules.yaml +``` + +Ensure that the `mountPath` matches the `rulesConfigPath` specified in your +configuration. Note that the `subPath` is not strictly necessary, and if it +is not specified the file is mounted at `mountPath/`. +Kubernetes updates the mounted file when the ConfigMap is updated. + +Standard Helm oœptions such as `replicaCount`, `image`, `imagePullSecrets`, +`service`, `ingress` and `resources` are supported. These are defined in +`helm/values.yaml`. diff --git a/helm/trino-gateway/.helmignore b/helm/trino-gateway/.helmignore new file mode 100644 index 000000000..0e8a0eb36 --- /dev/null +++ b/helm/trino-gateway/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/helm/trino-gateway/Chart.yaml b/helm/trino-gateway/Chart.yaml new file mode 100644 index 000000000..1717c6157 --- /dev/null +++ b/helm/trino-gateway/Chart.yaml @@ -0,0 +1,24 @@ +apiVersion: v2 +name: trino-gateway +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +# Versions are expected to follow Semantic Versioning (https://semver.org/) +version: "8" + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. Versions are not expected to +# follow Semantic Versioning. They should reflect the version the application is using. +# It is recommended to use it with quotes. +appVersion: "8" diff --git a/helm/trino-gateway/templates/NOTES.txt b/helm/trino-gateway/templates/NOTES.txt new file mode 100644 index 000000000..660b90f92 --- /dev/null +++ b/helm/trino-gateway/templates/NOTES.txt @@ -0,0 +1,28 @@ +You can get the Trino Gateway endpoints by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export REQUEST_NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath='{.spec.ports[?(@.name == "request")].nodePort}' services {{ include "trino-gateway.fullname" . }}) + export APP_NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath='{.spec.ports[?(@.name == "app")].nodePort}' services {{ include "trino-gateway.fullname" . }}) + export ADMIN_NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath='{.spec.ports[?(@.name == "admin")].nodePort}' services {{ include "trino-gateway.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath='{.items[0].status.addresses[0].address}') + echo http://$NODE_IP:$REQUEST_NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "trino-gateway.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "trino-gateway.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "trino-gateway.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export REQUEST_PORT=$(kubectl get pod --namespace test $POD_NAME -o jsonpath='{.spec.containers[0].ports[?(@.name == "request")].containerPort}') + export APP_PORT=$(kubectl get pod --namespace test $POD_NAME -o jsonpath='{.spec.containers[0].ports[?(@.name == "app")].containerPort}') + export ADMIN_PORT=$(kubectl get pod --namespace test $POD_NAME -o jsonpath='{.spec.containers[0].ports[?(@.name == "admin")].containerPort}') + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$REQUEST_PORT +{{- end }} + +Happy Helming! diff --git a/helm/trino-gateway/templates/_helpers.tpl b/helm/trino-gateway/templates/_helpers.tpl new file mode 100644 index 000000000..bb868821b --- /dev/null +++ b/helm/trino-gateway/templates/_helpers.tpl @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "trino-gateway.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "trino-gateway.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "trino-gateway.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "trino-gateway.labels" -}} +helm.sh/chart: {{ include "trino-gateway.chart" . }} +{{ include "trino-gateway.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "trino-gateway.selectorLabels" -}} +app.kubernetes.io/name: {{ include "trino-gateway.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "trino-gateway.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "trino-gateway.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml new file mode 100644 index 000000000..03b8945b5 --- /dev/null +++ b/helm/trino-gateway/templates/deployment.yaml @@ -0,0 +1,112 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "trino-gateway.fullname" . }} + labels: + {{- include "trino-gateway.labels" . | nindent 4 }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + {{- include "trino-gateway.selectorLabels" . | nindent 6 }} + template: + metadata: + annotations: + # Include the version of trino-gateway-configuration as an input to the deployment checksum. This causes pods to restart on helm update + # whether the chart `config` is updated or if one of the configuration secrets is updated. Helm template must be run with the + # --dry-run=server option to prevent a nil pointer + checksum/config: {{ (lookup "v1" "Secret" .Release.Namespace "trino-gateway-configuration").metadata.resourceVersion | sha256sum}} + {{- with .Values.podAnnotations }} + {{- toYaml . | nindent 8 }} + {{- end }} + labels: + {{- include "trino-gateway.labels" . | nindent 8 }} + {{- with .Values.podLabels }} + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ include "trino-gateway.serviceAccountName" . }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + command: + - "java" + - "--add-opens=java.base/java.lang=ALL-UNNAMED" + - "--add-opens=java.base/java.net=ALL-UNNAMED" + - "-XX:MinRAMPercentage=80.0" + - "-XX:MaxRAMPercentage=80.0" + - "-jar" + - "/usr/lib/trino/gateway-ha-jar-with-dependencies.jar" + - "server" + - "/etc/gateway/config.yaml" + ports: + - name: request + containerPort: {{ .Values.config.requestRouter.port }} + protocol: TCP + {{- range $index, $connector := $.Values.config.server.adminConnectors}} + - name: {{print "admin-" $index }} + protocol: TCP + containerPort: {{ $connector.port }} + {{- end }} + {{- range $index, $connector := $.Values.config.server.applicationConnectors}} + - name: {{print "app-" $index }} + protocol: TCP + containerPort: {{ $connector.port }} + {{- end }} + livenessProbe: + httpGet: + path: / + port: {{ (index .Values.config.server.adminConnectors 0).port}} + initialDelaySeconds: .Values.livenessProbe.initialDelaySeconds + periodSeconds: .Values.livenessProbe.periodSeconds + failureThreshold: .Values.livenessProbe.failureThreshold + timeoutSeconds: .Values.livenessProbe.timeoutSeconds + readinessProbe: + httpGet: + path: / + port: {{ (index .Values.config.server.adminConnectors 0).port}} + initialDelaySeconds: .Values.readinessProbe.initialDelaySeconds + periodSeconds: .Values.readinessProbe.periodSeconds + failureThreshold: .Values.readinessProbe.failureThreshold + timeoutSeconds: .Values.readinessProbe.timeoutSeconds + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - name: trino-gateway-configuration + mountPath: "/etc/gateway/config.yaml" + subPath: "config.yaml" + readOnly: true + {{- with .Values.volumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} + volumes: + - name: trino-gateway-configuration + secret: + secretName: trino-gateway-configuration + optional: false + {{- with .Values.volumes }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/helm/trino-gateway/templates/hpa.yaml b/helm/trino-gateway/templates/hpa.yaml new file mode 100644 index 000000000..ccc744020 --- /dev/null +++ b/helm/trino-gateway/templates/hpa.yaml @@ -0,0 +1,32 @@ +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "trino-gateway.fullname" . }} + labels: + {{- include "trino-gateway.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "trino-gateway.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} diff --git a/helm/trino-gateway/templates/ingress.yaml b/helm/trino-gateway/templates/ingress.yaml new file mode 100644 index 000000000..ea8ca2e95 --- /dev/null +++ b/helm/trino-gateway/templates/ingress.yaml @@ -0,0 +1,61 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "trino-gateway.fullname" . -}} +{{- $svcPort := .Values.service.port -}} +{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} + {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} + {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} + {{- end }} +{{- end }} +{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1 +{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} +apiVersion: networking.k8s.io/v1beta1 +{{- else -}} +apiVersion: extensions/v1beta1 +{{- end }} +kind: Ingress +metadata: + name: {{ $fullName }} + labels: + {{- include "trino-gateway.labels" . | nindent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: + {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} + ingressClassName: {{ .Values.ingress.className }} + {{- end }} + {{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} + {{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ .path }} + {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .pathType }} + {{- end }} + backend: + {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} + service: + name: {{ $fullName }} + port: + number: {{ $svcPort }} + {{- else }} + serviceName: {{ $fullName }} + servicePort: {{ $svcPort }} + {{- end }} + {{- end }} + {{- end }} +{{- end }} diff --git a/helm/trino-gateway/templates/secrets.yaml b/helm/trino-gateway/templates/secrets.yaml new file mode 100644 index 000000000..aab1d575d --- /dev/null +++ b/helm/trino-gateway/templates/secrets.yaml @@ -0,0 +1,22 @@ +{{ $dataStoreDict := dict}} +{{ if .Values.dataStoreSecret.name }} +{{ $dataStoreDict = (index (lookup "v1" "Secret" .Release.Namespace .Values.dataStoreSecret.name).data .Values.dataStoreSecret.key) | b64dec | fromYaml }} +{{ end }} +{{ $backendStateDict := dict }} +{{ if .Values.backendStateSecret.name }} +{{ $backendStateDict = (index (lookup "v1" "Secret" .Release.Namespace .Values.backendStateSecret.name).data .Values.backendStateSecret.key) | b64dec | fromYaml }} +{{ end }} +{{ $authenticationDict := dict }} +{{ if .Values.authenticationSecret.name }} +# {{.Values.authenticationSecret.name }} # +# {{ index (lookup "v1" "Secret" .Release.Namespace .Values.authenticationSecret.name).data .Values.authenticationSecret.key }} # +{{ $authenticationDict = (index (lookup "v1" "Secret" .Release.Namespace .Values.authenticationSecret.name).data .Values.authenticationSecret.key) | b64dec | fromYaml }} +{{ end }} + +apiVersion: v1 +kind: Secret +metadata: + name: trino-gateway-configuration +type: "Opaque" +data: + config.yaml: "{{toYaml (merge .Values.config $authenticationDict $dataStoreDict $backendStateDict ) | b64enc}}" diff --git a/helm/trino-gateway/templates/service.yaml b/helm/trino-gateway/templates/service.yaml new file mode 100644 index 000000000..11b8dd1aa --- /dev/null +++ b/helm/trino-gateway/templates/service.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "trino-gateway.fullname" . }} + labels: + {{- include "trino-gateway.labels" . | nindent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.config.requestRouter.port }} + protocol: TCP + name: request + {{- range $index, $connector := $.Values.config.server.applicationConnectors}} + - port: {{ $connector.port }} + protocol: TCP + name: {{print "app-" $index }} + {{- end }} + {{- range $index, $connector := $.Values.config.server.adminConnectors}} + - port: {{ $connector.port }} + protocol: TCP + name: {{print "admin-" $index }} + {{- end }} + selector: + {{- include "trino-gateway.selectorLabels" . | nindent 4 }} diff --git a/helm/trino-gateway/templates/serviceaccount.yaml b/helm/trino-gateway/templates/serviceaccount.yaml new file mode 100644 index 000000000..5c6ba208e --- /dev/null +++ b/helm/trino-gateway/templates/serviceaccount.yaml @@ -0,0 +1,13 @@ +{{- if .Values.serviceAccount.create -}} +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "trino-gateway.serviceAccountName" . }} + labels: + {{- include "trino-gateway.labels" . | nindent 4 }} + {{- with .Values.serviceAccount.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +automountServiceAccountToken: {{ .Values.serviceAccount.automount }} +{{- end }} diff --git a/helm/trino-gateway/templates/tests/test-connection.yaml b/helm/trino-gateway/templates/tests/test-connection.yaml new file mode 100644 index 000000000..cfad670fa --- /dev/null +++ b/helm/trino-gateway/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "trino-gateway.fullname" . }}-test-connection" + labels: + {{- include "trino-gateway.labels" . | nindent 4 }} + annotations: + "helm.sh/hook": test +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "trino-gateway.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/helm/trino-gateway/values.yaml b/helm/trino-gateway/values.yaml new file mode 100644 index 000000000..df7a483fd --- /dev/null +++ b/helm/trino-gateway/values.yaml @@ -0,0 +1,145 @@ +replicaCount: 1 + +image: + repository: "trinodb/trino-gateway" + pullPolicy: IfNotPresent + # Override the image tag whose default is the chart appVersion. + # tag: "8-SNAPSHOT" + + # For local testing + #repository: "trino-gateway" + #pullPolicy: IfNotPresent + #tag: "8-SNAPSHOT" + +imagePullSecrets: [] + +# Provide configuration for the Trino Gateway dataStore in dataStoreSecret. This node can +# be left undefined if dataStore is defined under the config node. For production deployments +# sensitive values should be stored in a Secret +dataStoreSecret: + name: "" + key: "" + +# Provide configuration for the Trino Gateway backendState in backendStateSecret. This should +# be used with health check configurations that require backend credentials. This node can +# be left undefined if dataStore is defined under the config node. +backendStateSecret: + name: "" + key: "" + +# Provide configuration for the Trino Gateway authentication configuration in authenticationSecret. +# This node can be left undefined if dataStore is defined under the config node. +authenticationSecret: + name: "" + key: "" + +config: + logging: + type: "external" + requestRouter: + #SQL clients connect to the request port + port: 9080 + name: testTrinoRouter + historySize: 1000 + server: + applicationConnectors: + - type: http + port: 9081 + useForwardedHeaders: true + adminConnectors: + - type: http + port: 9082 + useForwardedHeaders: true + clusterStatsConfiguration: + monitorType: INFO_API + modules: + - io.trino.gateway.ha.module.HaGatewayProviderModule + - io.trino.gateway.ha.module.ClusterStateListenerModule + - io.trino.gateway.ha.module.ClusterStatsMonitorModule + managedApps: + - io.trino.gateway.ha.GatewayManagedApp + - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor + +service: + type: ClusterIP + +ingress: + enabled: false + className: "" + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: chart-example.local + paths: + - path: / + pathType: ImplementationSpecific + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: + limits: + cpu: 2 + memory: 4Gi + requests: + cpu: 2 + memory: 4Gi + +autoscaling: + enabled: false + minReplicas: 1 + maxReplicas: 100 + targetCPUUtilizationPercentage: 80 + # targetMemoryUtilizationPercentage: 80 + +livenessProbe: + initialDelaySeconds: 30 + periodSeconds: 10 + failureThreshold: 3 + timeoutSeconds: 1 + scheme: HTTP + +readinessProbe: + initialDelaySeconds: 5 + periodSeconds: 5 + failureThreshold: 12 + timeoutSeconds: 1 + scheme: HTTP + +volumes: {} + +volumeMounts: {} + +nodeSelector: {} + +tolerations: [] + +affinity: {} + +podAnnotations: {} + +podLabels: {} + +podSecurityContext: {} +# fsGroup: 2000 + +securityContext: {} + # capabilities: + # drop: + # - ALL + # readOnlyRootFilesystem: true + # runAsNonRoot: true +# runAsUser: 1000 + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Automatically mount a ServiceAccount's API credentials? + automount: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" From 65899bfd9cc692e7b8e2974412e3d6c5cf487e58 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Wed, 3 Apr 2024 13:46:58 -0700 Subject: [PATCH 065/148] Add release notes for Trino Gateway 8 --- docs/release-notes.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 62233323f..295b8f720 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -34,7 +34,21 @@ # Release notes -## Trino Gateway 7 (21 Mar 2024) +## Trino Gateway 8 (6 May 2024) + +[JAR file gateway-ha-8-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/8/gateway-ha-8-jar-with-dependencies.jar), +Docker container `trinodb/trino-gateway:8` + +* Add support for configurable router policies. ([#98](https://github.com/trinodb/trino-gateway/pull/98)) +* Add a router policy based on query count per cluster. ([#98](https://github.com/trinodb/trino-gateway/pull/98)) +* Add a router policy for select paths based on cookie content. ([#188](https://github.com/trinodb/trino-gateway/pull/188)) +* Support configuring access permissions for UI pages. ([#296](https://github.com/trinodb/trino-gateway/pull/296)) +* Add Helm chart for Kubernetes deployments. ([#296](https://github.com/trinodb/trino-gateway/pull/296)) +* Require Java 21 for build and runtime. ([#225](https://github.com/trinodb/trino-gateway/pull/225)) +* Fix the `userInfo` resource to pass role information used by the API, so that + the webapp authentication matches the API authentication. ([#310](https://github.com/trinodb/trino-gateway/pull/310)) + +## Trino Gateway 7 (21 Mar 2024) [JAR file gateway-ha-7-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/7/gateway-ha-7-jar-with-dependencies.jar), Docker container `trinodb/trino-gateway:7` From b75dd94bc15749aac714ea918c9d86f78cb8367e Mon Sep 17 00:00:00 2001 From: Martin Traverso Date: Mon, 6 May 2024 16:07:43 -0700 Subject: [PATCH 066/148] [maven-release-plugin] prepare release 8 --- gateway-ha/pom.xml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 3c3ae5837..4151f1c6c 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -6,7 +6,7 @@ io.trino.gateway trino-gateway-parent - 8-SNAPSHOT + 8 ../ diff --git a/pom.xml b/pom.xml index 31b05260a..bc9241e38 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.trino.gateway trino-gateway-parent - 8-SNAPSHOT + 8 pom trino-gateway-parent @@ -32,7 +32,7 @@ scm:git:git://github.com/trinodb/trino-gateway.git - HEAD + 8 https://github.com/trinodb/trino-gateway From 41d6e15d9208c42b69f875e7ffccb6173e8994c6 Mon Sep 17 00:00:00 2001 From: Martin Traverso Date: Mon, 6 May 2024 16:07:43 -0700 Subject: [PATCH 067/148] [maven-release-plugin] prepare for next development iteration --- gateway-ha/pom.xml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 4151f1c6c..c1f1107af 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -6,7 +6,7 @@ io.trino.gateway trino-gateway-parent - 8 + 9-SNAPSHOT ../ diff --git a/pom.xml b/pom.xml index bc9241e38..0029eb3b5 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.trino.gateway trino-gateway-parent - 8 + 9-SNAPSHOT pom trino-gateway-parent @@ -32,7 +32,7 @@ scm:git:git://github.com/trinodb/trino-gateway.git - 8 + HEAD https://github.com/trinodb/trino-gateway From fedb2c0281c034994000686d4a522476cedfe9ad Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Thu, 15 Feb 2024 13:39:04 -0800 Subject: [PATCH 068/148] Add white background to logos --- docs/assets/logos/trino-gateway-h.png | Bin 7008 -> 11556 bytes docs/assets/logos/trino-gateway-h2x.png | Bin 14534 -> 19566 bytes docs/assets/logos/trino-gateway-h3x.png | Bin 22789 -> 28250 bytes docs/assets/logos/trino-gateway-v.png | Bin 6092 -> 10639 bytes docs/assets/logos/trino-gateway-v2x.png | Bin 12511 -> 17217 bytes docs/assets/logos/trino-gateway-v3x.png | Bin 19838 -> 25193 bytes 6 files changed, 0 insertions(+), 0 deletions(-) diff --git a/docs/assets/logos/trino-gateway-h.png b/docs/assets/logos/trino-gateway-h.png index f4f43260317b9c314a80a69409f723596a88e51e..e215cb0bba40b048b6d7c50fc199f89e0651db63 100644 GIT binary patch literal 11556 zcmeHtc{r4P`}f$gW+#b^F%($_W6i!B``AgD4I{&3Cqzi1WZx>gETybjvnTtOkbNmc zMV9Q|OZWZU&;1;~-*LRha~$vc-#verxxU}?`h3s*I?wYGX>6!{mWGoC1OlDa)zLtL zKqUOY?^{%7fWPq!l@Q?ToxhotClciYCc3*h;9YQFPd_3KjPu1ifIz;V2*wjZp1G0~tIOYhEy$d%UQLAx)h5m-S*~dwvBU?ZsE>sl0(8)JveOZlb1d8#YjLK|`$VXEh#L5sEXKQAoBwUYKnbBy;W z+zPW2-hMsQ`ohJjZMe~iR7@qDRFvx)TU|e(n@a$yCSLDL{qz$rRh#^H@E$6q3DG&zCAomJ7hgb zYbJrR$4UH4^B@hAE1A!EjeTgW{O`InfjdR4iDnfqLHA296tRlox$^d3S zRL42tb^P6Nrv8Rz82_6XIV?n3iAKR!9snTVJW*g@f{Uw%ysskUH?BPJ`*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lEuWs>0DRak z#nl0wVc2qDE-qz+StW6$wj05~@srxHoxHlL);;Bb(<&unhaHarvQm**E3e#=176DB zoCT4$r^*gW+}f+I2>7wV_=*v=0ERM(0GV|BThbk?1=jD49Tv)4h(ZmAaHinAQi6z z>F;e4q-9cn_iAW(YtfBWe4Z3DOlTM=zXk%wyZ(6x_TQi^OfvRJhPvn$8J~f`2{I(j zwA;1!9)Qz_$(F;-YpkvNPW`5m#K8&sUk89)PGbEq7Sp=<2>eIUjhc;-4?|W*Qw=a? zwM6~bNFZJ5keO1HwFZs1*kI9vhhy6q)AQiRp8p?WX7~mTa5hwIu|-pd#9J*K&qi!e z(jZ?0kHlo%)S2uAg)9M diff --git a/docs/assets/logos/trino-gateway-v.png b/docs/assets/logos/trino-gateway-v.png index 3a6cc49035114b56dd904c57e3a16433a732487f..d77374a8d63efa76ff1d46f203c5b8842c978cf9 100644 GIT binary patch literal 10639 zcmeHsbyQSc+y0?j=~n5IA%^abp<5aU7+{bbx-+wD&YGDsXYc!5`@XMz-`ClD=82A$3K2dnJ^%njFjYl8@Z18v z-EpzOPrC_ZJ9v8IZ(!`H2lrucL%G@^oe&J3er^Z`gfG$#0DNbibv_U&FydbLJdFzt zeY&!DW|{2rem^=~)7k$GnHUOx(_iY&rf_HmSsGi@G(Psuye@>;ZDW;C(r?+=bm5>( z32@-7Prl$1`g%_~gz!Qq`dwP$yn?9rbB~k3cwI@w6%~hW8fB>%T#EsC{sQF$kMo1= z@LS6gL`l*=p+n~9tsV`VIeiO^z0uGxe%&Kl+AOk7!iiPuM;}x5p4-JVn%0M1WR1)F zV<;AxIIPF5SpfiA1X4jk2d1F#XGCBe*+Gd?sy(vweOCHKOer_E8I}{Ci+}8kUpB7L ziNJquzfTmQ>gxieHU|BSTqngJ+~oyahje3FmRc!{mbKXD6=<-!r{=xDx!T z{kSCn2e*oAe5eyMe={`^#@c5dY)JS@UKSVL%g-#(Ak7X#`o`4+oSgVmt(YvVU(qW# zcH4$(vuM?}!AV?+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4b%RMq#@zV>$cb0A3F$%6ddcbs-2ZH#7ynb1RzSF39O5SmKB?DmVt}^jX?y3LDdMb`EUXcoey#$?_WtvO#?DW z4X@?BbU6Zcs7>wJdJ=~?WLf4w@fcC=Wf*414u7)|lLa@SNkkNrim*i4Usy!=9h9>J zB@gHxJ6QQz3h-c$Y*(Or9F1IhQYq)MyhT^J;_{s5Fckc}n5LC@cjOe%*Zsy+G%p*2K~ zqmrg_fCyX~c02#@`Be39BcNB~iUQVKc08k+5-^qs6I$yoSg1@3DICzPH)hX-ebGiB z`ObYd$H%DZRrQ;WO<7DZ#$h1^?5Zp5h+hn^<}LP)AkmT1 z5qf+7?}7`8AhmC4v3!)UzIMk6)}TFE7)t)#a{SYcd~;&&rfVnrM3qD{sYaMyU2*MM zvaFBK!V0YeOeLtH4~8c87VDAe5qF#F!Vi$eBz83f9gqXzsNIDt{T#jeb7rWRkMd!Z z2K!V{po@J(H)AV(_ko9iZxEQX&cw&d=rLMI7+p5Rqy7#V!7r2)hjVgwvu@IgvJXZK z{_NV2%%p$v@M0?=#xkigcn3;i{}T^Q`sR`GEegzaajt#`xuMiB*Kml1!b*r z>JH7p2Lcrwv)&50)_ From 57ed08d3c44b540d6b33d7956d18a44580e0b11f Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Fri, 3 May 2024 16:53:45 -0700 Subject: [PATCH 069/148] Add mkdocs setup --- .github/workflows/docs.yml | 22 +++++++ .gitignore | 2 +- docs/assets/css/extra.css | 12 ++++ docs/assets/js/extra.js | 1 + docs/assets/logos/trino-favicon.ico | Bin 0 -> 15406 bytes docs/assets/logos/trino.svg | 12 ++++ docs/docs.md | 31 ++++++++++ docs/index.md | 9 +++ mkdocs.yml | 89 ++++++++++++++++++++++++++++ 9 files changed, 177 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docs.yml create mode 100644 docs/assets/css/extra.css create mode 100644 docs/assets/js/extra.js create mode 100644 docs/assets/logos/trino-favicon.ico create mode 100644 docs/assets/logos/trino.svg create mode 100644 docs/docs.md create mode 100644 docs/index.md create mode 100644 mkdocs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..5b4714c9d --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,22 @@ +name: docs +on: + push: + branches: + - main +permissions: + contents: write +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - uses: actions/cache@v4 + with: + key: ${{ github.ref }} + path: .cache + - run: pip install mkdocs-material + - run: pip install pillow cairosvg + - run: mkdocs gh-deploy --force diff --git a/.gitignore b/.gitignore index ce4f1deb1..9ddf2a37b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ target/** .idea/** *.iml /**/var/ - gateway-ha/**/static/** +.cache diff --git a/docs/assets/css/extra.css b/docs/assets/css/extra.css new file mode 100644 index 000000000..aa579cc5a --- /dev/null +++ b/docs/assets/css/extra.css @@ -0,0 +1,12 @@ +/* Additional CSS hackery */ +:root { + --md-primary-fg-color: #000033; +} + +.md-typeset a { + color: #DD00A1; +} + +.youtube { + color: #EE0F0F; +} diff --git a/docs/assets/js/extra.js b/docs/assets/js/extra.js new file mode 100644 index 000000000..30620bba2 --- /dev/null +++ b/docs/assets/js/extra.js @@ -0,0 +1 @@ +/* Additional JS hackery */ diff --git a/docs/assets/logos/trino-favicon.ico b/docs/assets/logos/trino-favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..fa34f7516ef71ddf0323109324786ce11df14cef GIT binary patch literal 15406 zcmeHOd32OjmQP3!y6vWIY#S6$i_T&8s+8X$$5EMq)^n6)v6+uN=gLeZ`Vd3l+@ zRSJBYO-UCneQ)}ot+)q-rl|z zJo=cBRjrJ^R}J=>69(AChJPFCsrbKO5x;UwEE6l~lhbXPiRi zdDmz(!wVNET2<%Up7GTAD{GTA$=Tx+2Jb#KDVoajla&(i9^_r`>v!b=P3iebigxt9 z$J4IWYG>z6Qq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kSBVLIN=H{N3n#c!N_AA-(aayeX-HC9d)pBspO + + + + + + + + + + + diff --git a/docs/docs.md b/docs/docs.md new file mode 100644 index 000000000..eb4cd2438 --- /dev/null +++ b/docs/docs.md @@ -0,0 +1,31 @@ +# Documentation development + +The Trino Gateway documentation uses markdown source files, MkDocs with the +material theme for rendering, and GitHub pages for hosting. + +The following sections contain minimal helpful tips to get started. More +details are available in the following resources: + +* [Material for MkDocs website](https://squidfunk.github.io/mkdocs-material/) +* [MkDocs website](https://www.mkdocs.org/) + +## Usage with local Python + +Install `python` and `pipx`, for example with brew. + +Install mkdocs-material and all required dependencies: +``` +pipx install --install-deps mkdocs-material +``` + +Start the local site in the project root folder: + +``` +cd trino-gateway +mkdocs serve +``` + +Access the site in your browser at http://127.0.0.1:8000/ + +Edit the site sources as desired and refresh pages as needed. Some changes +require a restart of mkdocs. diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 000000000..538ae83e0 --- /dev/null +++ b/docs/index.md @@ -0,0 +1,9 @@ +# Overview + +Trino Gateway is a load balancer, proxy server, and configurable routing +gateway for multiple [Trino](https://trino.io) clusters. + + + + + diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 000000000..867cbe9d3 --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,89 @@ +site_name: Trino Gateway +site_url: https://trinodb.github.io/trino-gateway/ +site_author: Trino Gateway contributors +site_description: >- + Overview, guides, reference documentation and other reosurces for Trino Gateway. + +copyright: | + Trino Gateway is open source software licensed under the + + and supported by the Trino Software Foundation. + +repo_name: trinodb/trino-gateway +repo_url: https://github.com/trinodb/trino-gateway +edit_uri: edit/main/docs/ + +theme: + name: material + palette: + primary: custom + features: + - navigation.indexes + - navigation.instant + - navigation.path + - navigation.tabs + - navigation.tabs.sticky + - navigation.top + - navigation.tracking + - toc.follow + - search.suggest + - search.highlight + - content.tabs.link + - content.code.annotation + - content.code.copy + - content.action.edit + - content.action.view + language: en + logo: assets/logos/trino.svg + favicon: assets/logos/trino-favicon.ico + +plugins: + - social + - search +extra_css: + - assets/css/extra.css +extra_javascript: + - assets/js/extra.js + +extra: + social: + - icon: fontawesome/brands/github + link: https://github.com/trinodb/trino-gateway + - icon: fontawesome/brands/youtube + link: https://www.youtube.com/c/trinodb + - icon: fontawesome/brands/slack + link: https://trino.io/slack + - icon: fontawesome/brands/linkedin + link: https://www.linkedin.com/company/trino-software-foundation + +markdown_extensions: + - abbr + - admonition + - attr_list + - def_list + - footnotes + - md_in_html + - toc: + permalink: true + - pymdownx.emoji: + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg + +nav: + - Home: + - Overview: index.md + - Release notes: release-notes.md + - Get started: + - Quick start: quickstart.md + - Installation: installation.md + - Operation: operation.md + - Security: security.md + - Reference: + - Routing rules: routing-rules.md + - Routing logic: routing-logic.md + - Gateway API: gateway-api.md + - Resource groups API: resource-groups-api.md + - Code architecture: design.md + - Contribute: + - Code: development.md + - Documentation: docs.md From f1619326e6d849ff98264e6a39915a52f68a7601 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Fri, 3 May 2024 16:56:56 -0700 Subject: [PATCH 070/148] Update docs content for mkdocs --- README.md | 32 ++--------------------- docs/design.md | 34 ------------------------ docs/development.md | 45 ++++---------------------------- docs/docs.md | 19 +++++++++++++- docs/gateway-api.md | 34 ------------------------ docs/index.md | 25 ++++++++++++++++-- docs/installation.md | 52 +++++++------------------------------ docs/operation.md | 47 +++++---------------------------- docs/quickstart.md | 34 ------------------------ docs/references.md | 45 -------------------------------- docs/release-notes.md | 40 +++------------------------- docs/resource-groups-api.md | 34 ------------------------ docs/routing-logic.md | 34 ------------------------ docs/routing-rules.md | 34 ------------------------ docs/security.md | 34 ------------------------ 15 files changed, 67 insertions(+), 476 deletions(-) delete mode 100644 docs/references.md diff --git a/README.md b/README.md index 7d9e956c2..f2af4f228 100644 --- a/README.md +++ b/README.md @@ -5,34 +5,6 @@ A load balancer, proxy server, and configurable routing gateway for multiple -Find out more details from our documentation: +Find out more details from [our documentation at trinodb.github.io/trino-gateway](https://trinodb.github.io/trino-gateway) - - - - - - -
    - - - - - -
    - - \ No newline at end of file + diff --git a/docs/design.md b/docs/design.md index 5cf2e492d..d1a16ad96 100644 --- a/docs/design.md +++ b/docs/design.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Design Trino Gateway is composed of the following main components: diff --git a/docs/development.md b/docs/development.md index 11b71d6a5..fb45e1319 100644 --- a/docs/development.md +++ b/docs/development.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Development ## Build requirements @@ -61,8 +27,8 @@ verified and may run into unexpected issues. Run `./mvnw clean install` to build `trino-gateway`. VM options required for compilation and testing are specified in `.mvn/jvm.config`. -Edit the [config file](/gateway-ha/gateway-ha-config.yml) and update the mysql -db information. +Edit the configuration file `gateway-ha-config.yml` in the `gateway-ha` folder +and update the mysql db information. ``` cd gateway-ha/target/ @@ -71,8 +37,8 @@ java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net= #### In Docker -Follow the [separate instructions for building the container and running Trino -Gateway with docker compose](../docker/README.md) +Follow the separate instructions for building the container and running Trino +Gateway with docker compose from the `README.md` file in the `docker` folder. #### Common Run Failures @@ -109,8 +75,7 @@ for more details. ## Contributing Want to help build Trino Gateway? Check out our [contributing -documentation](../.github/CONTRIBUTING.md) - +documentation](https://github.com/trinodb/trino-gateway/blob/main/.github/CONTRIBUTING.md) ## Release process diff --git a/docs/docs.md b/docs/docs.md index eb4cd2438..70ddd222b 100644 --- a/docs/docs.md +++ b/docs/docs.md @@ -9,7 +9,18 @@ details are available in the following resources: * [Material for MkDocs website](https://squidfunk.github.io/mkdocs-material/) * [MkDocs website](https://www.mkdocs.org/) -## Usage with local Python +## Writing documentation + +Content is written as markdown files in the `docs` folder. + +Writing style guidelines are identical to the +[Trino documentation](https://github.com/trinodb/trino/tree/master/docs) and +website. + +Refer to the +[reference docs from Material for MkDocs for syntax information](https://squidfunk.github.io/mkdocs-material/reference/). + +## Running site locally Install `python` and `pipx`, for example with brew. @@ -29,3 +40,9 @@ Access the site in your browser at http://127.0.0.1:8000/ Edit the site sources as desired and refresh pages as needed. Some changes require a restart of mkdocs. + +## Configuring MKDocs + +MkDocs is configured in `mkdocs.yml`. Refer to the source, the +[Material for MkDocs website](https://squidfunk.github.io/mkdocs-material/) +and the [MkDocs website](https://www.mkdocs.org/) for more information. diff --git a/docs/gateway-api.md b/docs/gateway-api.md index 558a8da1e..26fd82c63 100644 --- a/docs/gateway-api.md +++ b/docs/gateway-api.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Gateway API ## Add or update a backend diff --git a/docs/index.md b/docs/index.md index 538ae83e0..f0e4fa70c 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,9 +1,30 @@ # Overview + + Trino Gateway is a load balancer, proxy server, and configurable routing gateway for multiple [Trino](https://trino.io) clusters. - +## Use cases, advantages, and features + +* Use of a single connections URL for client tool users with workload + distribution across multiple connectors. +* Automatic routing of queries to clusters for specific workloads. +* No-downtime upgrades for Trino clusters behind the Trino Gateway in a + blue/green model. +* Transparent change of capacity of Trino clusters behind the Trino Gateway + without user interruptions. +## Other resources - +* [Trino Gateway announment blog post](https://trino.io/blog/2023/09/28/trino-gateway) +* :fontawesome-brands-youtube:{ .youtube } [Many clusters and only one + gateway presentation at Trino Summit 2023](https://www.youtube.com/watch?v=2qwBcKmQSn0) +* [Lyft blog post](https://eng.lyft. + com/trino-infrastructure-at-lyft-b10adb9db01) +* [Pinterest blog post](https://medium. + com/pinterest-engineering/trino-at-pinterest-a8bda7515e52) +* [Zomato blog post](https://www.zomato. + com/blog/powering-data-analytics-with-trino) +* [Shopify blog post](https://shopify. + engineering/faster-trino-query-execution-infrastructure) diff --git a/docs/installation.md b/docs/installation.md index 52b49790e..5a03e4054 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Installation Trino Gateway is distributed as an executable JAR file. The [release @@ -69,10 +35,11 @@ distribution is installed. Trino Gateway requires a MySQL or PostgreSQL database. -Use the following scripts to initialize the database: +Use the following scripts in the `gateway-ha/src/main/resources/` folder to +initialize the database: -* [gateway-ha-persistence-mysql.sql](../gateway-ha/src/main/resources/gateway-ha-persistence-mysql.sql) for MySQL -* [gateway-ha-persistence-postgres.sql](../gateway-ha/src/main/resources/gateway-ha-persistence-postgres.sql) for PostgreSQL +* `gateway-ha-persistence-mysql.sql` for MySQL +* `gateway-ha-persistence-postgres.sql` for PostgreSQL The files are also included in the JAR file. @@ -121,9 +88,8 @@ HTTP if the request includes `X-Forwarded-Proto: HTTPS`. After downloading or building the JAR, rename it to `gateway-ha.jar`, and place it in a directory with read and write access such as `/opt/trinogateway`. -Copy the example config file -[gateway-ha-config.yml](../gateway-ha/gateway-ha-config.yml) into the same -directory, and update the configuration as needed. +Copy the example config file `gateway-ha-config.yml` from the `gateway-ha/` +directory into the same directory, and update the configuration as needed. Each component of the Trino Gateway has a corresponding node in the configuration YAML file. @@ -175,15 +141,15 @@ java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 \ Helm manages the deployment of Kubernetes applications by templating Kubernetes resources with a set of Helm charts. The Trino Gateway Helm chart consists -of the following compnents: +of the following components: * A `config` node for general configuration * `dataStoreSecret`, `backendStateSecret` and `authenticationSecret` for providing sensitive configurations through Kubernetes secrets, * Standard Helm options such as `replicaCount`, `resources` and `ingress`. -The default [values.yaml](../helm/trino-gateway/values.yaml) includes basic -configuration options as an example. For a simple deployment, proceed with +The default `values.yaml` found in the `helm/trino-gateway` folder includes +basic configuration options as an example. For a simple deployment, proceed with the following steps: Create a yaml file containing the configuration for your `datastore`: diff --git a/docs/operation.md b/docs/operation.md index c107899b0..78a0f420a 100644 --- a/docs/operation.md +++ b/docs/operation.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Operation The following aspects apply to managing Trino Gateway and the connected Trino @@ -41,19 +7,19 @@ clusters. Trino Gateway records history of recent queries and displays links to check query details page in respective trino cluster. -![trino.gateway.io](/docs/assets/trinogateway_query_history.png) +![trino.gateway.io](./assets/trinogateway_query_history.png) ## Admin UI - add and modify backend information The admin page is used to configure the gateway to multiple backends. Existing backend information can also be modified using the same. -![trino.gateway.io/entity](/docs/assets/trinogateway_ha_admin.png) +![trino.gateway.io/entity](./assets/trinogateway_ha_admin.png) ## Graceful shutdown -Trino Gateway supports graceful shutdown of trino clusters. Even when a cluster +Trino Gateway supports graceful shutdown of Trino clusters. Even when a cluster is deactivated, any submitted query states can still be retrieved based on the Query ID. @@ -65,9 +31,9 @@ To graceful shutdown a trino cluster without query losses, the steps are: running query count both hit 0. 3. Terminate the trino Coordinator & Worker Java process. -To gracefully shutdown a single worker process, see -[this](https://trino.io/docs/current/admin/graceful-shutdown.html) for the -operations. +To gracefully shutdown a single worker process, refer to the [Trino +documentation](https://trino.io/docs/current/admin/graceful-shutdown.html) for +more details. ## Query routing options - The default router selects the backend randomly to route the queries. @@ -75,6 +41,7 @@ operations. i.e. backend with the least number of queries running or queued from a particular user, then use `QueryCountBasedRouter`, it can be configured by adding the module name to config file's modules section like below + ``` modules: - io.trino.gateway.ha.module.HaGatewayProviderModule diff --git a/docs/quickstart.md b/docs/quickstart.md index d5730e443..4a8268935 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Quickstart The scripts from this quickstart guide set up a local environment consisting of diff --git a/docs/references.md b/docs/references.md deleted file mode 100644 index d8df9238d..000000000 --- a/docs/references.md +++ /dev/null @@ -1,45 +0,0 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - -# References :sparkles: - -[Lyft](https://eng.lyft.com/trino-infrastructure-at-lyft-b10adb9db01) - -[Pinterest](https://medium.com/pinterest-engineering/trino-at-pinterest-a8bda7515e52) - -[Zomato](https://www.zomato.com/blog/powering-data-analytics-with-trino) - -[Shopify](https://shopify.engineering/faster-trino-query-execution-infrastructure) - -{{Your org here}} diff --git a/docs/release-notes.md b/docs/release-notes.md index 295b8f720..51fd51d58 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Release notes ## Trino Gateway 8 (6 May 2024) @@ -103,9 +69,9 @@ Docker container `trinodb/trino-gateway:6` [gateway-ha-3-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/3/gateway-ha-3-jar-with-dependencies.jar) -The first release of Trino Gateway is based on the [Presto -Gateway](https://github.com/lyft/presto-gateway/) 1.9.5 codebase -[#4](#4), with these additions: +The first release of Trino Gateway is based on the +[Presto Gateway](https://github.com/lyft/presto-gateway/) 1.9.5 codebase +([#4](https://github.com/trinodb/trino-gateway/pull/4)) with these additions: * Add authentication and authorization with LDAP, OIDC and user list from config file. ([#9](https://github.com/trinodb/trino-gateway/pull/9)) diff --git a/docs/resource-groups-api.md b/docs/resource-groups-api.md index 9e4680f8b..4f2c2ac00 100644 --- a/docs/resource-groups-api.md +++ b/docs/resource-groups-api.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Resource groups API For resource group and selector apis, we can now specify a query parameter with diff --git a/docs/routing-logic.md b/docs/routing-logic.md index a3c3ed18b..1150fff59 100644 --- a/docs/routing-logic.md +++ b/docs/routing-logic.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Routing Logic ## Overview diff --git a/docs/routing-rules.md b/docs/routing-rules.md index e7a3733ef..9413f70df 100644 --- a/docs/routing-rules.md +++ b/docs/routing-rules.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Routing rules Trino Gateway includes a routing rules engine. diff --git a/docs/security.md b/docs/security.md index 147543e7a..9ff885fe6 100644 --- a/docs/security.md +++ b/docs/security.md @@ -1,37 +1,3 @@ -**Trino Gateway documentation** - - - - - - - - -
    - - - - - - - -
    - # Security Trino Gateway has its own security with its own authentication and authorization. From f28003aa2b9cacb10afd1b8f479114a030237578 Mon Sep 17 00:00:00 2001 From: sullis Date: Tue, 7 May 2024 14:00:13 -0700 Subject: [PATCH 071/148] Update GitHub action for Java to version 4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7132c0b38..9139ceb4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,7 @@ jobs: - name: Checkout source uses: actions/checkout@v3 - name: Install required Java distribution - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '21' distribution: 'temurin' From d10c2793df2da6ccd94fa75ebede4f18d159a4ff Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 7 May 2024 14:49:45 -0700 Subject: [PATCH 072/148] Shorten link to site --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2af4f228..b0250845a 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ A load balancer, proxy server, and configurable routing gateway for multiple -Find out more details from [our documentation at trinodb.github.io/trino-gateway](https://trinodb.github.io/trino-gateway) +Find out more details from our documentation at [trinodb.github. +io/trino-gateway](https://trinodb.github.io/trino-gateway) From bc4d1ae2bbe1764a1429b7c1b35678061434cbc2 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 7 May 2024 14:36:58 -0700 Subject: [PATCH 073/148] Correct link for Helm chart release note --- docs/release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 51fd51d58..e6b9dd966 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -9,7 +9,7 @@ Docker container `trinodb/trino-gateway:8` * Add a router policy based on query count per cluster. ([#98](https://github.com/trinodb/trino-gateway/pull/98)) * Add a router policy for select paths based on cookie content. ([#188](https://github.com/trinodb/trino-gateway/pull/188)) * Support configuring access permissions for UI pages. ([#296](https://github.com/trinodb/trino-gateway/pull/296)) -* Add Helm chart for Kubernetes deployments. ([#296](https://github.com/trinodb/trino-gateway/pull/296)) +* Add Helm chart for Kubernetes deployments. ([#87](https://github.com/trinodb/trino-gateway/issues/87)) * Require Java 21 for build and runtime. ([#225](https://github.com/trinodb/trino-gateway/pull/225)) * Fix the `userInfo` resource to pass role information used by the API, so that the webapp authentication matches the API authentication. ([#310](https://github.com/trinodb/trino-gateway/pull/310)) From 5b0c232f9c5404dc652c8cedc0941d3358b1924f Mon Sep 17 00:00:00 2001 From: "TzuHsiang (Andy) Su" Date: Wed, 8 May 2024 19:12:22 -0400 Subject: [PATCH 074/148] Ensure inclusion of UI in JAR and container artifacts --- gateway-ha/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index c1f1107af..12333647b 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -559,9 +559,9 @@ copy-resources - generate-resources + prepare-package - src/main/resources/static + ${project.build.outputDirectory}/static true From d0669595a1b43f344a888988f512ab120daf2d58 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Wed, 8 May 2024 14:14:04 -0700 Subject: [PATCH 075/148] Add release notes for Trino Gateway 9 --- docs/release-notes.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index e6b9dd966..b7d0b2919 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,12 @@ # Release notes +## Trino Gateway 9 (8 May 2024) + +[JAR file gateway-ha-9-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/9/gateway-ha-9-jar-with-dependencies.jar), +Docker container `trinodb/trino-gateway:9` + +* Ensure inclusion of UI in JAR and container artifacts. ([#337](https://github.com/trinodb/trino-gateway/pull/337)) + ## Trino Gateway 8 (6 May 2024) [JAR file gateway-ha-8-jar-with-dependencies.jar](https://repo1.maven.org/maven2/io/trino/gateway/gateway-ha/8/gateway-ha-8-jar-with-dependencies.jar), From bffa877493ed149bd6e8e63311ea1766d14866db Mon Sep 17 00:00:00 2001 From: Martin Traverso Date: Wed, 8 May 2024 16:16:13 -0700 Subject: [PATCH 076/148] [maven-release-plugin] prepare release 9 --- gateway-ha/pom.xml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 12333647b..890ca50aa 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -6,7 +6,7 @@ io.trino.gateway trino-gateway-parent - 9-SNAPSHOT + 9 ../ diff --git a/pom.xml b/pom.xml index 0029eb3b5..764ec24f3 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.trino.gateway trino-gateway-parent - 9-SNAPSHOT + 9 pom trino-gateway-parent @@ -32,7 +32,7 @@ scm:git:git://github.com/trinodb/trino-gateway.git - HEAD + 9 https://github.com/trinodb/trino-gateway From 8da84fee2f2cadec33a57fd4f4dedf476cd43946 Mon Sep 17 00:00:00 2001 From: Martin Traverso Date: Wed, 8 May 2024 16:16:13 -0700 Subject: [PATCH 077/148] [maven-release-plugin] prepare for next development iteration --- gateway-ha/pom.xml | 2 +- pom.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 890ca50aa..69f8d5a58 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -6,7 +6,7 @@ io.trino.gateway trino-gateway-parent - 9 + 10-SNAPSHOT ../ diff --git a/pom.xml b/pom.xml index 764ec24f3..0cb5c0e5e 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ io.trino.gateway trino-gateway-parent - 9 + 10-SNAPSHOT pom trino-gateway-parent @@ -32,7 +32,7 @@ scm:git:git://github.com/trinodb/trino-gateway.git - 9 + HEAD https://github.com/trinodb/trino-gateway From 675a4e93a5d5825acc068ac63aeddac46be4c546 Mon Sep 17 00:00:00 2001 From: andythsu Date: Thu, 9 May 2024 23:17:56 -0400 Subject: [PATCH 078/148] Remove BackendState record --- .../ha/resource/GatewayWebAppResource.java | 8 ++++---- .../gateway/ha/resource/PublicResource.java | 2 +- .../ha/router/BackendStateManager.java | 20 ++----------------- 3 files changed, 7 insertions(+), 23 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java index 7ad73954c..696685db5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayWebAppResource.java @@ -15,6 +15,7 @@ import com.google.common.base.Strings; import com.google.inject.Inject; +import io.trino.gateway.ha.clustermonitor.ClusterStats; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.ha.domain.Result; import io.trino.gateway.ha.domain.TableData; @@ -86,11 +87,10 @@ public Response getAllBackends() { List allBackends = gatewayBackendManager.getAllBackends(); List data = allBackends.stream().map(b -> { - BackendStateManager.BackendState backendState = backendStateManager.getBackendState(b); - Map state = backendState.state(); + ClusterStats backendState = backendStateManager.getBackendState(b); BackendResponse backendResponse = new BackendResponse(); - backendResponse.setQueued(state.get("QUEUED")); - backendResponse.setRunning(state.get("RUNNING")); + backendResponse.setQueued(backendState.queuedQueryCount()); + backendResponse.setRunning(backendState.runningQueryCount()); backendResponse.setName(b.getName()); backendResponse.setProxyTo(b.getProxyTo()); backendResponse.setActive(b.isActive()); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/PublicResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/PublicResource.java index 3587d87a1..7f7b5d664 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/PublicResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/PublicResource.java @@ -59,7 +59,7 @@ public Response getBackend(@PathParam("name") String name) public Response getBackendState(@PathParam("name") String name) { return gatewayBackendManager.getBackendByName(name).map(backendStateManager::getBackendState) - .map(state -> Response.ok(state.state()).build()) + .map(state -> Response.ok(state).build()) .orElseGet(() -> Response.status(404).build()); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/BackendStateManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/BackendStateManager.java index 471e91c1f..8fa7de46e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/BackendStateManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/BackendStateManager.java @@ -13,15 +13,12 @@ */ package io.trino.gateway.ha.router; -import com.google.common.collect.ImmutableMap; import io.trino.gateway.ha.clustermonitor.ClusterStats; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import java.util.HashMap; import java.util.Map; -import static java.util.Objects.requireNonNull; - public class BackendStateManager { private final Map clusterStats; @@ -31,27 +28,14 @@ public BackendStateManager() this.clusterStats = new HashMap<>(); } - public BackendState getBackendState(ProxyBackendConfiguration backend) + public ClusterStats getBackendState(ProxyBackendConfiguration backend) { String name = backend.getName(); - ClusterStats stats = clusterStats.getOrDefault(backend.getName(), ClusterStats.builder(name).build()); - Map state = new HashMap<>(); - state.put("QUEUED", stats.queuedQueryCount()); - state.put("RUNNING", stats.runningQueryCount()); - return new BackendState(name, state); + return clusterStats.getOrDefault(name, ClusterStats.builder(name).build()); } public void updateStates(String clusterId, ClusterStats stats) { clusterStats.put(clusterId, stats); } - - public record BackendState(String name, Map state) - { - public BackendState - { - requireNonNull(name, "name is null"); - state = ImmutableMap.copyOf(requireNonNull(state, "state is null")); - } - } } From 475d8e892736ee7a518613174be48e6f92a4d2ce Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 14 May 2024 12:50:14 +0900 Subject: [PATCH 079/148] Validate URI in config Validate URI in config for early error detection. --- .../gateway/ha/config/OAuthConfiguration.java | 48 +++++++------------ .../gateway/ha/security/LbOAuthManager.java | 16 +++---- 2 files changed, 26 insertions(+), 38 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java index a65f1d83b..547c9b956 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/OAuthConfiguration.java @@ -13,35 +13,23 @@ */ package io.trino.gateway.ha.config; +import java.net.URI; import java.util.List; +import java.util.Optional; public class OAuthConfiguration { private String issuer; private String clientId; private String clientSecret; - private String tokenEndpoint; - private String authorizationEndpoint; - private String jwkEndpoint; + private URI tokenEndpoint; + private URI authorizationEndpoint; + private URI jwkEndpoint; private List scopes; - private String redirectUrl; + private URI redirectUrl; private String userIdField; private List audiences; - private String redirectWebUrl; - - public OAuthConfiguration(String issuer, String clientId, String clientSecret, String tokenEndpoint, String authorizationEndpoint, String jwkEndpoint, List scopes, String redirectUrl, String userIdField, List audiences) - { - this.issuer = issuer; - this.clientId = clientId; - this.clientSecret = clientSecret; - this.tokenEndpoint = tokenEndpoint; - this.authorizationEndpoint = authorizationEndpoint; - this.jwkEndpoint = jwkEndpoint; - this.scopes = scopes; - this.redirectUrl = redirectUrl; - this.userIdField = userIdField; - this.audiences = audiences; - } + private URI redirectWebUrl; public OAuthConfiguration() {} @@ -75,34 +63,34 @@ public void setClientSecret(String clientSecret) this.clientSecret = clientSecret; } - public String getTokenEndpoint() + public URI getTokenEndpoint() { return this.tokenEndpoint; } public void setTokenEndpoint(String tokenEndpoint) { - this.tokenEndpoint = tokenEndpoint; + this.tokenEndpoint = URI.create(tokenEndpoint); } - public String getAuthorizationEndpoint() + public URI getAuthorizationEndpoint() { return this.authorizationEndpoint; } public void setAuthorizationEndpoint(String authorizationEndpoint) { - this.authorizationEndpoint = authorizationEndpoint; + this.authorizationEndpoint = URI.create(authorizationEndpoint); } - public String getJwkEndpoint() + public URI getJwkEndpoint() { return this.jwkEndpoint; } public void setJwkEndpoint(String jwkEndpoint) { - this.jwkEndpoint = jwkEndpoint; + this.jwkEndpoint = URI.create(jwkEndpoint); } public List getScopes() @@ -115,14 +103,14 @@ public void setScopes(List scopes) this.scopes = scopes; } - public String getRedirectUrl() + public URI getRedirectUrl() { return this.redirectUrl; } public void setRedirectUrl(String redirectUrl) { - this.redirectUrl = redirectUrl; + this.redirectUrl = URI.create(redirectUrl); } public String getUserIdField() @@ -145,13 +133,13 @@ public void setAudiences(List audiences) this.audiences = audiences; } - public String getRedirectWebUrl() + public Optional getRedirectWebUrl() { - return this.redirectWebUrl; + return Optional.ofNullable(this.redirectWebUrl); } public void setRedirectWebUrl(String redirectWebUrl) { - this.redirectWebUrl = redirectWebUrl; + this.redirectWebUrl = URI.create(redirectWebUrl); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index 1e60d667e..813a0d629 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -72,11 +72,11 @@ public String getUserIdField() */ public Response exchangeCodeForToken(String code, String redirectLocation) { - String tokenEndpoint = oauthConfig.getTokenEndpoint(); + String tokenEndpoint = oauthConfig.getTokenEndpoint().toString(); String clientId = oauthConfig.getClientId(); String clientSecret = oauthConfig.getClientSecret(); - String redirectUri = oauthConfig.getRedirectUrl(); - String redirectWebUrl = oauthConfig.getRedirectWebUrl(); + String redirectUri = oauthConfig.getRedirectUrl().toString(); + Optional redirectWebUrl = oauthConfig.getRedirectWebUrl(); Client oauthClient = ClientBuilder.newBuilder().build(); Form form = new Form().param("grant_type", "authorization_code") @@ -99,7 +99,7 @@ public Response exchangeCodeForToken(String code, String redirectLocation) OidcTokens tokens = tokenResponse.readEntity(OidcTokens.class); return Response.status(302) - .location(URI.create(redirectWebUrl == null ? redirectLocation : redirectWebUrl)) + .location(redirectWebUrl.orElse(URI.create(redirectLocation))) .cookie(SessionCookie.getTokenCookie(tokens.getIdToken())) .build(); } @@ -111,9 +111,9 @@ public Response exchangeCodeForToken(String code, String redirectLocation) */ public String getAuthorizationCode() { - String authorizationEndpoint = oauthConfig.getAuthorizationEndpoint(); + String authorizationEndpoint = oauthConfig.getAuthorizationEndpoint().toString(); String clientId = oauthConfig.getClientId(); - String redirectUrl = oauthConfig.getRedirectUrl(); + String redirectUrl = oauthConfig.getRedirectUrl().toString(); String scopes = String.join("+", oauthConfig.getScopes()); return format( "%s?client_id=%s&response_type=code&redirect_uri=%s&scope=%s", @@ -134,8 +134,8 @@ public Optional> getClaimsFromIdToken(String idToken) try { DecodedJWT jwt = JWT.decode(idToken); - String jwkEndpoint = oauthConfig.getJwkEndpoint(); - JwkProvider provider = new UrlJwkProvider(new URL(jwkEndpoint)); + URI jwkEndpoint = oauthConfig.getJwkEndpoint(); + JwkProvider provider = new UrlJwkProvider(jwkEndpoint.toURL()); Jwk jwk = provider.get(jwt.getKeyId()); RSAPublicKey publicKey = (RSAPublicKey) jwk.getPublicKey(); From b384af76c62fea3b6dbf1bed1800b002b1662e59 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 14 May 2024 13:50:08 +0900 Subject: [PATCH 080/148] Use Nimbus OAuth SDK for OIDC --- gateway-ha/pom.xml | 13 ++ .../gateway/ha/security/LbOAuthManager.java | 218 ++++-------------- .../gateway/ha/security/TestOidcToken.java | 53 ----- 3 files changed, 58 insertions(+), 226 deletions(-) delete mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOidcToken.java diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 69f8d5a58..4d983ac13 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -78,6 +78,19 @@ ${dep.guice.version} + + com.nimbusds + nimbus-jose-jwt + 9.37.3 + + + + com.nimbusds + oauth2-oidc-sdk + 11.10.1 + jdk11 + + com.squareup.okhttp3 okhttp diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index 813a0d629..e23d49b0c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -19,28 +19,35 @@ import com.auth0.jwt.JWT; import com.auth0.jwt.interfaces.Claim; import com.auth0.jwt.interfaces.DecodedJWT; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.nimbusds.oauth2.sdk.AuthorizationCode; +import com.nimbusds.oauth2.sdk.AuthorizationCodeGrant; +import com.nimbusds.oauth2.sdk.ParseException; +import com.nimbusds.oauth2.sdk.Scope; +import com.nimbusds.oauth2.sdk.TokenRequest; +import com.nimbusds.oauth2.sdk.TokenResponse; +import com.nimbusds.oauth2.sdk.auth.ClientSecretBasic; +import com.nimbusds.oauth2.sdk.auth.Secret; +import com.nimbusds.oauth2.sdk.http.HTTPResponse; +import com.nimbusds.oauth2.sdk.id.ClientID; +import com.nimbusds.openid.connect.sdk.AuthenticationRequest; +import com.nimbusds.openid.connect.sdk.OIDCTokenResponse; +import com.nimbusds.openid.connect.sdk.OIDCTokenResponseParser; import io.airlift.log.Logger; import io.trino.gateway.ha.config.OAuthConfiguration; -import jakarta.ws.rs.client.Client; -import jakarta.ws.rs.client.ClientBuilder; -import jakarta.ws.rs.client.Entity; -import jakarta.ws.rs.core.Form; import jakarta.ws.rs.core.Response; +import java.io.IOException; import java.net.URI; -import java.net.URL; import java.security.interfaces.RSAPublicKey; import java.util.Collections; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.Optional; import java.util.stream.Stream; -import static java.lang.String.format; +import static com.nimbusds.oauth2.sdk.ResponseType.CODE; +import static jakarta.ws.rs.core.Response.Status.FOUND; +import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED; public class LbOAuthManager { @@ -72,35 +79,30 @@ public String getUserIdField() */ public Response exchangeCodeForToken(String code, String redirectLocation) { - String tokenEndpoint = oauthConfig.getTokenEndpoint().toString(); - String clientId = oauthConfig.getClientId(); - String clientSecret = oauthConfig.getClientSecret(); - String redirectUri = oauthConfig.getRedirectUrl().toString(); - Optional redirectWebUrl = oauthConfig.getRedirectWebUrl(); - Client oauthClient = ClientBuilder.newBuilder().build(); + TokenRequest tokenRequest = new TokenRequest( + oauthConfig.getTokenEndpoint(), + new ClientSecretBasic(new ClientID(oauthConfig.getClientId()), new Secret(oauthConfig.getClientSecret())), + new AuthorizationCodeGrant(new AuthorizationCode(code), oauthConfig.getRedirectUrl())); - Form form = new Form().param("grant_type", "authorization_code") - .param("client_id", clientId) - .param("client_secret", clientSecret) - .param("code", code) - .param("redirect_uri", redirectUri); - - Response tokenResponse = oauthClient - .target(tokenEndpoint) - .request() - .post(Entity.form(form)); - - if (tokenResponse.getStatusInfo().getFamily() != Response.Status.Family.SUCCESSFUL) { - String message = format("token response failed with code %d - %s", tokenResponse.getStatus(), tokenResponse.readEntity(String.class)); - log.error(message); - return Response.status(500).entity(message).build(); + TokenResponse tokenResponse; + try { + tokenResponse = OIDCTokenResponseParser.parse(tokenRequest.toHTTPRequest().send()); + } + catch (ParseException | IOException e) { + log.error("Failed to parse token response: %s", e.getMessage()); + return Response.status(UNAUTHORIZED).build(); } - OidcTokens tokens = tokenResponse.readEntity(OidcTokens.class); + if (!tokenResponse.indicatesSuccess()) { + HTTPResponse httpResponse = tokenResponse.toErrorResponse().toHTTPResponse(); + log.error("token response failed with code %d - %s", httpResponse.getStatusCode(), httpResponse.getBody()); + return Response.status(UNAUTHORIZED).build(); + } - return Response.status(302) - .location(redirectWebUrl.orElse(URI.create(redirectLocation))) - .cookie(SessionCookie.getTokenCookie(tokens.getIdToken())) + OIDCTokenResponse successResponse = (OIDCTokenResponse) tokenResponse.toSuccessResponse(); + return Response.status(FOUND) + .location(oauthConfig.getRedirectWebUrl().orElse(URI.create(redirectLocation))) + .cookie(SessionCookie.getTokenCookie(successResponse.getOIDCTokens().getIDToken().serialize())) .build(); } @@ -111,13 +113,14 @@ public Response exchangeCodeForToken(String code, String redirectLocation) */ public String getAuthorizationCode() { - String authorizationEndpoint = oauthConfig.getAuthorizationEndpoint().toString(); - String clientId = oauthConfig.getClientId(); - String redirectUrl = oauthConfig.getRedirectUrl().toString(); - String scopes = String.join("+", oauthConfig.getScopes()); - return format( - "%s?client_id=%s&response_type=code&redirect_uri=%s&scope=%s", - authorizationEndpoint, clientId, redirectUrl, scopes); + AuthenticationRequest request = new AuthenticationRequest.Builder( + CODE, + new Scope(oauthConfig.getScopes().toArray(String[]::new)), + new ClientID(oauthConfig.getClientId()), + oauthConfig.getRedirectUrl()) + .endpointURI(oauthConfig.getAuthorizationEndpoint()) + .build(); + return request.toURI().toString(); } /** @@ -161,135 +164,4 @@ public List processPagePermissions(List roles) .flatMap(role -> Stream.of(pagePermissions.get(role).split("_"))) .distinct().toList(); } - - @JsonIgnoreProperties(ignoreUnknown = true) - static final class OidcTokens - { - private final String accessToken; - private final String idToken; - private final String scope; - private final String refreshToken; - private final String tokenType; - private final String expiresIn; - - @JsonCreator - public OidcTokens(@JsonProperty("id_token") String idToken, - @JsonProperty("access_token") String accessToken, - @JsonProperty("refresh_token") String refreshToken, - @JsonProperty("token_type") String tokenType, - @JsonProperty("expires_in") String expiresIn, - @JsonProperty("scope") String scope) - { - this.accessToken = accessToken; - this.idToken = idToken; - this.tokenType = tokenType; - this.expiresIn = expiresIn; - this.scope = scope; - this.refreshToken = refreshToken; - } - - @JsonProperty - public String getAccessToken() - { - return this.accessToken; - } - - @JsonProperty - public String getIdToken() - { - return this.idToken; - } - - @JsonProperty - public String getScope() - { - return this.scope; - } - - @JsonProperty - public String getRefreshToken() - { - return this.refreshToken; - } - - @JsonProperty - public String getTokenType() - { - return this.tokenType; - } - - @JsonProperty - public String getExpiresIn() - { - return this.expiresIn; - } - - @Override - public boolean equals(final Object o) - { - if (o == this) { - return true; - } - if (!(o instanceof OidcTokens other)) { - return false; - } - final Object accessToken = this.getAccessToken(); - final Object otherAccessToken = other.getAccessToken(); - if (!Objects.equals(accessToken, otherAccessToken)) { - return false; - } - final Object idToken = this.getIdToken(); - final Object otherIdToken = other.getIdToken(); - if (!Objects.equals(idToken, otherIdToken)) { - return false; - } - final Object scope = this.getScope(); - final Object otherScope = other.getScope(); - if (!Objects.equals(scope, otherScope)) { - return false; - } - final Object refreshToken = this.getRefreshToken(); - final Object otherRefreshToken = other.getRefreshToken(); - if (!Objects.equals(refreshToken, otherRefreshToken)) { - return false; - } - final Object tokenType = this.getTokenType(); - final Object otherTokenType = other.getTokenType(); - if (!Objects.equals(tokenType, otherTokenType)) { - return false; - } - final Object expiresIn = this.getExpiresIn(); - final Object otherExpiresIn = other.getExpiresIn(); - return Objects.equals(expiresIn, otherExpiresIn); - } - - @Override - public int hashCode() - { - final int prime = 59; - int result = 1; - final Object accessToken = this.getAccessToken(); - result = result * prime + (accessToken == null ? 43 : accessToken.hashCode()); - final Object idToken = this.getIdToken(); - result = result * prime + (idToken == null ? 43 : idToken.hashCode()); - final Object scope = this.getScope(); - result = result * prime + (scope == null ? 43 : scope.hashCode()); - final Object refreshToken = this.getRefreshToken(); - result = result * prime + (refreshToken == null ? 43 : refreshToken.hashCode()); - final Object tokenType = this.getTokenType(); - result = result * prime + (tokenType == null ? 43 : tokenType.hashCode()); - final Object expiresIn = this.getExpiresIn(); - result = result * prime + (expiresIn == null ? 43 : expiresIn.hashCode()); - return result; - } - - @Override - public String toString() - { - return "LbOAuthManager.OidcTokens(accessToken=" + this.getAccessToken() + - ", idToken=" + this.getIdToken() + ", scope=" + this.getScope() + - ", refreshToken=" + this.getRefreshToken() + ", tokenType=" + this.getTokenType() + - ", expiresIn=" + this.getExpiresIn() + ")"; - } - } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOidcToken.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOidcToken.java deleted file mode 100644 index d65802d4d..000000000 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOidcToken.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.security; - -import com.fasterxml.jackson.databind.ObjectMapper; -import io.trino.gateway.ha.security.LbOAuthManager.OidcTokens; -import org.intellij.lang.annotations.Language; -import org.junit.jupiter.api.Test; - -import static org.assertj.core.api.Assertions.assertThat; - -public class TestOidcToken -{ - @Test - public void testParseTokenParamsGracefully() - throws Exception - { - // This test is to make sure that we simulate the condition where - // the OIDC providers send additional parameters in the token - // 'to_be_ignored' parameter should not cause any parsing exception - // All the other parameters should have the correct values - @Language("JSON") - String jsonStr = """ - { - "id_token": "ABC235234", - "access_token": "AcessABCD123", - "refresh_token": "RefreshTKN", - "token_type": "TOKENType", - "expires_in": "123456", - "to_be_ignored": "XYX123456", - "scope": "global" - } - """; - OidcTokens oidcTokens = new ObjectMapper().readValue(jsonStr, OidcTokens.class); - - assertThat(oidcTokens.getIdToken()).isEqualTo("ABC235234"); - assertThat(oidcTokens.getAccessToken()).isEqualTo("AcessABCD123"); - assertThat(oidcTokens.getRefreshToken()).isEqualTo("RefreshTKN"); - assertThat(oidcTokens.getExpiresIn()).isEqualTo("123456"); - assertThat(oidcTokens.getScope()).isEqualTo("global"); - } -} From c32feecb5a149b24031d852183bc0eb6270ab31c Mon Sep 17 00:00:00 2001 From: andythsu Date: Mon, 20 May 2024 17:30:15 -0400 Subject: [PATCH 081/148] Set backend health to isActive() when it's modified on UI --- .../java/io/trino/gateway/ha/resource/EntityEditorResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java index 7dcc7e0c3..837d37eba 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/EntityEditorResource.java @@ -87,7 +87,7 @@ public Response updateEntity( OBJECT_MAPPER.readValue(jsonPayload, ProxyBackendConfiguration.class); gatewayBackendManager.updateBackend(backend); log.info("Setting up the backend %s with healthy state", backend.getName()); - routingManager.updateBackEndHealth(backend.getName(), true); + routingManager.updateBackEndHealth(backend.getName(), backend.isActive()); break; case RESOURCE_GROUP: ResourceGroupsDetail resourceGroupDetails = OBJECT_MAPPER.readValue(jsonPayload, From 643da611a1e8daee74699f883c92a0b700f053d1 Mon Sep 17 00:00:00 2001 From: Will Morrison Date: Thu, 23 May 2024 13:29:40 -0400 Subject: [PATCH 082/148] Fix install and probe bugs (#348) --- helm/trino-gateway/templates/deployment.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml index 03b8945b5..59dc2d7f4 100644 --- a/helm/trino-gateway/templates/deployment.yaml +++ b/helm/trino-gateway/templates/deployment.yaml @@ -17,7 +17,7 @@ spec: # Include the version of trino-gateway-configuration as an input to the deployment checksum. This causes pods to restart on helm update # whether the chart `config` is updated or if one of the configuration secrets is updated. Helm template must be run with the # --dry-run=server option to prevent a nil pointer - checksum/config: {{ (lookup "v1" "Secret" .Release.Namespace "trino-gateway-configuration").metadata.resourceVersion | sha256sum}} + checksum/config: {{ (coalesce (lookup "v1" "Secret" .Release.Namespace "trino-gateway-configuration").metadata (dict "resourceVersion" "0")).resourceVersion | sha256sum}} {{- with .Values.podAnnotations }} {{- toYaml . | nindent 8 }} {{- end }} @@ -68,18 +68,18 @@ spec: httpGet: path: / port: {{ (index .Values.config.server.adminConnectors 0).port}} - initialDelaySeconds: .Values.livenessProbe.initialDelaySeconds - periodSeconds: .Values.livenessProbe.periodSeconds - failureThreshold: .Values.livenessProbe.failureThreshold - timeoutSeconds: .Values.livenessProbe.timeoutSeconds + initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.livenessProbe.periodSeconds }} + failureThreshold: {{ .Values.livenessProbe.failureThreshold }} + timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }} readinessProbe: httpGet: path: / port: {{ (index .Values.config.server.adminConnectors 0).port}} - initialDelaySeconds: .Values.readinessProbe.initialDelaySeconds - periodSeconds: .Values.readinessProbe.periodSeconds - failureThreshold: .Values.readinessProbe.failureThreshold - timeoutSeconds: .Values.readinessProbe.timeoutSeconds + initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }} + periodSeconds: {{ .Values.readinessProbe.periodSeconds }} + failureThreshold: {{ .Values.readinessProbe.failureThreshold }} + timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: From 0bf3a6ce3876059d0d89e5179de2e31e577b12fa Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Fri, 24 May 2024 18:38:54 +0900 Subject: [PATCH 083/148] Use com.mysql:mysql-connector-j --- gateway-ha/pom.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 4d983ac13..8df6bf4c0 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -372,6 +372,13 @@ jmxutils + + com.mysql + mysql-connector-j + ${dep.mysqlconnector.version} + runtime + + io.dropwizard dropwizard-views-freemarker @@ -386,13 +393,6 @@ runtime - - mysql - mysql-connector-java - ${dep.mysqlconnector.version} - runtime - - org.ehcache ehcache From 1a9185e64de6e6e8102853b543e6cd19c3d9dd66 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 26 May 2024 13:35:37 +0900 Subject: [PATCH 084/148] Fix links in the overview page --- docs/index.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/docs/index.md b/docs/index.md index f0e4fa70c..8f8a86774 100644 --- a/docs/index.md +++ b/docs/index.md @@ -20,11 +20,7 @@ gateway for multiple [Trino](https://trino.io) clusters. * [Trino Gateway announment blog post](https://trino.io/blog/2023/09/28/trino-gateway) * :fontawesome-brands-youtube:{ .youtube } [Many clusters and only one gateway presentation at Trino Summit 2023](https://www.youtube.com/watch?v=2qwBcKmQSn0) -* [Lyft blog post](https://eng.lyft. - com/trino-infrastructure-at-lyft-b10adb9db01) -* [Pinterest blog post](https://medium. - com/pinterest-engineering/trino-at-pinterest-a8bda7515e52) -* [Zomato blog post](https://www.zomato. - com/blog/powering-data-analytics-with-trino) -* [Shopify blog post](https://shopify. - engineering/faster-trino-query-execution-infrastructure) +* [Lyft blog post](https://eng.lyft.com/trino-infrastructure-at-lyft-b10adb9db01) +* [Pinterest blog post](https://medium.com/pinterest-engineering/trino-at-pinterest-a8bda7515e52) +* [Zomato blog post](https://www.zomato.com/blog/powering-data-analytics-with-trino) +* [Shopify blog post](https://shopify.engineering/faster-trino-query-execution-infrastructure) From d6be99a3c85dd3ce2350641c35518a4ef2a555f7 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 14 May 2024 17:02:19 +0900 Subject: [PATCH 085/148] Add state and nonce verification in OIDC --- .../gateway/ha/resource/LoginResource.java | 33 ++++++-- .../gateway/ha/security/LbOAuthManager.java | 49 ++++++++++-- .../trino/gateway/ha/security/OidcCookie.java | 79 +++++++++++++++++++ 3 files changed, 150 insertions(+), 11 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java index 1f1840c4d..4a2a7c633 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java @@ -15,14 +15,17 @@ import com.google.common.collect.ImmutableList; import com.google.inject.Inject; +import io.airlift.log.Logger; import io.trino.gateway.ha.domain.Result; import io.trino.gateway.ha.domain.request.RestLoginRequest; import io.trino.gateway.ha.security.LbFormAuthManager; import io.trino.gateway.ha.security.LbOAuthManager; import io.trino.gateway.ha.security.LbPrincipal; +import io.trino.gateway.ha.security.OidcCookie; import jakarta.annotation.Nullable; import jakarta.annotation.security.RolesAllowed; import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.CookieParam; import jakarta.ws.rs.GET; import jakarta.ws.rs.POST; import jakarta.ws.rs.Path; @@ -30,6 +33,7 @@ import jakarta.ws.rs.QueryParam; import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Cookie; import jakarta.ws.rs.core.MediaType; import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.SecurityContext; @@ -37,11 +41,18 @@ import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.Optional; + +import static io.trino.gateway.ha.security.LbOAuthManager.buildUnauthorizedResponse; +import static io.trino.gateway.ha.security.OidcCookie.OIDC_COOKIE; @Path("/") @Produces(MediaType.APPLICATION_JSON) public class LoginResource { + private static final Logger log = Logger.get(LoginResource.class); + public static final String CALLBACK_ENDPOINT = "oidc/callback"; + private final LbOAuthManager oauthManager; private final LbFormAuthManager formAuthManager; @@ -61,18 +72,30 @@ public Response login() if (oauthManager == null) { throw new WebApplicationException("OAuth configuration is not setup"); } - String authorizationUrl = oauthManager.getAuthorizationCode(); - return Response.ok(Result.ok("Ok", authorizationUrl)).build(); + return oauthManager.getAuthorizationCodeResponse(); } - @Path("oidc/callback") + @Path(CALLBACK_ENDPOINT) @GET - public Response callback(@QueryParam("code") String code) + public Response callback( + @QueryParam("code") String code, + @QueryParam("state") String state, + @CookieParam(OIDC_COOKIE) Cookie cookie) { if (oauthManager == null) { throw new WebApplicationException("OAuth configuration is not setup"); } - return oauthManager.exchangeCodeForToken(code, "/"); + if (cookie == null) { + log.error("OIDC cookie doesn't exist"); + return buildUnauthorizedResponse(); + } + Optional cookieState = OidcCookie.getState(cookie); + Optional nonce = OidcCookie.getNonce(cookie); + if (cookieState.isEmpty() || !cookieState.orElseThrow().equals(state) || nonce.isEmpty()) { + log.error("Invalid OIDC cookie"); + return buildUnauthorizedResponse(); + } + return oauthManager.exchangeCodeForToken(code, nonce.orElseThrow(), "/"); } @POST diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index e23d49b0c..3e2ea4c98 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -29,11 +29,14 @@ import com.nimbusds.oauth2.sdk.auth.Secret; import com.nimbusds.oauth2.sdk.http.HTTPResponse; import com.nimbusds.oauth2.sdk.id.ClientID; +import com.nimbusds.oauth2.sdk.id.State; import com.nimbusds.openid.connect.sdk.AuthenticationRequest; +import com.nimbusds.openid.connect.sdk.Nonce; import com.nimbusds.openid.connect.sdk.OIDCTokenResponse; import com.nimbusds.openid.connect.sdk.OIDCTokenResponseParser; import io.airlift.log.Logger; import io.trino.gateway.ha.config.OAuthConfiguration; +import io.trino.gateway.ha.domain.Result; import jakarta.ws.rs.core.Response; import java.io.IOException; @@ -45,9 +48,12 @@ import java.util.Optional; import java.util.stream.Stream; +import static com.google.common.hash.Hashing.sha256; import static com.nimbusds.oauth2.sdk.ResponseType.CODE; +import static com.nimbusds.openid.connect.sdk.claims.IDTokenClaimsSet.NONCE_CLAIM_NAME; import static jakarta.ws.rs.core.Response.Status.FOUND; import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED; +import static java.nio.charset.StandardCharsets.UTF_8; public class LbOAuthManager { @@ -74,10 +80,11 @@ public String getUserIdField() * Sets it in a cookie and redirects back to a location. * * @param code the authorization code obtained from the authorization server + * @param nonce the nonce used in authentication request before hash * @param redirectLocation the application path to redirect back to * @return redirect response with a Set-Cookie header */ - public Response exchangeCodeForToken(String code, String redirectLocation) + public Response exchangeCodeForToken(String code, String nonce, String redirectLocation) { TokenRequest tokenRequest = new TokenRequest( oauthConfig.getTokenEndpoint(), @@ -90,19 +97,29 @@ public Response exchangeCodeForToken(String code, String redirectLocation) } catch (ParseException | IOException e) { log.error("Failed to parse token response: %s", e.getMessage()); - return Response.status(UNAUTHORIZED).build(); + return buildUnauthorizedResponse(); } if (!tokenResponse.indicatesSuccess()) { HTTPResponse httpResponse = tokenResponse.toErrorResponse().toHTTPResponse(); log.error("token response failed with code %d - %s", httpResponse.getStatusCode(), httpResponse.getBody()); - return Response.status(UNAUTHORIZED).build(); + return buildUnauthorizedResponse(); } OIDCTokenResponse successResponse = (OIDCTokenResponse) tokenResponse.toSuccessResponse(); + String idToken = successResponse.getOIDCTokens().getIDToken().serialize(); + + Optional result = getClaimsFromIdToken(idToken) + .map(map -> map.get(NONCE_CLAIM_NAME)) + .filter(nonceInClaim -> nonceInClaim.asString().equals(hashNonce(nonce))); + if (result.isEmpty()) { + log.error("Invalid nonce"); + return buildUnauthorizedResponse(); + } return Response.status(FOUND) .location(oauthConfig.getRedirectWebUrl().orElse(URI.create(redirectLocation))) - .cookie(SessionCookie.getTokenCookie(successResponse.getOIDCTokens().getIDToken().serialize())) + .cookie(SessionCookie.getTokenCookie(idToken)) + .cookie(OidcCookie.delete()) .build(); } @@ -111,16 +128,22 @@ public Response exchangeCodeForToken(String code, String redirectLocation) * * @return redirect response to the authorization provider */ - public String getAuthorizationCode() + public Response getAuthorizationCodeResponse() { + State state = new State(); + Nonce nonce = new Nonce(); AuthenticationRequest request = new AuthenticationRequest.Builder( CODE, new Scope(oauthConfig.getScopes().toArray(String[]::new)), new ClientID(oauthConfig.getClientId()), oauthConfig.getRedirectUrl()) .endpointURI(oauthConfig.getAuthorizationEndpoint()) + .state(state) + .nonce(new Nonce(hashNonce(nonce.getValue()))) + .build(); + return Response.ok(Result.ok("Ok", request.toURI().toString())) + .cookie(OidcCookie.create(state.getValue(), nonce.getValue())) .build(); - return request.toURI().toString(); } /** @@ -164,4 +187,18 @@ public List processPagePermissions(List roles) .flatMap(role -> Stream.of(pagePermissions.get(role).split("_"))) .distinct().toList(); } + + private String hashNonce(String nonce) + { + return sha256() + .hashString(nonce, UTF_8) + .toString(); + } + + public static Response buildUnauthorizedResponse() + { + return Response.status(UNAUTHORIZED) + .cookie(OidcCookie.delete()) + .build(); + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java new file mode 100644 index 000000000..fca09ee74 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java @@ -0,0 +1,79 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security; + +import com.google.common.base.Splitter; +import jakarta.ws.rs.core.Cookie; +import jakarta.ws.rs.core.NewCookie; + +import java.util.List; +import java.util.Optional; + +import static com.google.common.base.Preconditions.checkState; +import static io.trino.gateway.ha.resource.LoginResource.CALLBACK_ENDPOINT; +import static jakarta.ws.rs.core.NewCookie.SameSite.STRICT; + +public class OidcCookie +{ + // prefix according to: https://tools.ietf.org/html/draft-ietf-httpbis-rfc6265bis-05#section-4.1.3.1 + public static final String OIDC_COOKIE = "__Secure-Trino-Gateway-OIDC"; + private static final String DELIMITER = "|"; + private static final Splitter SPLITTER = Splitter.on(DELIMITER).limit(2); + private static final int TOKEN_EXPIRATION_SECOND = 15 * 60; // 15 minutes + + private OidcCookie() {} + + public static NewCookie create(String state, String nonce) + { + checkState(!state.contains(DELIMITER)); + checkState(!nonce.contains(DELIMITER)); + return new NewCookie.Builder(OIDC_COOKIE) + .value(String.join(DELIMITER, state, nonce)) + .path(CALLBACK_ENDPOINT) + .maxAge(TOKEN_EXPIRATION_SECOND) + .sameSite(STRICT) + .secure(true) + .httpOnly(true) + .build(); + } + + public static Optional getState(Cookie cookie) + { + return getComponents(cookie).map(List::getFirst); + } + + public static Optional getNonce(Cookie cookie) + { + return getComponents(cookie).map(List::getLast); + } + + private static Optional> getComponents(Cookie cookie) + { + return Optional.of(cookie) + .map(Cookie::getValue) + .map(SPLITTER::splitToList); + } + + public static NewCookie delete() + { + return new NewCookie.Builder(OIDC_COOKIE) + .value("delete") + .path(CALLBACK_ENDPOINT) + .maxAge(0) + .sameSite(STRICT) + .secure(true) + .httpOnly(true) + .build(); + } +} From 6534652e70082a19c96fefc1ba8fb56ac8275507 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 10 May 2024 09:50:39 +0900 Subject: [PATCH 086/148] Add OIDC integration test --- gateway-ha/pom.xml | 7 + .../trino/gateway/ha/HaGatewayTestUtils.java | 8 +- .../trino/gateway/ha/security/TestOIDC.java | 292 ++++++++++++++++++ .../src/test/resources/auth/localhost.jks | Bin 0 -> 2750 bytes .../auth/login_and_consent_server.py | 75 +++++ .../test/resources/auth/oauth-test-config.yml | 56 ++++ 6 files changed, 436 insertions(+), 2 deletions(-) create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java create mode 100644 gateway-ha/src/test/resources/auth/localhost.jks create mode 100644 gateway-ha/src/test/resources/auth/login_and_consent_server.py create mode 100644 gateway-ha/src/test/resources/auth/oauth-test-config.yml diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 8df6bf4c0..f91238eb9 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -429,6 +429,13 @@ test + + com.squareup.okhttp3 + okhttp-urlconnection + ${dep.okhttp3.version} + test + + org.assertj assertj-core diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java index 69f42be65..86c6b43c7 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/HaGatewayTestUtils.java @@ -30,6 +30,8 @@ import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; +import java.net.URL; +import java.nio.file.Paths; import java.util.Map; import java.util.Random; import java.util.Scanner; @@ -87,19 +89,21 @@ public MockResponse dispatch(RecordedRequest request) } public static TestConfig buildGatewayConfigAndSeedDb(int routerPort, String configFile) - throws IOException + throws Exception { File baseDir = new File(System.getProperty("java.io.tmpdir")); File tempH2DbDir = new File(baseDir, "h2db-" + RANDOM.nextInt() + System.currentTimeMillis()); tempH2DbDir.deleteOnExit(); + URL resource = HaGatewayTestUtils.class.getClassLoader().getResource("auth/localhost.jks"); String configStr = getResourceFileContent(configFile) .replace("REQUEST_ROUTER_PORT", String.valueOf(routerPort)) .replace("DB_FILE_PATH", tempH2DbDir.getAbsolutePath()) .replace( "APPLICATION_CONNECTOR_PORT", String.valueOf(30000 + (int) (Math.random() * 1000))) - .replace("ADMIN_CONNECTOR_PORT", String.valueOf(31000 + (int) (Math.random() * 1000))); + .replace("ADMIN_CONNECTOR_PORT", String.valueOf(31000 + (int) (Math.random() * 1000))) + .replace("LOCALHOST_JKS", Paths.get(resource.toURI()).toFile().getAbsolutePath()); File target = File.createTempFile("config-" + System.currentTimeMillis(), "config.yaml"); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java new file mode 100644 index 000000000..d6a61173e --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java @@ -0,0 +1,292 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import io.trino.gateway.ha.HaGatewayLauncher; +import io.trino.gateway.ha.HaGatewayTestUtils; +import okhttp3.Cookie; +import okhttp3.CookieJar; +import okhttp3.HttpUrl; +import okhttp3.JavaNetCookieJar; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.RequestBody; +import okhttp3.Response; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestInstance; +import org.testcontainers.containers.FixedHostPortGenericContainer; +import org.testcontainers.containers.GenericContainer; +import org.testcontainers.containers.Network; +import org.testcontainers.containers.PostgreSQLContainer; +import org.testcontainers.containers.startupcheck.OneShotStartupCheckStrategy; +import org.testcontainers.containers.wait.strategy.Wait; +import org.testcontainers.containers.wait.strategy.WaitAllStrategy; + +import javax.net.ssl.SSLContext; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; + +import java.net.CookieManager; +import java.net.CookiePolicy; +import java.security.SecureRandom; +import java.security.cert.X509Certificate; +import java.util.List; +import java.util.Optional; + +import static io.trino.gateway.ha.security.OidcCookie.OIDC_COOKIE; +import static java.lang.String.format; +import static org.assertj.core.api.Assertions.assertThat; +import static org.testcontainers.utility.MountableFile.forClasspathResource; + +@TestInstance(TestInstance.Lifecycle.PER_CLASS) +public class TestOIDC +{ + private static final int TTL_ACCESS_TOKEN_IN_SECONDS = 5; + private static final int TTL_REFRESH_TOKEN_IN_SECONDS = 15; + + private static final String HYDRA_IMAGE = "oryd/hydra:v1.10.6"; + private static final String DSN = "postgres://hydra:mysecretpassword@hydra-db:5432/hydra?sslmode=disable"; + private static final int ROUTER_PORT = 21001 + (int) (Math.random() * 1000); + + @BeforeAll + public void setup() + throws Exception + { + Network network = Network.newNetwork(); + + PostgreSQLContainer databaseContainer = new PostgreSQLContainer<>("postgres:16") + .withNetwork(network) + .withNetworkAliases("hydra-db") + .withUsername("hydra") + .withPassword("mysecretpassword") + .withDatabaseName("hydra") + .waitingFor(Wait.forLogMessage(".*ready to accept connections.*", 1)); + databaseContainer.start(); + + GenericContainer migrationContainer = new GenericContainer(HYDRA_IMAGE) + .withNetwork(network) + .withCommand("migrate", "sql", "--yes", DSN) + .dependsOn(databaseContainer) + .withStartupCheckStrategy(new OneShotStartupCheckStrategy()); + migrationContainer.start(); + + FixedHostPortGenericContainer hydraConsent = new FixedHostPortGenericContainer<>("python:3.10.1-alpine") + .withFixedExposedPort(3000, 3000) + .withNetwork(network) + .withNetworkAliases("hydra-consent") + .withExposedPorts(3000) + .withCopyFileToContainer(forClasspathResource("auth/login_and_consent_server.py"), "/") + .withCommand("python", "/login_and_consent_server.py") + .waitingFor(Wait.forHttp("/healthz").forPort(3000).forStatusCode(200)); + hydraConsent.start(); + + FixedHostPortGenericContainer hydra = new FixedHostPortGenericContainer<>(HYDRA_IMAGE) + .withFixedExposedPort(4444, 4444) + .withFixedExposedPort(4445, 4445) + .withNetwork(network) + .withNetworkAliases("hydra") + .withEnv("LOG_LEVEL", "debug") + .withEnv("LOG_LEAK_SENSITIVE_VALUES", "true") + .withEnv("OAUTH2_EXPOSE_INTERNAL_ERRORS", "1") + .withEnv("GODEBUG", "http2debug=1") + .withEnv("DSN", DSN) + .withEnv("URLS_SELF_ISSUER", "http://localhost:4444/") + .withEnv("URLS_CONSENT", "http://localhost:3000/consent") + .withEnv("URLS_LOGIN", "http://localhost:3000/login") + .withEnv("STRATEGIES_ACCESS_TOKEN", "jwt") + .withEnv("TTL_ACCESS_TOKEN", TTL_ACCESS_TOKEN_IN_SECONDS + "s") + .withEnv("TTL_REFRESH_TOKEN", TTL_REFRESH_TOKEN_IN_SECONDS + "s") + .withEnv("OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS", "groups") + .withCommand("serve", "all", "--dangerous-force-http") + .dependsOn(hydraConsent, migrationContainer) + .waitingFor(new WaitAllStrategy() + .withStrategy(Wait.forLogMessage(".*Setting up http server on :4444.*", 1)) + .withStrategy(Wait.forLogMessage(".*Setting up http server on :4445.*", 1))) + .withStartupTimeout(java.time.Duration.ofMinutes(3)); + + String clientId = "trino_client_id"; + String clientSecret = "trino_client_secret"; + String tokenEndpointAuthMethod = "client_secret_basic"; + String audience = "trino_client_id"; + String callbackUrl = format("https://localhost:%s/oidc/callback", ROUTER_PORT); + GenericContainer clientCreatingContainer = new GenericContainer(HYDRA_IMAGE) + .withNetwork(network) + .dependsOn(hydra) + .withCommand("clients", "create", + "--endpoint", "http://hydra:4445", + "--skip-tls-verify", + "--id", clientId, + "--secret", clientSecret, + "--audience", audience, + "-g", "authorization_code,refresh_token,client_credentials", + "-r", "token,code,id_token", + "--scope", "openid,offline", + "--token-endpoint-auth-method", tokenEndpointAuthMethod, + "--callbacks", callbackUrl); + clientCreatingContainer.start(); + + HaGatewayTestUtils.TestConfig testConfig = + HaGatewayTestUtils.buildGatewayConfigAndSeedDb(ROUTER_PORT, "auth/oauth-test-config.yml"); + String[] args = {"server", testConfig.configFilePath()}; + System.out.println(ROUTER_PORT); + HaGatewayLauncher.main(args); + } + + @Test + public void testNormalFlow() + throws Exception + { + OkHttpClient httpClient = createOkHttpClient(Optional.empty()); + String redirectURL; + try (Response response = httpClient.newCall(uiCall().build()).execute()) { + assertThat(response.header("Set-Cookie")).isNotNull(); + assertThat(response.header("Set-Cookie")).contains(OIDC_COOKIE); + redirectURL = extractRedirectURL(response.body().string()); + assertThat(redirectURL).contains("http://localhost:4444/"); + } + Request oidcRequest = new Request.Builder() + .url(redirectURL) + .get() + .build(); + try (Response response = httpClient.newCall(oidcRequest).execute()) { + assertThat(response.request().url().host()).isEqualTo("localhost"); + assertThat(response.request().url().port()).isEqualTo(ROUTER_PORT); + assertThat(response.request().url().encodedPath()).isEqualTo("/"); + assertThat(response.code()).isEqualTo(200); + } + } + + @Test + public void testInvalidFlow() + throws Exception + { + OkHttpClient httpClient = createOkHttpClient(Optional.empty()); + + String redirectURL; + try (Response response = httpClient.newCall(uiCall().build()).execute()) { + redirectURL = extractRedirectURL(response.body().string()); + assertThat(redirectURL).contains("http://localhost:4444/"); + } + + Request oidcRequest = new Request.Builder() + .url(redirectURL) + .get() + .build(); + OkHttpClient httpClientBadCookie = createOkHttpClient(Optional.of(new BadCookieJar())); + try (Response response = httpClientBadCookie.newCall(oidcRequest).execute()) { + assertThat(response.request().url().host()).isEqualTo("localhost"); + assertThat(response.request().url().port()).isEqualTo(ROUTER_PORT); + assertThat(response.code()).isEqualTo(401); + } + } + + private Request.Builder uiCall() + { + return new Request.Builder() + .url(format("https://localhost:%s/sso", ROUTER_PORT)) + .post(RequestBody.create("", null)); + } + + public static void setupInsecureSsl(OkHttpClient.Builder clientBuilder) + throws Exception + { + X509TrustManager trustAllCerts = new X509TrustManager() + { + @Override + public void checkClientTrusted(X509Certificate[] chain, String authType) + { + throw new UnsupportedOperationException("checkClientTrusted should not be called"); + } + + @Override + public void checkServerTrusted(X509Certificate[] chain, String authType) + { + // skip validation of server certificate + } + + @Override + public X509Certificate[] getAcceptedIssuers() + { + return new X509Certificate[0]; + } + }; + + SSLContext sslContext = SSLContext.getInstance("SSL"); + sslContext.init(null, new TrustManager[] {trustAllCerts}, new SecureRandom()); + + clientBuilder.sslSocketFactory(sslContext.getSocketFactory(), trustAllCerts); + clientBuilder.hostnameVerifier((hostname, session) -> true); + } + + public class BadCookieJar + implements CookieJar + { + private JavaNetCookieJar cookieJar; + + public BadCookieJar() + { + CookieManager cookieManager = new CookieManager(); + cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL); + cookieJar = new JavaNetCookieJar(cookieManager); + } + + @Override + public void saveFromResponse(HttpUrl url, List cookies) + { + cookieJar.saveFromResponse(url, cookies); + } + + @Override + public List loadForRequest(HttpUrl url) + { + if (url.host().equals("localhost") && url.port() == ROUTER_PORT) { + Cookie cookie = new Cookie.Builder() + .name(OIDC_COOKIE) + .value("BAD_STATE|BAD_NONCE") + .domain("localhost") + .build(); + return List.of(cookie); + } + else { + return cookieJar.loadForRequest(url); + } + } + } + + private static String extractRedirectURL(String body) + throws JsonProcessingException + { + ObjectMapper objectMapper = new ObjectMapper(); + JsonNode jsonNode = objectMapper.readTree(body); + return jsonNode.get("data").asText(); + } + + private static OkHttpClient createOkHttpClient(Optional cookieJar) + throws Exception + { + OkHttpClient.Builder httpClientBuilder = new OkHttpClient.Builder() + .followRedirects(true) + .cookieJar(cookieJar.orElseGet(() -> { + CookieManager cookieManager = new CookieManager(); + cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL); + return new JavaNetCookieJar(cookieManager); + })); + setupInsecureSsl(httpClientBuilder); + return httpClientBuilder.build(); + } +} diff --git a/gateway-ha/src/test/resources/auth/localhost.jks b/gateway-ha/src/test/resources/auth/localhost.jks new file mode 100644 index 0000000000000000000000000000000000000000..0ecba65865275ab849157324ba8f01e621651106 GIT binary patch literal 2750 zcma);X*3j!8h~e*VP-;O8hf%8(T5q!O!h5X7zr~>W1J;O%EkA+1F&H@xga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YtRHu-pYI%&1n(qW9!D}PDk94qr= zZ2-xu0A+?kqd0&6bSywH03_-g9%jiRq(*4FnjNV+b2vG?w&>Hs9x>z_&2=`Hi_-&y bBoHYg4wIY$hox-hM8*_}b0yC1UrPELN?PJQ literal 0 HcmV?d00001 diff --git a/gateway-ha/src/test/resources/auth/login_and_consent_server.py b/gateway-ha/src/test/resources/auth/login_and_consent_server.py new file mode 100644 index 000000000..bcf9a37ed --- /dev/null +++ b/gateway-ha/src/test/resources/auth/login_and_consent_server.py @@ -0,0 +1,75 @@ +import json +import os +import ssl +from http.server import BaseHTTPRequestHandler, HTTPServer +from typing import Dict, Any +from urllib.parse import urlparse, parse_qs +from urllib.request import Request, urlopen + +HYDRA_ADMIN_URL = os.getenv("HYDRA_ADMIN_URL", "http://hydra:4445") +PORT = os.getenv("PORT", 3000) +SSL_CONTEXT = ssl.create_default_context() +SSL_CONTEXT.check_hostname = False +SSL_CONTEXT.verify_mode = ssl.CERT_NONE + + +class LoginAndConsentServer(BaseHTTPRequestHandler): + def do_GET(self): + params = parse_qs(urlparse(self.path).query) + if self.path == "/healthz": + self.send_response(200) + if self.path.startswith("/login"): + self.accept_login(params) + return + if self.path.startswith("/consent"): + self.accept_consent(params) + return + self.send_error(404, "Not found") + + def accept_login(self, params: Dict[str, list[str]]) -> None: + login_challenge = params["login_challenge"][0] + with urlopen(Request( + method="PUT", + url=HYDRA_ADMIN_URL + "/oauth2/auth/requests/login/accept?login_challenge=" + login_challenge, + headers={"Content-Type": "application/json; charset=UTF-8"}, + data=json.dumps({"subject": "foo@bar.com"}).encode()), + context=SSL_CONTEXT) as response: + self.send_redirect(response) + + def accept_consent(self, params: Dict[str, list[str]]) -> None: + consent_challenge = params["consent_challenge"][0] + consent_request = self.get_consent_request(consent_challenge) + with urlopen(Request( + method="PUT", + url=HYDRA_ADMIN_URL + "/oauth2/auth/requests/consent/accept?consent_challenge=" + consent_challenge, + headers={"Content-Type": "application/json; charset=UTF-8"}, + data=json.dumps({ + "grant_scope": consent_request["requested_scope"], + "grant_access_token_audience": consent_request["requested_access_token_audience"], + "session": { + "access_token": { + "groups": ["admin", "public"] + } + }}).encode()), + context=SSL_CONTEXT) as response: + self.send_redirect(response) + + @staticmethod + def get_consent_request(consent_challenge: str) -> Dict[str, Any]: + with urlopen(Request( + method="GET", + url=HYDRA_ADMIN_URL + "/oauth2/auth/requests/consent?consent_challenge=" + consent_challenge), + context=SSL_CONTEXT) as response: + return json.load(response) + + def send_redirect(self, response): + body = json.load(response) + self.send_response(302) + self.send_header("Location", body["redirect_to"]) + self.end_headers() + + +if __name__ == "__main__": + server_address = ("", PORT) + httpd = HTTPServer(server_address, LoginAndConsentServer) + httpd.serve_forever() diff --git a/gateway-ha/src/test/resources/auth/oauth-test-config.yml b/gateway-ha/src/test/resources/auth/oauth-test-config.yml new file mode 100644 index 000000000..ca415261e --- /dev/null +++ b/gateway-ha/src/test/resources/auth/oauth-test-config.yml @@ -0,0 +1,56 @@ +requestRouter: + port: REQUEST_ROUTER_PORT + name: testTrinoRouter + ssl: true + keystorePath: LOCALHOST_JKS + keystorePass: 123456 + +server: + applicationConnectors: + - type: http + port: APPLICATION_CONNECTOR_PORT + adminConnectors: + - type: http + port: ADMIN_CONNECTOR_PORT + +dataStore: + jdbcUrl: jdbc:h2:DB_FILE_PATH + user: sa + password: sa + driver: org.h2.Driver + +modules: + - io.trino.gateway.ha.module.HaGatewayProviderModule + +managedApps: + - io.trino.gateway.ha.GatewayManagedApp + +extraWhitelistPaths: + - "/v1/custom" + +logging: + type: external + +authorization: + admin: .*FOO.* + user: .*BAR.* + api: .*BAZ.* + +presetUsers: + foo@bar.com: + privileges: FOO_BAR + +authentication: + defaultType: "oauth" + oauth: + issuer: http://localhost:4444/ + clientId: trino_client_id + clientSecret: trino_client_secret + tokenEndpoint: http://localhost:4444/oauth2/token + authorizationEndpoint: http://localhost:4444/oauth2/auth + jwkEndpoint: http://localhost:4444/.well-known/jwks.json + redirectUrl: https://localhost:REQUEST_ROUTER_PORT/oidc/callback + redirectWebUrl: https://localhost:REQUEST_ROUTER_PORT/ + userIdField: sub + scopes: + - openid From a4315c55e0b1a88596df9424748e692b9f211439 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Mon, 27 May 2024 12:32:14 -0700 Subject: [PATCH 087/148] Add link to Trino docs - For process forwarded flag - Related to using HTTPS terminating load balancer --- docs/installation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 5a03e4054..3c729d2c5 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -83,6 +83,8 @@ terminated at the Trino Gateway. Normally it refuses to authenticate plain HTTP requests, but if `http-server.process-forwarded=true` it authenticates over HTTP if the request includes `X-Forwarded-Proto: HTTPS`. +Find more information in [the related Trino documentation](https://trino.io/docs/current/security/tls.html#use-a-load-balancer-to-terminate-tls-https). + ## Configuration After downloading or building the JAR, rename it to `gateway-ha.jar`, From da463d95ac30c235cbee68f8dec718b17f3225e4 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Mon, 27 May 2024 15:48:03 -0700 Subject: [PATCH 088/148] Improve wording on overview page --- docs/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index 8f8a86774..5f5e55be1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,12 +8,12 @@ gateway for multiple [Trino](https://trino.io) clusters. ## Use cases, advantages, and features * Use of a single connections URL for client tool users with workload - distribution across multiple connectors. -* Automatic routing of queries to clusters for specific workloads. + distribution across multiple Trino clusters. +* Automatic routing of queries to dedicated Trino clusters for specific + workloads or specific queries and data sources. * No-downtime upgrades for Trino clusters behind the Trino Gateway in a - blue/green model. -* Transparent change of capacity of Trino clusters behind the Trino Gateway - without user interruptions. + blue/green model or canary deployment model. +* Transparent change of capacity of Trino clusters without user interruptions. ## Other resources From 9ca16f19379b8fc98d0515dea75c0ebc4e334927 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Sat, 23 Mar 2024 20:21:10 +0900 Subject: [PATCH 089/148] Remove dependency on Dropwizard Auth --- gateway-ha/pom.xml | 16 ---- .../io/trino/gateway/baseapp/BaseApp.java | 7 +- .../ha/module/HaGatewayProviderModule.java | 71 +++++++-------- .../gateway/ha/security/ApiAuthenticator.java | 11 +-- .../gateway/ha/security/BasicAuthFilter.java | 86 +++++++++++++++++++ .../ha/security/FormAuthenticator.java | 6 +- .../gateway/ha/security/LbAuthenticator.java | 6 +- .../gateway/ha/security/LbAuthorizer.java | 4 +- .../trino/gateway/ha/security/LbFilter.java | 70 ++++++++++----- .../ha/security/LbFormAuthManager.java | 10 +-- .../ha/security/LbUnauthorizedHandler.java | 5 +- .../gateway/ha/security/NoopAuthorizer.java | 4 +- .../trino/gateway/ha/security/NoopFilter.java | 57 ++++++------ .../ResourceSecurityDynamicFeature.java | 45 ++++++++++ .../util/AuthenticationException.java | 23 +++++ .../gateway/ha/security/util/Authorizer.java | 23 +++++ .../ha/security/util/BasicCredentials.java | 81 +++++++++++++++++ .../ha/security/util/ChainedAuthFilter.java | 52 +++++++++++ .../IdTokenAuthenticator.java} | 18 ++-- .../ha/security/TestLbAuthenticator.java | 2 +- .../gateway/ha/security/TestLbFilter.java | 30 +++---- .../security/util/TestBasicCredentials.java | 71 +++++++++++++++ 22 files changed, 536 insertions(+), 162 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/BasicAuthFilter.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/ResourceSecurityDynamicFeature.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/util/AuthenticationException.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/util/Authorizer.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/util/BasicCredentials.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/security/util/ChainedAuthFilter.java rename gateway-ha/src/main/java/io/trino/gateway/ha/security/{NoopAuthenticator.java => util/IdTokenAuthenticator.java} (53%) create mode 100644 gateway-ha/src/test/java/io/trino/gateway/ha/security/util/TestBasicCredentials.java diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index f91238eb9..413b20d29 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -156,22 +156,6 @@ - - io.dropwizard - dropwizard-auth - - - - jakarta.inject - jakarta.inject-api - - - jakarta.servlet - jakarta.servlet-api - - - - io.dropwizard dropwizard-core diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index c602411e1..aaaa79fb5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -20,8 +20,6 @@ import com.google.inject.Injector; import com.google.inject.Module; import io.airlift.log.Logger; -import io.dropwizard.auth.AuthDynamicFeature; -import io.dropwizard.auth.AuthFilter; import io.dropwizard.core.Application; import io.dropwizard.core.Configuration; import io.dropwizard.core.server.DefaultServerFactory; @@ -41,6 +39,7 @@ import io.trino.gateway.ha.resource.PublicResource; import io.trino.gateway.ha.resource.TrinoResource; import io.trino.gateway.ha.security.AuthorizedExceptionMapper; +import io.trino.gateway.ha.security.ResourceSecurityDynamicFeature; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; import java.lang.reflect.Constructor; @@ -226,8 +225,8 @@ private void registerAuthFilters(Environment environment, Injector injector) { environment .jersey() - .register(new AuthDynamicFeature(injector.getInstance(AuthFilter.class))); - logger.info("op=register type=auth filter item=%s", AuthFilter.class); + .register(injector.getInstance(ResourceSecurityDynamicFeature.class)); + logger.info("op=register type=auth filter item=%s", ResourceSecurityDynamicFeature.class); environment.jersey().register(RolesAllowedDynamicFeature.class); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 8ee294d5a..b66372b2a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -13,13 +13,10 @@ */ package io.trino.gateway.ha.module; +import com.google.common.collect.ImmutableList; import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.google.inject.Singleton; -import io.dropwizard.auth.AuthFilter; -import io.dropwizard.auth.Authorizer; -import io.dropwizard.auth.basic.BasicCredentialAuthFilter; -import io.dropwizard.auth.chained.ChainedAuthFilter; import io.dropwizard.core.server.DefaultServerFactory; import io.dropwizard.core.server.SimpleServerFactory; import io.dropwizard.core.setup.Environment; @@ -41,22 +38,24 @@ import io.trino.gateway.ha.router.RoutingManager; import io.trino.gateway.ha.security.ApiAuthenticator; import io.trino.gateway.ha.security.AuthorizationManager; +import io.trino.gateway.ha.security.BasicAuthFilter; import io.trino.gateway.ha.security.FormAuthenticator; import io.trino.gateway.ha.security.LbAuthenticator; import io.trino.gateway.ha.security.LbAuthorizer; import io.trino.gateway.ha.security.LbFilter; import io.trino.gateway.ha.security.LbFormAuthManager; import io.trino.gateway.ha.security.LbOAuthManager; -import io.trino.gateway.ha.security.LbPrincipal; import io.trino.gateway.ha.security.LbUnauthorizedHandler; -import io.trino.gateway.ha.security.NoopAuthenticator; import io.trino.gateway.ha.security.NoopAuthorizer; import io.trino.gateway.ha.security.NoopFilter; +import io.trino.gateway.ha.security.ResourceSecurityDynamicFeature; +import io.trino.gateway.ha.security.util.Authorizer; +import io.trino.gateway.ha.security.util.ChainedAuthFilter; import io.trino.gateway.proxyserver.ProxyHandler; import io.trino.gateway.proxyserver.ProxyServer; import io.trino.gateway.proxyserver.ProxyServerConfiguration; +import jakarta.ws.rs.container.ContainerRequestFilter; -import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.stream.Stream; @@ -70,7 +69,7 @@ public class HaGatewayProviderModule private final LbFormAuthManager formAuthManager; private final AuthorizationManager authorizationManager; private final BackendStateManager backendStateConnectionManager; - private final AuthFilter authenticationFilter; + private final ResourceSecurityDynamicFeature resourceSecurityDynamicFeature; private final List extraWhitelistPaths; private final HaGatewayConfiguration configuration; private final Environment environment; @@ -85,7 +84,7 @@ public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment formAuthManager = getFormAuthManager(configuration); authorizationManager = new AuthorizationManager(configuration.getAuthorization(), presetUsers); - authenticationFilter = getAuthFilter(configuration); + resourceSecurityDynamicFeature = getAuthFilter(configuration); backendStateConnectionManager = new BackendStateManager(); extraWhitelistPaths = configuration.getExtraWhitelistPaths(); @@ -115,37 +114,32 @@ private LbFormAuthManager getFormAuthManager(HaGatewayConfiguration configuratio return null; } - private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration config, - Authorizer authorizer) + private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration config, Authorizer authorizer) { - List authFilters = new ArrayList<>(); + ImmutableList.Builder authFilters = ImmutableList.builder(); String defaultType = config.getDefaultType(); if (oauthManager != null) { - authFilters.add(new LbFilter.Builder() - .setAuthenticator(new LbAuthenticator(oauthManager, authorizationManager)) - .setAuthorizer(authorizer) - .setUnauthorizedHandler(new LbUnauthorizedHandler(defaultType)) - .setPrefix("Bearer") - .buildAuthFilter()); + authFilters.add(new LbFilter( + new LbAuthenticator(oauthManager, authorizationManager), + authorizer, + "Bearer", + new LbUnauthorizedHandler(defaultType))); } if (formAuthManager != null) { - authFilters.add(new LbFilter.Builder() - .setAuthenticator(new FormAuthenticator(formAuthManager, authorizationManager)) - .setAuthorizer(authorizer) - .setUnauthorizedHandler(new LbUnauthorizedHandler(defaultType)) - .setPrefix("Bearer") - .buildAuthFilter()); + authFilters.add(new LbFilter( + new FormAuthenticator(formAuthManager, authorizationManager), + authorizer, + "Bearer", + new LbUnauthorizedHandler(defaultType))); - authFilters.add(new BasicCredentialAuthFilter.Builder() - .setAuthenticator(new ApiAuthenticator(formAuthManager, authorizationManager)) - .setAuthorizer(authorizer) - .setUnauthorizedHandler(new LbUnauthorizedHandler(defaultType)) - .setPrefix("Basic") - .buildAuthFilter()); + authFilters.add(new BasicAuthFilter( + new ApiAuthenticator(formAuthManager, authorizationManager), + authorizer, + new LbUnauthorizedHandler(defaultType))); } - return new ChainedAuthFilter(authFilters); + return new ChainedAuthFilter(authFilters.build()); } private ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, @@ -190,22 +184,19 @@ private int getApplicationPort() .orElseThrow(IllegalStateException::new); } - private AuthFilter getAuthFilter(HaGatewayConfiguration configuration) + private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration configuration) { AuthorizationConfiguration authorizationConfig = configuration.getAuthorization(); - Authorizer authorizer = (authorizationConfig != null) + Authorizer authorizer = (authorizationConfig != null) ? new LbAuthorizer(authorizationConfig) : new NoopAuthorizer(); AuthenticationConfiguration authenticationConfig = configuration.getAuthentication(); if (authenticationConfig != null) { - return getAuthenticationFilters(authenticationConfig, authorizer); + return new ResourceSecurityDynamicFeature(getAuthenticationFilters(authenticationConfig, authorizer)); } - return new NoopFilter.Builder() - .setAuthenticator(new NoopAuthenticator()) - .setAuthorizer(authorizer) - .buildAuthFilter(); + return new ResourceSecurityDynamicFeature(new NoopFilter()); } @Provides @@ -261,9 +252,9 @@ public AuthorizationManager getAuthorizationManager() @Provides @Singleton - public AuthFilter getAuthenticationFilter() + public ResourceSecurityDynamicFeature getResourceSecurityDynamicFeature() { - return authenticationFilter; + return resourceSecurityDynamicFeature; } @Provides diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/ApiAuthenticator.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/ApiAuthenticator.java index a6d99c5ad..e55bf4989 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/ApiAuthenticator.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/ApiAuthenticator.java @@ -13,14 +13,12 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.AuthenticationException; -import io.dropwizard.auth.Authenticator; -import io.dropwizard.auth.basic.BasicCredentials; +import io.trino.gateway.ha.security.util.AuthenticationException; +import io.trino.gateway.ha.security.util.BasicCredentials; import java.util.Optional; public class ApiAuthenticator - implements Authenticator { private final LbFormAuthManager formAuthManager; private final AuthorizationManager authorizationManager; @@ -32,13 +30,12 @@ public ApiAuthenticator(LbFormAuthManager formAuthManager, this.authorizationManager = authorizationManager; } - @Override public Optional authenticate(BasicCredentials credentials) throws AuthenticationException { if (formAuthManager.authenticate(credentials)) { - return Optional.of(new LbPrincipal(credentials.getUsername(), - authorizationManager.getPrivileges(credentials.getUsername()))); + return Optional.of(new LbPrincipal(credentials.username(), + authorizationManager.getPrivileges(credentials.username()))); } return Optional.empty(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/BasicAuthFilter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/BasicAuthFilter.java new file mode 100644 index 000000000..f85848803 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/BasicAuthFilter.java @@ -0,0 +1,86 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security; + +import io.trino.gateway.ha.security.util.AuthenticationException; +import io.trino.gateway.ha.security.util.Authorizer; +import io.trino.gateway.ha.security.util.BasicCredentials; +import jakarta.annotation.Priority; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.core.SecurityContext; + +import java.io.IOException; +import java.security.Principal; + +import static io.trino.gateway.ha.security.util.BasicCredentials.extractBasicAuthCredentials; +import static jakarta.ws.rs.Priorities.AUTHENTICATION; +import static java.util.Objects.requireNonNull; + +@Priority(AUTHENTICATION) +public class BasicAuthFilter + implements ContainerRequestFilter +{ + private final ApiAuthenticator apiAuthenticator; + private final Authorizer lbAuthorizer; + private final LbUnauthorizedHandler lbUnauthorizedHandler; + + public BasicAuthFilter(ApiAuthenticator apiAuthenticator, Authorizer lbAuthorizer, LbUnauthorizedHandler lbUnauthorizedHandler) + { + this.apiAuthenticator = requireNonNull(apiAuthenticator); + this.lbAuthorizer = requireNonNull(lbAuthorizer); + this.lbUnauthorizedHandler = requireNonNull(lbUnauthorizedHandler, "lbUnauthorizedHandler is null"); + } + + @Override + public void filter(ContainerRequestContext requestContext) + throws IOException + { + try { + BasicCredentials basicCredentials = extractBasicAuthCredentials(requestContext); + LbPrincipal principal = apiAuthenticator.authenticate(basicCredentials) + .orElseThrow(() -> new AuthenticationException("Authentication error")); + requestContext.setSecurityContext(new SecurityContext() + { + @Override + public Principal getUserPrincipal() + { + return principal; + } + + @Override + public boolean isUserInRole(String role) + { + return lbAuthorizer.authorize(principal, role, requestContext); + } + + @Override + public boolean isSecure() + { + return requestContext.getSecurityContext().isSecure(); + } + + @Override + public String getAuthenticationScheme() + { + return SecurityContext.BASIC_AUTH; + } + }); + } + catch (Exception e) { + throw new WebApplicationException(lbUnauthorizedHandler.buildResponse()); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/FormAuthenticator.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/FormAuthenticator.java index faa2f8279..a475516f9 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/FormAuthenticator.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/FormAuthenticator.java @@ -13,13 +13,13 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.AuthenticationException; -import io.dropwizard.auth.Authenticator; +import io.trino.gateway.ha.security.util.AuthenticationException; +import io.trino.gateway.ha.security.util.IdTokenAuthenticator; import java.util.Optional; public class FormAuthenticator - implements Authenticator + implements IdTokenAuthenticator { private final LbFormAuthManager formAuthManager; private final AuthorizationManager authorizationManager; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthenticator.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthenticator.java index bf2fd54a3..cc321745b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthenticator.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthenticator.java @@ -13,13 +13,13 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.AuthenticationException; -import io.dropwizard.auth.Authenticator; +import io.trino.gateway.ha.security.util.AuthenticationException; +import io.trino.gateway.ha.security.util.IdTokenAuthenticator; import java.util.Optional; public class LbAuthenticator - implements Authenticator + implements IdTokenAuthenticator { private final LbOAuthManager oauthManager; private final AuthorizationManager authorizationManager; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java index ba1e70e3f..878eb6c24 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbAuthorizer.java @@ -14,13 +14,13 @@ package io.trino.gateway.ha.security; import io.airlift.log.Logger; -import io.dropwizard.auth.Authorizer; import io.trino.gateway.ha.config.AuthorizationConfiguration; +import io.trino.gateway.ha.security.util.Authorizer; import jakarta.annotation.Nullable; import jakarta.ws.rs.container.ContainerRequestContext; public class LbAuthorizer - implements Authorizer + implements Authorizer { private static final Logger log = Logger.get(LbAuthorizer.class); private final AuthorizationConfiguration configuration; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFilter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFilter.java index c62498b47..1d7ead76d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFilter.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFilter.java @@ -13,12 +13,14 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.AuthFilter; +import io.trino.gateway.ha.security.util.AuthenticationException; +import io.trino.gateway.ha.security.util.Authorizer; +import io.trino.gateway.ha.security.util.IdTokenAuthenticator; import jakarta.annotation.Nullable; import jakarta.annotation.Priority; -import jakarta.ws.rs.Priorities; import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; import jakarta.ws.rs.core.Cookie; import jakarta.ws.rs.core.HttpHeaders; import jakarta.ws.rs.core.SecurityContext; @@ -26,19 +28,30 @@ import java.security.Principal; import java.util.Optional; -@Priority(Priorities.AUTHENTICATION) -public class LbFilter

    - extends AuthFilter +import static jakarta.ws.rs.Priorities.AUTHENTICATION; +import static java.util.Objects.requireNonNull; + +@Priority(AUTHENTICATION) +public class LbFilter + implements ContainerRequestFilter { - public LbFilter() + private final IdTokenAuthenticator idTokenAuthenticator; + private final Authorizer lbAuthorizer; + private final String prefix; + private final LbUnauthorizedHandler lbUnauthorizedHandler; + + public LbFilter(IdTokenAuthenticator idTokenAuthenticator, Authorizer lbAuthorizer, String prefix, LbUnauthorizedHandler lbUnauthorizedHandler) { + this.idTokenAuthenticator = requireNonNull(idTokenAuthenticator, "idTokenAuthenticator is null"); + this.lbAuthorizer = requireNonNull(lbAuthorizer, "lbAuthorizer is null"); + this.prefix = requireNonNull(prefix, "prefix is null"); + this.lbUnauthorizedHandler = requireNonNull(lbUnauthorizedHandler, "lbUnauthorizedHandler is null"); } /** * Filters requests by checking for the token cookie and authorization header, * and authenticates the user using the filter's authenticator. */ - @Override public void filter(final ContainerRequestContext requestContext) throws WebApplicationException { @@ -49,12 +62,37 @@ public void filter(final ContainerRequestContext requestContext) .map(Cookie::getValue) .orElse(getToken(requestContext.getHeaders().getFirst(HttpHeaders.AUTHORIZATION))); - if (!authenticate(requestContext, idToken, SecurityContext.BASIC_AUTH)) { - throw new Exception(); - } + LbPrincipal principal = idTokenAuthenticator.authenticate(idToken) + .orElseThrow(() -> new AuthenticationException("Authentication error")); + requestContext.setSecurityContext(new SecurityContext() + { + @Override + public Principal getUserPrincipal() + { + return principal; + } + + @Override + public boolean isUserInRole(String role) + { + return lbAuthorizer.authorize(principal, role, requestContext); + } + + @Override + public boolean isSecure() + { + return requestContext.getSecurityContext().isSecure(); + } + + @Override + public String getAuthenticationScheme() + { + return SecurityContext.BASIC_AUTH; + } + }); } catch (Exception e) { - throw new WebApplicationException(unauthorizedHandler.buildResponse(prefix, realm)); + throw new WebApplicationException(lbUnauthorizedHandler.buildResponse()); } } @@ -83,14 +121,4 @@ private String getToken(String header) return header.substring(space + 1); } - - public static class Builder

    - extends AuthFilterBuilder> - { - @Override - protected LbFilter

    newInstance() - { - return new LbFilter<>(); - } - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java index 7169dcbb4..bddd75bbb 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java @@ -19,12 +19,12 @@ import com.auth0.jwt.interfaces.Claim; import com.auth0.jwt.interfaces.DecodedJWT; import io.airlift.log.Logger; -import io.dropwizard.auth.basic.BasicCredentials; import io.trino.gateway.ha.config.FormAuthConfiguration; import io.trino.gateway.ha.config.LdapConfiguration; import io.trino.gateway.ha.config.UserConfiguration; import io.trino.gateway.ha.domain.Result; import io.trino.gateway.ha.domain.request.RestLoginRequest; +import io.trino.gateway.ha.security.util.BasicCredentials; import java.util.Collections; import java.util.List; @@ -137,15 +137,15 @@ private String getSelfSignedToken(String username) public boolean authenticate(BasicCredentials credentials) { if (lbLdapClient != null - && lbLdapClient.authenticate(credentials.getUsername(), - credentials.getPassword())) { + && lbLdapClient.authenticate(credentials.username(), + credentials.password())) { return true; } if (presetUsers != null) { - UserConfiguration user = presetUsers.get(credentials.getUsername()); + UserConfiguration user = presetUsers.get(credentials.username()); return user != null - && user.password().equals(credentials.getPassword()); + && user.password().equals(credentials.password()); } return false; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbUnauthorizedHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbUnauthorizedHandler.java index 859b4a08f..5a515d05f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbUnauthorizedHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbUnauthorizedHandler.java @@ -13,13 +13,11 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.UnauthorizedHandler; import jakarta.ws.rs.core.Response; import java.net.URI; public class LbUnauthorizedHandler - implements UnauthorizedHandler { private final String redirectPath; @@ -33,8 +31,7 @@ public LbUnauthorizedHandler(String authenticationType) } } - @Override - public Response buildResponse(String prefix, String realm) + public Response buildResponse() { return Response.status(302).location(URI.create(redirectPath)).build(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthorizer.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthorizer.java index 012492252..2c85171d4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthorizer.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthorizer.java @@ -13,12 +13,12 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.Authorizer; +import io.trino.gateway.ha.security.util.Authorizer; import jakarta.annotation.Nullable; import jakarta.ws.rs.container.ContainerRequestContext; public class NoopAuthorizer - implements Authorizer + implements Authorizer { @Override public boolean authorize(LbPrincipal principal, diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopFilter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopFilter.java index 0ee68b087..bf615bfa6 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopFilter.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopFilter.java @@ -13,45 +13,50 @@ */ package io.trino.gateway.ha.security; -import io.dropwizard.auth.AuthFilter; import jakarta.annotation.Priority; -import jakarta.ws.rs.Priorities; -import jakarta.ws.rs.WebApplicationException; import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; import jakarta.ws.rs.core.SecurityContext; import java.io.IOException; import java.security.Principal; +import java.util.Optional; -@Priority(Priorities.AUTHENTICATION) -public class NoopFilter

    - extends AuthFilter -{ - public NoopFilter() - { - } +import static jakarta.ws.rs.Priorities.AUTHENTICATION; +@Priority(AUTHENTICATION) +public class NoopFilter + implements ContainerRequestFilter +{ @Override public void filter(final ContainerRequestContext requestContext) throws IOException { - try { - if (!authenticate(requestContext, "", SecurityContext.BASIC_AUTH)) { - throw new Exception(); + requestContext.setSecurityContext(new SecurityContext() + { + @Override + public Principal getUserPrincipal() + { + return new LbPrincipal("user", Optional.of("ADMIN_USER_API")); } - } - catch (Exception e) { - throw new WebApplicationException(unauthorizedHandler.buildResponse(prefix, realm)); - } - } - public static class Builder

    - extends AuthFilterBuilder> - { - @Override - protected NoopFilter

    newInstance() - { - return new NoopFilter<>(); - } + @Override + public boolean isUserInRole(String role) + { + return true; + } + + @Override + public boolean isSecure() + { + return requestContext.getSecurityContext().isSecure(); + } + + @Override + public String getAuthenticationScheme() + { + return SecurityContext.BASIC_AUTH; + } + }); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/ResourceSecurityDynamicFeature.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/ResourceSecurityDynamicFeature.java new file mode 100644 index 000000000..ac71708b2 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/ResourceSecurityDynamicFeature.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security; + +import jakarta.annotation.Priority; +import jakarta.annotation.security.RolesAllowed; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.DynamicFeature; +import jakarta.ws.rs.container.ResourceInfo; +import jakarta.ws.rs.core.FeatureContext; + +import static jakarta.ws.rs.Priorities.AUTHENTICATION; +import static java.util.Objects.requireNonNull; + +@Priority(AUTHENTICATION) +public class ResourceSecurityDynamicFeature + implements DynamicFeature +{ + private final ContainerRequestFilter filter; + + public ResourceSecurityDynamicFeature(ContainerRequestFilter filter) + { + this.filter = requireNonNull(filter); + } + + @Override + public void configure(ResourceInfo resourceInfo, FeatureContext context) + { + if (resourceInfo.getResourceClass().getAnnotation(RolesAllowed.class) != null + || resourceInfo.getResourceMethod().getAnnotation(RolesAllowed.class) != null) { + context.register(filter); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/AuthenticationException.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/AuthenticationException.java new file mode 100644 index 000000000..69606e4fb --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/AuthenticationException.java @@ -0,0 +1,23 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security.util; + +public class AuthenticationException + extends Exception +{ + public AuthenticationException(String message) + { + super(message); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/Authorizer.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/Authorizer.java new file mode 100644 index 000000000..ef037170e --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/Authorizer.java @@ -0,0 +1,23 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security.util; + +import io.trino.gateway.ha.security.LbPrincipal; +import jakarta.annotation.Nullable; +import jakarta.ws.rs.container.ContainerRequestContext; + +public interface Authorizer +{ + boolean authorize(LbPrincipal principal, String role, @Nullable ContainerRequestContext ctx); +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/BasicCredentials.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/BasicCredentials.java new file mode 100644 index 000000000..64005a67f --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/BasicCredentials.java @@ -0,0 +1,81 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security.util; + +import com.google.common.base.Splitter; +import jakarta.ws.rs.container.ContainerRequestContext; + +import java.util.Base64; +import java.util.List; + +import static com.google.common.base.Strings.nullToEmpty; +import static com.google.common.net.HttpHeaders.AUTHORIZATION; +import static java.nio.charset.StandardCharsets.ISO_8859_1; +import static java.util.Objects.requireNonNull; + +public record BasicCredentials(String username, String password) +{ + public BasicCredentials + { + requireNonNull(username, "username is null"); + requireNonNull(password, "password is null"); + } + + public static BasicCredentials extractBasicAuthCredentials(ContainerRequestContext request) + throws AuthenticationException + { + requireNonNull(request, "request is null"); + + // This handles HTTP basic auth per RFC 7617. The header contains the + // case-insensitive "Basic" scheme followed by a Base64 encoded "username:password". + String header = nullToEmpty(request.getHeaders().getFirst(AUTHORIZATION)); + + return extractBasicAuthCredentials(header); + } + + public static BasicCredentials extractBasicAuthCredentials(String header) + throws AuthenticationException + { + requireNonNull(header, "header is null"); + + int space = header.indexOf(' '); + if ((space < 0) || !header.substring(0, space).equalsIgnoreCase("basic")) { + throw new AuthenticationException("Invalid credentials"); + } + String credentials = decodeCredentials(header.substring(space + 1).trim()); + + List parts = Splitter.on(':').limit(2).splitToList(credentials); + if (parts.size() != 2) { + throw new AuthenticationException("Invalid credentials"); + } + String username = parts.get(0); + String password = parts.get(1); + return new BasicCredentials(username, password); + } + + private static String decodeCredentials(String credentials) + throws AuthenticationException + { + // The original basic auth RFC 2617 did not specify a character set. + // Many clients, including the Trino CLI and JDBC driver, use ISO-8859-1. + // RFC 7617 allows the server to specify UTF-8 as the character set during + // the challenge, but this doesn't help as most clients pre-authenticate. + try { + return new String(Base64.getDecoder().decode(credentials), ISO_8859_1); + } + catch (IllegalArgumentException e) { + throw new AuthenticationException("Invalid base64 encoded credentials"); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/ChainedAuthFilter.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/ChainedAuthFilter.java new file mode 100644 index 000000000..c5b8b6105 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/ChainedAuthFilter.java @@ -0,0 +1,52 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security.util; + +import jakarta.annotation.Priority; +import jakarta.ws.rs.ForbiddenException; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; + +import java.io.IOException; +import java.util.List; + +import static jakarta.ws.rs.Priorities.AUTHENTICATION; +import static java.util.Objects.requireNonNull; + +@Priority(AUTHENTICATION) +public class ChainedAuthFilter + implements ContainerRequestFilter +{ + private final List filters; + + public ChainedAuthFilter(List filters) + { + this.filters = requireNonNull(filters); + } + + @Override + public void filter(ContainerRequestContext containerRequestContext) + throws IOException + { + for (ContainerRequestFilter filter : filters) { + try { + filter.filter(containerRequestContext); + return; + } + catch (Exception ignored) { + } + } + throw new ForbiddenException("Authentication error"); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/IdTokenAuthenticator.java similarity index 53% rename from gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java rename to gateway-ha/src/main/java/io/trino/gateway/ha/security/util/IdTokenAuthenticator.java index 74dc5b840..8fd04be09 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/NoopAuthenticator.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/util/IdTokenAuthenticator.java @@ -11,22 +11,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.trino.gateway.ha.security; +package io.trino.gateway.ha.security.util; -import io.dropwizard.auth.AuthenticationException; -import io.dropwizard.auth.Authenticator; +import io.trino.gateway.ha.security.LbPrincipal; import java.util.Optional; -public class NoopAuthenticator - implements Authenticator +public interface IdTokenAuthenticator { - @Override - public Optional authenticate(String credentials) - throws AuthenticationException - { - // If authentication is not configured, the default is 'ADMIN_USER_API'. - return Optional.of(new LbPrincipal("user", Optional.of("ADMIN_USER_API"))); - } + Optional authenticate(String idToken) + throws AuthenticationException; } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java index 119022519..8f4eb492f 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java @@ -17,12 +17,12 @@ import com.auth0.jwt.interfaces.Claim; import com.google.common.collect.ImmutableMap; import io.airlift.log.Logger; -import io.dropwizard.auth.basic.BasicCredentials; import io.trino.gateway.ha.config.FormAuthConfiguration; import io.trino.gateway.ha.config.SelfSignKeyPairConfiguration; import io.trino.gateway.ha.config.UserConfiguration; import io.trino.gateway.ha.domain.Result; import io.trino.gateway.ha.domain.request.RestLoginRequest; +import io.trino.gateway.ha.security.util.BasicCredentials; import jakarta.ws.rs.core.NewCookie; import jakarta.ws.rs.core.Response; import org.junit.jupiter.api.Test; diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbFilter.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbFilter.java index 9e25412a0..1b753139f 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbFilter.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbFilter.java @@ -91,11 +91,11 @@ public void testSuccessfulCookieAuthentication() authorizationManager); LbAuthorizer authorizer = new LbAuthorizer(configuration); - LbFilter lbFilter = new LbFilter.Builder() - .setAuthenticator(authenticator) - .setAuthorizer(authorizer) - .setPrefix("Bearer") - .buildAuthFilter(); + LbFilter lbFilter = new LbFilter( + authenticator, + authorizer, + "Bearer", + new LbUnauthorizedHandler("")); ArgumentCaptor secContextCaptor = ArgumentCaptor .forClass(SecurityContext.class); @@ -132,11 +132,11 @@ public void testSuccessfulHeaderAuthentication() oauthManager, authorizationManager); LbAuthorizer authorizer = new LbAuthorizer(configuration); - LbFilter lbFilter = new LbFilter.Builder() - .setAuthenticator(authenticator) - .setAuthorizer(authorizer) - .setPrefix("Bearer") - .buildAuthFilter(); + LbFilter lbFilter = new LbFilter( + authenticator, + authorizer, + "Bearer", + new LbUnauthorizedHandler("")); ArgumentCaptor secContextCaptor = ArgumentCaptor .forClass(SecurityContext.class); @@ -169,11 +169,11 @@ public void testMissingAuthenticationToken() oauthManager, authorizationManager); LbAuthorizer authorizer = new LbAuthorizer(configuration); - LbFilter lbFilter = new LbFilter.Builder() - .setAuthenticator(authenticator) - .setAuthorizer(authorizer) - .setPrefix("Bearer") - .buildAuthFilter(); + LbFilter lbFilter = new LbFilter( + authenticator, + authorizer, + "Bearer", + new LbUnauthorizedHandler("")); // Exception is thrown when the authentication fails lbFilter.filter(requestContext); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/util/TestBasicCredentials.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/util/TestBasicCredentials.java new file mode 100644 index 000000000..9459c5913 --- /dev/null +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/util/TestBasicCredentials.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.security.util; + +import org.junit.jupiter.api.Test; + +import java.nio.charset.StandardCharsets; +import java.util.Base64; + +import static io.trino.gateway.ha.security.util.BasicCredentials.extractBasicAuthCredentials; +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; + +public class TestBasicCredentials +{ + @Test + public void testValidCredentials() + throws AuthenticationException + { + BasicCredentials basicCredentials = extractBasicAuthCredentials(encodeToBasicAuthCredentials("user:pass123")); + assertThat(basicCredentials.username()).isEqualTo("user"); + assertThat(basicCredentials.password()).isEqualTo("pass123"); + + BasicCredentials emptyUsername = extractBasicAuthCredentials(encodeToBasicAuthCredentials(":pass123")); + assertThat(emptyUsername.username()).isEqualTo(""); + assertThat(emptyUsername.password()).isEqualTo("pass123"); + + BasicCredentials emptyPassword = extractBasicAuthCredentials(encodeToBasicAuthCredentials("user:")); + assertThat(emptyPassword.username()).isEqualTo("user"); + assertThat(emptyPassword.password()).isEqualTo(""); + + BasicCredentials emptyUsernameAndPassword = extractBasicAuthCredentials(encodeToBasicAuthCredentials(":")); + assertThat(emptyUsernameAndPassword.username()).isEqualTo(""); + assertThat(emptyUsernameAndPassword.password()).isEqualTo(""); + + BasicCredentials specialCharInPassword = extractBasicAuthCredentials(encodeToBasicAuthCredentials("username:passwordWith:char")); + assertThat(specialCharInPassword.username()).isEqualTo("username"); + assertThat(specialCharInPassword.password()).isEqualTo("passwordWith:char"); + } + + @Test + public void testInvalidCredentials() + throws AuthenticationException + { + assertThatThrownBy(() -> extractBasicAuthCredentials("InvalidBasic " + encodeBase64("username:pass123"))) + .isInstanceOf(AuthenticationException.class); + assertThatThrownBy(() -> extractBasicAuthCredentials(encodeToBasicAuthCredentials("userpass123"))) + .isInstanceOf(AuthenticationException.class); + } + + private static String encodeToBasicAuthCredentials(String credentials) + { + return "Basic " + encodeBase64(credentials); + } + + private static String encodeBase64(String credentials) + { + return Base64.getEncoder().encodeToString(credentials.getBytes(StandardCharsets.ISO_8859_1)); + } +} From 11dbd0f939ca4e6d566cfb4f1afb6a22044f3495 Mon Sep 17 00:00:00 2001 From: Raman Sarvaria Date: Wed, 29 May 2024 14:23:11 -0400 Subject: [PATCH 090/148] Fix broken renderings of code blocks in docs --- docs/gateway-api.md | 21 +++++++++++++-------- docs/resource-groups-api.md | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/docs/gateway-api.md b/docs/gateway-api.md index 26fd82c63..87f30575a 100644 --- a/docs/gateway-api.md +++ b/docs/gateway-api.md @@ -2,7 +2,7 @@ ## Add or update a backend -```$xslt +```shell curl -X POST http://localhost:8080/entity?entityType=GATEWAY_BACKEND \ -d '{ "name": "trino-3", "proxyTo": "http://localhost:8083", @@ -15,7 +15,7 @@ If the backend URL is different from the `proxyTo` URL (for example if they are internal vs. external hostnames). You can use the optional `externalUrl` field to override the link in the Active Backends page. -```$xslt +```shell curl -X POST http://localhost:8080/entity?entityType=GATEWAY_BACKEND \ -d '{ "name": "trino-3", "proxyTo": "http://localhost:8083", @@ -28,7 +28,7 @@ curl -X POST http://localhost:8080/entity?entityType=GATEWAY_BACKEND \ ## Get all backends `curl -X GET http://localhost:8080/entity/GATEWAY_BACKEND` -```$xslt +```json [ { "name": "trino-1", @@ -56,21 +56,24 @@ curl -X POST http://localhost:8080/entity?entityType=GATEWAY_BACKEND \ ## Delete a backend -```$xslt +```shell curl -X POST -d "trino3" http://localhost:8080/gateway/backend/modify/delete ``` ## Deactivate a backend -```$xslt +```shell curl -X POST http://localhost:8080/gateway/backend/deactivate/trino-2 ``` ## Get all active backends -`curl -X GET http://localhost:8080/gateway/backend/active` - +```shell +curl -X GET http://localhost:8080/gateway/backend/active ``` + +Will return a JSON array of active Trino cluster backends: +```json [ { "name": "trino-1", @@ -84,5 +87,7 @@ curl -X POST http://localhost:8080/gateway/backend/deactivate/trino-2 ## Activate a backend -`curl -X POST http://localhost:8080/gateway/backend/activate/trino-2` +```shell +curl -X POST http://localhost:8080/gateway/backend/activate/trino-2 +``` diff --git a/docs/resource-groups-api.md b/docs/resource-groups-api.md index 4f2c2ac00..59e49c945 100644 --- a/docs/resource-groups-api.md +++ b/docs/resource-groups-api.md @@ -7,7 +7,7 @@ resource groups and selector tables. To use this, just specify the query parameter ?useSchema= to the request. Example, to list all resource groups, -```$xslt +```shell curl -X GET http://localhost:8080/trino/resourcegroup/read/{INSERT_ID_HERE}?useSchema=newdatabasename ``` @@ -17,7 +17,7 @@ To add a single resource group, specify all relevant fields in the body. Resource group id should not be specified since the database should autoincrement it. -```$xslt +```shell curl -X POST http://localhost:8080/trino/resourcegroup/create \ -d '{ "name": "resourcegroup1", \ @@ -40,7 +40,7 @@ curl -X POST http://localhost:8080/trino/resourcegroup/create \ If no resourceGroupId (type long) is specified, then all existing resource groups are fetched. -```$xslt +```shell curl -X GET http://localhost:8080/trino/resourcegroup/read/{INSERT_ID_HERE} ``` @@ -49,7 +49,7 @@ curl -X GET http://localhost:8080/trino/resourcegroup/read/{INSERT_ID_HERE} Specify all columns in the body, which will overwrite properties for the resource group with that specific resourceGroupId. -```$xslt +```shell curl -X POST http://localhost:8080/trino/resourcegroup/update \ -d '{ "resourceGroupId": 1, \ "name": "resourcegroup_updated", \ @@ -72,7 +72,7 @@ curl -X POST http://localhost:8080/trino/resourcegroup/update \ To delete a resource group, specify the corresponding resourceGroupId (type long). -```$xslt +```shell curl -X POST http://localhost:8080/trino/resourcegroup/delete/{INSERT_ID_HERE} ``` @@ -81,7 +81,7 @@ curl -X POST http://localhost:8080/trino/resourcegroup/delete/{INSERT_ID_HERE} To add a single selector, specify all relevant fields in the body. Resource group id should not be specified since the database should autoincrement it. -```$xslt +```shell curl -X POST http://localhost:8080/trino/selector/create \ -d '{ "priority": 1, \ @@ -96,7 +96,7 @@ curl -X POST http://localhost:8080/trino/selector/create \ If no resourceGroupId (type long) is specified, then all existing selectors are fetched. -```$xslt +```shell curl -X GET http://localhost:8080/trino/selector/read/{INSERT_ID_HERE} ``` @@ -108,7 +108,7 @@ fields under "current". The updated version of that selector is specified under does not exist, a new selector will be created with the details under "update". Both "current" and "update" must be included to update a selector. -```$xslt +```shell curl -X POST http://localhost:8080/trino/selector/update \ -d '{ "current": { "resourceGroupId": 1, \ @@ -131,7 +131,7 @@ curl -X POST http://localhost:8080/trino/selector/update \ To delete a selector, specify all relevant fields in the body. -```$xslt +```shell curl -X POST http://localhost:8080/trino/selector/delete \ -d '{ "resourceGroupId": 1, \ "priority": 2, \ @@ -145,7 +145,7 @@ curl -X POST http://localhost:8080/trino/selector/delete \ To add a single global property, specify all relevant fields in the body. -```$xslt +```shell curl -X POST http://localhost:8080/trino/globalproperty/create \ -d '{ "name": "cpu_quota_period", \ @@ -158,7 +158,7 @@ curl -X POST http://localhost:8080/trino/globalproperty/create \ If no name (type String) is specified, then all existing global properties are fetched. -```$xslt +```shell curl -X GET http://localhost:8080/trino/globalproperty/read/{INSERT_NAME_HERE} ``` @@ -167,7 +167,7 @@ curl -X GET http://localhost:8080/trino/globalproperty/read/{INSERT_NAME_HERE} Specify all columns in the body, which will overwrite properties for the global property with that specific name. -```$xslt +```shell curl -X POST http://localhost:8080/trino/globalproperty/update \ -d '{ "name": "cpu_quota_period", \ @@ -179,6 +179,6 @@ curl -X POST http://localhost:8080/trino/globalproperty/update \ To delete a global property, specify the corresponding name (type String). -```$xslt +```shell curl -X POST http://localhost:8080/trino/globalproperty/delete/{INSERT_NAME_HERE} ``` From 44f8ae021ae3d9de22aa8f0885107964d0f9e117 Mon Sep 17 00:00:00 2001 From: Raman Sarvaria Date: Thu, 30 May 2024 12:13:27 -0400 Subject: [PATCH 091/148] Add high level architecture diagram to docs --- .../TrinoGateway-HighLevelArchitecture.png | Bin 0 -> 131010 bytes docs/index.md | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 docs/assets/TrinoGateway-HighLevelArchitecture.png diff --git a/docs/assets/TrinoGateway-HighLevelArchitecture.png b/docs/assets/TrinoGateway-HighLevelArchitecture.png new file mode 100644 index 0000000000000000000000000000000000000000..4d21faa050ef4036bc3e7807fd18eb11d2a7fc82 GIT binary patch literal 131010 zcmeFZbyQXB+cvt;ZEO?~1wmSn5Co)QQ7R=;BHdEbAh76kt8|Niq=a-xHyDJ1q;x9X zNW-GeJ;D8Z-}gJ`k2B60_ z)HyE{>My?YXW=iiKR$`V|8VRcOWsH2wUN)khrjIZODUa)m)m(mU-l+!HS_v_% zRMjz1n;Hr+sB+8Rk$om=WMcZj#nwpCMNY}U#oU13kU>NkSI`L!53n@C=utaaT3Fek zorD;UpNod~$e-C5;38YYr|8FG5`Qj%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e)NNT~g>rh+JTvfs13{jm zs#j=xuTd5CG5x6nSaLyIG!D-6(5NVmnM0^Gsic+^DAAGN z#<7qsJ&k0N`}1sux0a>`Zb`T;C Date: Fri, 3 May 2024 09:00:45 +0900 Subject: [PATCH 092/148] Clarify the purpose of having resource group in gateway --- docs/resource-groups-api.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/resource-groups-api.md b/docs/resource-groups-api.md index 59e49c945..ac10cc5c6 100644 --- a/docs/resource-groups-api.md +++ b/docs/resource-groups-api.md @@ -1,5 +1,15 @@ # Resource groups API +Trino Gateway facilitates the management of resource groups across +multiple Trino clusters, using the [database resource group manager](https://trino.io/docs/current/admin/resource-groups.html#database-resource-group-manager). +It allows users to connect their Trino clusters to a centralized resource groups +table maintained in the Trino Gateway's database. This setup enables management +of resource groups either through the API or the Trino Gateway user interface. + +Trino offers both file-based and database resource group management. Using Trino +Gateway with database management avoids the need for cluster re-deployments when +updating resource groups, enhancing operational efficiency. + For resource group and selector apis, we can now specify a query parameter with the request supporting multiple trino databases for different trino backends. This allows a user to configure a db for every trino backend with their own From 375b999bfd9726420d7dd35d3b191e5cfb17b55a Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 30 May 2024 14:37:57 +0900 Subject: [PATCH 093/148] Set SameSite to LAX for OidcCookie --- .../main/java/io/trino/gateway/ha/security/OidcCookie.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java index fca09ee74..901fb86eb 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/OidcCookie.java @@ -22,7 +22,7 @@ import static com.google.common.base.Preconditions.checkState; import static io.trino.gateway.ha.resource.LoginResource.CALLBACK_ENDPOINT; -import static jakarta.ws.rs.core.NewCookie.SameSite.STRICT; +import static jakarta.ws.rs.core.NewCookie.SameSite.LAX; public class OidcCookie { @@ -42,7 +42,7 @@ public static NewCookie create(String state, String nonce) .value(String.join(DELIMITER, state, nonce)) .path(CALLBACK_ENDPOINT) .maxAge(TOKEN_EXPIRATION_SECOND) - .sameSite(STRICT) + .sameSite(LAX) .secure(true) .httpOnly(true) .build(); @@ -71,7 +71,7 @@ public static NewCookie delete() .value("delete") .path(CALLBACK_ENDPOINT) .maxAge(0) - .sameSite(STRICT) + .sameSite(LAX) .secure(true) .httpOnly(true) .build(); From a45190dcaf75e02a10c06b5756190047db22c078 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Thu, 30 May 2024 15:37:23 -0700 Subject: [PATCH 094/148] Add dev sync and maintainers --- docs/development.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/development.md b/docs/development.md index fb45e1319..2c45530a9 100644 --- a/docs/development.md +++ b/docs/development.md @@ -77,6 +77,23 @@ for more details. Want to help build Trino Gateway? Check out our [contributing documentation](https://github.com/trinodb/trino-gateway/blob/main/.github/CONTRIBUTING.md) +## Maintainers + +The following Trino and Trino Gateway maintainers are involved in Trino +Gateway, and can help with pull request reviews and merges. + +* [:fontawesome-brands-github: chaho12 - Jaeho Yoo](https://github.com/chaho12) +* [:fontawesome-brands-github: ebyhr - Yuya Ebihara](https://github.com/ebyhr) +* [:fontawesome-brands-github: mosabua - Manfred Moser](https://github.com/mosabua) +* [:fontawesome-brands-github: vishalya - Vishal Jadhav](https://github.com/vishalya) +* [:fontawesome-brands-github: wendigo - Mateusz Gajewski](https://github.com/wendigo) +* [:fontawesome-brands-github: willmostly - Will Morrison](https://github.com/willmostly) + +## Contributor meetings + +Contributor meetings are open to anyone and held every two weeks. [Meeting +notes and other details are available on GitHub](https://github.com/trinodb/trino-gateway/wiki/Contributor-meetings). + ## Release process A full release process consists of the following steps: From 69f2b2c70d5d24fc8c97d729541cb45ef7560648 Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Wed, 22 May 2024 13:38:16 +0900 Subject: [PATCH 095/148] Capitalize page permission key conf --- .../gateway/ha/security/LbFormAuthManager.java | 6 +++++- .../gateway/ha/security/LbOAuthManager.java | 5 ++++- .../ha/security/TestLbAuthenticator.java | 17 +++++++++++++++-- 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java index bddd75bbb..b7f8b9266 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbFormAuthManager.java @@ -32,6 +32,8 @@ import java.util.Optional; import java.util.stream.Stream; +import static com.google.common.collect.ImmutableMap.toImmutableMap; + public class LbFormAuthManager { private static final Logger log = Logger.get(LbFormAuthManager.class); @@ -48,7 +50,9 @@ public LbFormAuthManager(FormAuthConfiguration configuration, Map pagePermissions) { this.presetUsers = presetUsers; - this.pagePermissions = pagePermissions; + this.pagePermissions = pagePermissions.entrySet().stream() + .filter(entry -> entry.getValue() != null) + .collect(toImmutableMap(entry -> entry.getKey().toUpperCase(), Map.Entry::getValue)); if (configuration != null) { this.lbKeyProvider = new LbKeyProvider(configuration diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java index 3e2ea4c98..d273713ec 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/security/LbOAuthManager.java @@ -48,6 +48,7 @@ import java.util.Optional; import java.util.stream.Stream; +import static com.google.common.collect.ImmutableMap.toImmutableMap; import static com.google.common.hash.Hashing.sha256; import static com.nimbusds.oauth2.sdk.ResponseType.CODE; import static com.nimbusds.openid.connect.sdk.claims.IDTokenClaimsSet.NONCE_CLAIM_NAME; @@ -67,7 +68,9 @@ public class LbOAuthManager public LbOAuthManager(OAuthConfiguration configuration, Map pagePermissions) { this.oauthConfig = configuration; - this.pagePermissions = pagePermissions; + this.pagePermissions = pagePermissions.entrySet().stream() + .filter(entry -> entry.getValue() != null) + .collect(toImmutableMap(entry -> entry.getKey().toUpperCase(), Map.Entry::getValue)); } public String getUserIdField() diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java index 8f4eb492f..0c48b1fe6 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestLbAuthenticator.java @@ -36,6 +36,7 @@ import static io.trino.gateway.ha.security.SessionCookie.OAUTH_ID_TOKEN; import static io.trino.gateway.ha.security.SessionCookie.logOut; +import static java.util.Collections.unmodifiableMap; import static org.assertj.core.api.Assertions.assertThat; @TestInstance(Lifecycle.PER_CLASS) @@ -119,7 +120,7 @@ public void testPresetUsers() public void testNoLdapNoPresetUsers() throws Exception { - LbFormAuthManager authentication = new LbFormAuthManager(null, null, null); + LbFormAuthManager authentication = new LbFormAuthManager(null, null, ImmutableMap.of()); assertThat(authentication.authenticate(new BasicCredentials("user1", "pass1"))) .isFalse(); } @@ -128,11 +129,23 @@ public void testNoLdapNoPresetUsers() public void testWrongLdapConfig() throws Exception { - LbFormAuthManager authentication = new LbFormAuthManager(null, null, null); + LbFormAuthManager authentication = new LbFormAuthManager(null, null, ImmutableMap.of()); assertThat(authentication.authenticate(new BasicCredentials("user1", "pass1"))) .isFalse(); } + @Test + public void testNullInPagePermission() + { + Map presetUsers = ImmutableMap.of("user1", new UserConfiguration("admin, user, api", "pass1")); + Map pagePermission = new HashMap<>(); + pagePermission.put("user", null); + + LbFormAuthManager authentication = new LbFormAuthManager(null, presetUsers, unmodifiableMap(pagePermission)); + assertThat(authentication.authenticate(new BasicCredentials("user1", "pass1"))) + .isTrue(); + } + @Test public void testLogout() throws Exception From ad7ba81d83fc8dcb686fd2413fc47fa8561d0535 Mon Sep 17 00:00:00 2001 From: Jaeho Yoo Date: Fri, 10 May 2024 11:31:00 +0900 Subject: [PATCH 096/148] Add additional log properties using config-properties file --- docs/installation.md | 11 ++++++----- gateway-ha/etc/config.properties | 4 ++++ .../java/io/trino/gateway/ha/HaGatewayLauncher.java | 4 ++-- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 gateway-ha/etc/config.properties diff --git a/docs/installation.md b/docs/installation.md index 3c729d2c5..935cc78fa 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -100,14 +100,15 @@ configuration YAML file. Find more information in the [routing rules documentation](routing-rules.md). - ### Configure logging -Path to `log.properties` must be set via `log.levels-file` JVM options -like `-Dlog.levels-file=etc/log.properties`. +To configure the logging level for various classes, specify the path to the +`log.properties` file using the `log.levels-file` JVM options, such as +`-Dlog.levels-file=etc/log.properties`, when the logging type is `external`. -Use the `log.*` properties from the [Trino logging properties -documentation](https://trino.io/docs/current/admin/properties-logging.html) for further configuration. +For additional configurations, use the `log.*` properties from the +[Trino logging properties documentation](https://trino.io/docs/current/admin/properties-logging.html) and specify the path to `config.properties` +file using the `config` JVM options, such as `-Dconfig=var/config.properties`. ### Proxying additional paths diff --git a/gateway-ha/etc/config.properties b/gateway-ha/etc/config.properties new file mode 100644 index 000000000..72bfb8b0f --- /dev/null +++ b/gateway-ha/etc/config.properties @@ -0,0 +1,4 @@ +% https://trino.io/docs/current/admin/properties-logging.html +log.max-size=100MB +log.max-total-size=1GB +log.compression=GZIP diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index 8ff771b0c..e1d492ee7 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -23,7 +23,7 @@ import java.util.Map; -import static io.airlift.configuration.ConfigurationLoader.getSystemProperties; +import static io.airlift.configuration.ConfigurationLoader.loadProperties; public class HaGatewayLauncher extends BaseApp @@ -40,7 +40,7 @@ public static void main(String[] args) throws Exception { Logging.initialize(); - Map properties = getSystemProperties(); + Map properties = loadProperties(); ConfigurationFactory configurationFactory = new ConfigurationFactory(properties); LoggingConfiguration configuration = configurationFactory.build(LoggingConfiguration.class); Logging logging = Logging.initialize(); From f4628be6c36d3c27e99ebc53634b11099c4042a8 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Thu, 30 May 2024 11:34:32 -0700 Subject: [PATCH 097/148] Improve overview page - Fix gramamr - Resize image - Add slide deck and update info from Trino Summit presentation --- .../TrinoGateway-HighLevelArchitecture.png | Bin 131010 -> 0 bytes docs/assets/high-level-architecture.png | Bin 0 -> 51850 bytes docs/assets/misc/tgw-trino-summit-2023.pdf | Bin 0 -> 1990401 bytes docs/index.md | 11 +++++++---- 4 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 docs/assets/TrinoGateway-HighLevelArchitecture.png create mode 100644 docs/assets/high-level-architecture.png create mode 100644 docs/assets/misc/tgw-trino-summit-2023.pdf diff --git a/docs/assets/TrinoGateway-HighLevelArchitecture.png b/docs/assets/TrinoGateway-HighLevelArchitecture.png deleted file mode 100644 index 4d21faa050ef4036bc3e7807fd18eb11d2a7fc82..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 131010 zcmeFZbyQXB+cvt;ZEO?~1wmSn5Co)QQ7R=;BHdEbAh76kt8|Niq=a-xHyDJ1q;x9X zNW-GeJ;D8Z-}gJ`k2B60_ z)HyE{>My?YXW=iiKR$`V|8VRcOWsH2wUN)khrjIZODUa)m)m(mU-l+!HS_v_% zRMjz1n;Hr+sB+8Rk$om=WMcZj#nwpCMNY}U#oU13kU>NkSI`L!53n@C=utaaT3Fek zorD;UpNod~$e-C5;38YYr|8FG5`Qj%PeKeP7|b&?8=Iq}Bda4PtF^5$8#_NgKie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docs/index.md index 12b77b8e8..23fc72697 100644 --- a/docs/index.md +++ b/docs/index.md @@ -15,15 +15,18 @@ gateway for multiple [Trino](https://trino.io) clusters. blue/green model or canary deployment model. * Transparent change of capacity of Trino clusters without user interruptions. -## High Level Architecture +## High-level architecture -![Trino Gateway - High Level Architecture](assets/TrinoGateway-HighLevelArchitecture.png) +![High-level architecture](assets/high-level-architecture.png) ## Other resources * [Trino Gateway announment blog post](https://trino.io/blog/2023/09/28/trino-gateway) -* :fontawesome-brands-youtube:{ .youtube } [Many clusters and only one - gateway presentation at Trino Summit 2023](https://www.youtube.com/watch?v=2qwBcKmQSn0) +* Many clusters and only one gateway: + * Project announcement and overview at Trino Summit 2023 with use cases + from Bloomberg and Naver + * :fontawesome-brands-youtube:{ .youtube } [Video recording](https://www.youtube.com/watch?v=2qwBcKmQSn0) + * [Slide deck](./assets/misc/tgw-trino-summit-2023.pdf) * [Lyft blog post](https://eng.lyft.com/trino-infrastructure-at-lyft-b10adb9db01) * [Pinterest blog post](https://medium.com/pinterest-engineering/trino-at-pinterest-a8bda7515e52) * [Zomato blog post](https://www.zomato.com/blog/powering-data-analytics-with-trino) From bcc3b48d59db0a0bdd6b57887ab7dd4096b83460 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Mon, 3 Jun 2024 15:35:01 +0900 Subject: [PATCH 098/148] Fix typo --- docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.md b/docs/index.md index 23fc72697..051b4f540 100644 --- a/docs/index.md +++ b/docs/index.md @@ -21,7 +21,7 @@ gateway for multiple [Trino](https://trino.io) clusters. ## Other resources -* [Trino Gateway announment blog post](https://trino.io/blog/2023/09/28/trino-gateway) +* [Trino Gateway announcement blog post](https://trino.io/blog/2023/09/28/trino-gateway) * Many clusters and only one gateway: * Project announcement and overview at Trino Summit 2023 with use cases from Bloomberg and Naver From 8d8063ba8d8d4a4bce5e2284df4ae58a5236a224 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 6 Jun 2024 12:58:32 +0900 Subject: [PATCH 099/148] Remove non-null restriction for QueryHistory --- .../io/trino/gateway/ha/persistence/dao/QueryHistory.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java index 09bfdb3d0..3f0293374 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/QueryHistory.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.persistence.dao; +import jakarta.annotation.Nullable; import org.jdbi.v3.core.mapper.reflect.ColumnName; import static java.util.Objects.requireNonNull; @@ -21,8 +22,8 @@ public record QueryHistory( @ColumnName("query_id") String queryId, @ColumnName("query_text") String queryText, @ColumnName("backend_url") String backendUrl, - @ColumnName("user_name") String userName, - @ColumnName("source") String source, + @ColumnName("user_name") @Nullable String userName, + @ColumnName("source") @Nullable String source, @ColumnName("created") long created) { public QueryHistory @@ -30,7 +31,5 @@ public record QueryHistory( requireNonNull(queryId, "queryId is null"); requireNonNull(queryText, "queryText is null"); requireNonNull(backendUrl, "backendUrl is null"); - requireNonNull(userName, "userName is null"); - requireNonNull(source, "source is null"); } } From bc91f375f1163643edaa0fb935336964c4aad83b Mon Sep 17 00:00:00 2001 From: andythsu Date: Wed, 12 Jun 2024 11:21:15 -0400 Subject: [PATCH 100/148] Add proxytarget header to query requests --- .../ha/handler/QueryIdCachingProxyHandler.java | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index 4a401a35e..ddea7c1ff 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -305,17 +305,12 @@ public String rewriteTarget(HttpServletRequest request) } Optional previousBackend = getPreviousBackend(request); - if (previousBackend.isPresent()) { - logRewrite(previousBackend.orElseThrow(), request); - return previousBackend.map(b -> buildUriWithNewBackend(b, request)).orElseThrow(); - } - - String backend = getBackendFromRoutingGroup(request); - // set target backend so that we could save queryId to backend mapping later. - ((MultiReadHttpServletRequest) request).addHeader(PROXY_TARGET_HEADER, backend); - logRewrite(backend, request); + String clusterHost = previousBackend.orElseGet(() -> getBackendFromRoutingGroup(request)); + // set target clusterHost so that we could save queryId to cluster mapping later. + ((MultiReadHttpServletRequest) request).addHeader(PROXY_TARGET_HEADER, clusterHost); + logRewrite(clusterHost, request); - return buildUriWithNewBackend(backend, request); + return buildUriWithNewBackend(clusterHost, request); } private void logRewrite(String newBackend, HttpServletRequest request) From bf0dbcaa60febe915b47dd537c8e3add6158a486 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 9 Apr 2024 17:21:28 +0900 Subject: [PATCH 101/148] Remove io.dropwizard.metrics --- gateway-ha/pom.xml | 5 --- .../io/trino/gateway/baseapp/BaseApp.java | 27 +++++++------- .../gateway/baseapp/MetricRegistryModule.java | 36 ------------------- .../gateway/ha/handler/ProxyHandlerStats.java | 19 ++-------- .../ha/module/HaGatewayProviderModule.java | 9 ++--- 5 files changed, 16 insertions(+), 80 deletions(-) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/baseapp/MetricRegistryModule.java diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 413b20d29..a255d7619 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -219,11 +219,6 @@ dropwizard-request-logging - - io.dropwizard.metrics - metrics-core - - jakarta.annotation jakarta.annotation-api diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index aaaa79fb5..9a704c100 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -68,23 +68,21 @@ public abstract class BaseApp private static final Logger logger = Logger.get(BaseApp.class); private final ImmutableList.Builder appModules = ImmutableList.builder(); - private Module newModule(String clazz, HaGatewayConfiguration configuration, Environment environment) + private Module newModule(String clazz, HaGatewayConfiguration configuration) { try { logger.info("Trying to load module [%s]", clazz); - // Modules must have exactly one constructor. The signature must be either one: + // Modules must have exactly one constructor. The signature must be: // public Module constructor(HaGatewayConfiguration) - // public Module constructor(HaGatewayConfiguration, Environment) Constructor[] constructors = Class.forName(clazz).getConstructors(); if (constructors.length != 1) { throw new RuntimeException(format("Failed to load module [%s]. Multiple constructors exist.", clazz)); } Constructor constructor = constructors[0]; - Object module = switch (constructor.getParameterCount()) { - case 1 -> constructor.newInstance(configuration); - case 2 -> constructor.newInstance(configuration, environment); - default -> throw new RuntimeException(format("Failed to load module [%s]. Unsupported constructor.", clazz)); - }; + if (constructor.getParameterCount() != 1) { + throw new RuntimeException(format("Failed to load module [%s]. Unsupported constructor.", clazz)); + } + Object module = constructor.newInstance(configuration); return ((Module) module); } catch (Exception e) { @@ -94,7 +92,7 @@ private Module newModule(String clazz, HaGatewayConfiguration configuration, Env return null; } - private void validateModules(List modules, HaGatewayConfiguration configuration, Environment environment) + private void validateModules(List modules, HaGatewayConfiguration configuration) { Optional routerProvider = modules.stream() .filter(module -> module instanceof RouterBaseModule) @@ -102,7 +100,7 @@ private void validateModules(List modules, HaGatewayConfiguration config if (routerProvider.isEmpty()) { logger.warn("Router provider doesn't exist in the config, using the StochasticRoutingManagerProvider"); String clazz = StochasticRoutingManagerProvider.class.getCanonicalName(); - modules.add(newModule(clazz, configuration, environment)); + modules.add(newModule(clazz, configuration)); } } @@ -126,8 +124,7 @@ public void run(HaGatewayConfiguration configuration, Environment environment) private void configureGuice(HaGatewayConfiguration configuration, Environment environment) { - appModules.add(new MetricRegistryModule(environment.metrics())); - appModules.addAll(addModules(configuration, environment)); + appModules.addAll(addModules(configuration)); Injector injector = Guice.createInjector(appModules.build()); injector.injectMembers(this); registerWithInjector(configuration, environment, injector); @@ -149,7 +146,7 @@ private void registerWithInjector(HaGatewayConfiguration configuration, Environm * @param configuration the app configuration * @return a list of modules to be provisioned by Guice */ - protected List addModules(HaGatewayConfiguration configuration, Environment environment) + protected List addModules(HaGatewayConfiguration configuration) { List modules = new ArrayList<>(); if (configuration.getModules() == null) { @@ -157,10 +154,10 @@ protected List addModules(HaGatewayConfiguration configuration, Environm return modules; } for (String clazz : configuration.getModules()) { - modules.add(newModule(clazz, configuration, environment)); + modules.add(newModule(clazz, configuration)); } - validateModules(modules, configuration, environment); + validateModules(modules, configuration); return modules; } diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/MetricRegistryModule.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/MetricRegistryModule.java deleted file mode 100644 index 321c7ca32..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/MetricRegistryModule.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.baseapp; - -import com.codahale.metrics.MetricRegistry; -import com.google.inject.AbstractModule; -import jakarta.annotation.Nonnull; - -public class MetricRegistryModule - extends AbstractModule -{ - @Nonnull - private final MetricRegistry metricsRegistry; - - public MetricRegistryModule(MetricRegistry metricsRegistry) - { - this.metricsRegistry = metricsRegistry; - } - - @Override - protected void configure() - { - bind(MetricRegistry.class).toInstance(metricsRegistry); - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java index e5f21c001..f2f27e46a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java @@ -13,42 +13,27 @@ */ package io.trino.gateway.ha.handler; -import com.codahale.metrics.Meter; import io.airlift.stats.CounterStat; -import io.dropwizard.core.setup.Environment; import org.weakref.jmx.MBeanExporter; import org.weakref.jmx.Managed; import org.weakref.jmx.Nested; import java.lang.management.ManagementFactory; -import static java.util.Objects.requireNonNull; - public final class ProxyHandlerStats { // Airlift private final CounterStat requestCount = new CounterStat(); - // Dropwizard - private final Meter requestMeter; - - private ProxyHandlerStats(Environment environment, String metricsName) - { - this.requestMeter = requireNonNull(environment, "environment is null") - .metrics() - .meter(requireNonNull(metricsName, "metricsName is null")); - } - public void recordRequest() { requestCount.update(1); - requestMeter.mark(); } // Replace this with Guice bind after migrated to Airlift - public static ProxyHandlerStats create(Environment environment, String metricsName) + public static ProxyHandlerStats create() { - ProxyHandlerStats proxyHandlerStats = new ProxyHandlerStats(environment, metricsName); + ProxyHandlerStats proxyHandlerStats = new ProxyHandlerStats(); MBeanExporter exporter = new MBeanExporter(ManagementFactory.getPlatformMBeanServer()); exporter.exportWithGeneratedName(proxyHandlerStats); return proxyHandlerStats; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index b66372b2a..910b16b60 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -19,7 +19,6 @@ import com.google.inject.Singleton; import io.dropwizard.core.server.DefaultServerFactory; import io.dropwizard.core.server.SimpleServerFactory; -import io.dropwizard.core.setup.Environment; import io.dropwizard.jetty.ConnectorFactory; import io.dropwizard.jetty.HttpConnectorFactory; import io.trino.gateway.ha.config.AuthenticationConfiguration; @@ -72,12 +71,10 @@ public class HaGatewayProviderModule private final ResourceSecurityDynamicFeature resourceSecurityDynamicFeature; private final List extraWhitelistPaths; private final HaGatewayConfiguration configuration; - private final Environment environment; - public HaGatewayProviderModule(HaGatewayConfiguration configuration, Environment environment) + public HaGatewayProviderModule(HaGatewayConfiguration configuration) { this.configuration = requireNonNull(configuration, "configuration is null"); - this.environment = requireNonNull(environment, "environment is null"); Map presetUsers = configuration.getPresetUsers(); oauthManager = getOAuthManager(configuration); @@ -145,9 +142,7 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c private ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, RoutingManager routingManager) { - ProxyHandlerStats proxyHandlerStats = ProxyHandlerStats.create( - environment, - configuration.getRequestRouter().getName() + ".requests"); + ProxyHandlerStats proxyHandlerStats = ProxyHandlerStats.create(); // By default, use routing group header to route RoutingGroupSelector routingGroupSelector = RoutingGroupSelector.byRoutingGroupHeader(); From 0bfcc5b917a0c708841858caf3685c0d966388b7 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 9 Apr 2024 17:07:14 +0900 Subject: [PATCH 102/148] Remove dropwizard-request-logging --- gateway-ha/pom.xml | 5 --- .../io/trino/gateway/baseapp/BaseApp.java | 3 -- .../gateway/ha/log/GatewayRequestLog.java | 32 ------------------ .../ha/log/GatewayRequestLogFactory.java | 33 ------------------- 4 files changed, 73 deletions(-) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index a255d7619..8df2a4d6e 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -214,11 +214,6 @@ - - io.dropwizard - dropwizard-request-logging - - jakarta.annotation jakarta.annotation-api diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 9a704c100..7003cc90d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -22,12 +22,10 @@ import io.airlift.log.Logger; import io.dropwizard.core.Application; import io.dropwizard.core.Configuration; -import io.dropwizard.core.server.DefaultServerFactory; import io.dropwizard.core.setup.Environment; import io.dropwizard.lifecycle.Managed; import io.dropwizard.lifecycle.setup.LifecycleEnvironment; import io.trino.gateway.ha.config.HaGatewayConfiguration; -import io.trino.gateway.ha.log.GatewayRequestLogFactory; import io.trino.gateway.ha.module.RouterBaseModule; import io.trino.gateway.ha.module.StochasticRoutingManagerProvider; import io.trino.gateway.ha.resource.EntityEditorResource; @@ -118,7 +116,6 @@ protected void bootstrapLogging() {} public void run(HaGatewayConfiguration configuration, Environment environment) throws Exception { - ((DefaultServerFactory) configuration.getServerFactory()).setRequestLogFactory(new GatewayRequestLogFactory()); configureGuice(configuration, environment); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java b/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java deleted file mode 100644 index a8117bbb8..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLog.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.log; - -import io.airlift.log.Logger; -import org.eclipse.jetty.server.Request; -import org.eclipse.jetty.server.RequestLog; -import org.eclipse.jetty.server.Response; - -public class GatewayRequestLog - implements RequestLog -{ - private static final Logger log = Logger.get(GatewayRequestLog.class); - - @Override - public void log(Request request, Response response) - { - // Logging without filter as both request and response don't contain sensitive information - log.debug("Request: %s, response: %s", request, response); - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java b/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java deleted file mode 100644 index 101cf89a6..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/log/GatewayRequestLogFactory.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.log; - -import io.dropwizard.request.logging.RequestLogFactory; -import org.eclipse.jetty.server.RequestLog; - -public class GatewayRequestLogFactory - implements RequestLogFactory -{ - @Override - public boolean isEnabled() - { - return true; - } - - @Override - public RequestLog build(String name) - { - return new GatewayRequestLog(); - } -} From 29b71ba4cbe9a5ab5301c13f155f70c68040026d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 9 Apr 2024 23:28:34 +0900 Subject: [PATCH 103/148] Remove io.dropwizard.lifecycle.Managed annotation --- .../main/java/io/trino/gateway/ha/GatewayManagedApp.java | 8 ++++---- .../gateway/ha/clustermonitor/ActiveClusterMonitor.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java b/gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java index 67ebd4398..977c177af 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java @@ -14,13 +14,13 @@ package io.trino.gateway.ha; import com.google.inject.Inject; -import io.dropwizard.lifecycle.Managed; import io.trino.gateway.proxyserver.ProxyServer; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; import static java.util.Objects.requireNonNull; public class GatewayManagedApp - implements Managed { private final ProxyServer gateway; @@ -30,13 +30,13 @@ public GatewayManagedApp(ProxyServer gateway) this.gateway = requireNonNull(gateway, "gateway is null"); } - @Override + @PostConstruct public void start() { gateway.start(); } - @Override + @PreDestroy public void stop() { gateway.close(); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java index 716f69878..369104650 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ActiveClusterMonitor.java @@ -15,10 +15,11 @@ import com.google.inject.Inject; import io.airlift.log.Logger; -import io.dropwizard.lifecycle.Managed; import io.trino.gateway.ha.config.MonitorConfiguration; import io.trino.gateway.ha.config.ProxyBackendConfiguration; import io.trino.gateway.ha.router.GatewayBackendManager; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; import java.util.ArrayList; import java.util.List; @@ -28,7 +29,6 @@ import java.util.concurrent.TimeUnit; public class ActiveClusterMonitor - implements Managed { public static final int MONITOR_TASK_DELAY_SECONDS = 60; public static final int DEFAULT_THREAD_POOL_SIZE = 20; @@ -60,7 +60,7 @@ public ActiveClusterMonitor( /** * Run an app that queries all active trino clusters for stats. */ - @Override + @PostConstruct public void start() { singleTaskExecutor.submit( @@ -104,7 +104,7 @@ public void start() /** * Shut down the app. */ - @Override + @PreDestroy public void stop() { this.monitorActive = false; From fde5329e6eb54b39d8d4d6a080f9cfd949674728 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 9 Apr 2024 23:54:09 +0900 Subject: [PATCH 104/148] Replace Dropwizard with Airlift in pom.xml --- gateway-ha/pom.xml | 135 +++++++++++++-------------------------------- pom.xml | 31 ++++++++--- 2 files changed, 60 insertions(+), 106 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 8df2a4d6e..c0001322e 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -109,11 +109,21 @@ + + io.airlift + bootstrap + + io.airlift configuration + + io.airlift + event + + io.airlift http-client @@ -121,103 +131,58 @@ io.airlift - json + http-server io.airlift - log + jaxrs io.airlift - log-manager + jmx io.airlift - stats + jmx-http io.airlift - units - 1.10 + json - io.dropwizard - dropwizard-assets - - - jakarta.servlet - jakarta.servlet-api - - + io.airlift + log - io.dropwizard - dropwizard-core - - - - jakarta.inject - jakarta.inject-api - - - jakarta.servlet - jakarta.servlet-api - - + io.airlift + log-manager - io.dropwizard - dropwizard-jersey - - - - jakarta.inject - jakarta.inject-api - - - jakarta.servlet - jakarta.servlet-api - - - org.glassfish.hk2.external - aopalliance-repackaged - - + io.airlift + node - io.dropwizard - dropwizard-jetty - - - jakarta.servlet - jakarta.servlet-api - - + io.airlift + stats - io.dropwizard - dropwizard-lifecycle - - - jakarta.servlet - jakarta.servlet-api - - + io.airlift + units jakarta.annotation jakarta.annotation-api - 2.1.1 + 3.0.0 @@ -230,14 +195,6 @@ jakarta.ws.rs-api - - - - joda-time - joda-time - - org.apache.commons commons-pool2 @@ -277,11 +234,6 @@ jetty-io - - org.eclipse.jetty - jetty-proxy - - org.eclipse.jetty jetty-server @@ -295,12 +247,19 @@ org.eclipse.jetty - jetty-servlet + jetty-util - org.eclipse.jetty - jetty-util + org.eclipse.jetty.ee10 + jetty-ee10-proxy + ${dep.jetty.version} + + + + org.eclipse.jetty.ee10 + jetty-ee10-servlet + ${dep.jetty.version} @@ -353,17 +312,11 @@ runtime - - io.dropwizard - dropwizard-views-freemarker - runtime - - io.trino trino-jdbc - 433 + 448 runtime @@ -484,20 +437,6 @@ - - org.apache.maven.plugins - maven-dependency-plugin - - - - - joda-time:joda-time - - - - - - maven-shade-plugin diff --git a/pom.xml b/pom.xml index 0cb5c0e5e..ae420f1bc 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.airlift airbase - 151 + 156 io.trino.gateway @@ -44,6 +44,7 @@ true true clean verify -DskipTests + 12.0.9 @@ -51,15 +52,23 @@ io.airlift bom - 240 + 248 pom import - io.dropwizard - dropwizard-dependencies - 4.0.6 + org.eclipse.jetty + jetty-bom + ${dep.jetty.version} + pom + import + + + + org.eclipse.jetty.ee10 + jetty-ee10-bom + ${dep.jetty.version} pom import @@ -81,9 +90,15 @@ - jakarta.activation - jakarta.activation-api - 2.1.2 + io.airlift + units + 1.10 + + + + org.glassfish.jersey.core + jersey-server + 3.1.6 From 1e2b365c40d8c53e5780b1ffcfba101e3b3627d0 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 10 Apr 2024 09:40:53 +0900 Subject: [PATCH 105/148] Update to Jetty ee10 --- .../ha/handler/QueryIdCachingProxyHandler.java | 2 +- .../io/trino/gateway/proxyserver/ProxyHandler.java | 2 +- .../io/trino/gateway/proxyserver/ProxyServer.java | 14 +++++++------- .../gateway/proxyserver/ProxyServletImpl.java | 8 ++++---- .../ha/handler/TestQueryIdCachingProxyHandler.java | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index ddea7c1ff..4bda6065f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -30,7 +30,7 @@ import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import jakarta.ws.rs.HttpMethod; -import org.eclipse.jetty.client.api.Request; +import org.eclipse.jetty.client.Request; import org.eclipse.jetty.http.HttpStatus; import org.eclipse.jetty.util.Callback; diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java index bd1a94bdd..150476a00 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java @@ -18,7 +18,7 @@ import jakarta.servlet.http.Cookie; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; -import org.eclipse.jetty.client.api.Request; +import org.eclipse.jetty.client.Request; import org.eclipse.jetty.http.HttpHeader; import org.eclipse.jetty.util.Callback; diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java index 6b823ac0f..5dc71d17b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java @@ -15,16 +15,16 @@ import io.airlift.log.Logger; import jakarta.servlet.DispatcherType; +import org.eclipse.jetty.ee10.servlet.ServletContextHandler; +import org.eclipse.jetty.ee10.servlet.ServletHolder; import org.eclipse.jetty.http.HttpScheme; -import org.eclipse.jetty.proxy.ConnectHandler; import org.eclipse.jetty.server.HttpConfiguration; import org.eclipse.jetty.server.HttpConnectionFactory; import org.eclipse.jetty.server.SecureRequestCustomizer; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.ServerConnector; import org.eclipse.jetty.server.SslConnectionFactory; -import org.eclipse.jetty.servlet.ServletContextHandler; -import org.eclipse.jetty.servlet.ServletHolder; +import org.eclipse.jetty.server.handler.ConnectHandler; import org.eclipse.jetty.util.ssl.SslContextFactory; import java.io.Closeable; @@ -122,10 +122,10 @@ private void setupContext(ProxyServerConfiguration config) proxyServlet.setInitParameter("preserveHost", config.getPreserveHost()); // Setup proxy servlet - this.context = - new ServletContextHandler(proxyConnectHandler, "/", ServletContextHandler.SESSIONS); - this.context.addServlet(proxyServlet, "/*"); - this.context.addFilter(RequestFilter.class, "/*", EnumSet.allOf(DispatcherType.class)); + context = new ServletContextHandler("/", ServletContextHandler.SESSIONS); + proxyConnectHandler.setHandler(context); + context.addServlet(proxyServlet, "/*"); + context.addFilter(RequestFilter.class, "/*", EnumSet.allOf(DispatcherType.class)); } public void start() diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java index da013d613..b796a6015 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java @@ -17,11 +17,11 @@ import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; import org.eclipse.jetty.client.HttpClient; -import org.eclipse.jetty.client.api.Request; -import org.eclipse.jetty.client.api.Response; -import org.eclipse.jetty.client.dynamic.HttpClientTransportDynamic; +import org.eclipse.jetty.client.Request; +import org.eclipse.jetty.client.Response; +import org.eclipse.jetty.client.transport.HttpClientTransportDynamic; +import org.eclipse.jetty.ee10.proxy.ProxyServlet; import org.eclipse.jetty.io.ClientConnector; -import org.eclipse.jetty.proxy.ProxyServlet; import org.eclipse.jetty.util.Callback; import org.eclipse.jetty.util.ssl.SslContextFactory; diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java index 4e8cfd10f..06f6f076d 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java @@ -15,7 +15,7 @@ import jakarta.servlet.http.HttpServletRequest; import org.eclipse.jetty.client.HttpClient; -import org.eclipse.jetty.client.api.Request; +import org.eclipse.jetty.client.Request; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.TestInstance.Lifecycle; From 17c1c766d0b7132be21e7f3cfa0dc6c525e1caba Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 12:22:50 +0900 Subject: [PATCH 106/148] Remove dropwizard config --- docs/quickstart-config.yaml | 13 ------ gateway-ha/gateway-ha-config-docker.yml | 13 ------ gateway-ha/gateway-ha-config.yml | 13 ------ .../ha/config/HaGatewayConfiguration.java | 3 -- .../ha/module/HaGatewayProviderModule.java | 43 +++++++------------ .../test/resources/auth/auth-test-config.yml | 11 ----- .../test/resources/auth/oauth-test-config.yml | 11 ----- .../test/resources/test-config-template.yml | 11 ----- helm/trino-gateway/values.yaml | 11 ----- 9 files changed, 15 insertions(+), 114 deletions(-) diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index eb0f3d11f..8bc894409 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -4,16 +4,6 @@ requestRouter: name: testTrinoRouter historySize: 1000 -server: - applicationConnectors: - - type: http - port: 9081 - useForwardedHeaders: true - adminConnectors: - - type: http - port: 9082 - useForwardedHeaders: true - dataStore: #This stores the URLs of backend Trino servers and query history jdbcUrl: jdbc:postgresql://localhost:5432/gateway @@ -32,6 +22,3 @@ modules: managedApps: - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor - -logging: - type: external diff --git a/gateway-ha/gateway-ha-config-docker.yml b/gateway-ha/gateway-ha-config-docker.yml index 91e3a622c..98afb2241 100644 --- a/gateway-ha/gateway-ha-config-docker.yml +++ b/gateway-ha/gateway-ha-config-docker.yml @@ -18,16 +18,6 @@ dataStore: clusterStatsConfiguration: monitorType: INFO_API -server: - applicationConnectors: - - type: http - port: 8090 - useForwardedHeaders: true - adminConnectors: - - type: http - port: 8091 - useForwardedHeaders: true - modules: - io.trino.gateway.ha.module.HaGatewayProviderModule - io.trino.gateway.ha.module.ClusterStateListenerModule @@ -36,6 +26,3 @@ modules: managedApps: - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor - -logging: - type: external diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index e6d593659..7f1ad3e1c 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -18,16 +18,6 @@ dataStore: clusterStatsConfiguration: monitorType: INFO_API -server: - applicationConnectors: - - type: http - port: 8090 - useForwardedHeaders: true - adminConnectors: - - type: http - port: 8091 - useForwardedHeaders: true - # This can be adjusted based on the coordinator state monitor: taskDelaySeconds: 10 @@ -40,6 +30,3 @@ modules: managedApps: - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor - -logging: - type: external diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 83bba6172..2438d4990 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -13,15 +13,12 @@ */ package io.trino.gateway.ha.config; -import io.dropwizard.core.Configuration; - import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class HaGatewayConfiguration - extends Configuration { private RequestRouterConfiguration requestRouter; private NotifierConfiguration notifier; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 910b16b60..72695ed36 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -17,10 +17,8 @@ import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.google.inject.Singleton; -import io.dropwizard.core.server.DefaultServerFactory; -import io.dropwizard.core.server.SimpleServerFactory; -import io.dropwizard.jetty.ConnectorFactory; -import io.dropwizard.jetty.HttpConnectorFactory; +import io.airlift.http.server.HttpServerConfig; +import io.airlift.http.server.HttpsConfig; import io.trino.gateway.ha.config.AuthenticationConfiguration; import io.trino.gateway.ha.config.AuthorizationConfiguration; import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; @@ -57,7 +55,7 @@ import java.util.List; import java.util.Map; -import java.util.stream.Stream; +import java.util.Optional; import static java.util.Objects.requireNonNull; @@ -139,8 +137,11 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c return new ChainedAuthFilter(authFilters.build()); } - private ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, - RoutingManager routingManager) + private ProxyHandler getProxyHandler( + QueryHistoryManager queryHistoryManager, + RoutingManager routingManager, + HttpServerConfig httpServerConfig, + Optional httpsConfig) { ProxyHandlerStats proxyHandlerStats = ProxyHandlerStats.create(); @@ -157,28 +158,11 @@ private ProxyHandler getProxyHandler(QueryHistoryManager queryHistoryManager, queryHistoryManager, routingManager, routingGroupSelector, - getApplicationPort(), + httpsConfig.map(HttpsConfig::getHttpsPort).orElseGet(httpServerConfig::getHttpPort), proxyHandlerStats, extraWhitelistPaths); } - private int getApplicationPort() - { - Stream connectors = - configuration.getServerFactory() instanceof DefaultServerFactory - ? ((DefaultServerFactory) configuration.getServerFactory()) - .getApplicationConnectors().stream() - : Stream.of((SimpleServerFactory) configuration.getServerFactory()) - .map(SimpleServerFactory::getConnector); - - return connectors - .filter(connector -> connector.getClass().isAssignableFrom(HttpConnectorFactory.class)) - .map(connector -> (HttpConnectorFactory) connector) - .mapToInt(HttpConnectorFactory::getPort) - .findFirst() - .orElseThrow(IllegalStateException::new); - } - private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration configuration) { AuthorizationConfiguration authorizationConfig = configuration.getAuthorization(); @@ -196,8 +180,11 @@ private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration conf @Provides @Singleton - public ProxyServer provideGateway(QueryHistoryManager queryHistoryManager, - RoutingManager routingManager) + public ProxyServer provideGateway( + QueryHistoryManager queryHistoryManager, + RoutingManager routingManager, + HttpServerConfig httpServerConfig, + Optional httpsConfig) { ProxyServer gateway = null; if (configuration.getRequestRouter() != null) { @@ -218,7 +205,7 @@ public ProxyServer provideGateway(QueryHistoryManager queryHistoryManager, routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseHeaderSize()); routerProxyConfig.setRequestBufferSize(routerConfiguration.getRequestBufferSize()); routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseBufferSize()); - ProxyHandler proxyHandler = getProxyHandler(queryHistoryManager, routingManager); + ProxyHandler proxyHandler = getProxyHandler(queryHistoryManager, routingManager, httpServerConfig, httpsConfig); gateway = new ProxyServer(routerProxyConfig, proxyHandler); } return gateway; diff --git a/gateway-ha/src/test/resources/auth/auth-test-config.yml b/gateway-ha/src/test/resources/auth/auth-test-config.yml index e3efbe23e..7cb1ece5e 100644 --- a/gateway-ha/src/test/resources/auth/auth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/auth-test-config.yml @@ -3,14 +3,6 @@ requestRouter: name: testTrinoRouter historySize: 1000 -server: - applicationConnectors: - - type: http - port: APPLICATION_CONNECTOR_PORT - adminConnectors: - - type: http - port: ADMIN_CONNECTOR_PORT - dataStore: jdbcUrl: jdbc:h2:DB_FILE_PATH user: sa @@ -26,9 +18,6 @@ managedApps: extraWhitelistPaths: - "/v1/custom" -logging: - type: external - authorization: admin: .*FOO.* user: .*BAR.* diff --git a/gateway-ha/src/test/resources/auth/oauth-test-config.yml b/gateway-ha/src/test/resources/auth/oauth-test-config.yml index ca415261e..edd39b5da 100644 --- a/gateway-ha/src/test/resources/auth/oauth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/oauth-test-config.yml @@ -5,14 +5,6 @@ requestRouter: keystorePath: LOCALHOST_JKS keystorePass: 123456 -server: - applicationConnectors: - - type: http - port: APPLICATION_CONNECTOR_PORT - adminConnectors: - - type: http - port: ADMIN_CONNECTOR_PORT - dataStore: jdbcUrl: jdbc:h2:DB_FILE_PATH user: sa @@ -28,9 +20,6 @@ managedApps: extraWhitelistPaths: - "/v1/custom" -logging: - type: external - authorization: admin: .*FOO.* user: .*BAR.* diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index 4781e179a..fceee1435 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -3,14 +3,6 @@ requestRouter: name: testTrinoRouter historySize: 1000 -server: - applicationConnectors: - - type: http - port: APPLICATION_CONNECTOR_PORT - adminConnectors: - - type: http - port: ADMIN_CONNECTOR_PORT - dataStore: jdbcUrl: jdbc:h2:DB_FILE_PATH user: sa @@ -33,6 +25,3 @@ gatewayCookieConfiguration: oauth2GatewayCookieConfiguration: deletePaths: - "/custom/logout" - -logging: - type: external diff --git a/helm/trino-gateway/values.yaml b/helm/trino-gateway/values.yaml index df7a483fd..700266a3e 100644 --- a/helm/trino-gateway/values.yaml +++ b/helm/trino-gateway/values.yaml @@ -34,22 +34,11 @@ authenticationSecret: key: "" config: - logging: - type: "external" requestRouter: #SQL clients connect to the request port port: 9080 name: testTrinoRouter historySize: 1000 - server: - applicationConnectors: - - type: http - port: 9081 - useForwardedHeaders: true - adminConnectors: - - type: http - port: 9082 - useForwardedHeaders: true clusterStatsConfiguration: monitorType: INFO_API modules: From eadb74d12ba9e196e33996e9a52b53691ce72b2a Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 18 Apr 2024 15:45:37 +0900 Subject: [PATCH 107/148] Add config in YAML for Airlift --- docs/quickstart-config.yaml | 4 ++++ gateway-ha/gateway-ha-config-docker.yml | 4 ++++ gateway-ha/gateway-ha-config.yml | 4 ++++ .../gateway/ha/config/HaGatewayConfiguration.java | 11 +++++++++++ .../src/test/resources/auth/auth-test-config.yml | 4 ++++ .../src/test/resources/auth/oauth-test-config.yml | 4 ++++ .../src/test/resources/test-config-template.yml | 4 ++++ helm/trino-gateway/values.yaml | 3 +++ 8 files changed, 38 insertions(+) diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index 8bc894409..514b47125 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -1,3 +1,7 @@ +httpConfig: + node.environment: test + http-server.http.port: 9081 + requestRouter: #SQL clients connect to the request port port: 9080 diff --git a/gateway-ha/gateway-ha-config-docker.yml b/gateway-ha/gateway-ha-config-docker.yml index 98afb2241..aa2c671ba 100644 --- a/gateway-ha/gateway-ha-config-docker.yml +++ b/gateway-ha/gateway-ha-config-docker.yml @@ -1,3 +1,7 @@ +httpConfig: + node.environment: test + http-server.http.port: 9081 + routingRules: rulesEngineEnabled: False # rulesConfigPath: "src/main/resources/rules/routing_rules.yml" diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index 7f1ad3e1c..c5c10a855 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -1,3 +1,7 @@ +httpConfig: + node.environment: test + http-server.http.port: 9081 + routingRules: rulesEngineEnabled: False # rulesConfigPath: "src/main/resources/rules/routing_rules.yml" diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 2438d4990..99f42f962 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -20,6 +20,7 @@ public class HaGatewayConfiguration { + private Map httpConfig = new HashMap<>(); private RequestRouterConfiguration requestRouter; private NotifierConfiguration notifier; private DataStoreConfiguration dataStore; @@ -43,6 +44,16 @@ public class HaGatewayConfiguration public HaGatewayConfiguration() {} + public Map getHttpConfig() + { + return this.httpConfig; + } + + public void setHttpConfig(Map httpConfig) + { + this.httpConfig = httpConfig; + } + public RequestRouterConfiguration getRequestRouter() { return this.requestRouter; diff --git a/gateway-ha/src/test/resources/auth/auth-test-config.yml b/gateway-ha/src/test/resources/auth/auth-test-config.yml index 7cb1ece5e..42a1e3de3 100644 --- a/gateway-ha/src/test/resources/auth/auth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/auth-test-config.yml @@ -1,3 +1,7 @@ +httpConfig: + node.environment: test + http-server.http.port: 9081 + requestRouter: port: REQUEST_ROUTER_PORT name: testTrinoRouter diff --git a/gateway-ha/src/test/resources/auth/oauth-test-config.yml b/gateway-ha/src/test/resources/auth/oauth-test-config.yml index edd39b5da..e3346e6ef 100644 --- a/gateway-ha/src/test/resources/auth/oauth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/oauth-test-config.yml @@ -1,3 +1,7 @@ +httpConfig: + node.environment: test + http-server.http.port: 9081 + requestRouter: port: REQUEST_ROUTER_PORT name: testTrinoRouter diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index fceee1435..14978dcdd 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -1,3 +1,7 @@ +httpConfig: + node.environment: test + http-server.http.port: 9081 + requestRouter: port: REQUEST_ROUTER_PORT name: testTrinoRouter diff --git a/helm/trino-gateway/values.yaml b/helm/trino-gateway/values.yaml index 700266a3e..6065fe732 100644 --- a/helm/trino-gateway/values.yaml +++ b/helm/trino-gateway/values.yaml @@ -34,6 +34,9 @@ authenticationSecret: key: "" config: + httpConfig: + node.environment: test + http-server.http.port: 9081 requestRouter: #SQL clients connect to the request port port: 9080 From fef461c38e5008533a754bd59f3be7a8acf459f5 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 13:37:51 +0900 Subject: [PATCH 108/148] Remove io.dropwizard.core --- .../io/trino/gateway/baseapp/BaseApp.java | 168 ++++++------------ .../trino/gateway/ha/HaGatewayLauncher.java | 3 - 2 files changed, 53 insertions(+), 118 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 7003cc90d..a583f5c4c 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -14,17 +14,11 @@ package io.trino.gateway.baseapp; import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableSet; import com.google.common.collect.MoreCollectors; -import com.google.inject.Guice; -import com.google.inject.Injector; +import com.google.inject.Binder; import com.google.inject.Module; +import com.google.inject.Scopes; import io.airlift.log.Logger; -import io.dropwizard.core.Application; -import io.dropwizard.core.Configuration; -import io.dropwizard.core.setup.Environment; -import io.dropwizard.lifecycle.Managed; -import io.dropwizard.lifecycle.setup.LifecycleEnvironment; import io.trino.gateway.ha.config.HaGatewayConfiguration; import io.trino.gateway.ha.module.RouterBaseModule; import io.trino.gateway.ha.module.StochasticRoutingManagerProvider; @@ -44,27 +38,22 @@ import java.util.ArrayList; import java.util.List; import java.util.Optional; -import java.util.Set; +import static io.airlift.jaxrs.JaxrsBinder.jaxrsBinder; import static java.lang.String.format; +import static java.util.Objects.requireNonNull; -/** - * Supports Guice in Dropwizard. - * - *

    To use it, create a subclass and provide a list of modules you want to use with the {@link - * #addModules} method. - * - *

    Packages supplied in the constructor will be scanned for Resources, Providers, and Managed - * classes, and added to the environment. - * - *

    GuiceApplication also makes {@link com.codahale.metrics.MetricRegistry} available for - * injection. - */ -public abstract class BaseApp - extends Application +public class BaseApp + implements Module { private static final Logger logger = Logger.get(BaseApp.class); private final ImmutableList.Builder appModules = ImmutableList.builder(); + private final HaGatewayConfiguration haGatewayConfiguration; + + public BaseApp(HaGatewayConfiguration haGatewayConfiguration) + { + this.haGatewayConfiguration = requireNonNull(haGatewayConfiguration); + } private Module newModule(String clazz, HaGatewayConfiguration configuration) { @@ -85,7 +74,7 @@ private Module newModule(String clazz, HaGatewayConfiguration configuration) } catch (Exception e) { logger.error(e, "Could not instantiate module [%s]", clazz); - onFatalError(e); + System.exit(1); } return null; } @@ -102,47 +91,6 @@ private void validateModules(List modules, HaGatewayConfiguration config } } - @Override // Using Airlift logger - protected void bootstrapLogging() {} - - /** - * When the application runs, this is called after the bundles are run. - * - * @param configuration the parsed {@link Configuration} object - * @param environment the application's {@link Environment} - * @throws Exception if something goes wrong - */ - @Override - public void run(HaGatewayConfiguration configuration, Environment environment) - throws Exception - { - configureGuice(configuration, environment); - } - - private void configureGuice(HaGatewayConfiguration configuration, Environment environment) - { - appModules.addAll(addModules(configuration)); - Injector injector = Guice.createInjector(appModules.build()); - injector.injectMembers(this); - registerWithInjector(configuration, environment, injector); - } - - private void registerWithInjector(HaGatewayConfiguration configuration, Environment environment, Injector injector) - { - logger.info("op=register_start configuration=%s", configuration.toString()); - registerAuthFilters(environment, injector); - registerProviders(environment, injector); - addManagedApps(configuration, environment, injector); - registerResources(environment, injector); - logger.info("op=register_end configuration=%s", configuration.toString()); - } - - /** - * Supply a list of modules to be used by Guice. - * - * @param configuration the app configuration - * @return a list of modules to be provisioned by Guice - */ protected List addModules(HaGatewayConfiguration configuration) { List modules = new ArrayList<>(); @@ -159,68 +107,58 @@ protected List addModules(HaGatewayConfiguration configuration) return modules; } - /** - * Supply a list of managed apps. - */ - protected List addManagedApps( - HaGatewayConfiguration configuration, Environment environment, Injector injector) + @Override + public void configure(Binder binder) + { + registerWithInjector(this.haGatewayConfiguration, binder); + } + + private static void registerWithInjector(HaGatewayConfiguration configuration, Binder binder) + { + registerAuthFilters(binder); + registerProviders(binder); + addManagedApps(configuration, binder); + registerResources(binder); + } + + private static void addManagedApps(HaGatewayConfiguration configuration, Binder binder) { - List managedApps = new ArrayList<>(); if (configuration.getManagedApps() == null) { logger.error("No managed apps found"); - return managedApps; + return; } - configuration - .getManagedApps() - .forEach( - clazz -> { - try { - Class c = Class.forName(clazz); - LifecycleEnvironment lifecycle = environment.lifecycle(); - lifecycle.manage((Managed) injector.getInstance(c)); - logger.info("op=register type=managed item=%s", c); - } - catch (Exception e) { - logger.error(e, "Error loading managed app"); - } - }); - return managedApps; + configuration.getManagedApps().forEach( + clazz -> { + try { + Class c = Class.forName(clazz); + binder.bind(c).in(Scopes.SINGLETON); + } + catch (Exception e) { + logger.error(e, "Error loading managed app"); + } + }); } - private void registerProviders(Environment environment, Injector injector) + private static void registerProviders(Binder binder) { - final Set> classes = ImmutableSet.of(AuthorizedExceptionMapper.class); - classes.forEach( - c -> { - environment.jersey().register(injector.getInstance(c)); - logger.info("op=register type=provider item=%s", c); - }); + jaxrsBinder(binder).bind(AuthorizedExceptionMapper.class); } - private void registerResources(Environment environment, Injector injector) + private static void registerResources(Binder binder) { - final Set> classes = ImmutableSet.of( - EntityEditorResource.class, - GatewayResource.class, - GatewayViewResource.class, - GatewayWebAppResource.class, - HaGatewayResource.class, - LoginResource.class, - PublicResource.class, - TrinoResource.class); - classes.forEach( - c -> { - environment.jersey().register(injector.getInstance(c)); - logger.info("op=register type=resource item=%s", c); - }); + jaxrsBinder(binder).bind(EntityEditorResource.class); + jaxrsBinder(binder).bind(GatewayResource.class); + jaxrsBinder(binder).bind(GatewayViewResource.class); + jaxrsBinder(binder).bind(GatewayWebAppResource.class); + jaxrsBinder(binder).bind(HaGatewayResource.class); + jaxrsBinder(binder).bind(LoginResource.class); + jaxrsBinder(binder).bind(PublicResource.class); + jaxrsBinder(binder).bind(TrinoResource.class); } - private void registerAuthFilters(Environment environment, Injector injector) + private static void registerAuthFilters(Binder binder) { - environment - .jersey() - .register(injector.getInstance(ResourceSecurityDynamicFeature.class)); - logger.info("op=register type=auth filter item=%s", ResourceSecurityDynamicFeature.class); - environment.jersey().register(RolesAllowedDynamicFeature.class); + jaxrsBinder(binder).bind(ResourceSecurityDynamicFeature.class); + jaxrsBinder(binder).bind(RolesAllowedDynamicFeature.class); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index e1d492ee7..a4783b47e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -18,7 +18,6 @@ import io.airlift.log.LoggingConfiguration; import io.dropwizard.assets.AssetsBundle; import io.dropwizard.core.setup.Bootstrap; -import io.trino.gateway.baseapp.BaseApp; import io.trino.gateway.ha.config.HaGatewayConfiguration; import java.util.Map; @@ -26,9 +25,7 @@ import static io.airlift.configuration.ConfigurationLoader.loadProperties; public class HaGatewayLauncher - extends BaseApp { - @Override public void initialize(Bootstrap bootstrap) { super.initialize(bootstrap); From 93772172d46247275a24412b2b0f89827522f9ea Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 17:25:51 +0900 Subject: [PATCH 109/148] Update ResourceSecurityDynamicFeature binding --- .../java/io/trino/gateway/baseapp/BaseApp.java | 2 -- .../gateway/ha/module/HaGatewayProviderModule.java | 14 +++++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index a583f5c4c..a298f0e90 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -31,7 +31,6 @@ import io.trino.gateway.ha.resource.PublicResource; import io.trino.gateway.ha.resource.TrinoResource; import io.trino.gateway.ha.security.AuthorizedExceptionMapper; -import io.trino.gateway.ha.security.ResourceSecurityDynamicFeature; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; import java.lang.reflect.Constructor; @@ -158,7 +157,6 @@ private static void registerResources(Binder binder) private static void registerAuthFilters(Binder binder) { - jaxrsBinder(binder).bind(ResourceSecurityDynamicFeature.class); jaxrsBinder(binder).bind(RolesAllowedDynamicFeature.class); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 72695ed36..72bbe5648 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -57,6 +57,7 @@ import java.util.Map; import java.util.Optional; +import static io.airlift.jaxrs.JaxrsBinder.jaxrsBinder; import static java.util.Objects.requireNonNull; public class HaGatewayProviderModule @@ -70,6 +71,12 @@ public class HaGatewayProviderModule private final List extraWhitelistPaths; private final HaGatewayConfiguration configuration; + @Override + protected void configure() + { + jaxrsBinder(binder()).bindInstance(resourceSecurityDynamicFeature); + } + public HaGatewayProviderModule(HaGatewayConfiguration configuration) { this.configuration = requireNonNull(configuration, "configuration is null"); @@ -232,13 +239,6 @@ public AuthorizationManager getAuthorizationManager() return this.authorizationManager; } - @Provides - @Singleton - public ResourceSecurityDynamicFeature getResourceSecurityDynamicFeature() - { - return resourceSecurityDynamicFeature; - } - @Provides @Singleton public BackendStateManager getBackendStateConnectionManager() From ced9c7d4e0dccdc598cbd07285d2e52da4070ab0 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 30 May 2024 20:07:12 +0900 Subject: [PATCH 110/148] Refactor BaseApp --- .../java/io/trino/gateway/baseapp/BaseApp.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index a298f0e90..9a1346dd2 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -108,16 +108,11 @@ protected List addModules(HaGatewayConfiguration configuration) @Override public void configure(Binder binder) - { - registerWithInjector(this.haGatewayConfiguration, binder); - } - - private static void registerWithInjector(HaGatewayConfiguration configuration, Binder binder) { registerAuthFilters(binder); - registerProviders(binder); - addManagedApps(configuration, binder); registerResources(binder); + addManagedApps(this.haGatewayConfiguration, binder); + jaxrsBinder(binder).bind(AuthorizedExceptionMapper.class); } private static void addManagedApps(HaGatewayConfiguration configuration, Binder binder) @@ -138,11 +133,6 @@ private static void addManagedApps(HaGatewayConfiguration configuration, Binder }); } - private static void registerProviders(Binder binder) - { - jaxrsBinder(binder).bind(AuthorizedExceptionMapper.class); - } - private static void registerResources(Binder binder) { jaxrsBinder(binder).bind(EntityEditorResource.class); From 70d39397fada6ae4936b0ec4901e73c4c92a5cfc Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 30 May 2024 20:16:30 +0900 Subject: [PATCH 111/148] Refactor ProxyHandlerStats --- .../main/java/io/trino/gateway/baseapp/BaseApp.java | 4 ++++ .../trino/gateway/ha/handler/ProxyHandlerStats.java | 13 ------------- .../gateway/ha/module/HaGatewayProviderModule.java | 6 +++--- 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 9a1346dd2..222772ec5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -20,6 +20,7 @@ import com.google.inject.Scopes; import io.airlift.log.Logger; import io.trino.gateway.ha.config.HaGatewayConfiguration; +import io.trino.gateway.ha.handler.ProxyHandlerStats; import io.trino.gateway.ha.module.RouterBaseModule; import io.trino.gateway.ha.module.StochasticRoutingManagerProvider; import io.trino.gateway.ha.resource.EntityEditorResource; @@ -41,6 +42,7 @@ import static io.airlift.jaxrs.JaxrsBinder.jaxrsBinder; import static java.lang.String.format; import static java.util.Objects.requireNonNull; +import static org.weakref.jmx.guice.ExportBinder.newExporter; public class BaseApp implements Module @@ -113,6 +115,8 @@ public void configure(Binder binder) registerResources(binder); addManagedApps(this.haGatewayConfiguration, binder); jaxrsBinder(binder).bind(AuthorizedExceptionMapper.class); + binder.bind(ProxyHandlerStats.class).in(Scopes.SINGLETON); + newExporter(binder).export(ProxyHandlerStats.class).withGeneratedName(); } private static void addManagedApps(HaGatewayConfiguration configuration, Binder binder) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java index f2f27e46a..4acbf88e7 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyHandlerStats.java @@ -14,15 +14,11 @@ package io.trino.gateway.ha.handler; import io.airlift.stats.CounterStat; -import org.weakref.jmx.MBeanExporter; import org.weakref.jmx.Managed; import org.weakref.jmx.Nested; -import java.lang.management.ManagementFactory; - public final class ProxyHandlerStats { - // Airlift private final CounterStat requestCount = new CounterStat(); public void recordRequest() @@ -30,15 +26,6 @@ public void recordRequest() requestCount.update(1); } - // Replace this with Guice bind after migrated to Airlift - public static ProxyHandlerStats create() - { - ProxyHandlerStats proxyHandlerStats = new ProxyHandlerStats(); - MBeanExporter exporter = new MBeanExporter(ManagementFactory.getPlatformMBeanServer()); - exporter.exportWithGeneratedName(proxyHandlerStats); - return proxyHandlerStats; - } - @Managed @Nested public CounterStat getRequestCount() diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 72bbe5648..c06d5dcd3 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -147,11 +147,10 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c private ProxyHandler getProxyHandler( QueryHistoryManager queryHistoryManager, RoutingManager routingManager, + ProxyHandlerStats proxyHandlerStats, HttpServerConfig httpServerConfig, Optional httpsConfig) { - ProxyHandlerStats proxyHandlerStats = ProxyHandlerStats.create(); - // By default, use routing group header to route RoutingGroupSelector routingGroupSelector = RoutingGroupSelector.byRoutingGroupHeader(); // Use rules engine if enabled @@ -190,6 +189,7 @@ private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration conf public ProxyServer provideGateway( QueryHistoryManager queryHistoryManager, RoutingManager routingManager, + ProxyHandlerStats proxyHandlerStats, HttpServerConfig httpServerConfig, Optional httpsConfig) { @@ -212,7 +212,7 @@ public ProxyServer provideGateway( routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseHeaderSize()); routerProxyConfig.setRequestBufferSize(routerConfiguration.getRequestBufferSize()); routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseBufferSize()); - ProxyHandler proxyHandler = getProxyHandler(queryHistoryManager, routingManager, httpServerConfig, httpsConfig); + ProxyHandler proxyHandler = getProxyHandler(queryHistoryManager, routingManager, proxyHandlerStats, httpServerConfig, httpsConfig); gateway = new ProxyServer(routerProxyConfig, proxyHandler); } return gateway; From ceaa5940e0f18bb4364117ef82fdedffbaf9669d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 3 Jun 2024 10:53:49 +0900 Subject: [PATCH 112/148] Fix Json Annotations --- .../ha/config/ProxyBackendConfiguration.java | 4 ++++ .../domain/request/GlobalPropertyRequest.java | 5 ++-- .../request/QueryDistributionRequest.java | 3 ++- .../request/QueryGlobalPropertyRequest.java | 5 ++-- .../domain/request/QueryHistoryRequest.java | 11 +++++---- .../request/QueryResourceGroupsRequest.java | 5 ++-- .../domain/request/QuerySelectorsRequest.java | 5 ++-- .../domain/request/ResourceGroupsRequest.java | 5 ++-- .../ha/domain/request/RestLoginRequest.java | 5 ++-- .../ha/domain/request/SelectorsRequest.java | 7 +++--- .../ha/router/QueryHistoryManager.java | 7 ++++++ .../ha/router/ResourceGroupsManager.java | 23 +++++++++++++++---- .../proxyserver/ProxyServerConfiguration.java | 3 +++ 13 files changed, 63 insertions(+), 25 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java index a1854e83c..58b11c9c8 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/ProxyBackendConfiguration.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.config; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; import io.trino.gateway.proxyserver.ProxyServerConfiguration; public class ProxyBackendConfiguration @@ -34,6 +35,7 @@ public String getExternalUrl() return externalUrl; } + @JsonSetter public void setExternalUrl(String externalUrl) { this.externalUrl = externalUrl; @@ -45,6 +47,7 @@ public boolean isActive() return this.active; } + @JsonSetter public void setActive(boolean active) { this.active = active; @@ -56,6 +59,7 @@ public String getRoutingGroup() return this.routingGroup; } + @JsonSetter public void setRoutingGroup(String routingGroup) { this.routingGroup = routingGroup; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java index 5476913d6..13bb5d9de 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/GlobalPropertyRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.router.ResourceGroupsManager; /** @@ -23,7 +24,7 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record GlobalPropertyRequest( - String useSchema, - ResourceGroupsManager.GlobalPropertiesDetail data) + @JsonProperty("useSchema") String useSchema, + @JsonProperty("data") ResourceGroupsManager.GlobalPropertiesDetail data) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java index 7dd87a43a..2ef4e951a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryDistributionRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for Distribution @@ -22,7 +23,7 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record QueryDistributionRequest( - Integer latestHour) + @JsonProperty("latestHour") Integer latestHour) { public QueryDistributionRequest { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java index bc9964d06..d6885dc0e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryGlobalPropertyRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for GlobalProperty @@ -23,7 +24,7 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record QueryGlobalPropertyRequest( - String useSchema, - String name) + @JsonProperty("useSchema") String useSchema, + @JsonProperty("name") String name) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java index c3931554d..350573f87 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryHistoryRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for History @@ -26,11 +27,11 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record QueryHistoryRequest( - Integer page, - Integer size, - String user, - String backendUrl, - String queryId) + @JsonProperty("page") Integer page, + @JsonProperty("size") Integer size, + @JsonProperty("user") String user, + @JsonProperty("backendUrl") String backendUrl, + @JsonProperty("queryId") String queryId) { public QueryHistoryRequest { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java index 8f23ff330..c5ad5c034 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QueryResourceGroupsRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for ResourceGroups @@ -23,7 +24,7 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record QueryResourceGroupsRequest( - String useSchema, - Long resourceGroupId) + @JsonProperty("useSchema") String useSchema, + @JsonProperty("resourceGroupId") Long resourceGroupId) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java index c60bca224..63e21c77a 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/QuerySelectorsRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Query parameters for Selectors @@ -23,7 +24,7 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record QuerySelectorsRequest( - String useSchema, - Long resourceGroupId) + @JsonProperty("useSchema") String useSchema, + @JsonProperty("resourceGroupId") Long resourceGroupId) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java index fe16e1c78..8379ad4b4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/ResourceGroupsRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.router.ResourceGroupsManager; /** @@ -23,7 +24,7 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record ResourceGroupsRequest( - String useSchema, - ResourceGroupsManager.ResourceGroupsDetail data) + @JsonProperty("useSchema") String useSchema, + @JsonProperty("data") ResourceGroupsManager.ResourceGroupsDetail data) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java index bed10be7e..c4fe297d6 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/RestLoginRequest.java @@ -14,13 +14,14 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; /** * Receiving form login parameters. */ @JsonIgnoreProperties(ignoreUnknown = true) public record RestLoginRequest( - String username, - String password) + @JsonProperty("username") String username, + @JsonProperty("password") String password) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java index 525f362a9..a70bc20be 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/domain/request/SelectorsRequest.java @@ -14,6 +14,7 @@ package io.trino.gateway.ha.domain.request; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.router.ResourceGroupsManager; /** @@ -25,8 +26,8 @@ */ @JsonIgnoreProperties(ignoreUnknown = true) public record SelectorsRequest( - String useSchema, - ResourceGroupsManager.SelectorsDetail data, - ResourceGroupsManager.SelectorsDetail oldData) + @JsonProperty("useSchema") String useSchema, + @JsonProperty("data") ResourceGroupsManager.SelectorsDetail data, + @JsonProperty("oldData") ResourceGroupsManager.SelectorsDetail oldData) { } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java index d3a83a838..04708243b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/QueryHistoryManager.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.router; +import com.fasterxml.jackson.annotation.JsonProperty; import io.trino.gateway.ha.domain.TableData; import io.trino.gateway.ha.domain.request.QueryHistoryRequest; import io.trino.gateway.ha.domain.response.DistributionResponse; @@ -58,6 +59,7 @@ public int compareTo(QueryDetail o) } } + @JsonProperty public String getQueryId() { return this.queryId; @@ -68,6 +70,7 @@ public void setQueryId(String queryId) this.queryId = queryId; } + @JsonProperty public String getQueryText() { return this.queryText; @@ -78,6 +81,7 @@ public void setQueryText(String queryText) this.queryText = queryText; } + @JsonProperty public String getUser() { return this.user; @@ -88,6 +92,7 @@ public void setUser(String user) this.user = user; } + @JsonProperty public String getSource() { return this.source; @@ -98,6 +103,7 @@ public void setSource(String source) this.source = source; } + @JsonProperty public String getBackendUrl() { return this.backendUrl; @@ -108,6 +114,7 @@ public void setBackendUrl(String backendUrl) this.backendUrl = backendUrl; } + @JsonProperty public long getCaptureTime() { return this.captureTime; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java index 59f2b3116..77d627479 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/ResourceGroupsManager.java @@ -13,6 +13,7 @@ */ package io.trino.gateway.ha.router; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; @@ -87,7 +88,13 @@ class ResourceGroupsDetail public ResourceGroupsDetail() {} - public ResourceGroupsDetail(long resourceGroupId, @Nonnull String name, @Nonnull String softMemoryLimit, int maxQueued, int hardConcurrencyLimit) + @JsonCreator + public ResourceGroupsDetail( + @JsonProperty("resourceGroupId") long resourceGroupId, + @JsonProperty("name") @Nonnull String name, + @JsonProperty("softMemoryLimit") @Nonnull String softMemoryLimit, + @JsonProperty("maxQueued") int maxQueued, + @JsonProperty("hardConcurrencyLimit") int hardConcurrencyLimit) { this.resourceGroupId = resourceGroupId; this.name = name; @@ -320,7 +327,10 @@ class SelectorsDetail public SelectorsDetail() {} - public SelectorsDetail(long resourceGroupId, long priority) + @JsonCreator + public SelectorsDetail( + @JsonProperty("resourceGroupId") long resourceGroupId, + @JsonProperty("priority") long priority) { this.resourceGroupId = resourceGroupId; this.priority = priority; @@ -463,7 +473,8 @@ class GlobalPropertiesDetail public GlobalPropertiesDetail() {} - public GlobalPropertiesDetail(@Nonnull String name) + @JsonCreator + public GlobalPropertiesDetail(@JsonProperty("name") @Nonnull String name) { this.name = name; } @@ -541,7 +552,11 @@ class ExactSelectorsDetail public ExactSelectorsDetail() {} - public ExactSelectorsDetail(@Nonnull String resourceGroupId, @Nonnull String updateTime, @Nonnull String source) + @JsonCreator + public ExactSelectorsDetail( + @JsonProperty("resourceGroupId") @Nonnull String resourceGroupId, + @JsonProperty("updateTime") @Nonnull String updateTime, + @JsonProperty("source") @Nonnull String source) { this.resourceGroupId = resourceGroupId; this.updateTime = updateTime; diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java index 8ab5547b4..86218ad3b 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServerConfiguration.java @@ -14,6 +14,7 @@ package io.trino.gateway.proxyserver; import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; public class ProxyServerConfiguration { @@ -114,6 +115,7 @@ public String getProxyTo() return this.proxyTo; } + @JsonSetter public void setName(String name) { this.name = name; @@ -124,6 +126,7 @@ public void setLocalPort(int localPort) this.localPort = localPort; } + @JsonSetter public void setProxyTo(String proxyTo) { this.proxyTo = proxyTo; From 84cb0007ab0bd50323883fb4f5392dfc7094f52a Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 14:18:02 +0900 Subject: [PATCH 113/148] Add static resources --- .../io/trino/gateway/baseapp/BaseApp.java | 1 + .../gateway/baseapp/WebUIStaticResource.java | 74 +++++++++++++++++++ .../trino/gateway/ha/HaGatewayLauncher.java | 10 --- 3 files changed, 75 insertions(+), 10 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 222772ec5..0da9faf38 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -147,6 +147,7 @@ private static void registerResources(Binder binder) jaxrsBinder(binder).bind(LoginResource.class); jaxrsBinder(binder).bind(PublicResource.class); jaxrsBinder(binder).bind(TrinoResource.class); + jaxrsBinder(binder).bind(WebUIStaticResource.class); } private static void registerAuthFilters(Binder binder) diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java new file mode 100644 index 000000000..d3f005650 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java @@ -0,0 +1,74 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.baseapp; + +import jakarta.servlet.ServletContext; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.core.Context; +import jakarta.ws.rs.core.Response; + +import java.io.IOException; +import java.net.URI; +import java.net.URISyntaxException; +import java.net.URL; + +import static jakarta.ws.rs.core.Response.Status.NOT_FOUND; + +@Path("/") +public class WebUIStaticResource +{ + @GET + @Path("/logo.svg") + public Response getLogo(@Context ServletContext servletContext) + throws IOException + { + String fullPath = "/static/logo.svg"; + URL resource = getClass().getResource(fullPath); + if (resource == null) { + return Response.status(NOT_FOUND).build(); + } + return Response.ok(resource.openStream(), servletContext.getMimeType(resource.toString())).build(); + } + + @GET + @Path("/assets/{path: .*}") + public Response getAssetsFile(@PathParam("path") String path, @Context ServletContext servletContext) + throws IOException + { + String fullPath = "/static/assets/" + path; + if (!isCanonical(fullPath)) { + // consider redirecting to the absolute path + return Response.status(NOT_FOUND).build(); + } + + URL resource = getClass().getResource(fullPath); + if (resource == null) { + return Response.status(NOT_FOUND).build(); + } + + return Response.ok(resource.openStream(), servletContext.getMimeType(resource.toString())).build(); + } + + private static boolean isCanonical(String fullPath) + { + try { + return new URI(fullPath).normalize().getPath().equals(fullPath); + } + catch (URISyntaxException e) { + return false; + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index a4783b47e..6d9c93589 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -16,9 +16,6 @@ import io.airlift.configuration.ConfigurationFactory; import io.airlift.log.Logging; import io.airlift.log.LoggingConfiguration; -import io.dropwizard.assets.AssetsBundle; -import io.dropwizard.core.setup.Bootstrap; -import io.trino.gateway.ha.config.HaGatewayConfiguration; import java.util.Map; @@ -26,13 +23,6 @@ public class HaGatewayLauncher { - public void initialize(Bootstrap bootstrap) - { - super.initialize(bootstrap); - bootstrap.addBundle(new AssetsBundle("/static/assets", "/assets", null, "assets")); - bootstrap.addBundle(new AssetsBundle("/static", "/logo.svg", "logo.svg", "logo.svg")); - } - public static void main(String[] args) throws Exception { From 62677cf81488d95fc619e9d93356cdd5a94d040d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 15:02:57 +0900 Subject: [PATCH 114/148] Switch to Airlift bootstrap --- docker/Dockerfile | 2 +- docs/development.md | 2 +- .../io/trino/gateway/baseapp/BaseApp.java | 8 +- .../trino/gateway/ha/HaGatewayLauncher.java | 83 ++++++++++++++++++- .../io/trino/gateway/TrinoGatewayRunner.java | 3 +- .../ha/TestGatewayHaMultipleBackend.java | 2 +- .../ha/TestGatewayHaSingleBackend.java | 2 +- .../trino/gateway/ha/TestTrinoResource.java | 2 +- .../ha/security/TestAuthorization.java | 2 +- .../trino/gateway/ha/security/TestOIDC.java | 2 +- 10 files changed, 93 insertions(+), 15 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 66a8c67f3..6157b50ae 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -47,7 +47,7 @@ COPY --chown=trino:trino gateway-ha /usr/lib/trino EXPOSE 8080 USER trino:trino -CMD java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar "server" "/opt/trino/gateway-ha-config.yml" +CMD java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar "/opt/trino/gateway-ha-config.yml" HEALTHCHECK --interval=10s --timeout=5s --start-period=10s \ CMD /usr/lib/trino/bin/health-check diff --git a/docs/development.md b/docs/development.md index 2c45530a9..96418279d 100644 --- a/docs/development.md +++ b/docs/development.md @@ -32,7 +32,7 @@ and update the mysql db information. ``` cd gateway-ha/target/ -java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar gateway-ha-{{VERSION}}-jar-with-dependencies.jar server ../gateway-ha-config.yml +java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar gateway-ha-{{VERSION}}-jar-with-dependencies.jar ../gateway-ha-config.yml ``` #### In Docker diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 0da9faf38..0b601b6af 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -13,7 +13,6 @@ */ package io.trino.gateway.baseapp; -import com.google.common.collect.ImmutableList; import com.google.common.collect.MoreCollectors; import com.google.inject.Binder; import com.google.inject.Module; @@ -48,7 +47,6 @@ public class BaseApp implements Module { private static final Logger logger = Logger.get(BaseApp.class); - private final ImmutableList.Builder appModules = ImmutableList.builder(); private final HaGatewayConfiguration haGatewayConfiguration; public BaseApp(HaGatewayConfiguration haGatewayConfiguration) @@ -56,7 +54,7 @@ public BaseApp(HaGatewayConfiguration haGatewayConfiguration) this.haGatewayConfiguration = requireNonNull(haGatewayConfiguration); } - private Module newModule(String clazz, HaGatewayConfiguration configuration) + private static Module newModule(String clazz, HaGatewayConfiguration configuration) { try { logger.info("Trying to load module [%s]", clazz); @@ -80,7 +78,7 @@ private Module newModule(String clazz, HaGatewayConfiguration configuration) return null; } - private void validateModules(List modules, HaGatewayConfiguration configuration) + private static void validateModules(List modules, HaGatewayConfiguration configuration) { Optional routerProvider = modules.stream() .filter(module -> module instanceof RouterBaseModule) @@ -92,7 +90,7 @@ private void validateModules(List modules, HaGatewayConfiguration config } } - protected List addModules(HaGatewayConfiguration configuration) + public static List addModules(HaGatewayConfiguration configuration) { List modules = new ArrayList<>(); if (configuration.getModules() == null) { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index 6d9c93589..fe0315fba 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -13,16 +13,94 @@ */ package io.trino.gateway.ha; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; +import com.google.common.collect.ImmutableList; +import com.google.inject.Module; +import io.airlift.bootstrap.ApplicationConfigurationException; +import io.airlift.bootstrap.Bootstrap; import io.airlift.configuration.ConfigurationFactory; +import io.airlift.event.client.EventModule; +import io.airlift.http.server.HttpServerModule; +import io.airlift.jaxrs.JaxrsModule; +import io.airlift.jmx.JmxHttpModule; +import io.airlift.jmx.JmxModule; +import io.airlift.json.JsonModule; +import io.airlift.log.LogJmxModule; +import io.airlift.log.Logger; import io.airlift.log.Logging; import io.airlift.log.LoggingConfiguration; +import io.airlift.node.NodeModule; +import io.airlift.units.Duration; +import io.trino.gateway.baseapp.BaseApp; +import io.trino.gateway.ha.config.HaGatewayConfiguration; +import org.weakref.jmx.guice.MBeanModule; +import java.io.File; +import java.util.List; import java.util.Map; import static io.airlift.configuration.ConfigurationLoader.loadProperties; +import static io.trino.gateway.baseapp.BaseApp.addModules; +import static java.lang.String.format; public class HaGatewayLauncher { + private static final Logger logger = Logger.get(HaGatewayLauncher.class); + + private void start(List additionalModules, HaGatewayConfiguration configuration) + { + long startTime = System.nanoTime(); + + ImmutableList.Builder modules = ImmutableList.builder(); + modules.add( + new NodeModule(), + new EventModule(), + new HttpServerModule(), + new JmxModule(), + new JmxHttpModule(), + new LogJmxModule(), + new MBeanModule(), + new JsonModule(), + new JaxrsModule(), + new BaseApp(configuration)); + modules.addAll(additionalModules); + + Bootstrap app = new Bootstrap(modules.build()) + .setRequiredConfigurationProperties(configuration.getHttpConfig()); + try { + app.initialize(); + } + catch (ApplicationConfigurationException e) { + StringBuilder message = new StringBuilder(); + message.append("Configuration is invalid\n"); + message.append("==========\n"); + addMessages(message, "Errors", ImmutableList.copyOf(e.getErrors())); + addMessages(message, "Warnings", ImmutableList.copyOf(e.getWarnings())); + message.append("\n"); + message.append("=========="); + logger.error("%s", message); + System.exit(100); + } + catch (Throwable e) { + logger.error(e); + System.exit(100); + } + logger.info("Server startup completed in %s", Duration.nanosSince(startTime).convertToMostSuccinctTimeUnit()); + logger.info("======== SERVER STARTED ========"); + } + + private static void addMessages(StringBuilder output, String type, List messages) + { + if (messages.isEmpty()) { + return; + } + output.append("\n").append(type).append(":\n\n"); + for (int index = 0; index < messages.size(); index++) { + output.append(format("%s) %s\n", index + 1, messages.get(index))); + } + } + public static void main(String[] args) throws Exception { @@ -33,6 +111,9 @@ public static void main(String[] args) Logging logging = Logging.initialize(); logging.configure(configuration); - new HaGatewayLauncher().run(args); + ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory()); + HaGatewayConfiguration haGatewayConfiguration = objectMapper.readValue(new File(args[0]), HaGatewayConfiguration.class); + List modules = addModules(haGatewayConfiguration); + new HaGatewayLauncher().start(modules, haGatewayConfiguration); } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java index 7e0c69298..c2b189aaf 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java +++ b/gateway-ha/src/test/java/io/trino/gateway/TrinoGatewayRunner.java @@ -58,8 +58,7 @@ public static void main(String[] args) mysql.withCopyFileToContainer(forClasspathResource("add_backends_mysql.sql"), "/docker-entrypoint-initdb.d/2-add_backends_mysql.sql"); mysql.setPortBindings(List.of("3306:3306")); mysql.start(); - - HaGatewayLauncher.main(new String[] {"server", "gateway-ha/gateway-ha-config.yml"}); + HaGatewayLauncher.main(new String[] {"gateway-ha/gateway-ha-config.yml"}); log.info("======== SERVER STARTED ========"); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java index b123415e7..23981b0be 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java @@ -84,7 +84,7 @@ public void setup() HaGatewayTestUtils.buildGatewayConfigAndSeedDb(routerPort, "test-config-template.yml"); // Start Gateway - String[] args = {"server", testConfig.configFilePath()}; + String[] args = {testConfig.configFilePath()}; HaGatewayLauncher.main(args); // Now populate the backend HaGatewayTestUtils.setUpBackend( diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java index 35713079f..d55683c8f 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java @@ -49,7 +49,7 @@ public void setup() HaGatewayTestUtils.TestConfig testConfig = HaGatewayTestUtils.buildGatewayConfigAndSeedDb(routerPort, "test-config-template.yml"); // Start Gateway - String[] args = {"server", testConfig.configFilePath()}; + String[] args = {testConfig.configFilePath()}; HaGatewayLauncher.main(args); // Now populate the backend HaGatewayTestUtils.setUpBackend( diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java index 1a7397704..f060f7f2a 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java @@ -69,7 +69,7 @@ public void setup() prepareData(); // Start Gateway - String[] args = {"server", testConfig.configFilePath()}; + String[] args = {testConfig.configFilePath()}; HaGatewayLauncher.main(args); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java index e683349c9..2784da857 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestAuthorization.java @@ -51,7 +51,7 @@ public void setup() throws Exception { HaGatewayTestUtils.TestConfig testConfig = HaGatewayTestUtils.buildGatewayConfigAndSeedDb(routerPort, "auth/auth-test-config.yml"); - String[] args = {"server", testConfig.configFilePath()}; + String[] args = {testConfig.configFilePath()}; HaGatewayLauncher.main(args); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java index d6a61173e..52b928f26 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java @@ -142,7 +142,7 @@ public void setup() HaGatewayTestUtils.TestConfig testConfig = HaGatewayTestUtils.buildGatewayConfigAndSeedDb(ROUTER_PORT, "auth/oauth-test-config.yml"); - String[] args = {"server", testConfig.configFilePath()}; + String[] args = {testConfig.configFilePath()}; System.out.println(ROUTER_PORT); HaGatewayLauncher.main(args); } From bff05828d37ac33664e9ed3ae5b154c5ea92f25d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 11 Apr 2024 18:03:06 +0900 Subject: [PATCH 115/148] Remove duplicated logging init --- gateway-ha/pom.xml | 5 ----- .../java/io/trino/gateway/ha/HaGatewayLauncher.java | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index c0001322e..8808dc6b8 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -114,11 +114,6 @@ bootstrap - - io.airlift - configuration - - io.airlift event diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index fe0315fba..c294d8ae5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -19,7 +19,6 @@ import com.google.inject.Module; import io.airlift.bootstrap.ApplicationConfigurationException; import io.airlift.bootstrap.Bootstrap; -import io.airlift.configuration.ConfigurationFactory; import io.airlift.event.client.EventModule; import io.airlift.http.server.HttpServerModule; import io.airlift.jaxrs.JaxrsModule; @@ -28,8 +27,6 @@ import io.airlift.json.JsonModule; import io.airlift.log.LogJmxModule; import io.airlift.log.Logger; -import io.airlift.log.Logging; -import io.airlift.log.LoggingConfiguration; import io.airlift.node.NodeModule; import io.airlift.units.Duration; import io.trino.gateway.baseapp.BaseApp; @@ -38,9 +35,7 @@ import java.io.File; import java.util.List; -import java.util.Map; -import static io.airlift.configuration.ConfigurationLoader.loadProperties; import static io.trino.gateway.baseapp.BaseApp.addModules; import static java.lang.String.format; @@ -104,13 +99,6 @@ private static void addMessages(StringBuilder output, String type, List public static void main(String[] args) throws Exception { - Logging.initialize(); - Map properties = loadProperties(); - ConfigurationFactory configurationFactory = new ConfigurationFactory(properties); - LoggingConfiguration configuration = configurationFactory.build(LoggingConfiguration.class); - Logging logging = Logging.initialize(); - logging.configure(configuration); - ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory()); HaGatewayConfiguration haGatewayConfiguration = objectMapper.readValue(new File(args[0]), HaGatewayConfiguration.class); List modules = addModules(haGatewayConfiguration); From a4a1d3275919a2a1dd405acfcba1b666000bd9f4 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 5 Jun 2024 08:49:05 +0900 Subject: [PATCH 116/148] Update logging settings in docs --- docs/installation.md | 7 +++---- docs/quickstart-config.yaml | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 935cc78fa..c21367896 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -103,12 +103,11 @@ Find more information in the [routing rules documentation](routing-rules.md). ### Configure logging To configure the logging level for various classes, specify the path to the -`log.properties` file using the `log.levels-file` JVM options, such as -`-Dlog.levels-file=etc/log.properties`, when the logging type is `external`. +`log.properties` file by setting `log.levels-file` in `httpConfig`. For additional configurations, use the `log.*` properties from the -[Trino logging properties documentation](https://trino.io/docs/current/admin/properties-logging.html) and specify the path to `config.properties` -file using the `config` JVM options, such as `-Dconfig=var/config.properties`. +[Trino logging properties documentation](https://trino.io/docs/current/admin/properties-logging.html) and specify +the properties in `httpConfig`. ### Proxying additional paths diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index 514b47125..418af81e9 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -1,6 +1,7 @@ httpConfig: node.environment: test http-server.http.port: 9081 + log.levels-file: gateway-ha/etc/log.properties requestRouter: #SQL clients connect to the request port From 2f3c3b714ae9fb89c0392f0e41d80d21cbebbe67 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 14 Jun 2024 10:25:47 +0900 Subject: [PATCH 117/148] Add args length check --- .../src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index c294d8ae5..b0f68ee02 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -100,6 +100,9 @@ public static void main(String[] args) throws Exception { ObjectMapper objectMapper = new ObjectMapper(new YAMLFactory()); + if (args.length != 1) { + throw new IllegalArgumentException("Expected exactly one argument (path of configuration file)"); + } HaGatewayConfiguration haGatewayConfiguration = objectMapper.readValue(new File(args[0]), HaGatewayConfiguration.class); List modules = addModules(haGatewayConfiguration); new HaGatewayLauncher().start(modules, haGatewayConfiguration); From 10e95548d8169c9c5e0a30ed53d457ec2252e2de Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 14 Jun 2024 17:12:35 +0900 Subject: [PATCH 118/148] Fix UI element reordering --- webapp/src/components/cluster.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/components/cluster.tsx b/webapp/src/components/cluster.tsx index 4cceca57a..e5841806a 100644 --- a/webapp/src/components/cluster.tsx +++ b/webapp/src/components/cluster.tsx @@ -23,7 +23,7 @@ export function Cluster() { const list = () => { backendsApi({}) .then(data => { - setBackendData(data); + setBackendData(data.sort((a, b) => a.name.localeCompare(b.name))); }).catch(() => { }); } From ee65697e04cb9f2110d15edc751686670cce374b Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Thu, 13 Jun 2024 15:19:40 -0400 Subject: [PATCH 119/148] Update Maven Wrapper --- .mvn/wrapper/maven-wrapper.jar | Bin 62547 -> 0 bytes .mvn/wrapper/maven-wrapper.properties | 3 +- mvnw | 435 ++++++++++++-------------- mvnw.cmd | 304 ++++++++---------- 4 files changed, 319 insertions(+), 423 deletions(-) delete mode 100644 .mvn/wrapper/maven-wrapper.jar diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar deleted file mode 100644 index cb28b0e37c7d206feb564310fdeec0927af4123a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 62547 zcmb5V1CS=sk~Z9!wr$(CZEL#U=Co~N+O}=mwr$(Cds^S@-Tij=#=rmlVk@E|Dyp8$ z$UKz?`Q$l@GN3=8fq)=^fVx`E)Pern1@-q?PE1vZPD);!LGdpP^)C$aAFx&{CzjH` zpQV9;fd0PyFPNN=yp*_@iYmRFcvOrKbU!1a*o)t$0ex(~3z5?bw11HQYW_uDngyer za60w&wz^`W&Z!0XSH^cLNR&k>%)Vr|$}(wfBzmSbuK^)dy#xr@_NZVszJASn12dw; z-KbI5yz=2awY0>OUF)&crfPu&tVl|!>g*#ur@K=$@8N05<_Mldg}X`N6O<~3|Dpk3 zRWb!e7z<{Mr96 z^C{%ROigEIapRGbFA5g4XoQAe_Y1ii3Ci!KV`?$ zZ2Hy1VP#hVp>OOqe~m|lo@^276Ik<~*6eRSOe;$wn_0@St#cJy}qI#RP= zHVMXyFYYX%T_k3MNbtOX{<*_6Htq*o|7~MkS|A|A|8AqKl!%zTirAJGz;R<3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#H1i3>9138 zkhxAU7;M)I18&d!Yw!V9zQA0tp(G4<8U5GX{YoYCQ?p56FxcD-2FwO5fqyx@__=$L zeK6Sg3>XQv)qz1?zW-k$_j`-)tf+yRU_%fXrenc>$^70d1Q-W?T#vy;6#Y-Q-<2)+ z5iTl6MA7j9m&oBhRXTKr*$3gec z3E;zX457RGZwUvD$l&8e42Qb^cbq>zYy@ive8`2N9vk=#6+AQlZZ7qk=?(ap1q0n0 z{B9Fte-{Gi-Tvax1)M+d1}Fyg@9X~sh1m|hsDcZuYOnxriBPN;z)q3<=-yBN2iM6V A?*IS* diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 346d645fd..48a56c99a 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -14,5 +14,6 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +wrapperVersion=3.3.2 +distributionType=only-script distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip -wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar diff --git a/mvnw b/mvnw index 8d937f4c1..19529ddf8 100755 --- a/mvnw +++ b/mvnw @@ -19,290 +19,241 @@ # ---------------------------------------------------------------------------- # ---------------------------------------------------------------------------- -# Apache Maven Wrapper startup batch script, version 3.2.0 -# -# Required ENV vars: -# ------------------ -# JAVA_HOME - location of a JDK home dir +# Apache Maven Wrapper startup batch script, version 3.3.2 # # Optional ENV vars # ----------------- -# MAVEN_OPTS - parameters passed to the Java VM when running Maven -# e.g. to debug Maven itself, use -# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# JAVA_HOME - location of a JDK home dir, required when download maven via java source +# MVNW_REPOURL - repo url base for downloading maven distribution +# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output # ---------------------------------------------------------------------------- -if [ -z "$MAVEN_SKIP_RC" ] ; then - - if [ -f /usr/local/etc/mavenrc ] ; then - . /usr/local/etc/mavenrc - fi - - if [ -f /etc/mavenrc ] ; then - . /etc/mavenrc - fi - - if [ -f "$HOME/.mavenrc" ] ; then - . "$HOME/.mavenrc" - fi - -fi +set -euf +[ "${MVNW_VERBOSE-}" != debug ] || set -x -# OS specific support. $var _must_ be set to either true or false. -cygwin=false; -darwin=false; -mingw=false +# OS specific support. +native_path() { printf %s\\n "$1"; } case "$(uname)" in - CYGWIN*) cygwin=true ;; - MINGW*) mingw=true;; - Darwin*) darwin=true - # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home - # See https://developer.apple.com/library/mac/qa/qa1170/_index.html - if [ -z "$JAVA_HOME" ]; then - if [ -x "/usr/libexec/java_home" ]; then - JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME - else - JAVA_HOME="/Library/Java/Home"; export JAVA_HOME - fi - fi - ;; +CYGWIN* | MINGW*) + [ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")" + native_path() { cygpath --path --windows "$1"; } + ;; esac -if [ -z "$JAVA_HOME" ] ; then - if [ -r /etc/gentoo-release ] ; then - JAVA_HOME=$(java-config --jre-home) - fi -fi - -# For Cygwin, ensure paths are in UNIX format before anything is touched -if $cygwin ; then - [ -n "$JAVA_HOME" ] && - JAVA_HOME=$(cygpath --unix "$JAVA_HOME") - [ -n "$CLASSPATH" ] && - CLASSPATH=$(cygpath --path --unix "$CLASSPATH") -fi - -# For Mingw, ensure paths are in UNIX format before anything is touched -if $mingw ; then - [ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] && - JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)" -fi - -if [ -z "$JAVA_HOME" ]; then - javaExecutable="$(which javac)" - if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then - # readlink(1) is not available as standard on Solaris 10. - readLink=$(which readlink) - if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then - if $darwin ; then - javaHome="$(dirname "\"$javaExecutable\"")" - javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac" - else - javaExecutable="$(readlink -f "\"$javaExecutable\"")" - fi - javaHome="$(dirname "\"$javaExecutable\"")" - javaHome=$(expr "$javaHome" : '\(.*\)/bin') - JAVA_HOME="$javaHome" - export JAVA_HOME - fi - fi -fi - -if [ -z "$JAVACMD" ] ; then - if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# set JAVACMD and JAVACCMD +set_java_home() { + # For Cygwin and MinGW, ensure paths are in Unix format before anything is touched + if [ -n "${JAVA_HOME-}" ]; then + if [ -x "$JAVA_HOME/jre/sh/java" ]; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" + JAVACCMD="$JAVA_HOME/jre/sh/javac" else JAVACMD="$JAVA_HOME/bin/java" + JAVACCMD="$JAVA_HOME/bin/javac" + + if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then + echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2 + echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2 + return 1 + fi fi else - JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)" - fi -fi - -if [ ! -x "$JAVACMD" ] ; then - echo "Error: JAVA_HOME is not defined correctly." >&2 - echo " We cannot execute $JAVACMD" >&2 - exit 1 -fi + JAVACMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v java + )" || : + JAVACCMD="$( + 'set' +e + 'unset' -f command 2>/dev/null + 'command' -v javac + )" || : -if [ -z "$JAVA_HOME" ] ; then - echo "Warning: JAVA_HOME environment variable is not set." -fi - -# traverses directory structure from process work directory to filesystem root -# first directory with .mvn subdirectory is considered project base directory -find_maven_basedir() { - if [ -z "$1" ] - then - echo "Path not specified to find_maven_basedir" - return 1 + if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then + echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2 + return 1 + fi fi +} - basedir="$1" - wdir="$1" - while [ "$wdir" != '/' ] ; do - if [ -d "$wdir"/.mvn ] ; then - basedir=$wdir - break - fi - # workaround for JBEAP-8937 (on Solaris 10/Sparc) - if [ -d "${wdir}" ]; then - wdir=$(cd "$wdir/.." || exit 1; pwd) - fi - # end of workaround +# hash string like Java String::hashCode +hash_string() { + str="${1:-}" h=0 + while [ -n "$str" ]; do + char="${str%"${str#?}"}" + h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296)) + str="${str#?}" done - printf '%s' "$(cd "$basedir" || exit 1; pwd)" + printf %x\\n $h } -# concatenates all lines of a file -concat_lines() { - if [ -f "$1" ]; then - # Remove \r in case we run on Windows within Git Bash - # and check out the repository with auto CRLF management - # enabled. Otherwise, we may read lines that are delimited with - # \r\n and produce $'-Xarg\r' rather than -Xarg due to word - # splitting rules. - tr -s '\r\n' ' ' < "$1" - fi +verbose() { :; } +[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; } + +die() { + printf %s\\n "$1" >&2 + exit 1 } -log() { - if [ "$MVNW_VERBOSE" = true ]; then - printf '%s\n' "$1" - fi +trim() { + # MWRAPPER-139: + # Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds. + # Needed for removing poorly interpreted newline sequences when running in more + # exotic environments such as mingw bash on Windows. + printf "%s" "${1}" | tr -d '[:space:]' +} + +# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties +while IFS="=" read -r key value; do + case "${key-}" in + distributionUrl) distributionUrl=$(trim "${value-}") ;; + distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; + esac +done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties" +[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties" + +case "${distributionUrl##*/}" in +maven-mvnd-*bin.*) + MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ + case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in + *AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;; + :Darwin*x86_64) distributionPlatform=darwin-amd64 ;; + :Darwin*arm64) distributionPlatform=darwin-aarch64 ;; + :Linux*x86_64*) distributionPlatform=linux-amd64 ;; + *) + echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2 + distributionPlatform=linux-amd64 + ;; + esac + distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip" + ;; +maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;; +*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; +esac + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}" +distributionUrlName="${distributionUrl##*/}" +distributionUrlNameMain="${distributionUrlName%.*}" +distributionUrlNameMain="${distributionUrlNameMain%-bin}" +MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}" +MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")" + +exec_maven() { + unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || : + exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD" } -BASE_DIR=$(find_maven_basedir "$(dirname "$0")") -if [ -z "$BASE_DIR" ]; then - exit 1; +if [ -d "$MAVEN_HOME" ]; then + verbose "found existing MAVEN_HOME at $MAVEN_HOME" + exec_maven "$@" fi -MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR -log "$MAVEN_PROJECTBASEDIR" +case "${distributionUrl-}" in +*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;; +*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;; +esac -########################################################################################## -# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -# This allows using the maven wrapper in projects that prohibit checking in binary data. -########################################################################################## -wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" -if [ -r "$wrapperJarPath" ]; then - log "Found $wrapperJarPath" +# prepare tmp dir +if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then + clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; } + trap clean HUP INT TERM EXIT else - log "Couldn't find $wrapperJarPath, downloading it ..." + die "cannot create temp dir" +fi - if [ -n "$MVNW_REPOURL" ]; then - wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - else - wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - fi - while IFS="=" read -r key value; do - # Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' ) - safeValue=$(echo "$value" | tr -d '\r') - case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;; - esac - done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" - log "Downloading from: $wrapperUrl" +mkdir -p -- "${MAVEN_HOME%/*}" - if $cygwin; then - wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath") - fi +# Download and Install Apache Maven +verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +verbose "Downloading from: $distributionUrl" +verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" - if command -v wget > /dev/null; then - log "Found wget ... using wget" - [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet" - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - else - wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath" - fi - elif command -v curl > /dev/null; then - log "Found curl ... using curl" - [ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent" - if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then - curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" - else - curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath" - fi - else - log "Falling back to using Java to download" - javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java" - javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class" - # For Cygwin, switch paths to Windows format before running javac - if $cygwin; then - javaSource=$(cygpath --path --windows "$javaSource") - javaClass=$(cygpath --path --windows "$javaClass") - fi - if [ -e "$javaSource" ]; then - if [ ! -e "$javaClass" ]; then - log " - Compiling MavenWrapperDownloader.java ..." - ("$JAVA_HOME/bin/javac" "$javaSource") - fi - if [ -e "$javaClass" ]; then - log " - Running MavenWrapperDownloader.java ..." - ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath" - fi - fi - fi +# select .zip or .tar.gz +if ! command -v unzip >/dev/null; then + distributionUrl="${distributionUrl%.zip}.tar.gz" + distributionUrlName="${distributionUrl##*/}" fi -########################################################################################## -# End of extension -########################################################################################## -# If specified, validate the SHA-256 sum of the Maven wrapper jar file -wrapperSha256Sum="" -while IFS="=" read -r key value; do - case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;; - esac -done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties" -if [ -n "$wrapperSha256Sum" ]; then - wrapperSha256Result=false - if command -v sha256sum > /dev/null; then - if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then - wrapperSha256Result=true +# verbose opt +__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR='' +[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v + +# normalize http auth +case "${MVNW_PASSWORD:+has-password}" in +'') MVNW_USERNAME='' MVNW_PASSWORD='' ;; +has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;; +esac + +if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then + verbose "Found wget ... using wget" + wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl" +elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then + verbose "Found curl ... using curl" + curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl" +elif set_java_home; then + verbose "Falling back to use Java to download" + javaSource="$TMP_DOWNLOAD_DIR/Downloader.java" + targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName" + cat >"$javaSource" <<-END + public class Downloader extends java.net.Authenticator + { + protected java.net.PasswordAuthentication getPasswordAuthentication() + { + return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() ); + } + public static void main( String[] args ) throws Exception + { + setDefault( new Downloader() ); + java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() ); + } + } + END + # For Cygwin/MinGW, switch paths to Windows format before running javac and java + verbose " - Compiling Downloader.java ..." + "$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java" + verbose " - Running Downloader.java ..." + "$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")" +fi + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +if [ -n "${distributionSha256Sum-}" ]; then + distributionSha256Result=false + if [ "$MVN_CMD" = mvnd.sh ]; then + echo "Checksum validation is not supported for maven-mvnd." >&2 + echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 + exit 1 + elif command -v sha256sum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then + distributionSha256Result=true fi - elif command -v shasum > /dev/null; then - if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then - wrapperSha256Result=true + elif command -v shasum >/dev/null; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then + distributionSha256Result=true fi else - echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." - echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties." + echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2 + echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 exit 1 fi - if [ $wrapperSha256Result = false ]; then - echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2 - echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2 - echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2 + if [ $distributionSha256Result = false ]; then + echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2 + echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2 exit 1 fi fi -MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" - -# For Cygwin, switch paths to Windows format before running java -if $cygwin; then - [ -n "$JAVA_HOME" ] && - JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME") - [ -n "$CLASSPATH" ] && - CLASSPATH=$(cygpath --path --windows "$CLASSPATH") - [ -n "$MAVEN_PROJECTBASEDIR" ] && - MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR") +# unzip and move +if command -v unzip >/dev/null; then + unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip" +else + tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar" fi +printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url" +mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" -# Provide a "standardized" way to retrieve the CLI args that will -# work with both Windows and non-Windows executions. -MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*" -export MAVEN_CMD_LINE_ARGS - -WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -# shellcheck disable=SC2086 # safe args -exec "$JAVACMD" \ - $MAVEN_OPTS \ - $MAVEN_DEBUG_OPTS \ - -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ - "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ - ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" +clean || : +exec_maven "$@" diff --git a/mvnw.cmd b/mvnw.cmd index f80fbad3e..b150b91ed 100644 --- a/mvnw.cmd +++ b/mvnw.cmd @@ -1,3 +1,4 @@ +<# : batch portion @REM ---------------------------------------------------------------------------- @REM Licensed to the Apache Software Foundation (ASF) under one @REM or more contributor license agreements. See the NOTICE file @@ -18,188 +19,131 @@ @REM ---------------------------------------------------------------------------- @REM ---------------------------------------------------------------------------- -@REM Apache Maven Wrapper startup batch script, version 3.2.0 -@REM -@REM Required ENV vars: -@REM JAVA_HOME - location of a JDK home dir +@REM Apache Maven Wrapper startup batch script, version 3.3.2 @REM @REM Optional ENV vars -@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands -@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending -@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven -@REM e.g. to debug Maven itself, use -@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM MVNW_REPOURL - repo url base for downloading maven distribution +@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven +@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output @REM ---------------------------------------------------------------------------- -@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' -@echo off -@REM set title of command window -title %0 -@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' -@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% - -@REM set %HOME% to equivalent of $HOME -if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") - -@REM Execute a user defined script before this one -if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre -@REM check for pre script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %* -if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %* -:skipRcPre - -@setlocal - -set ERROR_CODE=0 - -@REM To isolate internal variables from possible post scripts, we use another setlocal -@setlocal - -@REM ==== START VALIDATION ==== -if not "%JAVA_HOME%" == "" goto OkJHome - -echo. -echo Error: JAVA_HOME not found in your environment. >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -:OkJHome -if exist "%JAVA_HOME%\bin\java.exe" goto init - -echo. -echo Error: JAVA_HOME is set to an invalid directory. >&2 -echo JAVA_HOME = "%JAVA_HOME%" >&2 -echo Please set the JAVA_HOME variable in your environment to match the >&2 -echo location of your Java installation. >&2 -echo. -goto error - -@REM ==== END VALIDATION ==== - -:init - -@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". -@REM Fallback to current working directory if not found. - -set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% -IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir - -set EXEC_DIR=%CD% -set WDIR=%EXEC_DIR% -:findBaseDir -IF EXIST "%WDIR%"\.mvn goto baseDirFound -cd .. -IF "%WDIR%"=="%CD%" goto baseDirNotFound -set WDIR=%CD% -goto findBaseDir - -:baseDirFound -set MAVEN_PROJECTBASEDIR=%WDIR% -cd "%EXEC_DIR%" -goto endDetectBaseDir - -:baseDirNotFound -set MAVEN_PROJECTBASEDIR=%EXEC_DIR% -cd "%EXEC_DIR%" - -:endDetectBaseDir - -IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig - -@setlocal EnableExtensions EnableDelayedExpansion -for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a -@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% - -:endReadAdditionalConfig - -SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" -set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" -set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain - -set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B -) - -@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central -@REM This allows using the maven wrapper in projects that prohibit checking in binary data. -if exist %WRAPPER_JAR% ( - if "%MVNW_VERBOSE%" == "true" ( - echo Found %WRAPPER_JAR% - ) -) else ( - if not "%MVNW_REPOURL%" == "" ( - SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar" - ) - if "%MVNW_VERBOSE%" == "true" ( - echo Couldn't find %WRAPPER_JAR%, downloading it ... - echo Downloading from: %WRAPPER_URL% - ) - - powershell -Command "&{"^ - "$webclient = new-object System.Net.WebClient;"^ - "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ - "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ - "}"^ - "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^ - "}" - if "%MVNW_VERBOSE%" == "true" ( - echo Finished downloading %WRAPPER_JAR% - ) -) -@REM End of extension - -@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file -SET WRAPPER_SHA_256_SUM="" -FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( - IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B +@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0) +@SET __MVNW_CMD__= +@SET __MVNW_ERROR__= +@SET __MVNW_PSMODULEP_SAVE=%PSModulePath% +@SET PSModulePath= +@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @( + IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B) ) -IF NOT %WRAPPER_SHA_256_SUM%=="" ( - powershell -Command "&{"^ - "$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^ - "If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^ - " Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^ - " Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^ - " Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^ - " exit 1;"^ - "}"^ - "}" - if ERRORLEVEL 1 goto error -) - -@REM Provide a "standardized" way to retrieve the CLI args that will -@REM work with both Windows and non-Windows executions. -set MAVEN_CMD_LINE_ARGS=%* - -%MAVEN_JAVA_EXE% ^ - %JVM_CONFIG_MAVEN_PROPS% ^ - %MAVEN_OPTS% ^ - %MAVEN_DEBUG_OPTS% ^ - -classpath %WRAPPER_JAR% ^ - "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^ - %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* -if ERRORLEVEL 1 goto error -goto end - -:error -set ERROR_CODE=1 - -:end -@endlocal & set ERROR_CODE=%ERROR_CODE% - -if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost -@REM check for post script, once with legacy .bat ending and once with .cmd ending -if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat" -if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd" -:skipRcPost - -@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' -if "%MAVEN_BATCH_PAUSE%"=="on" pause - -if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE% - -cmd /C exit /B %ERROR_CODE% +@SET PSModulePath=%__MVNW_PSMODULEP_SAVE% +@SET __MVNW_PSMODULEP_SAVE= +@SET __MVNW_ARG0_NAME__= +@SET MVNW_USERNAME= +@SET MVNW_PASSWORD= +@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*) +@echo Cannot start maven from wrapper >&2 && exit /b 1 +@GOTO :EOF +: end batch / begin powershell #> + +$ErrorActionPreference = "Stop" +if ($env:MVNW_VERBOSE -eq "true") { + $VerbosePreference = "Continue" +} + +# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties +$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl +if (!$distributionUrl) { + Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" +} + +switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) { + "maven-mvnd-*" { + $USE_MVND = $true + $distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip" + $MVN_CMD = "mvnd.cmd" + break + } + default { + $USE_MVND = $false + $MVN_CMD = $script -replace '^mvnw','mvn' + break + } +} + +# apply MVNW_REPOURL and calculate MAVEN_HOME +# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-,maven-mvnd--}/ +if ($env:MVNW_REPOURL) { + $MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" } + $distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')" +} +$distributionUrlName = $distributionUrl -replace '^.*/','' +$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$','' +$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain" +if ($env:MAVEN_USER_HOME) { + $MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain" +} +$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join '' +$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME" + +if (Test-Path -Path "$MAVEN_HOME" -PathType Container) { + Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME" + Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" + exit $? +} + +if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) { + Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl" +} + +# prepare tmp dir +$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile +$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir" +$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null +trap { + if ($TMP_DOWNLOAD_DIR.Exists) { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } + } +} + +New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null + +# Download and Install Apache Maven +Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." +Write-Verbose "Downloading from: $distributionUrl" +Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" + +$webclient = New-Object System.Net.WebClient +if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) { + $webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD) +} +[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null + +# If specified, validate the SHA-256 sum of the Maven distribution zip file +$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum +if ($distributionSha256Sum) { + if ($USE_MVND) { + Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." + } + Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash + if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) { + Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property." + } +} + +# unzip and move +Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null +Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null +try { + Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null +} catch { + if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) { + Write-Error "fail to move MAVEN_HOME" + } +} finally { + try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } + catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } +} + +Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" From 2ff6f29dec29aa9e7cdd42745985fe094a1587af Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Thu, 13 Jun 2024 16:05:03 -0400 Subject: [PATCH 120/148] Update Maven --- .mvn/wrapper/maven-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 48a56c99a..f95f1ee80 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -16,4 +16,4 @@ # under the License. wrapperVersion=3.3.2 distributionType=only-script -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.6/apache-maven-3.9.6-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip From e89c2595a2315a8d50db92dfa06cb6ebb9608821 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Mon, 17 Jun 2024 15:21:24 -0700 Subject: [PATCH 121/148] Add status slide deck * Created by dev team in prep for Trino Fest * Presented at Trino Contributor Congregation in June 2024 in Boston --- .../trino-gateway-status-at-tcc-202406.pdf | Bin 0 -> 119719 bytes docs/index.md | 2 ++ 2 files changed, 2 insertions(+) create mode 100644 docs/assets/misc/trino-gateway-status-at-tcc-202406.pdf diff --git a/docs/assets/misc/trino-gateway-status-at-tcc-202406.pdf b/docs/assets/misc/trino-gateway-status-at-tcc-202406.pdf new file mode 100644 index 0000000000000000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T{QM literal 0 HcmV?d00001 diff --git a/docs/index.md b/docs/index.md index 051b4f540..443aeeef8 100644 --- a/docs/index.md +++ b/docs/index.md @@ -27,6 +27,8 @@ gateway for multiple [Trino](https://trino.io) clusters. from Bloomberg and Naver * :fontawesome-brands-youtube:{ .youtube } [Video recording](https://www.youtube.com/watch?v=2qwBcKmQSn0) * [Slide deck](./assets/misc/tgw-trino-summit-2023.pdf) +* [Slide deck about Trino Gateway status](./assets/misc/trino-gateway-status-at-tcc-202406.pdf) + for Trino Contributor Congregation in June 2024 * [Lyft blog post](https://eng.lyft.com/trino-infrastructure-at-lyft-b10adb9db01) * [Pinterest blog post](https://medium.com/pinterest-engineering/trino-at-pinterest-a8bda7515e52) * [Zomato blog post](https://www.zomato.com/blog/powering-data-analytics-with-trino) From b0d10bd8f4a469f1a11eec4b79a1ec0079425860 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:53:57 +0900 Subject: [PATCH 122/148] Update airbase to 157 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ae420f1bc..321014800 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ io.airlift airbase - 156 + 157 io.trino.gateway From 5b8d27895199439e3e455609ae123afee8295a5f Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:17:06 +0900 Subject: [PATCH 123/148] Update postgresql to 42.7.3 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 8808dc6b8..d186b8501 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -332,7 +332,7 @@ org.postgresql postgresql - 42.7.1 + 42.7.3 runtime From 0ab7ea607ef3c4628a74d12434f29ad0ca2b0086 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:20:34 +0900 Subject: [PATCH 124/148] Update mysql-connector-j to 8.3.0 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index d186b8501..2a1310a40 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -24,7 +24,7 @@ 4.1.0 5.8.0 4.12.0 - 8.0.33 + 8.3.0 From 0a71e5274aaf66cd532225cd765f441dde98800c Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:24:54 +0900 Subject: [PATCH 125/148] Update testcontainers-bom to 1.19.8 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 321014800..168f2d184 100644 --- a/pom.xml +++ b/pom.xml @@ -84,7 +84,7 @@ org.testcontainers testcontainers-bom - 1.19.6 + 1.19.8 pom import From 6391070ab74c520fe56c1e7479344748488ad6e6 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:30:40 +0900 Subject: [PATCH 126/148] Update java-jwt to 4.4.0 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 2a1310a40..602aa14a1 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -31,7 +31,7 @@ com.auth0 java-jwt - 3.19.2 + 4.4.0 From 491c57600948467f6947d1e3b36605bd9493fe64 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:34:06 +0900 Subject: [PATCH 127/148] Update nimbus-jose-jwt to 9.40 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 602aa14a1..16fe6eff9 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -81,7 +81,7 @@ com.nimbusds nimbus-jose-jwt - 9.37.3 + 9.40 From 4d64fae357fae7af6a0b6235dd2a151601c2029d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:34:53 +0900 Subject: [PATCH 128/148] Update jakarta.mail to 2.0.1 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 16fe6eff9..a64796636 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -100,7 +100,7 @@ com.sun.mail jakarta.mail - 2.0.0 + 2.0.1 com.sun.activation From 80595dba7ab8e63ef55e0dc47f25c4674bcdd193 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:36:36 +0900 Subject: [PATCH 129/148] Update Apache Directory API All to 2.1.6 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index a64796636..2e930c551 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -199,7 +199,7 @@ org.apache.directory.api api-all - 2.1.5 + 2.1.6 org.apache.servicemix.bundles From 5f59277df6972ce82a1225b4715eb147ef3b8640 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:37:18 +0900 Subject: [PATCH 130/148] Update Bouncy Castle Provider to 1.78.1 --- gateway-ha/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 2e930c551..f444338ce 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -210,8 +210,8 @@ org.bouncycastle - bcprov-jdk15on - 1.70 + bcprov-jdk18on + 1.78.1 From e64ff14759a424c8312d5d4f7b4735333bd1ac79 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:38:36 +0900 Subject: [PATCH 131/148] Update trino-jdbc to 449 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index f444338ce..f9de7ebad 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -311,7 +311,7 @@ io.trino trino-jdbc - 448 + 449 runtime From e2f077785919a85ca5a6ef8085607c8721477e03 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:41:12 +0900 Subject: [PATCH 132/148] Update mvel2 to 2.5.2.Final --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index f9de7ebad..4425695e2 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -325,7 +325,7 @@ org.mvel mvel2 - 2.5.1.Final + 2.5.2.Final runtime From 0c760ff904353e42aa4b1a7f6c587633e3eca1c3 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:40:47 +0900 Subject: [PATCH 133/148] Remove unused Ehcache --- gateway-ha/pom.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 4425695e2..3dd91f486 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -315,13 +315,6 @@ runtime - - org.ehcache - ehcache - 3.8.1 - runtime - - org.mvel mvel2 From 7287c26ccd2277bc2fa3b13ceec9dc88d9a1c4a3 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:33:19 +0900 Subject: [PATCH 134/148] Remove unnecessary version tags --- gateway-ha/pom.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 3dd91f486..4cb364d0f 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -69,13 +69,11 @@ com.google.guava guava - ${dep.guava.version} com.google.inject guice - ${dep.guice.version} @@ -177,7 +175,6 @@ jakarta.annotation jakarta.annotation-api - 3.0.0 @@ -354,7 +351,6 @@ org.assertj assertj-core - 3.24.2 test From 8c030508f6737b0353a45310d4241d9190508036 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 15:52:04 +0900 Subject: [PATCH 135/148] Udate Mockito to 5.12.0 --- gateway-ha/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 4cb364d0f..5ecb06ef5 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -22,7 +22,7 @@ 4.1.0 - 5.8.0 + 5.12.0 4.12.0 8.3.0 From 7bb126071a9aa6ac0d9d3e18fcf5b4cedc98115f Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 5 Jun 2024 11:37:00 +0900 Subject: [PATCH 136/148] Bind RoutingGroupSelector --- .../ha/module/HaGatewayProviderModule.java | 46 ++++++++----------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index c06d5dcd3..8106c6a76 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -144,31 +144,6 @@ private ChainedAuthFilter getAuthenticationFilters(AuthenticationConfiguration c return new ChainedAuthFilter(authFilters.build()); } - private ProxyHandler getProxyHandler( - QueryHistoryManager queryHistoryManager, - RoutingManager routingManager, - ProxyHandlerStats proxyHandlerStats, - HttpServerConfig httpServerConfig, - Optional httpsConfig) - { - // By default, use routing group header to route - RoutingGroupSelector routingGroupSelector = RoutingGroupSelector.byRoutingGroupHeader(); - // Use rules engine if enabled - RoutingRulesConfiguration routingRulesConfig = configuration.getRoutingRules(); - if (routingRulesConfig.isRulesEngineEnabled()) { - String rulesConfigPath = routingRulesConfig.getRulesConfigPath(); - routingGroupSelector = RoutingGroupSelector.byRoutingRulesEngine(rulesConfigPath); - } - - return new QueryIdCachingProxyHandler( - queryHistoryManager, - routingManager, - routingGroupSelector, - httpsConfig.map(HttpsConfig::getHttpsPort).orElseGet(httpServerConfig::getHttpPort), - proxyHandlerStats, - extraWhitelistPaths); - } - private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration configuration) { AuthorizationConfiguration authorizationConfig = configuration.getAuthorization(); @@ -189,6 +164,7 @@ private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration conf public ProxyServer provideGateway( QueryHistoryManager queryHistoryManager, RoutingManager routingManager, + RoutingGroupSelector routingGroupSelector, ProxyHandlerStats proxyHandlerStats, HttpServerConfig httpServerConfig, Optional httpsConfig) @@ -212,7 +188,13 @@ public ProxyServer provideGateway( routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseHeaderSize()); routerProxyConfig.setRequestBufferSize(routerConfiguration.getRequestBufferSize()); routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseBufferSize()); - ProxyHandler proxyHandler = getProxyHandler(queryHistoryManager, routingManager, proxyHandlerStats, httpServerConfig, httpsConfig); + ProxyHandler proxyHandler = new QueryIdCachingProxyHandler( + queryHistoryManager, + routingManager, + routingGroupSelector, + httpsConfig.map(HttpsConfig::getHttpsPort).orElseGet(httpServerConfig::getHttpPort), + proxyHandlerStats, + extraWhitelistPaths); gateway = new ProxyServer(routerProxyConfig, proxyHandler); } return gateway; @@ -245,4 +227,16 @@ public BackendStateManager getBackendStateConnectionManager() { return this.backendStateConnectionManager; } + + @Provides + @Singleton + public RoutingGroupSelector getRoutingGroupSelector() + { + RoutingRulesConfiguration routingRulesConfig = configuration.getRoutingRules(); + if (routingRulesConfig.isRulesEngineEnabled()) { + String rulesConfigPath = routingRulesConfig.getRulesConfigPath(); + return RoutingGroupSelector.byRoutingRulesEngine(rulesConfigPath); + } + return RoutingGroupSelector.byRoutingGroupHeader(); + } } From dfdada5b86b98c48f407856c92f580126abbde2b Mon Sep 17 00:00:00 2001 From: Star Poon Date: Wed, 5 Jun 2024 09:30:43 +0900 Subject: [PATCH 137/148] Extract utils from QueryIdCachingProxyHandler --- .../trino/gateway/ha/handler/ProxyUtils.java | 185 ++++++++++++++ .../handler/QueryIdCachingProxyHandler.java | 238 +----------------- .../ha/handler/RoutingTargetHandler.java | 128 ++++++++++ .../ha/module/HaGatewayProviderModule.java | 23 +- .../TestQueryIdCachingProxyHandler.java | 7 +- 5 files changed, 344 insertions(+), 237 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java new file mode 100644 index 000000000..07f997cb7 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java @@ -0,0 +1,185 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.handler; + +import com.google.common.base.Splitter; +import com.google.common.io.CharStreams; +import io.airlift.log.Logger; +import io.trino.gateway.ha.router.QueryHistoryManager; +import jakarta.servlet.http.HttpServletRequest; + +import java.io.IOException; +import java.util.Base64; +import java.util.List; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +import static com.google.common.base.Strings.isNullOrEmpty; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.PROXY_TARGET_HEADER; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.TRINO_UI_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_QUERY_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_STATEMENT_PATH; + +public final class ProxyUtils +{ + public static final String SOURCE_HEADER = "X-Trino-Source"; + public static final String AUTHORIZATION = "Authorization"; + + private static final Logger log = Logger.get(ProxyUtils.class); + private static final int QUERY_TEXT_LENGTH_FOR_HISTORY = 200; + /** + * This regular expression matches query ids as they appear in the path of a URL. The query id must be preceded + * by a "/". A query id is defined as three groups of digits separated by underscores, with a final group + * consisting of any alphanumeric characters. + */ + private static final Pattern QUERY_ID_PATH_PATTERN = Pattern.compile(".*/(\\d+_\\d+_\\d+_\\w+).*"); + /** + * This regular expression matches query ids as they appear in the query parameters of a URL. The query id is + * defined as in QUERY_TEXT_LENGTH_FOR_HISTORY. The query id must either be at the beginning of the query parameter + * string, or be preceded by %2F (a URL-encoded "/"), or "query_id=", with or without the underscore and any + * capitalization. + */ + private static final Pattern QUERY_ID_PARAM_PATTERN = Pattern.compile(".*(?:%2F|(?i)query_?id(?-i)=|^)(\\d+_\\d+_\\d+_\\w+).*"); + private static final Pattern EXTRACT_BETWEEN_SINGLE_QUOTES = Pattern.compile("'([^\\s']+)'"); + + private ProxyUtils() {} + + public static QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(HttpServletRequest request) + throws IOException + { + QueryHistoryManager.QueryDetail queryDetail = new QueryHistoryManager.QueryDetail(); + queryDetail.setBackendUrl(request.getHeader(PROXY_TARGET_HEADER)); + queryDetail.setCaptureTime(System.currentTimeMillis()); + queryDetail.setUser(getQueryUser(request)); + queryDetail.setSource(request.getHeader(SOURCE_HEADER)); + String queryText = CharStreams.toString(request.getReader()); + queryDetail.setQueryText( + queryText.length() > QUERY_TEXT_LENGTH_FOR_HISTORY + ? queryText.substring(0, QUERY_TEXT_LENGTH_FOR_HISTORY) + "..." + : queryText); + return queryDetail; + } + + public static String getQueryUser(HttpServletRequest request) + { + String trinoUser = request.getHeader(USER_HEADER); + + if (!isNullOrEmpty(trinoUser)) { + log.info("user from %s", USER_HEADER); + return trinoUser; + } + + log.info("user from basic auth"); + String user = ""; + String header = request.getHeader(AUTHORIZATION); + if (header == null) { + log.error("didn't find any basic auth header"); + return user; + } + + int space = header.indexOf(' '); + if ((space < 0) || !header.substring(0, space).equalsIgnoreCase("basic")) { + log.error("basic auth format is incorrect"); + return user; + } + + String headerInfo = header.substring(space + 1).trim(); + if (isNullOrEmpty(headerInfo)) { + log.error("The encoded value of basic auth doesn't exist"); + return user; + } + + String info = new String(Base64.getDecoder().decode(headerInfo)); + List parts = Splitter.on(':').limit(2).splitToList(info); + if (parts.size() < 1) { + log.error("no user inside the basic auth text"); + return user; + } + return parts.get(0); + } + + public static String extractQueryIdIfPresent(HttpServletRequest request) + { + String path = request.getRequestURI(); + String queryParams = request.getQueryString(); + try { + String queryText = CharStreams.toString(request.getReader()); + if (!isNullOrEmpty(queryText) + && queryText.toLowerCase().contains("system.runtime.kill_query")) { + // extract and return the queryId + String[] parts = queryText.split(","); + for (String part : parts) { + if (part.contains("query_id")) { + Matcher matcher = EXTRACT_BETWEEN_SINGLE_QUOTES.matcher(part); + if (matcher.find()) { + String queryQuoted = matcher.group(); + if (!isNullOrEmpty(queryQuoted) && queryQuoted.length() > 0) { + return queryQuoted.substring(1, queryQuoted.length() - 1); + } + } + } + } + } + } + catch (Exception e) { + log.error(e, "Error extracting query payload from request"); + } + + return extractQueryIdIfPresent(path, queryParams); + } + + public static String extractQueryIdIfPresent(String path, String queryParams) + { + if (path == null) { + return null; + } + String queryId = null; + + log.debug("Trying to extract query id from path [%s] or queryString [%s]", path, queryParams); + if (path.startsWith(V1_STATEMENT_PATH) || path.startsWith(V1_QUERY_PATH)) { + String[] tokens = path.split("/"); + if (tokens.length >= 4) { + if (path.contains("queued") + || path.contains("scheduled") + || path.contains("executing") + || path.contains("partialCancel")) { + queryId = tokens[4]; + } + else { + queryId = tokens[3]; + } + } + } + else if (path.startsWith(TRINO_UI_PATH)) { + Matcher matcher = QUERY_ID_PATH_PATTERN.matcher(path); + if (matcher.matches()) { + queryId = matcher.group(1); + } + } + if (!isNullOrEmpty(queryParams)) { + Matcher matcher = QUERY_ID_PARAM_PATTERN.matcher(queryParams); + if (matcher.matches()) { + queryId = matcher.group(1); + } + } + log.debug("Query id in URL [%s]", queryId); + return queryId; + } + + public static String buildUriWithNewBackend(String backendHost, HttpServletRequest request) + { + return backendHost + request.getRequestURI() + (request.getQueryString() != null ? "?" + request.getQueryString() : ""); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index 4bda6065f..c53ac8894 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -14,7 +14,6 @@ package io.trino.gateway.ha.handler; import com.fasterxml.jackson.databind.ObjectMapper; -import com.google.common.base.Splitter; import com.google.common.collect.ImmutableList; import com.google.common.io.CharStreams; import io.airlift.log.Logger; @@ -22,10 +21,8 @@ import io.trino.gateway.ha.router.GatewayCookie; import io.trino.gateway.ha.router.OAuth2GatewayCookie; import io.trino.gateway.ha.router.QueryHistoryManager; -import io.trino.gateway.ha.router.RoutingGroupSelector; import io.trino.gateway.ha.router.RoutingManager; import io.trino.gateway.proxyserver.ProxyHandler; -import io.trino.gateway.proxyserver.wrapper.MultiReadHttpServletRequest; import jakarta.servlet.http.Cookie; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; @@ -38,14 +35,12 @@ import java.net.URI; import java.net.URISyntaxException; import java.util.Arrays; -import java.util.Base64; import java.util.HashMap; import java.util.List; -import java.util.Optional; -import java.util.regex.Matcher; -import java.util.regex.Pattern; import static com.google.common.base.Strings.isNullOrEmpty; +import static io.trino.gateway.ha.handler.ProxyUtils.buildUriWithNewBackend; +import static io.trino.gateway.ha.handler.ProxyUtils.getQueryDetailsFromRequest; public class QueryIdCachingProxyHandler extends ProxyHandler @@ -62,92 +57,34 @@ public class QueryIdCachingProxyHandler public static final String OAUTH_PATH = "/oauth2"; public static final String AUTHORIZATION = "Authorization"; public static final String USER_HEADER = "X-Trino-User"; - public static final String SOURCE_HEADER = "X-Trino-Source"; public static final String HOST_HEADER = "Host"; - private static final int QUERY_TEXT_LENGTH_FOR_HISTORY = 200; - /** - * This regular expression matches query ids as they appear in the path of a URL. The query id must be preceded - * by a "/". A query id is defined as three groups of digits separated by underscores, with a final group - * consisting of any alphanumeric characters. - */ - private static final Pattern QUERY_ID_PATH_PATTERN = Pattern.compile(".*/(\\d+_\\d+_\\d+_\\w+).*"); - /** - * This regular expression matches query ids as they appear in the query parameters of a URL. The query id is - * defined as in QUERY_TEXT_LENGTH_FOR_HISTORY. The query id must either be at the beginning of the query parameter - * string, or be preceded by %2F (a URL-encoded "/"), or "query_id=", with or without the underscore and any - * capitalization. - */ - private static final Pattern QUERY_ID_PARAM_PATTERN = Pattern.compile(".*(?:%2F|(?i)query_?id(?-i)=|^)(\\d+_\\d+_\\d+_\\w+).*"); - - private static final Pattern EXTRACT_BETWEEN_SINGLE_QUOTES = Pattern.compile("'([^\\s']+)'"); private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); private static final Logger log = Logger.get(QueryIdCachingProxyHandler.class); private final RoutingManager routingManager; - private final RoutingGroupSelector routingGroupSelector; private final QueryHistoryManager queryHistoryManager; + private final RoutingTargetHandler routingTargetHandler; private final ProxyHandlerStats proxyHandlerStats; - private final List extraWhitelistPaths; private final String applicationEndpoint; private final boolean cookiesEnabled; public QueryIdCachingProxyHandler( QueryHistoryManager queryHistoryManager, RoutingManager routingManager, - RoutingGroupSelector routingGroupSelector, + RoutingTargetHandler routingTargetHandler, int serverApplicationPort, - ProxyHandlerStats proxyHandlerStats, - List extraWhitelistPaths) + ProxyHandlerStats proxyHandlerStats) { this.proxyHandlerStats = proxyHandlerStats; this.routingManager = routingManager; - this.routingGroupSelector = routingGroupSelector; this.queryHistoryManager = queryHistoryManager; - this.extraWhitelistPaths = extraWhitelistPaths; + this.routingTargetHandler = routingTargetHandler; this.applicationEndpoint = "http://localhost:" + serverApplicationPort; cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); } - protected static String extractQueryIdIfPresent(String path, String queryParams) - { - if (path == null) { - return null; - } - String queryId = null; - - log.debug("trying to extract query id from path [%s] or queryString [%s]", path, queryParams); - if (path.startsWith(V1_STATEMENT_PATH) || path.startsWith(V1_QUERY_PATH)) { - String[] tokens = path.split("/"); - if (tokens.length >= 4) { - if (path.contains("queued") - || path.contains("scheduled") - || path.contains("executing") - || path.contains("partialCancel")) { - queryId = tokens[4]; - } - else { - queryId = tokens[3]; - } - } - } - else if (path.startsWith(TRINO_UI_PATH)) { - Matcher matcher = QUERY_ID_PATH_PATTERN.matcher(path); - if (matcher.matches()) { - queryId = matcher.group(1); - } - } - if (!isNullOrEmpty(queryParams)) { - Matcher matcher = QUERY_ID_PARAM_PATTERN.matcher(queryParams); - if (matcher.matches()) { - queryId = matcher.group(1); - } - } - log.debug("query id in url [%s]", queryId); - return queryId; - } - static void setForwardedHostHeaderOnProxyRequest(HttpServletRequest request, Request proxyRequest) { @@ -174,74 +111,6 @@ static void setForwardedHostHeaderOnProxyRequest(HttpServletRequest request, } } - static String getQueryUser(HttpServletRequest request) - { - String trinoUser = request.getHeader(USER_HEADER); - - if (!isNullOrEmpty(trinoUser)) { - log.info("user from %s", USER_HEADER); - return trinoUser; - } - - log.info("user from basic auth"); - String user = ""; - String header = request.getHeader(AUTHORIZATION); - if (header == null) { - log.error("didn't find any basic auth header"); - return user; - } - - int space = header.indexOf(' '); - if ((space < 0) || !header.substring(0, space).equalsIgnoreCase("basic")) { - log.error("basic auth format is incorrect"); - return user; - } - - String headerInfo = header.substring(space + 1).trim(); - if (isNullOrEmpty(headerInfo)) { - log.error("The encoded value of basic auth doesn't exist"); - return user; - } - - String info = new String(Base64.getDecoder().decode(headerInfo)); - List parts = Splitter.on(':').limit(2).splitToList(info); - if (parts.size() < 1) { - log.error("no user inside the basic auth text"); - return user; - } - return parts.get(0); - } - - protected String extractQueryIdIfPresent(HttpServletRequest request) - { - String path = request.getRequestURI(); - String queryParams = request.getQueryString(); - try { - String queryText = CharStreams.toString(request.getReader()); - if (!isNullOrEmpty(queryText) - && queryText.toLowerCase().contains("system.runtime.kill_query")) { - // extract and return the queryId - String[] parts = queryText.split(","); - for (String part : parts) { - if (part.contains("query_id")) { - Matcher m = EXTRACT_BETWEEN_SINGLE_QUOTES.matcher(part); - if (m.find()) { - String queryQuoted = m.group(); - if (!isNullOrEmpty(queryQuoted) && queryQuoted.length() > 0) { - return queryQuoted.substring(1, queryQuoted.length() - 1); - } - } - } - } - } - } - catch (Exception e) { - log.error(e, "Error extracting query payload from request"); - } - - return extractQueryIdIfPresent(path, queryParams); - } - @Override public void preConnectionHook(HttpServletRequest request, Request proxyRequest) { @@ -261,23 +130,11 @@ public void preConnectionHook(HttpServletRequest request, Request proxyRequest) } } - if (isPathWhiteListed(request.getRequestURI())) { + if (routingTargetHandler.isPathWhiteListed(request.getRequestURI())) { setForwardedHostHeaderOnProxyRequest(request, proxyRequest); } } - private boolean isPathWhiteListed(String path) - { - return path.startsWith(V1_STATEMENT_PATH) - || path.startsWith(V1_QUERY_PATH) - || path.startsWith(TRINO_UI_PATH) - || path.startsWith(V1_INFO_PATH) - || path.startsWith(V1_NODE_PATH) - || path.startsWith(UI_API_STATS_PATH) - || path.startsWith(OAUTH_PATH) - || extraWhitelistPaths.stream().anyMatch(s -> path.startsWith(s)); - } - @Override public List generateDeleteCookieList(HttpServletRequest clientRequest) { @@ -300,67 +157,10 @@ public List generateDeleteCookieList(HttpServletRequest clientRequest) @Override public String rewriteTarget(HttpServletRequest request) { - if (!isPathWhiteListed(request.getRequestURI())) { + if (!routingTargetHandler.isPathWhiteListed(request.getRequestURI())) { return buildUriWithNewBackend(applicationEndpoint, request); } - - Optional previousBackend = getPreviousBackend(request); - String clusterHost = previousBackend.orElseGet(() -> getBackendFromRoutingGroup(request)); - // set target clusterHost so that we could save queryId to cluster mapping later. - ((MultiReadHttpServletRequest) request).addHeader(PROXY_TARGET_HEADER, clusterHost); - logRewrite(clusterHost, request); - - return buildUriWithNewBackend(clusterHost, request); - } - - private void logRewrite(String newBackend, HttpServletRequest request) - { - log.info("Rerouting [%s://%s:%s%s%s]--> [%s]", - request.getScheme(), - request.getRemoteHost(), - request.getServerPort(), - request.getRequestURI(), - (request.getQueryString() != null ? "?" + request.getQueryString() : ""), - buildUriWithNewBackend(newBackend, request)); - } - - private String buildUriWithNewBackend(String backendHost, HttpServletRequest request) - { - return backendHost + request.getRequestURI() + (request.getQueryString() != null ? "?" + request.getQueryString() : ""); - } - - private String getBackendFromRoutingGroup(HttpServletRequest request) - { - String routingGroup = routingGroupSelector.findRoutingGroup(request); - String user = request.getHeader(USER_HEADER); - if (!isNullOrEmpty(routingGroup)) { - // This falls back on adhoc backend if there are no cluster found for the routing group. - return routingManager.provideBackendForRoutingGroup(routingGroup, user); - } - return routingManager.provideAdhocBackend(user); - } - - private Optional getPreviousBackend(HttpServletRequest request) - { - String queryId = extractQueryIdIfPresent(request); - if (!isNullOrEmpty(queryId)) { - return Optional.of(routingManager.findBackendForQueryId(queryId)); - } - if (cookiesEnabled && request.getCookies() != null) { - List cookies = Arrays.stream(request.getCookies()) - .filter(c -> c.getName().startsWith(GatewayCookie.PREFIX)) - .map(GatewayCookie::fromCookie) - .filter(GatewayCookie::isValid) - .filter(c -> !isNullOrEmpty(c.getBackend())) - .filter(c -> c.matchesRoutingPath(request.getRequestURI())) - .sorted() - .toList(); - if (!cookies.isEmpty()) { - return Optional.of(cookies.getFirst().getBackend()); - } - } - - return Optional.empty(); + return routingTargetHandler.getRoutingDestination(request); } @Override @@ -389,7 +189,7 @@ else if (cookiesEnabled && request.getRequestURI().startsWith(OAuth2GatewayCooki super.postConnectionHook(request, response, buffer, offset, length, callback); } - void recordBackendForQueryId(HttpServletRequest request, HttpServletResponse response, byte[] buffer) + private void recordBackendForQueryId(HttpServletRequest request, HttpServletResponse response, byte[] buffer) throws IOException { String output; @@ -407,7 +207,7 @@ void recordBackendForQueryId(HttpServletRequest request, HttpServletResponse res if (queryDetail.getBackendUrl() == null) { log.error("Server response to request %s does not contain proxytarget header", request.getRequestURI()); } - log.debug("Extracting Proxy destination : [%s] for request : [%s]", queryDetail.getBackendUrl(), request.getRequestURI()); + log.debug("Extracting proxy destination : [%s] for request : [%s]", queryDetail.getBackendUrl(), request.getRequestURI()); if (response.getStatus() == HttpStatus.OK_200) { HashMap results = OBJECT_MAPPER.readValue(output, HashMap.class); @@ -424,20 +224,4 @@ void recordBackendForQueryId(HttpServletRequest request, HttpServletResponse res // Save history in Trino Gateway. queryHistoryManager.submitQueryDetail(queryDetail); } - - private QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(HttpServletRequest request) - throws IOException - { - QueryHistoryManager.QueryDetail queryDetail = new QueryHistoryManager.QueryDetail(); - queryDetail.setBackendUrl(request.getHeader(PROXY_TARGET_HEADER)); - queryDetail.setCaptureTime(System.currentTimeMillis()); - queryDetail.setUser(getQueryUser(request)); - queryDetail.setSource(request.getHeader(SOURCE_HEADER)); - String queryText = CharStreams.toString(request.getReader()); - queryDetail.setQueryText( - queryText.length() > QUERY_TEXT_LENGTH_FOR_HISTORY - ? queryText.substring(0, QUERY_TEXT_LENGTH_FOR_HISTORY) + "..." - : queryText); - return queryDetail; - } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java new file mode 100644 index 000000000..ec6400669 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.handler; + +import io.airlift.log.Logger; +import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; +import io.trino.gateway.ha.router.GatewayCookie; +import io.trino.gateway.ha.router.RoutingGroupSelector; +import io.trino.gateway.ha.router.RoutingManager; +import io.trino.gateway.proxyserver.wrapper.MultiReadHttpServletRequest; +import jakarta.servlet.http.HttpServletRequest; + +import java.util.Arrays; +import java.util.List; +import java.util.Optional; + +import static com.google.common.base.Strings.isNullOrEmpty; +import static io.trino.gateway.ha.handler.ProxyUtils.buildUriWithNewBackend; +import static io.trino.gateway.ha.handler.ProxyUtils.extractQueryIdIfPresent; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.OAUTH_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.PROXY_TARGET_HEADER; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.TRINO_UI_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.UI_API_STATS_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_INFO_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_NODE_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_QUERY_PATH; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_STATEMENT_PATH; +import static java.util.Objects.requireNonNull; + +public class RoutingTargetHandler +{ + private static final Logger log = Logger.get(RoutingTargetHandler.class); + private final RoutingManager routingManager; + private final RoutingGroupSelector routingGroupSelector; + private final List extraWhitelistPaths; + private final boolean cookiesEnabled; + + public RoutingTargetHandler( + RoutingManager routingManager, + RoutingGroupSelector routingGroupSelector, + List extraWhitelistPaths) + { + this.routingManager = requireNonNull(routingManager); + this.routingGroupSelector = requireNonNull(routingGroupSelector); + this.extraWhitelistPaths = requireNonNull(extraWhitelistPaths); + cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); + } + + public String getRoutingDestination(HttpServletRequest request) + { + Optional previousBackend = getPreviousBackend(request); + String clusterHost = previousBackend.orElseGet(() -> getBackendFromRoutingGroup(request)); + // set target clusterHost so that we could save queryId to cluster mapping later. + ((MultiReadHttpServletRequest) request).addHeader(PROXY_TARGET_HEADER, clusterHost); + logRewrite(clusterHost, request); + + return buildUriWithNewBackend(clusterHost, request); + } + + public boolean isPathWhiteListed(String path) + { + return path.startsWith(V1_STATEMENT_PATH) + || path.startsWith(V1_QUERY_PATH) + || path.startsWith(TRINO_UI_PATH) + || path.startsWith(V1_INFO_PATH) + || path.startsWith(V1_NODE_PATH) + || path.startsWith(UI_API_STATS_PATH) + || path.startsWith(OAUTH_PATH) + || extraWhitelistPaths.stream().anyMatch(s -> path.startsWith(s)); + } + + private String getBackendFromRoutingGroup(HttpServletRequest request) + { + String routingGroup = routingGroupSelector.findRoutingGroup(request); + String user = request.getHeader(USER_HEADER); + if (!isNullOrEmpty(routingGroup)) { + // This falls back on adhoc backend if there is no cluster found for the routing group. + return routingManager.provideBackendForRoutingGroup(routingGroup, user); + } + return routingManager.provideAdhocBackend(user); + } + + private Optional getPreviousBackend(HttpServletRequest request) + { + String queryId = extractQueryIdIfPresent(request); + if (!isNullOrEmpty(queryId)) { + return Optional.of(routingManager.findBackendForQueryId(queryId)); + } + if (cookiesEnabled && request.getCookies() != null) { + List cookies = Arrays.stream(request.getCookies()) + .filter(c -> c.getName().startsWith(GatewayCookie.PREFIX)) + .map(GatewayCookie::fromCookie) + .filter(GatewayCookie::isValid) + .filter(c -> !isNullOrEmpty(c.getBackend())) + .filter(c -> c.matchesRoutingPath(request.getRequestURI())) + .sorted() + .toList(); + if (!cookies.isEmpty()) { + return Optional.of(cookies.getFirst().getBackend()); + } + } + + return Optional.empty(); + } + + private void logRewrite(String newBackend, HttpServletRequest request) + { + log.info("Rerouting [%s://%s:%s%s%s]--> [%s]", + request.getScheme(), + request.getRemoteHost(), + request.getServerPort(), + request.getRequestURI(), + (request.getQueryString() != null ? "?" + request.getQueryString() : ""), + buildUriWithNewBackend(newBackend, request)); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 8106c6a76..80d3757b6 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -29,6 +29,7 @@ import io.trino.gateway.ha.config.UserConfiguration; import io.trino.gateway.ha.handler.ProxyHandlerStats; import io.trino.gateway.ha.handler.QueryIdCachingProxyHandler; +import io.trino.gateway.ha.handler.RoutingTargetHandler; import io.trino.gateway.ha.router.BackendStateManager; import io.trino.gateway.ha.router.QueryHistoryManager; import io.trino.gateway.ha.router.RoutingGroupSelector; @@ -53,7 +54,6 @@ import io.trino.gateway.proxyserver.ProxyServerConfiguration; import jakarta.ws.rs.container.ContainerRequestFilter; -import java.util.List; import java.util.Map; import java.util.Optional; @@ -68,7 +68,6 @@ public class HaGatewayProviderModule private final AuthorizationManager authorizationManager; private final BackendStateManager backendStateConnectionManager; private final ResourceSecurityDynamicFeature resourceSecurityDynamicFeature; - private final List extraWhitelistPaths; private final HaGatewayConfiguration configuration; @Override @@ -88,7 +87,6 @@ public HaGatewayProviderModule(HaGatewayConfiguration configuration) authorizationManager = new AuthorizationManager(configuration.getAuthorization(), presetUsers); resourceSecurityDynamicFeature = getAuthFilter(configuration); backendStateConnectionManager = new BackendStateManager(); - extraWhitelistPaths = configuration.getExtraWhitelistPaths(); GatewayCookieConfigurationPropertiesProvider gatewayCookieConfigurationPropertiesProvider = GatewayCookieConfigurationPropertiesProvider.getInstance(); gatewayCookieConfigurationPropertiesProvider.initialize(configuration.getGatewayCookieConfiguration()); @@ -164,7 +162,7 @@ private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration conf public ProxyServer provideGateway( QueryHistoryManager queryHistoryManager, RoutingManager routingManager, - RoutingGroupSelector routingGroupSelector, + RoutingTargetHandler routingTargetHandler, ProxyHandlerStats proxyHandlerStats, HttpServerConfig httpServerConfig, Optional httpsConfig) @@ -191,10 +189,9 @@ public ProxyServer provideGateway( ProxyHandler proxyHandler = new QueryIdCachingProxyHandler( queryHistoryManager, routingManager, - routingGroupSelector, + routingTargetHandler, httpsConfig.map(HttpsConfig::getHttpsPort).orElseGet(httpServerConfig::getHttpPort), - proxyHandlerStats, - extraWhitelistPaths); + proxyHandlerStats); gateway = new ProxyServer(routerProxyConfig, proxyHandler); } return gateway; @@ -239,4 +236,16 @@ public RoutingGroupSelector getRoutingGroupSelector() } return RoutingGroupSelector.byRoutingGroupHeader(); } + + @Provides + @Singleton + public RoutingTargetHandler getRoutingDestinationHandler( + RoutingManager routingManager, + RoutingGroupSelector routingGroupSelector) + { + return new RoutingTargetHandler( + routingManager, + routingGroupSelector, + configuration.getExtraWhitelistPaths()); + } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java index 06f6f076d..07f3a5e8b 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java @@ -23,7 +23,8 @@ import java.io.IOException; -import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.extractQueryIdIfPresent; +import static io.trino.gateway.ha.handler.ProxyUtils.extractQueryIdIfPresent; +import static io.trino.gateway.ha.handler.ProxyUtils.getQueryUser; import static java.lang.String.format; import static org.assertj.core.api.Assertions.assertThat; @@ -86,11 +87,11 @@ public void testUserFromRequest() String authHeader = "Basic dGVzdDoxMjPCow=="; Mockito.when(req.getHeader(QueryIdCachingProxyHandler.AUTHORIZATION)) .thenReturn(authHeader); - assertThat(QueryIdCachingProxyHandler.getQueryUser(req)).isEqualTo("test"); + assertThat(getQueryUser(req)).isEqualTo("test"); String user = "trino_user"; Mockito.when(req.getHeader(QueryIdCachingProxyHandler.USER_HEADER)) .thenReturn(user); - assertThat(QueryIdCachingProxyHandler.getQueryUser(req)).isEqualTo(user); + assertThat(getQueryUser(req)).isEqualTo(user); } } From 58dee064b5dc9a760fbaf5f181d9c5f7c02b169e Mon Sep 17 00:00:00 2001 From: Star Poon Date: Thu, 6 Jun 2024 10:54:55 +0900 Subject: [PATCH 138/148] Refactor getQueryUser --- .../trino/gateway/ha/handler/ProxyUtils.java | 31 +++++++++---------- .../TestQueryIdCachingProxyHandler.java | 8 +++-- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java index 07f997cb7..2a9888f68 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java @@ -62,7 +62,7 @@ public static QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(HttpSer QueryHistoryManager.QueryDetail queryDetail = new QueryHistoryManager.QueryDetail(); queryDetail.setBackendUrl(request.getHeader(PROXY_TARGET_HEADER)); queryDetail.setCaptureTime(System.currentTimeMillis()); - queryDetail.setUser(getQueryUser(request)); + queryDetail.setUser(getQueryUser(request.getHeader(USER_HEADER), request.getHeader(AUTHORIZATION))); queryDetail.setSource(request.getHeader(SOURCE_HEADER)); String queryText = CharStreams.toString(request.getReader()); queryDetail.setQueryText( @@ -72,39 +72,36 @@ public static QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(HttpSer return queryDetail; } - public static String getQueryUser(HttpServletRequest request) + public static String getQueryUser(String userHeader, String authorization) { - String trinoUser = request.getHeader(USER_HEADER); - - if (!isNullOrEmpty(trinoUser)) { - log.info("user from %s", USER_HEADER); - return trinoUser; + if (!isNullOrEmpty(userHeader)) { + log.debug("User from header %s", USER_HEADER); + return userHeader; } - log.info("user from basic auth"); + log.debug("User from basic authentication"); String user = ""; - String header = request.getHeader(AUTHORIZATION); - if (header == null) { - log.error("didn't find any basic auth header"); + if (authorization == null) { + log.debug("No basic auth header found."); return user; } - int space = header.indexOf(' '); - if ((space < 0) || !header.substring(0, space).equalsIgnoreCase("basic")) { - log.error("basic auth format is incorrect"); + int space = authorization.indexOf(' '); + if ((space < 0) || !authorization.substring(0, space).equalsIgnoreCase("basic")) { + log.error("Basic auth format is invalid"); return user; } - String headerInfo = header.substring(space + 1).trim(); + String headerInfo = authorization.substring(space + 1).trim(); if (isNullOrEmpty(headerInfo)) { - log.error("The encoded value of basic auth doesn't exist"); + log.error("Encoded value of basic auth doesn't exist"); return user; } String info = new String(Base64.getDecoder().decode(headerInfo)); List parts = Splitter.on(':').limit(2).splitToList(info); if (parts.size() < 1) { - log.error("no user inside the basic auth text"); + log.error("No user inside the basic auth text"); return user; } return parts.get(0); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java index 07f3a5e8b..5d8b78e19 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java @@ -25,6 +25,8 @@ import static io.trino.gateway.ha.handler.ProxyUtils.extractQueryIdIfPresent; import static io.trino.gateway.ha.handler.ProxyUtils.getQueryUser; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.AUTHORIZATION; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; import static java.lang.String.format; import static org.assertj.core.api.Assertions.assertThat; @@ -85,13 +87,13 @@ public void testUserFromRequest() HttpServletRequest req = Mockito.mock(HttpServletRequest.class); String authHeader = "Basic dGVzdDoxMjPCow=="; - Mockito.when(req.getHeader(QueryIdCachingProxyHandler.AUTHORIZATION)) + Mockito.when(req.getHeader(AUTHORIZATION)) .thenReturn(authHeader); - assertThat(getQueryUser(req)).isEqualTo("test"); + assertThat(getQueryUser(req.getHeader(USER_HEADER), req.getHeader(AUTHORIZATION))).isEqualTo("test"); String user = "trino_user"; Mockito.when(req.getHeader(QueryIdCachingProxyHandler.USER_HEADER)) .thenReturn(user); - assertThat(getQueryUser(req)).isEqualTo(user); + assertThat(getQueryUser(req.getHeader(USER_HEADER), req.getHeader(AUTHORIZATION))).isEqualTo(user); } } From 2a08cb04e2552d37647601602c38364c34c51dd9 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 3 Jun 2024 11:35:24 +0900 Subject: [PATCH 139/148] Implement proxy server using Airlift --- docker/bin/health-check | 66 +---- docs/quickstart-config.yaml | 9 +- gateway-ha/gateway-ha-config-docker.yml | 9 +- gateway-ha/gateway-ha-config.yml | 9 +- gateway-ha/pom.xml | 48 +-- .../io/trino/gateway/baseapp/BaseApp.java | 15 + .../ClusterStatsHttpMonitor.java | 9 +- .../ha/config/HaGatewayConfiguration.java | 11 - .../ha/config/RequestRouterConfiguration.java | 164 ---------- .../trino/gateway/ha/handler/ProxyUtils.java | 24 +- .../handler/QueryIdCachingProxyHandler.java | 198 +------------ .../ha/handler/RoutingTargetHandler.java | 4 - .../ha/module/HaGatewayProviderModule.java | 52 +--- .../gateway/ha/router/GatewayCookie.java | 9 + .../trino/gateway/proxyserver/ForProxy.java | 31 ++ .../ProxyException.java} | 29 +- .../gateway/proxyserver/ProxyHandler.java | 125 -------- .../proxyserver/ProxyRequestHandler.java | 280 ++++++++++++++++++ .../proxyserver/ProxyResponseHandler.java | 58 ++++ .../gateway/proxyserver/ProxyServer.java | 152 ---------- .../gateway/proxyserver/ProxyServletImpl.java | 137 --------- .../gateway/proxyserver/RequestFilter.java | 42 --- .../proxyserver/RouteToBackendResource.java | 77 +++++ .../RouterPreMatchContainerRequestFilter.java | 54 ++++ .../wrapper/MultiReadHttpServletRequest.java | 140 --------- .../trino/gateway/ha/TestTrinoResource.java | 19 +- .../TestQueryIdCachingProxyHandler.java | 19 -- .../gateway/proxyserver/TestProxyServer.java | 71 ----- .../test/resources/auth/auth-test-config.yml | 10 +- .../test/resources/auth/oauth-test-config.yml | 16 +- .../test/resources/test-config-template.yml | 11 +- helm/trino-gateway/templates/deployment.yaml | 2 +- helm/trino-gateway/templates/service.yaml | 2 +- helm/trino-gateway/values.yaml | 8 +- pom.xml | 17 -- 35 files changed, 584 insertions(+), 1343 deletions(-) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/RequestRouterConfiguration.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/ForProxy.java rename gateway-ha/src/main/java/io/trino/gateway/{ha/GatewayManagedApp.java => proxyserver/ProxyException.java} (51%) delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/RequestFilter.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouteToBackendResource.java create mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java delete mode 100644 gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java delete mode 100644 gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyServer.java diff --git a/docker/bin/health-check b/docker/bin/health-check index 5e2cc3eb0..f9b176fbc 100755 --- a/docker/bin/health-check +++ b/docker/bin/health-check @@ -2,54 +2,8 @@ set -euo pipefail -function get_2nd_level_yaml_key() { - local parent_key=$1 - local target_key=$2 - local yaml_file_path=$3 - - # In order to get the nested key we will leverage awk to do some parsing - awk -v parent_key=${parent_key} \ - -v target_key=${target_key} \ - ' - function count_indentation(line) { - match(line, /^[[:space:]]*/); - return RLENGTH; - } - # First we search for the parent_key, once we find it we set in_block to true - match($0, "^" parent_key ":") { - in_block=1; - parent_indent_level = count_indentation($0); - next; - } \ - in_block { - # All lines we deem to be a comment will be skipped. - if (match($0, "^[[:space:]]*#")) { next; } - - # If we determine that we have left the parent_key block we will exit. - if ($0 ~ /^[^\t #]/) { exit; } - - current_indent_level = count_indentation($0); - - # Next, because we dont know the indentation levels being provided, we will attempt - # to find the indentation level of the 2nd level keys. - if ( !first_level_indentation \ - && match($0, "^[[:space:]]+.*:") \ - && current_indent_level > parent_indent_level) { - first_level_indentation = current_indent_level; - } - - # Then we will attempt to find the 2nd level target key based on: - # 1. Theres only spaces before the target_key - # 2. The indentation level is equal to the found 2nd level indentation - if (match($0, "^[[:space:]]+" target_key ":") \ - && current_indent_level == first_level_indentation) { - # If we decide that the key matches our expectations, we will print the matched value - sub(/:/, "", $2); - print $2; - } - } - ' \ - ${yaml_file_path} +function get_property() { + grep "$1" "$2" | cut -d':' -f2 | tr -d '[:space:]' || true } config=/opt/trino/gateway-ha-config.yml @@ -57,13 +11,17 @@ scheme=http port=8080 # prefer to use http even if https is enabled -if [ "$(get_2nd_level_yaml_key 'requestRouter' 'ssl' "$config")" == "true" ]; then +if [ "$(get_property 'http-server.https.enabled' "$config")" == "true" ]; then scheme=https -fi - -potential_port=$(get_2nd_level_yaml_key 'requestRouter' 'port' "$config") -if [ "${potential_port}" != "" ]; then - port=${potential_port} + potential_port=$(get_property http-server.https.port "$config") + if [ "${potential_port}" != "" ]; then + port=${potential_port} + fi +else + potential_port=$(get_property http-server.http.port "$config") + if [ "${potential_port}" != "" ]; then + port=${potential_port} + fi fi endpoint="${scheme}://localhost:${port}/api/public/backends" diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index 418af81e9..4367053e7 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -1,14 +1,8 @@ httpConfig: node.environment: test - http-server.http.port: 9081 + http-server.http.port: 8080 log.levels-file: gateway-ha/etc/log.properties -requestRouter: - #SQL clients connect to the request port - port: 9080 - name: testTrinoRouter - historySize: 1000 - dataStore: #This stores the URLs of backend Trino servers and query history jdbcUrl: jdbc:postgresql://localhost:5432/gateway @@ -25,5 +19,4 @@ modules: - io.trino.gateway.ha.module.ClusterStatsMonitorModule managedApps: - - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor diff --git a/gateway-ha/gateway-ha-config-docker.yml b/gateway-ha/gateway-ha-config-docker.yml index aa2c671ba..f41b42ea4 100644 --- a/gateway-ha/gateway-ha-config-docker.yml +++ b/gateway-ha/gateway-ha-config-docker.yml @@ -1,17 +1,11 @@ httpConfig: node.environment: test - http-server.http.port: 9081 + http-server.http.port: 8080 routingRules: rulesEngineEnabled: False # rulesConfigPath: "src/main/resources/rules/routing_rules.yml" -requestRouter: - port: 8080 - name: trinoRouter - historySize: 1000 - requestBufferSize: 8192 - dataStore: jdbcUrl: jdbc:postgresql://postgres:5432/trino_gateway_db user: trino_gateway_db_admin @@ -28,5 +22,4 @@ modules: - io.trino.gateway.ha.module.ClusterStatsMonitorModule managedApps: - - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index c5c10a855..751bb97a9 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -1,17 +1,11 @@ httpConfig: node.environment: test - http-server.http.port: 9081 + http-server.http.port: 8080 routingRules: rulesEngineEnabled: False # rulesConfigPath: "src/main/resources/rules/routing_rules.yml" -requestRouter: - port: 8080 - name: trinoRouter - historySize: 1000 - requestBufferSize: 8192 - dataStore: jdbcUrl: jdbc:postgresql://localhost:5432/trino_gateway_db user: trino_gateway_db_admin @@ -32,5 +26,4 @@ modules: - io.trino.gateway.ha.module.ClusterStatsMonitorModule managedApps: - - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 5ecb06ef5..7ce13135d 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -112,6 +112,11 @@ bootstrap + + io.airlift + concurrent + + io.airlift event @@ -211,49 +216,6 @@ 1.78.1 - - org.eclipse.jetty - jetty-client - - - - org.eclipse.jetty - jetty-http - - - - org.eclipse.jetty - jetty-io - - - - org.eclipse.jetty - jetty-server - - - org.eclipse.jetty.toolchain - jetty-jakarta-servlet-api - - - - - - org.eclipse.jetty - jetty-util - - - - org.eclipse.jetty.ee10 - jetty-ee10-proxy - ${dep.jetty.version} - - - - org.eclipse.jetty.ee10 - jetty-ee10-servlet - ${dep.jetty.version} - - org.glassfish.jersey.core jersey-server diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java index 0b601b6af..625ee2c03 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/BaseApp.java @@ -31,6 +31,10 @@ import io.trino.gateway.ha.resource.PublicResource; import io.trino.gateway.ha.resource.TrinoResource; import io.trino.gateway.ha.security.AuthorizedExceptionMapper; +import io.trino.gateway.proxyserver.ForProxy; +import io.trino.gateway.proxyserver.ProxyRequestHandler; +import io.trino.gateway.proxyserver.RouteToBackendResource; +import io.trino.gateway.proxyserver.RouterPreMatchContainerRequestFilter; import org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature; import java.lang.reflect.Constructor; @@ -38,6 +42,7 @@ import java.util.List; import java.util.Optional; +import static io.airlift.http.client.HttpClientBinder.httpClientBinder; import static io.airlift.jaxrs.JaxrsBinder.jaxrsBinder; import static java.lang.String.format; import static java.util.Objects.requireNonNull; @@ -109,8 +114,10 @@ public static List addModules(HaGatewayConfiguration configuration) @Override public void configure(Binder binder) { + binder.bind(HaGatewayConfiguration.class).toInstance(haGatewayConfiguration); registerAuthFilters(binder); registerResources(binder); + registerProxyResources(binder); addManagedApps(this.haGatewayConfiguration, binder); jaxrsBinder(binder).bind(AuthorizedExceptionMapper.class); binder.bind(ProxyHandlerStats.class).in(Scopes.SINGLETON); @@ -152,4 +159,12 @@ private static void registerAuthFilters(Binder binder) { jaxrsBinder(binder).bind(RolesAllowedDynamicFeature.class); } + + private static void registerProxyResources(Binder binder) + { + jaxrsBinder(binder).bind(RouteToBackendResource.class); + jaxrsBinder(binder).bind(RouterPreMatchContainerRequestFilter.class); + jaxrsBinder(binder).bind(ProxyRequestHandler.class); + httpClientBinder(binder).bindHttpClient("proxy", ForProxy.class); + } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java index 675cebd0f..5af799d20 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/clustermonitor/ClusterStatsHttpMonitor.java @@ -16,6 +16,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Strings; +import io.airlift.http.client.HttpStatus; import io.airlift.log.Logger; import io.trino.gateway.ha.config.BackendStateConfiguration; import io.trino.gateway.ha.config.ProxyBackendConfiguration; @@ -26,13 +27,13 @@ import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; -import org.eclipse.jetty.http.HttpStatus; import java.io.IOException; import java.util.HashMap; import java.util.List; import java.util.Map; +import static io.airlift.http.client.HttpStatus.fromStatusCode; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.UI_API_QUEUED_LIST_PATH; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.UI_API_STATS_PATH; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.UI_LOGIN_PATH; @@ -147,10 +148,10 @@ private String queryCluster(ProxyBackendConfiguration backend, String path) Call call = client.newCall(request); try (Response res = call.execute()) { - switch (res.code()) { - case HttpStatus.OK_200: + switch (fromStatusCode(res.code())) { + case HttpStatus.OK: return res.body().string(); - case HttpStatus.UNAUTHORIZED_401: + case HttpStatus.UNAUTHORIZED: log.info("Unauthorized to fetch cluster stats"); log.debug("username: %s, targetUrl: %s, cookieStore: %s", username, diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 99f42f962..798c4e3e2 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -21,7 +21,6 @@ public class HaGatewayConfiguration { private Map httpConfig = new HashMap<>(); - private RequestRouterConfiguration requestRouter; private NotifierConfiguration notifier; private DataStoreConfiguration dataStore; private MonitorConfiguration monitor = new MonitorConfiguration(); @@ -54,16 +53,6 @@ public void setHttpConfig(Map httpConfig) this.httpConfig = httpConfig; } - public RequestRouterConfiguration getRequestRouter() - { - return this.requestRouter; - } - - public void setRequestRouter(RequestRouterConfiguration requestRouter) - { - this.requestRouter = requestRouter; - } - public NotifierConfiguration getNotifier() { return this.notifier; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/RequestRouterConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/RequestRouterConfiguration.java deleted file mode 100644 index 8f99ad2ee..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/RequestRouterConfiguration.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.ha.config; - -public class RequestRouterConfiguration -{ - // Local gateway port - private int port; - - // Name of the routing gateway name (for metrics purposes) - private String name; - - // Use SSL? - private boolean ssl; - private String keystorePath; - private String keystorePass; - - private int historySize = 2000; - - // Use the certificate between gateway and trino? - private boolean forwardKeystore; - - // Set size for HttpConfiguration - private int outputBufferSize = 32 * 1024; - private int requestHeaderSize = 8 * 1024; - private int responseHeaderSize = 8 * 1024; - - // Set size for HttpClient - private int requestBufferSize = 4 * 1024; - private int responseBufferSize = 16 * 1024; - - public RequestRouterConfiguration() {} - - public int getPort() - { - return this.port; - } - - public void setPort(int port) - { - this.port = port; - } - - public String getName() - { - return this.name; - } - - public void setName(String name) - { - this.name = name; - } - - public boolean isSsl() - { - return this.ssl; - } - - public void setSsl(boolean ssl) - { - this.ssl = ssl; - } - - public String getKeystorePath() - { - return this.keystorePath; - } - - public void setKeystorePath(String keystorePath) - { - this.keystorePath = keystorePath; - } - - public String getKeystorePass() - { - return this.keystorePass; - } - - public void setKeystorePass(String keystorePass) - { - this.keystorePass = keystorePass; - } - - public int getHistorySize() - { - return this.historySize; - } - - public void setHistorySize(int historySize) - { - this.historySize = historySize; - } - - public boolean isForwardKeystore() - { - return this.forwardKeystore; - } - - public void setForwardKeystore(boolean forwardKeystore) - { - this.forwardKeystore = forwardKeystore; - } - - public int getOutputBufferSize() - { - return this.outputBufferSize; - } - - public void setOutputBufferSize(int outputBufferSize) - { - this.outputBufferSize = outputBufferSize; - } - - public int getRequestHeaderSize() - { - return this.requestHeaderSize; - } - - public void setRequestHeaderSize(int requestHeaderSize) - { - this.requestHeaderSize = requestHeaderSize; - } - - public int getResponseHeaderSize() - { - return this.responseHeaderSize; - } - - public void setResponseHeaderSize(int responseHeaderSize) - { - this.responseHeaderSize = responseHeaderSize; - } - - public int getRequestBufferSize() - { - return this.requestBufferSize; - } - - public void setRequestBufferSize(int requestBufferSize) - { - this.requestBufferSize = requestBufferSize; - } - - public int getResponseBufferSize() - { - return this.responseBufferSize; - } - - public void setResponseBufferSize(int responseBufferSize) - { - this.responseBufferSize = responseBufferSize; - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java index 2a9888f68..dc24ec84e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/ProxyUtils.java @@ -16,17 +16,15 @@ import com.google.common.base.Splitter; import com.google.common.io.CharStreams; import io.airlift.log.Logger; -import io.trino.gateway.ha.router.QueryHistoryManager; import jakarta.servlet.http.HttpServletRequest; -import java.io.IOException; +import java.io.InputStreamReader; import java.util.Base64; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import static com.google.common.base.Strings.isNullOrEmpty; -import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.PROXY_TARGET_HEADER; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.TRINO_UI_PATH; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_QUERY_PATH; @@ -38,7 +36,7 @@ public final class ProxyUtils public static final String AUTHORIZATION = "Authorization"; private static final Logger log = Logger.get(ProxyUtils.class); - private static final int QUERY_TEXT_LENGTH_FOR_HISTORY = 200; + public static final int QUERY_TEXT_LENGTH_FOR_HISTORY = 200; /** * This regular expression matches query ids as they appear in the path of a URL. The query id must be preceded * by a "/". A query id is defined as three groups of digits separated by underscores, with a final group @@ -56,22 +54,6 @@ public final class ProxyUtils private ProxyUtils() {} - public static QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(HttpServletRequest request) - throws IOException - { - QueryHistoryManager.QueryDetail queryDetail = new QueryHistoryManager.QueryDetail(); - queryDetail.setBackendUrl(request.getHeader(PROXY_TARGET_HEADER)); - queryDetail.setCaptureTime(System.currentTimeMillis()); - queryDetail.setUser(getQueryUser(request.getHeader(USER_HEADER), request.getHeader(AUTHORIZATION))); - queryDetail.setSource(request.getHeader(SOURCE_HEADER)); - String queryText = CharStreams.toString(request.getReader()); - queryDetail.setQueryText( - queryText.length() > QUERY_TEXT_LENGTH_FOR_HISTORY - ? queryText.substring(0, QUERY_TEXT_LENGTH_FOR_HISTORY) + "..." - : queryText); - return queryDetail; - } - public static String getQueryUser(String userHeader, String authorization) { if (!isNullOrEmpty(userHeader)) { @@ -112,7 +94,7 @@ public static String extractQueryIdIfPresent(HttpServletRequest request) String path = request.getRequestURI(); String queryParams = request.getQueryString(); try { - String queryText = CharStreams.toString(request.getReader()); + String queryText = CharStreams.toString(new InputStreamReader(request.getInputStream())); if (!isNullOrEmpty(queryText) && queryText.toLowerCase().contains("system.runtime.kill_query")) { // extract and return the queryId diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java index c53ac8894..36f6e8fbf 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/QueryIdCachingProxyHandler.java @@ -13,39 +13,8 @@ */ package io.trino.gateway.ha.handler; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.google.common.collect.ImmutableList; -import com.google.common.io.CharStreams; -import io.airlift.log.Logger; -import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; -import io.trino.gateway.ha.router.GatewayCookie; -import io.trino.gateway.ha.router.OAuth2GatewayCookie; -import io.trino.gateway.ha.router.QueryHistoryManager; -import io.trino.gateway.ha.router.RoutingManager; -import io.trino.gateway.proxyserver.ProxyHandler; -import jakarta.servlet.http.Cookie; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.ws.rs.HttpMethod; -import org.eclipse.jetty.client.Request; -import org.eclipse.jetty.http.HttpStatus; -import org.eclipse.jetty.util.Callback; - -import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; - -import static com.google.common.base.Strings.isNullOrEmpty; -import static io.trino.gateway.ha.handler.ProxyUtils.buildUriWithNewBackend; -import static io.trino.gateway.ha.handler.ProxyUtils.getQueryDetailsFromRequest; - public class QueryIdCachingProxyHandler - extends ProxyHandler { - public static final String PROXY_TARGET_HEADER = "proxytarget"; public static final String V1_STATEMENT_PATH = "/v1/statement"; public static final String V1_QUERY_PATH = "/v1/query"; public static final String V1_INFO_PATH = "/v1/info"; @@ -57,171 +26,6 @@ public class QueryIdCachingProxyHandler public static final String OAUTH_PATH = "/oauth2"; public static final String AUTHORIZATION = "Authorization"; public static final String USER_HEADER = "X-Trino-User"; - public static final String HOST_HEADER = "Host"; - - private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); - private static final Logger log = Logger.get(QueryIdCachingProxyHandler.class); - - private final RoutingManager routingManager; - private final QueryHistoryManager queryHistoryManager; - private final RoutingTargetHandler routingTargetHandler; - - private final ProxyHandlerStats proxyHandlerStats; - private final String applicationEndpoint; - private final boolean cookiesEnabled; - - public QueryIdCachingProxyHandler( - QueryHistoryManager queryHistoryManager, - RoutingManager routingManager, - RoutingTargetHandler routingTargetHandler, - int serverApplicationPort, - ProxyHandlerStats proxyHandlerStats) - { - this.proxyHandlerStats = proxyHandlerStats; - this.routingManager = routingManager; - this.queryHistoryManager = queryHistoryManager; - this.routingTargetHandler = routingTargetHandler; - this.applicationEndpoint = "http://localhost:" + serverApplicationPort; - cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); - } - - static void setForwardedHostHeaderOnProxyRequest(HttpServletRequest request, - Request proxyRequest) - { - if (request.getHeader(PROXY_TARGET_HEADER) != null) { - try { - URI backendUri = new URI(request.getHeader(PROXY_TARGET_HEADER)); - StringBuilder hostName = new StringBuilder(); - hostName.append(backendUri.getHost()); - if (backendUri.getPort() != -1) { - hostName.append(":").append(backendUri.getPort()); - } - String overrideHostName = hostName.toString(); - log.debug("Incoming Request Host header : [%s], proxy request host header : [%s]", - request.getHeader(HOST_HEADER), overrideHostName); - - proxyRequest.headers(headers -> headers.add(HOST_HEADER, overrideHostName)); - } - catch (URISyntaxException e) { - log.warn(e.toString()); - } - } - else { - log.warn("Proxy Target not set on request, unable to decipher HOST header"); - } - } - - @Override - public void preConnectionHook(HttpServletRequest request, Request proxyRequest) - { - if (request.getMethod().equals(HttpMethod.POST) - && request.getRequestURI().startsWith(V1_STATEMENT_PATH)) { - proxyHandlerStats.recordRequest(); - try { - String requestBody = CharStreams.toString(request.getReader()); - log.info( - "Processing request endpoint: [%s], payload: [%s]", - request.getRequestURI(), - requestBody); - debugLogHeaders(request); - } - catch (Exception e) { - log.warn(e, "Error fetching the request payload"); - } - } - - if (routingTargetHandler.isPathWhiteListed(request.getRequestURI())) { - setForwardedHostHeaderOnProxyRequest(request, proxyRequest); - } - } - - @Override - public List generateDeleteCookieList(HttpServletRequest clientRequest) - { - if (!cookiesEnabled || clientRequest.getCookies() == null) { - return ImmutableList.of(); - } - - return Arrays.stream(clientRequest.getCookies()) - .filter(c -> c.getName().startsWith(GatewayCookie.PREFIX)) - .map(GatewayCookie::fromCookie) - .filter(c -> !c.isValid() || c.matchesDeletePath(clientRequest.getRequestURI())) - .map(GatewayCookie::toCookie) - .peek(c -> { - c.setValue("delete"); - c.setMaxAge(0); - }) - .toList(); - } - - @Override - public String rewriteTarget(HttpServletRequest request) - { - if (!routingTargetHandler.isPathWhiteListed(request.getRequestURI())) { - return buildUriWithNewBackend(applicationEndpoint, request); - } - return routingTargetHandler.getRoutingDestination(request); - } - - @Override - protected void postConnectionHook( - HttpServletRequest request, - HttpServletResponse response, - byte[] buffer, - int offset, - int length, - Callback callback) - { - try { - if (request.getRequestURI().startsWith(V1_STATEMENT_PATH) && request.getMethod().equals(HttpMethod.POST)) { - recordBackendForQueryId(request, response, buffer); - } - else if (cookiesEnabled && request.getRequestURI().startsWith(OAuth2GatewayCookie.OAUTH2_PATH) - && !(request.getCookies() != null - && Arrays.stream(request.getCookies()).anyMatch(c -> c.getName().equals(OAuth2GatewayCookie.NAME)))) { - GatewayCookie oauth2Cookie = new OAuth2GatewayCookie(request.getHeader(PROXY_TARGET_HEADER)); - response.addCookie(oauth2Cookie.toCookie()); - } - } - catch (Exception e) { - log.error(e, "Error in proxying falling back to super call"); - } - super.postConnectionHook(request, response, buffer, offset, length, callback); - } - - private void recordBackendForQueryId(HttpServletRequest request, HttpServletResponse response, byte[] buffer) - throws IOException - { - String output; - boolean isGZipEncoding = isGZipEncoding(response); - if (isGZipEncoding) { - output = plainTextFromGz(buffer); - } - else { - output = new String(buffer); - } - log.debug("For Request [%s] got Response output [%s]", request.getRequestURI(), output); - - QueryHistoryManager.QueryDetail queryDetail = getQueryDetailsFromRequest(request); - - if (queryDetail.getBackendUrl() == null) { - log.error("Server response to request %s does not contain proxytarget header", request.getRequestURI()); - } - log.debug("Extracting proxy destination : [%s] for request : [%s]", queryDetail.getBackendUrl(), request.getRequestURI()); - - if (response.getStatus() == HttpStatus.OK_200) { - HashMap results = OBJECT_MAPPER.readValue(output, HashMap.class); - queryDetail.setQueryId(results.get("id")); - if (!isNullOrEmpty(queryDetail.getQueryId())) { - routingManager.setBackendForQueryId(queryDetail.getQueryId(), queryDetail.getBackendUrl()); - log.debug("QueryId [%s] mapped with proxy [%s]", queryDetail.getQueryId(), queryDetail.getBackendUrl()); - } - } - else { - log.error("Non OK HTTP Status code with response [%s] , Status code [%s]", output, response.getStatus()); - } - // Save history in Trino Gateway. - queryHistoryManager.submitQueryDetail(queryDetail); - } + private QueryIdCachingProxyHandler() {} } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java index ec6400669..d5355ea9d 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java @@ -18,7 +18,6 @@ import io.trino.gateway.ha.router.GatewayCookie; import io.trino.gateway.ha.router.RoutingGroupSelector; import io.trino.gateway.ha.router.RoutingManager; -import io.trino.gateway.proxyserver.wrapper.MultiReadHttpServletRequest; import jakarta.servlet.http.HttpServletRequest; import java.util.Arrays; @@ -29,7 +28,6 @@ import static io.trino.gateway.ha.handler.ProxyUtils.buildUriWithNewBackend; import static io.trino.gateway.ha.handler.ProxyUtils.extractQueryIdIfPresent; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.OAUTH_PATH; -import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.PROXY_TARGET_HEADER; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.TRINO_UI_PATH; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.UI_API_STATS_PATH; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; @@ -62,8 +60,6 @@ public String getRoutingDestination(HttpServletRequest request) { Optional previousBackend = getPreviousBackend(request); String clusterHost = previousBackend.orElseGet(() -> getBackendFromRoutingGroup(request)); - // set target clusterHost so that we could save queryId to cluster mapping later. - ((MultiReadHttpServletRequest) request).addHeader(PROXY_TARGET_HEADER, clusterHost); logRewrite(clusterHost, request); return buildUriWithNewBackend(clusterHost, request); diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java index 80d3757b6..b7b2801aa 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/HaGatewayProviderModule.java @@ -17,21 +17,15 @@ import com.google.inject.AbstractModule; import com.google.inject.Provides; import com.google.inject.Singleton; -import io.airlift.http.server.HttpServerConfig; -import io.airlift.http.server.HttpsConfig; import io.trino.gateway.ha.config.AuthenticationConfiguration; import io.trino.gateway.ha.config.AuthorizationConfiguration; import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; import io.trino.gateway.ha.config.HaGatewayConfiguration; import io.trino.gateway.ha.config.OAuth2GatewayCookieConfigurationPropertiesProvider; -import io.trino.gateway.ha.config.RequestRouterConfiguration; import io.trino.gateway.ha.config.RoutingRulesConfiguration; import io.trino.gateway.ha.config.UserConfiguration; -import io.trino.gateway.ha.handler.ProxyHandlerStats; -import io.trino.gateway.ha.handler.QueryIdCachingProxyHandler; import io.trino.gateway.ha.handler.RoutingTargetHandler; import io.trino.gateway.ha.router.BackendStateManager; -import io.trino.gateway.ha.router.QueryHistoryManager; import io.trino.gateway.ha.router.RoutingGroupSelector; import io.trino.gateway.ha.router.RoutingManager; import io.trino.gateway.ha.security.ApiAuthenticator; @@ -49,13 +43,9 @@ import io.trino.gateway.ha.security.ResourceSecurityDynamicFeature; import io.trino.gateway.ha.security.util.Authorizer; import io.trino.gateway.ha.security.util.ChainedAuthFilter; -import io.trino.gateway.proxyserver.ProxyHandler; -import io.trino.gateway.proxyserver.ProxyServer; -import io.trino.gateway.proxyserver.ProxyServerConfiguration; import jakarta.ws.rs.container.ContainerRequestFilter; import java.util.Map; -import java.util.Optional; import static io.airlift.jaxrs.JaxrsBinder.jaxrsBinder; import static java.util.Objects.requireNonNull; @@ -157,46 +147,6 @@ private ResourceSecurityDynamicFeature getAuthFilter(HaGatewayConfiguration conf return new ResourceSecurityDynamicFeature(new NoopFilter()); } - @Provides - @Singleton - public ProxyServer provideGateway( - QueryHistoryManager queryHistoryManager, - RoutingManager routingManager, - RoutingTargetHandler routingTargetHandler, - ProxyHandlerStats proxyHandlerStats, - HttpServerConfig httpServerConfig, - Optional httpsConfig) - { - ProxyServer gateway = null; - if (configuration.getRequestRouter() != null) { - // Setting up request router - RequestRouterConfiguration routerConfiguration = configuration.getRequestRouter(); - - ProxyServerConfiguration routerProxyConfig = new ProxyServerConfiguration(); - routerProxyConfig.setLocalPort(routerConfiguration.getPort()); - routerProxyConfig.setName(routerConfiguration.getName()); - routerProxyConfig.setProxyTo(""); - routerProxyConfig.setSsl(routerConfiguration.isSsl()); - routerProxyConfig.setKeystorePath(routerConfiguration.getKeystorePath()); - routerProxyConfig.setKeystorePass(routerConfiguration.getKeystorePass()); - routerProxyConfig.setForwardKeystore(routerConfiguration.isForwardKeystore()); - routerProxyConfig.setPreserveHost("false"); - routerProxyConfig.setOutputBufferSize(routerConfiguration.getOutputBufferSize()); - routerProxyConfig.setRequestHeaderSize(routerConfiguration.getRequestHeaderSize()); - routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseHeaderSize()); - routerProxyConfig.setRequestBufferSize(routerConfiguration.getRequestBufferSize()); - routerProxyConfig.setResponseHeaderSize(routerConfiguration.getResponseBufferSize()); - ProxyHandler proxyHandler = new QueryIdCachingProxyHandler( - queryHistoryManager, - routingManager, - routingTargetHandler, - httpsConfig.map(HttpsConfig::getHttpsPort).orElseGet(httpServerConfig::getHttpPort), - proxyHandlerStats); - gateway = new ProxyServer(routerProxyConfig, proxyHandler); - } - return gateway; - } - @Provides @Singleton public LbOAuthManager getAuthenticationManager() @@ -239,7 +189,7 @@ public RoutingGroupSelector getRoutingGroupSelector() @Provides @Singleton - public RoutingTargetHandler getRoutingDestinationHandler( + public RoutingTargetHandler getRoutingTargetHandler( RoutingManager routingManager, RoutingGroupSelector routingGroupSelector) { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java index 3e86f2224..894d29c21 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/GatewayCookie.java @@ -22,6 +22,7 @@ import io.airlift.units.Duration; import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; import jakarta.servlet.http.Cookie; +import jakarta.ws.rs.core.NewCookie; import java.util.Base64; import java.util.List; @@ -161,6 +162,14 @@ public Cookie toCookie() return cookie; } + public NewCookie toNewCookie() + { + return new NewCookie.Builder(unsignedGatewayCookie.getName()) + .value(Base64.getUrlEncoder().encodeToString(CODEC.toJson(this).getBytes(UTF_8))) + .maxAge((int) unsignedGatewayCookie.getTtl().toMillis() / 1000) + .build(); + } + public static GatewayCookie fromCookie(Cookie cookie) { return GatewayCookie.CODEC.fromJson(Base64.getUrlDecoder().decode(cookie.getValue())); diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ForProxy.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ForProxy.java new file mode 100644 index 000000000..a48665f7e --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ForProxy.java @@ -0,0 +1,31 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.proxyserver; + +import com.google.inject.BindingAnnotation; + +import java.lang.annotation.Retention; +import java.lang.annotation.Target; + +import static java.lang.annotation.ElementType.FIELD; +import static java.lang.annotation.ElementType.METHOD; +import static java.lang.annotation.ElementType.PARAMETER; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + +@Retention(RUNTIME) +@Target({FIELD, PARAMETER, METHOD}) +@BindingAnnotation +public @interface ForProxy +{ +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyException.java similarity index 51% rename from gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java rename to gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyException.java index 977c177af..2ba90fd27 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/GatewayManagedApp.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyException.java @@ -11,34 +11,23 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.trino.gateway.ha; +package io.trino.gateway.proxyserver; -import com.google.inject.Inject; -import io.trino.gateway.proxyserver.ProxyServer; -import jakarta.annotation.PostConstruct; -import jakarta.annotation.PreDestroy; - -import static java.util.Objects.requireNonNull; - -public class GatewayManagedApp +public class ProxyException + extends RuntimeException { - private final ProxyServer gateway; - - @Inject - public GatewayManagedApp(ProxyServer gateway) + public ProxyException(String message) { - this.gateway = requireNonNull(gateway, "gateway is null"); + super(message); } - @PostConstruct - public void start() + public ProxyException(String message, Throwable cause) { - gateway.start(); + super(message, cause); } - @PreDestroy - public void stop() + public ProxyException(Throwable cause) { - gateway.close(); + super(cause); } } diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java deleted file mode 100644 index 150476a00..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyHandler.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.proxyserver; - -import com.google.common.collect.ImmutableList; -import io.airlift.log.Logger; -import jakarta.servlet.http.Cookie; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import org.eclipse.jetty.client.Request; -import org.eclipse.jetty.http.HttpHeader; -import org.eclipse.jetty.util.Callback; - -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.io.InputStreamReader; -import java.nio.charset.Charset; -import java.util.Arrays; -import java.util.Enumeration; -import java.util.List; -import java.util.zip.GZIPInputStream; - -/* Order of control => rewriteTarget, preConnectionHook, postConnectionHook. */ -public class ProxyHandler -{ - private static final Logger log = Logger.get(ProxyHandler.class); - - protected String rewriteTarget(HttpServletRequest request) - { - // Dont override this unless absolutely needed. - return null; - } - - /** - * Request interceptor. - */ - public void preConnectionHook(HttpServletRequest request, Request proxyRequest) - { - // you may override it. - } - - /** - * Response interceptor default. - */ - protected void postConnectionHook( - HttpServletRequest request, - HttpServletResponse response, - byte[] buffer, - int offset, - int length, - Callback callback) - { - try { - response.getOutputStream().write(buffer, offset, length); - callback.succeeded(); - } - catch (Throwable var9) { - callback.failed(var9); - } - } - - protected void debugLogHeaders(HttpServletRequest request) - { - if (log.isDebugEnabled()) { - log.debug("-------HttpServletRequest headers---------"); - Enumeration headers = request.getHeaderNames(); - while (headers.hasMoreElements()) { - String header = headers.nextElement(); - log.debug(header + "->" + request.getHeader(header)); - } - } - } - - protected boolean isGZipEncoding(HttpServletResponse response) - { - String contentEncoding = response.getHeader(HttpHeader.CONTENT_ENCODING.toString()); - return contentEncoding != null && contentEncoding.toLowerCase().contains("gzip"); - } - - protected String plainTextFromGz(byte[] compressed) - throws IOException - { - final StringBuilder outStr = new StringBuilder(); - if ((compressed == null) || (compressed.length == 0)) { - return ""; - } - if (isCompressed(compressed)) { - final GZIPInputStream gis = new GZIPInputStream(new ByteArrayInputStream(compressed)); - final BufferedReader bufferedReader = - new BufferedReader(new InputStreamReader(gis, Charset.defaultCharset())); - String line; - while ((line = bufferedReader.readLine()) != null) { - outStr.append(line); - } - gis.close(); - } - else { - outStr.append(Arrays.toString(compressed)); - } - return outStr.toString(); - } - - protected boolean isCompressed(final byte[] compressed) - { - return (compressed[0] == (byte) GZIPInputStream.GZIP_MAGIC) - && (compressed[1] == (byte) (GZIPInputStream.GZIP_MAGIC >> 8)); - } - - public List generateDeleteCookieList(HttpServletRequest clientRequest) - { - return ImmutableList.of(); - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java new file mode 100644 index 000000000..2aada9fa6 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.proxyserver; + +import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.common.collect.ImmutableList; +import com.google.common.util.concurrent.FluentFuture; +import com.google.common.util.concurrent.ListenableFuture; +import com.google.inject.Inject; +import io.airlift.http.client.HttpClient; +import io.airlift.http.client.Request; +import io.airlift.http.client.StaticBodyGenerator; +import io.airlift.log.Logger; +import io.airlift.units.Duration; +import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; +import io.trino.gateway.ha.router.GatewayCookie; +import io.trino.gateway.ha.router.OAuth2GatewayCookie; +import io.trino.gateway.ha.router.QueryHistoryManager; +import io.trino.gateway.ha.router.RoutingManager; +import io.trino.gateway.proxyserver.ProxyResponseHandler.ProxyResponse; +import jakarta.annotation.PreDestroy; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.ws.rs.HttpMethod; +import jakarta.ws.rs.WebApplicationException; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.core.NewCookie; +import jakarta.ws.rs.core.Response; + +import java.io.IOException; +import java.net.URI; +import java.util.Arrays; +import java.util.HashMap; +import java.util.concurrent.ExecutorService; + +import static com.google.common.collect.ImmutableList.toImmutableList; +import static com.google.common.net.HttpHeaders.HOST; +import static com.google.common.net.HttpHeaders.VIA; +import static com.google.common.net.HttpHeaders.X_FORWARDED_FOR; +import static com.google.common.net.HttpHeaders.X_FORWARDED_HOST; +import static com.google.common.net.HttpHeaders.X_FORWARDED_PORT; +import static com.google.common.net.HttpHeaders.X_FORWARDED_PROTO; +import static com.google.common.util.concurrent.MoreExecutors.directExecutor; +import static io.airlift.concurrent.Threads.daemonThreadsNamed; +import static io.airlift.http.client.Request.Builder.prepareGet; +import static io.airlift.http.client.Request.Builder.preparePost; +import static io.airlift.http.client.StaticBodyGenerator.createStaticBodyGenerator; +import static io.airlift.jaxrs.AsyncResponseHandler.bindAsyncResponse; +import static io.trino.gateway.ha.handler.ProxyUtils.AUTHORIZATION; +import static io.trino.gateway.ha.handler.ProxyUtils.QUERY_TEXT_LENGTH_FOR_HISTORY; +import static io.trino.gateway.ha.handler.ProxyUtils.SOURCE_HEADER; +import static io.trino.gateway.ha.handler.ProxyUtils.getQueryUser; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_STATEMENT_PATH; +import static jakarta.ws.rs.core.MediaType.TEXT_PLAIN_TYPE; +import static jakarta.ws.rs.core.Response.Status.BAD_GATEWAY; +import static jakarta.ws.rs.core.Response.Status.OK; +import static java.lang.String.format; +import static java.nio.charset.StandardCharsets.UTF_8; +import static java.util.Collections.list; +import static java.util.Objects.requireNonNull; +import static java.util.concurrent.Executors.newCachedThreadPool; +import static java.util.concurrent.TimeUnit.MINUTES; + +public class ProxyRequestHandler +{ + private static final Logger log = Logger.get(ProxyRequestHandler.class); + private static final Duration ASYNC_TIMEOUT = new Duration(2, MINUTES); + private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); + + private final ExecutorService executor = newCachedThreadPool(daemonThreadsNamed("proxy-%s")); + private final HttpClient httpClient; + private final RoutingManager routingManager; + private final QueryHistoryManager queryHistoryManager; + private final boolean cookiesEnabled; + + @Inject + public ProxyRequestHandler( + @ForProxy HttpClient httpClient, + RoutingManager routingManager, + QueryHistoryManager queryHistoryManager) + { + this.httpClient = requireNonNull(httpClient, "httpClient is null"); + this.routingManager = requireNonNull(routingManager, "routingManager is null"); + this.queryHistoryManager = requireNonNull(queryHistoryManager, "queryHistoryManager is null"); + cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); + } + + @PreDestroy + public void shutdown() + { + executor.shutdownNow(); + } + + public void getRequest( + HttpServletRequest servletRequest, + AsyncResponse asyncResponse, + URI remoteUri) + { + Request.Builder request = prepareGet(); + performRequest(remoteUri, servletRequest, asyncResponse, request); + } + + public void postRequest( + String statement, + HttpServletRequest servletRequest, + AsyncResponse asyncResponse, + URI remoteUri) + { + Request.Builder request = preparePost() + .setBodyGenerator(createStaticBodyGenerator(statement, UTF_8)); + performRequest(remoteUri, servletRequest, asyncResponse, request); + } + + private void performRequest( + URI remoteUri, + HttpServletRequest servletRequest, + AsyncResponse asyncResponse, + Request.Builder requestBuilder) + { + requestBuilder.setUri(remoteUri); + + for (String name : list(servletRequest.getHeaderNames())) { + for (String value : list(servletRequest.getHeaders(name))) { + // TODO: decide what should and shouldn't be forwarded + if (!name.equalsIgnoreCase("Accept-Encoding") && !name.equalsIgnoreCase("Host")) { + requestBuilder.addHeader(name, value); + } + } + } + requestBuilder.addHeader(VIA, format("%s TrinoGateway", servletRequest.getProtocol())); + addXForwardedHeaders(servletRequest, requestBuilder); + + ImmutableList oauth2GatewayCookie = getOAuth2GatewayCookie(remoteUri, servletRequest); + + Request request = requestBuilder + .setPreserveAuthorizationOnRedirect(true) + .setFollowRedirects(false) + .build(); + + FluentFuture future = executeHttp(request); + + if (request.getUri().getPath().startsWith(V1_STATEMENT_PATH) && request.getMethod().equals(HttpMethod.POST)) { + future = future.transform(response -> recordBackendForQueryId(request, response), executor); + } + + setupAsyncResponse( + asyncResponse, + future.transform(response -> buildResponse(response, oauth2GatewayCookie), executor) + .catching(ProxyException.class, e -> handleProxyException(request, e), directExecutor())); + } + + private ImmutableList getOAuth2GatewayCookie(URI remoteUri, HttpServletRequest servletRequest) + { + if (cookiesEnabled) { + if (remoteUri.getPath().startsWith(OAuth2GatewayCookie.OAUTH2_PATH) + && !(servletRequest.getCookies() != null + && Arrays.stream(servletRequest.getCookies()).anyMatch(c -> c.getName().equals(OAuth2GatewayCookie.NAME)))) { + GatewayCookie oauth2Cookie = new OAuth2GatewayCookie(getRemoteTarget(remoteUri)); + return ImmutableList.of(oauth2Cookie.toNewCookie()); + } + else if (servletRequest.getCookies() != null) { + return Arrays.stream(servletRequest.getCookies()) + .filter(c -> c.getName().startsWith(GatewayCookie.PREFIX)) + .map(GatewayCookie::fromCookie) + .filter(c -> !c.isValid() || c.matchesDeletePath(remoteUri.getPath())) + .map(GatewayCookie::toNewCookie) + .map(newCookie -> new NewCookie.Builder(newCookie).value("delete").maxAge(0).build()) + .collect(toImmutableList()); + } + } + return ImmutableList.of(); + } + + private static String getRemoteTarget(URI remoteUri) + { + return format("%s://%s", remoteUri.getScheme(), remoteUri.getAuthority()); + } + + private Response buildResponse(ProxyResponse response, ImmutableList cookie) + { + Response.ResponseBuilder builder = Response.status(response.statusCode()).entity(response.body()); + response.headers().forEach((headerName, value) -> builder.header(headerName.toString(), value)); + cookie.forEach(builder::cookie); + return builder.build(); + } + + private void setupAsyncResponse(AsyncResponse asyncResponse, ListenableFuture future) + { + bindAsyncResponse(asyncResponse, future, executor) + .withTimeout(ASYNC_TIMEOUT, () -> Response + .status(BAD_GATEWAY) + .type(TEXT_PLAIN_TYPE) + .entity("Request to remote Trino server timed out after" + ASYNC_TIMEOUT) + .build()); + } + + private FluentFuture executeHttp(Request request) + { + return FluentFuture.from(httpClient.executeAsync(request, new ProxyResponseHandler())); + } + + private static T handleProxyException(Request request, ProxyException e) + { + log.warn(e, "Proxy request failed: %s %s", request.getMethod(), request.getUri()); + throw badRequest(e.getMessage()); + } + + private static WebApplicationException badRequest(String message) + { + throw new WebApplicationException( + Response.status(Response.Status.BAD_GATEWAY) + .type(TEXT_PLAIN_TYPE) + .entity(message) + .build()); + } + + private ProxyResponse recordBackendForQueryId(Request request, ProxyResponse response) + { + log.debug("For Request [%s] got Response [%s]", request.getUri(), response.body()); + + QueryHistoryManager.QueryDetail queryDetail = getQueryDetailsFromRequest(request); + + log.debug("Extracting proxy destination : [%s] for request : [%s]", queryDetail.getBackendUrl(), request.getUri()); + + if (response.statusCode() == OK.getStatusCode()) { + try { + HashMap results = OBJECT_MAPPER.readValue(response.body(), HashMap.class); + queryDetail.setQueryId(results.get("id")); + routingManager.setBackendForQueryId(queryDetail.getQueryId(), queryDetail.getBackendUrl()); + log.debug("QueryId [%s] mapped with proxy [%s]", queryDetail.getQueryId(), queryDetail.getBackendUrl()); + } + catch (IOException e) { + log.error("Failed to get QueryId from response [%s] , Status code [%s]", response.body(), response.statusCode()); + } + } + else { + log.error("Non OK HTTP Status code with response [%s] , Status code [%s]", response.body(), response.statusCode()); + } + queryHistoryManager.submitQueryDetail(queryDetail); + return response; + } + + public static QueryHistoryManager.QueryDetail getQueryDetailsFromRequest(Request request) + { + QueryHistoryManager.QueryDetail queryDetail = new QueryHistoryManager.QueryDetail(); + queryDetail.setBackendUrl(getRemoteTarget(request.getUri())); + queryDetail.setCaptureTime(System.currentTimeMillis()); + queryDetail.setUser(getQueryUser(request.getHeader(USER_HEADER), request.getHeader(AUTHORIZATION))); + queryDetail.setSource(request.getHeader(SOURCE_HEADER)); + + String queryText = new String(((StaticBodyGenerator) request.getBodyGenerator()).getBody(), UTF_8); + queryDetail.setQueryText( + queryText.length() > QUERY_TEXT_LENGTH_FOR_HISTORY + ? queryText.substring(0, QUERY_TEXT_LENGTH_FOR_HISTORY) + "..." + : queryText); + return queryDetail; + } + + private void addXForwardedHeaders(HttpServletRequest servletRequest, Request.Builder requestBuilder) + { + requestBuilder.addHeader(X_FORWARDED_FOR, servletRequest.getRemoteAddr()); + requestBuilder.addHeader(X_FORWARDED_PROTO, servletRequest.getScheme()); + requestBuilder.addHeader(X_FORWARDED_PORT, String.valueOf(servletRequest.getServerPort())); + String hostHeader = servletRequest.getHeader(HOST); + if (hostHeader != null) { + requestBuilder.addHeader(X_FORWARDED_HOST, hostHeader); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java new file mode 100644 index 000000000..940375e09 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyResponseHandler.java @@ -0,0 +1,58 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.proxyserver; + +import com.google.common.collect.ListMultimap; +import io.airlift.http.client.HeaderName; +import io.airlift.http.client.Request; +import io.airlift.http.client.Response; +import io.airlift.http.client.ResponseHandler; +import io.trino.gateway.proxyserver.ProxyResponseHandler.ProxyResponse; + +import java.io.IOException; + +import static com.google.common.io.ByteStreams.toByteArray; +import static java.util.Objects.requireNonNull; + +public class ProxyResponseHandler + implements ResponseHandler +{ + @Override + public ProxyResponse handleException(Request request, Exception exception) + { + throw new ProxyException("Request to remote Trino server failed", exception); + } + + @Override + public ProxyResponse handle(Request request, Response response) + { + try { + return new ProxyResponse(response.getStatusCode(), response.getHeaders(), toByteArray(response.getInputStream())); + } + catch (IOException e) { + throw new ProxyException("Failed reading response from remote Trino server", e); + } + } + + public record ProxyResponse( + int statusCode, + ListMultimap headers, + byte[] body) + { + public ProxyResponse + { + requireNonNull(headers, "headers is null"); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java deleted file mode 100644 index 5dc71d17b..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServer.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.proxyserver; - -import io.airlift.log.Logger; -import jakarta.servlet.DispatcherType; -import org.eclipse.jetty.ee10.servlet.ServletContextHandler; -import org.eclipse.jetty.ee10.servlet.ServletHolder; -import org.eclipse.jetty.http.HttpScheme; -import org.eclipse.jetty.server.HttpConfiguration; -import org.eclipse.jetty.server.HttpConnectionFactory; -import org.eclipse.jetty.server.SecureRequestCustomizer; -import org.eclipse.jetty.server.Server; -import org.eclipse.jetty.server.ServerConnector; -import org.eclipse.jetty.server.SslConnectionFactory; -import org.eclipse.jetty.server.handler.ConnectHandler; -import org.eclipse.jetty.util.ssl.SslContextFactory; - -import java.io.Closeable; -import java.io.File; -import java.util.EnumSet; -import java.util.concurrent.TimeUnit; - -import static com.google.common.base.Strings.isNullOrEmpty; - -public class ProxyServer - implements Closeable -{ - private static final Logger log = Logger.get(ProxyServer.class); - private final Server server; - private final ProxyServletImpl proxy; - private final ProxyHandler proxyHandler; - private ServletContextHandler context; - - public ProxyServer(ProxyServerConfiguration config, ProxyHandler proxyHandler) - { - this(config, proxyHandler, new ProxyServletImpl()); - } - - public ProxyServer(ProxyServerConfiguration config, ProxyHandler proxyHandler, - ProxyServletImpl proxy) - { - this.server = new Server(); - this.server.setStopAtShutdown(true); - this.proxy = proxy; - this.proxyHandler = proxyHandler; - - this.proxy.setServerConfig(config); - this.setupContext(config); - } - - private void setupContext(ProxyServerConfiguration config) - { - ServerConnector connector; - HttpConfiguration httpConfiguration = new HttpConfiguration(); - httpConfiguration.setOutputBufferSize(config.getOutputBufferSize()); - httpConfiguration.setRequestHeaderSize(config.getRequestHeaderSize()); - httpConfiguration.setResponseHeaderSize(config.getResponseHeaderSize()); - - if (config.isSsl()) { - String keystorePath = config.getKeystorePath(); - String keystorePass = config.getKeystorePass(); - File keystoreFile = new File(keystorePath); - - SslContextFactory.Server sslContextFactory = new SslContextFactory.Server(); - sslContextFactory.setTrustAll(true); - sslContextFactory.setSslSessionTimeout((int) TimeUnit.SECONDS.toMillis(15)); - - if (!isNullOrEmpty(keystorePath)) { - sslContextFactory.setKeyStorePath(keystoreFile.getAbsolutePath()); - sslContextFactory.setKeyStorePassword(keystorePass); - sslContextFactory.setKeyManagerPassword(keystorePass); - } - - httpConfiguration.setSecureScheme(HttpScheme.HTTPS.asString()); - httpConfiguration.setSecurePort(config.getLocalPort()); - - SecureRequestCustomizer src = new SecureRequestCustomizer(); - src.setStsMaxAge(TimeUnit.SECONDS.toSeconds(2000)); - src.setStsIncludeSubDomains(true); - httpConfiguration.addCustomizer(src); - - HttpConnectionFactory connectionFactory = new HttpConnectionFactory(httpConfiguration); - connector = new ServerConnector( - server, - new SslConnectionFactory(sslContextFactory, connectionFactory.getProtocol()), - connectionFactory); - } - else { - connector = new ServerConnector(server, new HttpConnectionFactory(httpConfiguration)); - } - connector.setHost("0.0.0.0"); - connector.setPort(config.getLocalPort()); - connector.setName(config.getName()); - connector.setAccepting(true); - this.server.addConnector(connector); - - // Setup proxy handler to handle CONNECT methods - ConnectHandler proxyConnectHandler = new ConnectHandler(); - this.server.setHandler(proxyConnectHandler); - - if (proxyHandler != null) { - proxy.setProxyHandler(proxyHandler); - } - - ServletHolder proxyServlet = new ServletHolder(config.getName(), proxy); - - proxyServlet.setInitParameter("proxyTo", config.getProxyTo()); - proxyServlet.setInitParameter("prefix", config.getPrefix()); - proxyServlet.setInitParameter("trustAll", config.getTrustAll()); - proxyServlet.setInitParameter("preserveHost", config.getPreserveHost()); - - // Setup proxy servlet - context = new ServletContextHandler("/", ServletContextHandler.SESSIONS); - proxyConnectHandler.setHandler(context); - context.addServlet(proxyServlet, "/*"); - context.addFilter(RequestFilter.class, "/*", EnumSet.allOf(DispatcherType.class)); - } - - public void start() - { - try { - this.server.start(); - } - catch (Exception e) { - log.error(e, "Error starting proxy server"); - throw new IllegalStateException(e); - } - } - - @Override - public void close() - { - try { - this.server.stop(); - } - catch (Exception e) { - log.error(e, "Could not close the proxy server"); - } - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java deleted file mode 100644 index b796a6015..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyServletImpl.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.proxyserver; - -import io.airlift.log.Logger; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import org.eclipse.jetty.client.HttpClient; -import org.eclipse.jetty.client.Request; -import org.eclipse.jetty.client.Response; -import org.eclipse.jetty.client.transport.HttpClientTransportDynamic; -import org.eclipse.jetty.ee10.proxy.ProxyServlet; -import org.eclipse.jetty.io.ClientConnector; -import org.eclipse.jetty.util.Callback; -import org.eclipse.jetty.util.ssl.SslContextFactory; - -import java.util.concurrent.TimeUnit; - -public class ProxyServletImpl - extends ProxyServlet.Transparent -{ - private static final Logger log = Logger.get(ProxyServletImpl.class); - private ProxyHandler proxyHandler; - private ProxyServerConfiguration serverConfig; - - public void setProxyHandler(ProxyHandler proxyHandler) - { - this.proxyHandler = proxyHandler; - // This needs to be high as external clients may take longer to connect. - this.setTimeout(TimeUnit.MINUTES.toMillis(1)); - } - - public void setServerConfig(ProxyServerConfiguration config) - { - this.serverConfig = config; - } - - // Overriding this method to support ssl - @Override - protected HttpClient newHttpClient() - { - SslContextFactory.Client sslFactory = new SslContextFactory.Client(); - - if (serverConfig != null && serverConfig.isForwardKeystore()) { - sslFactory.setKeyStorePath(serverConfig.getKeystorePath()); - sslFactory.setKeyStorePassword(serverConfig.getKeystorePass()); - } - else { - sslFactory.setTrustAll(true); - } - sslFactory.setSslSessionTimeout((int) TimeUnit.SECONDS.toMillis(15)); - - ClientConnector clientConnector = new ClientConnector(); - clientConnector.setSslContextFactory(sslFactory); - - HttpClient httpClient = new HttpClient(new HttpClientTransportDynamic(clientConnector)); - httpClient.setMaxConnectionsPerDestination(10000); - httpClient.setConnectTimeout(TimeUnit.SECONDS.toMillis(60)); - httpClient.setRequestBufferSize(serverConfig.getRequestBufferSize()); - httpClient.setResponseBufferSize(serverConfig.getResponseBufferSize()); - return httpClient; - } - - /** - * Customize the headers of forwarding proxy requests. - */ - @Override - protected void addProxyHeaders(HttpServletRequest request, Request proxyRequest) - { - super.addProxyHeaders(request, proxyRequest); - if (proxyHandler != null) { - proxyHandler.preConnectionHook(request, proxyRequest); - } - } - - @Override - protected String rewriteTarget(HttpServletRequest request) - { - String target = null; - if (proxyHandler != null) { - target = proxyHandler.rewriteTarget(request); - } - if (target == null) { - target = super.rewriteTarget(request); - } - log.debug("Target : " + target); - return target; - } - - @Override - protected void onServerResponseHeaders( - HttpServletRequest clientRequest, - HttpServletResponse proxyResponse, - Response serverResponse) - { - this.proxyHandler.generateDeleteCookieList(clientRequest).forEach(proxyResponse::addCookie); - super.onServerResponseHeaders(clientRequest, proxyResponse, serverResponse); - } - - /** - * Customize the response returned from remote server. - */ - @Override - protected void onResponseContent( - HttpServletRequest request, - HttpServletResponse response, - Response proxyResponse, - byte[] buffer, - int offset, - int length, - Callback callback) - { - try { - log.debug("[%d] proxying content to downstream: [%d] bytes", this.getRequestId(request), length); - if (this.proxyHandler != null) { - proxyHandler.postConnectionHook(request, response, buffer, offset, length, callback); - } - else { - super.onResponseContent(request, response, proxyResponse, buffer, offset, length, callback); - } - } - catch (Throwable var9) { - callback.failed(var9); - } - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RequestFilter.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RequestFilter.java deleted file mode 100644 index 453bd3ab6..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RequestFilter.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.proxyserver; - -import io.trino.gateway.proxyserver.wrapper.MultiReadHttpServletRequest; -import jakarta.servlet.Filter; -import jakarta.servlet.FilterChain; -import jakarta.servlet.ServletException; -import jakarta.servlet.ServletRequest; -import jakarta.servlet.ServletResponse; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; -import jakarta.servlet.http.HttpServletResponseWrapper; - -import java.io.IOException; - -public class RequestFilter - implements Filter -{ - @Override - public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) - throws IOException, ServletException - { - // We need to convert the ServletRequest to MultiReadRequest, so that we can intercept later - MultiReadHttpServletRequest multiReadRequest = - new MultiReadHttpServletRequest((HttpServletRequest) request); - HttpServletResponseWrapper responseWrapper = - new HttpServletResponseWrapper((HttpServletResponse) response); - chain.doFilter(multiReadRequest, responseWrapper); - } -} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouteToBackendResource.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouteToBackendResource.java new file mode 100644 index 000000000..01253e898 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouteToBackendResource.java @@ -0,0 +1,77 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.proxyserver; + +import com.google.inject.Inject; +import io.trino.gateway.ha.handler.ProxyHandlerStats; +import io.trino.gateway.ha.handler.RoutingTargetHandler; +import jakarta.servlet.http.HttpServletRequest; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.container.AsyncResponse; +import jakarta.ws.rs.container.Suspended; +import jakarta.ws.rs.core.Context; + +import java.net.URI; + +import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.V1_STATEMENT_PATH; +import static io.trino.gateway.proxyserver.RouterPreMatchContainerRequestFilter.ROUTE_TO_BACKEND; +import static java.util.Objects.requireNonNull; + +/** + * Handles requests that need to be routed to a Trino backend. + * + * @see RouterPreMatchContainerRequestFilter + */ +@Path(ROUTE_TO_BACKEND) +public class RouteToBackendResource +{ + private final ProxyHandlerStats proxyHandlerStats; + private final ProxyRequestHandler proxyRequestHandler; + private final RoutingTargetHandler routingTargetHandler; + + @Inject + public RouteToBackendResource( + ProxyHandlerStats proxyHandlerStats, + ProxyRequestHandler proxyRequestHandler, + RoutingTargetHandler routingTargetHandler) + { + this.proxyHandlerStats = requireNonNull(proxyHandlerStats); + this.proxyRequestHandler = requireNonNull(proxyRequestHandler); + this.routingTargetHandler = requireNonNull(routingTargetHandler); + } + + @POST + public void postHandler( + String body, + @Context HttpServletRequest servletRequest, + @Suspended AsyncResponse asyncResponse) + { + if (servletRequest.getRequestURI().startsWith(V1_STATEMENT_PATH)) { + proxyHandlerStats.recordRequest(); + } + String remoteUri = routingTargetHandler.getRoutingDestination(servletRequest); + proxyRequestHandler.postRequest(body, servletRequest, asyncResponse, URI.create(remoteUri)); + } + + @GET + public void getHandler( + @Context HttpServletRequest servletRequest, + @Suspended AsyncResponse asyncResponse) + { + String remoteUri = routingTargetHandler.getRoutingDestination(servletRequest); + proxyRequestHandler.getRequest(servletRequest, asyncResponse, URI.create(remoteUri)); + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java new file mode 100644 index 000000000..9b77b1faf --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java @@ -0,0 +1,54 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.proxyserver; + +import com.google.inject.Inject; +import io.trino.gateway.ha.handler.RoutingTargetHandler; +import jakarta.ws.rs.container.ContainerRequestContext; +import jakarta.ws.rs.container.ContainerRequestFilter; +import jakarta.ws.rs.container.PreMatching; + +import java.io.IOException; +import java.net.URI; + +import static java.util.Objects.requireNonNull; + +/** + * This pre-matching ContainerRequestFilter catches all requests and forwards + * those that need to be routed to a Trino backend to {@link RouteToBackendResource}. + * This enables the setting of additional paths that need to be forwarded in the configuration. + */ +@PreMatching +public class RouterPreMatchContainerRequestFilter + implements ContainerRequestFilter +{ + public static final String ROUTE_TO_BACKEND = "/tgw/internal/route_to_backend"; + + private final RoutingTargetHandler routingTargetHandler; + + @Inject + public RouterPreMatchContainerRequestFilter(RoutingTargetHandler routingTargetHandler) + { + this.routingTargetHandler = requireNonNull(routingTargetHandler); + } + + @Override + public void filter(ContainerRequestContext request) + throws IOException + { + if (routingTargetHandler.isPathWhiteListed(request.getUriInfo().getRequestUri().getPath())) { + request.setRequestUri(URI.create(ROUTE_TO_BACKEND)); + } + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java deleted file mode 100644 index 33f94788e..000000000 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/wrapper/MultiReadHttpServletRequest.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.proxyserver.wrapper; - -import jakarta.servlet.ReadListener; -import jakarta.servlet.ServletInputStream; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletRequestWrapper; - -import java.io.BufferedReader; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.OutputStream; -import java.util.Collections; -import java.util.Enumeration; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class MultiReadHttpServletRequest - extends HttpServletRequestWrapper -{ - private final byte[] content; - private final Map headerMap = new HashMap<>(); - - public static void copy(InputStream in, OutputStream out) - throws IOException - { - byte[] buffer = new byte[1024]; - while (true) { - int bytesRead = in.read(buffer); - if (bytesRead == -1) { - break; - } - out.write(buffer, 0, bytesRead); - } - } - - public MultiReadHttpServletRequest(HttpServletRequest request) - throws IOException - { - super(request); - ByteArrayOutputStream bodyInOutputStream = new ByteArrayOutputStream(); - copy(request.getInputStream(), bodyInOutputStream); - content = bodyInOutputStream.toByteArray(); - } - - /** - * add a header with given name and value. - */ - public void addHeader(String name, String value) - { - headerMap.put(name, value); - } - - @Override - public String getHeader(String name) - { - String headerValue = super.getHeader(name); - if (headerMap.containsKey(name)) { - headerValue = headerMap.get(name); - } - return headerValue; - } - - /** - * get the header names. - */ - @Override - public Enumeration getHeaderNames() - { - List names = Collections.list(super.getHeaderNames()); - for (String name : headerMap.keySet()) { - names.add(name); - } - return Collections.enumeration(names); - } - - @Override - public Enumeration getHeaders(String name) - { - List values = Collections.list(super.getHeaders(name)); - if (headerMap.containsKey(name)) { - values.add(headerMap.get(name)); - } - return Collections.enumeration(values); - } - - @Override - public ServletInputStream getInputStream() - throws IOException - { - final ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(content); - return new ServletInputStream() - { - @Override - public boolean isFinished() - { - return false; - } - - @Override - public boolean isReady() - { - return false; - } - - @Override - public void setReadListener(ReadListener readListener) {} - - @Override - public int read() - throws IOException - { - return byteArrayInputStream.read(); - } - }; - } - - @Override - public BufferedReader getReader() - throws IOException - { - return new BufferedReader(new InputStreamReader(this.getInputStream())); - } -} diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java index f060f7f2a..40b84fa73 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java @@ -22,7 +22,6 @@ import okhttp3.Request; import okhttp3.RequestBody; import okhttp3.Response; -import org.eclipse.jetty.http.HttpStatus; import org.jdbi.v3.core.Jdbi; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Order; @@ -33,6 +32,8 @@ import java.util.Arrays; +import static io.airlift.http.client.HttpStatus.NOT_FOUND; +import static io.airlift.http.client.HttpStatus.OK; import static io.trino.gateway.ha.router.ResourceGroupsManager.GlobalPropertiesDetail; import static io.trino.gateway.ha.router.ResourceGroupsManager.ResourceGroupsDetail; import static io.trino.gateway.ha.router.ResourceGroupsManager.SelectorsDetail; @@ -136,7 +137,7 @@ public void testReadResourceGroupsAll() .get() .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.OK_200); + assertThat(response.code()).isEqualTo(OK.code()); ResourceGroupsDetail[] groups = objectMapper.readValue(response.body().string(), ResourceGroupsDetail[].class); @@ -159,7 +160,7 @@ public void testReadResourceGroupsByGroupId() .get() .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.OK_200); + assertThat(response.code()).isEqualTo(OK.code()); ResourceGroupsDetail[] resourceGroups = objectMapper.readValue(response.body().string(), ResourceGroupsDetail[].class); @@ -179,7 +180,7 @@ public void testReadSelectorsAll() .get() .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.OK_200); + assertThat(response.code()).isEqualTo(OK.code()); SelectorsDetail[] selectors = objectMapper.readValue(response.body().string(), SelectorsDetail[].class); @@ -201,7 +202,7 @@ public void testReadSelectorsByGroupId() .get() .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.OK_200); + assertThat(response.code()).isEqualTo(OK.code()); SelectorsDetail[] selectors = objectMapper.readValue(response.body().string(), SelectorsDetail[].class); @@ -223,7 +224,7 @@ public void testDeleteResourceGroupOk() .post(requestBody) .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.OK_200); + assertThat(response.code()).isEqualTo(OK.code()); } @Test @@ -239,7 +240,7 @@ public void testDeleteResourceGroupNoId() .post(requestBody) .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.NOT_FOUND_404); + assertThat(response.code()).isEqualTo(NOT_FOUND.code()); } @Test @@ -255,7 +256,7 @@ public void testDeleteGlobalPropertyOk() .post(requestBody) .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.OK_200); + assertThat(response.code()).isEqualTo(OK.code()); } @Test @@ -271,6 +272,6 @@ public void testDeleteGlobalPropertyNoName() .post(requestBody) .build(); Response response = httpClient.newCall(request).execute(); - assertThat(response.code()).isEqualTo(HttpStatus.NOT_FOUND_404); + assertThat(response.code()).isEqualTo(NOT_FOUND.code()); } } diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java index 5d8b78e19..a660da37e 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/handler/TestQueryIdCachingProxyHandler.java @@ -14,8 +14,6 @@ package io.trino.gateway.ha.handler; import jakarta.servlet.http.HttpServletRequest; -import org.eclipse.jetty.client.HttpClient; -import org.eclipse.jetty.client.Request; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestInstance; import org.junit.jupiter.api.TestInstance.Lifecycle; @@ -27,7 +25,6 @@ import static io.trino.gateway.ha.handler.ProxyUtils.getQueryUser; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.AUTHORIZATION; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.USER_HEADER; -import static java.lang.String.format; import static org.assertj.core.api.Assertions.assertThat; @TestInstance(Lifecycle.PER_CLASS) @@ -64,22 +61,6 @@ public void testExtractQueryIdFromUrl() .isNull(); } - @Test - public void testForwardedHostHeaderOnProxyRequest() - throws IOException - { - String backendServer = "trinocluster"; - String backendPort = "80"; - HttpServletRequest mockServletRequest = Mockito.mock(HttpServletRequest.class); - Mockito.when(mockServletRequest.getHeader("proxytarget")).thenReturn(format("http://%s:%s", backendServer, backendPort)); - HttpClient httpClient = new HttpClient(); - Request proxyRequest = httpClient.newRequest("http://localhost:80"); - QueryIdCachingProxyHandler.setForwardedHostHeaderOnProxyRequest(mockServletRequest, - proxyRequest); - assertThat(proxyRequest.getHeaders().get("Host")) - .isEqualTo(format("%s:%s", backendServer, backendPort)); - } - @Test public void testUserFromRequest() throws IOException diff --git a/gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyServer.java b/gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyServer.java deleted file mode 100644 index bccd64eef..000000000 --- a/gateway-ha/src/test/java/io/trino/gateway/proxyserver/TestProxyServer.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package io.trino.gateway.proxyserver; - -import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.TestInstance; -import org.testcontainers.containers.TrinoContainer; - -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.ResultSet; -import java.sql.Statement; - -import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS; - -@TestInstance(PER_CLASS) -public class TestProxyServer -{ - private TrinoContainer trino; - private ProxyServer proxy; - private int proxyPort; - - @BeforeEach - void setUp() - { - trino = new TrinoContainer("trinodb/trino"); - trino.start(); - - int trinoPort = trino.getMappedPort(8080); - proxyPort = trinoPort + 1; - ProxyServerConfiguration config = new ProxyServerConfiguration(); - config.setName("test_cluster"); - config.setProxyTo("http://localhost:" + trinoPort); - config.setLocalPort(proxyPort); - proxy = new ProxyServer(config, new ProxyHandler()); - proxy.start(); - } - - @AfterAll - public void cleanup() - { - trino.close(); - proxy.close(); - } - - @Test - public void testProxyServer() - throws Exception - { - try (Connection connection = DriverManager.getConnection("jdbc:trino://localhost:" + proxyPort, "test_user", null); - Statement statement = connection.createStatement()) { - ResultSet result = statement.executeQuery("SELECT 'test'"); - result.next(); - assertThat(result.getString(1)).isEqualTo("test"); - } - } -} diff --git a/gateway-ha/src/test/resources/auth/auth-test-config.yml b/gateway-ha/src/test/resources/auth/auth-test-config.yml index 42a1e3de3..0b8c43b59 100644 --- a/gateway-ha/src/test/resources/auth/auth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/auth-test-config.yml @@ -1,11 +1,6 @@ httpConfig: node.environment: test - http-server.http.port: 9081 - -requestRouter: - port: REQUEST_ROUTER_PORT - name: testTrinoRouter - historySize: 1000 + http-server.http.port: REQUEST_ROUTER_PORT dataStore: jdbcUrl: jdbc:h2:DB_FILE_PATH @@ -16,9 +11,6 @@ dataStore: modules: - io.trino.gateway.ha.module.HaGatewayProviderModule -managedApps: - - io.trino.gateway.ha.GatewayManagedApp - extraWhitelistPaths: - "/v1/custom" diff --git a/gateway-ha/src/test/resources/auth/oauth-test-config.yml b/gateway-ha/src/test/resources/auth/oauth-test-config.yml index e3346e6ef..de03513e7 100644 --- a/gateway-ha/src/test/resources/auth/oauth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/oauth-test-config.yml @@ -1,13 +1,10 @@ httpConfig: node.environment: test - http-server.http.port: 9081 - -requestRouter: - port: REQUEST_ROUTER_PORT - name: testTrinoRouter - ssl: true - keystorePath: LOCALHOST_JKS - keystorePass: 123456 + http-server.http.port: 8080 + http-server.https.enabled: true + http-server.https.port: REQUEST_ROUTER_PORT + http-server.https.keystore.path: LOCALHOST_JKS + http-server.https.keystore.key: 123456 dataStore: jdbcUrl: jdbc:h2:DB_FILE_PATH @@ -18,9 +15,6 @@ dataStore: modules: - io.trino.gateway.ha.module.HaGatewayProviderModule -managedApps: - - io.trino.gateway.ha.GatewayManagedApp - extraWhitelistPaths: - "/v1/custom" diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index 14978dcdd..9d8f4ce31 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -1,11 +1,6 @@ httpConfig: node.environment: test - http-server.http.port: 9081 - -requestRouter: - port: REQUEST_ROUTER_PORT - name: testTrinoRouter - historySize: 1000 + http-server.http.port: REQUEST_ROUTER_PORT dataStore: jdbcUrl: jdbc:h2:DB_FILE_PATH @@ -16,11 +11,9 @@ dataStore: modules: - io.trino.gateway.ha.module.HaGatewayProviderModule -managedApps: - - io.trino.gateway.ha.GatewayManagedApp - extraWhitelistPaths: - "/v1/custom" + - "/custom/logout" gatewayCookieConfiguration: enabled: true diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml index 59dc2d7f4..9071f83ae 100644 --- a/helm/trino-gateway/templates/deployment.yaml +++ b/helm/trino-gateway/templates/deployment.yaml @@ -52,7 +52,7 @@ spec: - "/etc/gateway/config.yaml" ports: - name: request - containerPort: {{ .Values.config.requestRouter.port }} + containerPort: {{ index .Values "config" "httpConfig" "http-server.http.port" }} protocol: TCP {{- range $index, $connector := $.Values.config.server.adminConnectors}} - name: {{print "admin-" $index }} diff --git a/helm/trino-gateway/templates/service.yaml b/helm/trino-gateway/templates/service.yaml index 11b8dd1aa..cb45b1546 100644 --- a/helm/trino-gateway/templates/service.yaml +++ b/helm/trino-gateway/templates/service.yaml @@ -7,7 +7,7 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ .Values.config.requestRouter.port }} + - port: {{ index .Values "config" "httpConfig" "http-server.http.port" }} protocol: TCP name: request {{- range $index, $connector := $.Values.config.server.applicationConnectors}} diff --git a/helm/trino-gateway/values.yaml b/helm/trino-gateway/values.yaml index 6065fe732..2732c9c47 100644 --- a/helm/trino-gateway/values.yaml +++ b/helm/trino-gateway/values.yaml @@ -36,12 +36,7 @@ authenticationSecret: config: httpConfig: node.environment: test - http-server.http.port: 9081 - requestRouter: - #SQL clients connect to the request port - port: 9080 - name: testTrinoRouter - historySize: 1000 + http-server.http.port: 8080 clusterStatsConfiguration: monitorType: INFO_API modules: @@ -49,7 +44,6 @@ config: - io.trino.gateway.ha.module.ClusterStateListenerModule - io.trino.gateway.ha.module.ClusterStatsMonitorModule managedApps: - - io.trino.gateway.ha.GatewayManagedApp - io.trino.gateway.ha.clustermonitor.ActiveClusterMonitor service: diff --git a/pom.xml b/pom.xml index 168f2d184..896594b59 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,6 @@ true true clean verify -DskipTests - 12.0.9 @@ -57,22 +56,6 @@ import - - org.eclipse.jetty - jetty-bom - ${dep.jetty.version} - pom - import - - - - org.eclipse.jetty.ee10 - jetty-ee10-bom - ${dep.jetty.version} - pom - import - - org.jdbi jdbi3-bom From 4aefd9063e2ef15a69590771d5fc1bb7f6155198 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 7 Jun 2024 11:50:56 +0900 Subject: [PATCH 140/148] Remove --add-opens options --- .mvn/jvm.config | 1 - docker/Dockerfile | 2 +- docs/development.md | 2 +- docs/installation.md | 4 +--- gateway-ha/pom.xml | 2 -- helm/trino-gateway/templates/deployment.yaml | 2 -- 6 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.mvn/jvm.config b/.mvn/jvm.config index 03c698cf5..32599cefe 100644 --- a/.mvn/jvm.config +++ b/.mvn/jvm.config @@ -8,4 +8,3 @@ --add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED ---add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED diff --git a/docker/Dockerfile b/docker/Dockerfile index 6157b50ae..700731863 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -47,7 +47,7 @@ COPY --chown=trino:trino gateway-ha /usr/lib/trino EXPOSE 8080 USER trino:trino -CMD java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar "/opt/trino/gateway-ha-config.yml" +CMD java -jar /usr/lib/trino/gateway-ha-jar-with-dependencies.jar "/opt/trino/gateway-ha-config.yml" HEALTHCHECK --interval=10s --timeout=5s --start-period=10s \ CMD /usr/lib/trino/bin/health-check diff --git a/docs/development.md b/docs/development.md index 96418279d..c04cc8071 100644 --- a/docs/development.md +++ b/docs/development.md @@ -32,7 +32,7 @@ and update the mysql db information. ``` cd gateway-ha/target/ -java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -jar gateway-ha-{{VERSION}}-jar-with-dependencies.jar ../gateway-ha-config.yml +java -jar gateway-ha-{{VERSION}}-jar-with-dependencies.jar ../gateway-ha-config.yml ``` #### In Docker diff --git a/docs/installation.md b/docs/installation.md index c21367896..23a330e33 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -134,9 +134,7 @@ JAR and YAML files: ```shell java -XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80 \ - --add-opens=java.base/java.lang=ALL-UNNAMED \ - --add-opens=java.base/java.net=ALL-UNNAMED \ - -jar gateway-ha.jar server gateway-config.yml + -jar gateway-ha.jar gateway-config.yml ``` ### Helm diff --git a/gateway-ha/pom.xml b/gateway-ha/pom.xml index 7ce13135d..155616c5c 100644 --- a/gateway-ha/pom.xml +++ b/gateway-ha/pom.xml @@ -422,8 +422,6 @@ org.apache.maven.plugins maven-surefire-plugin - - --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED false diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml index 9071f83ae..f4ec1174e 100644 --- a/helm/trino-gateway/templates/deployment.yaml +++ b/helm/trino-gateway/templates/deployment.yaml @@ -42,8 +42,6 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} command: - "java" - - "--add-opens=java.base/java.lang=ALL-UNNAMED" - - "--add-opens=java.base/java.net=ALL-UNNAMED" - "-XX:MinRAMPercentage=80.0" - "-XX:MaxRAMPercentage=80.0" - "-jar" From 4bc6357f45faf1c3e53f7126782a221fdf655ecb Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 11 Jun 2024 10:15:01 +0900 Subject: [PATCH 141/148] Move UI to /tgw/ui --- docs/installation.md | 11 ++++++----- .../io/trino/gateway/baseapp/WebUIStaticResource.java | 6 +++--- .../gateway/ha/handler/RoutingTargetHandler.java | 8 +++++--- .../gateway/ha/resource/GatewayViewResource.java | 2 +- .../io/trino/gateway/ha/resource/LoginResource.java | 7 +++++++ .../RouterPreMatchContainerRequestFilter.java | 2 +- .../java/io/trino/gateway/ha/security/TestOIDC.java | 2 +- .../src/test/resources/auth/auth-test-config.yml | 2 +- .../src/test/resources/auth/oauth-test-config.yml | 2 +- .../src/test/resources/test-config-template.yml | 4 ++-- webapp/index.html | 2 +- webapp/src/components/layout.tsx | 2 +- webapp/src/components/login.tsx | 2 +- webapp/src/store/config.ts | 2 +- webapp/vite.config.ts | 1 + 15 files changed, 33 insertions(+), 22 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 23a330e33..66103f217 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -120,11 +120,12 @@ If you want to proxy additional paths, you can add them by adding the ```yaml extraWhitelistPaths: - - "/ui/insights" - - "/api/v1/biac" - - "/api/v1/dataProduct" - - "/api/v1/dataproduct" - - "/ext/faster" + - '/ui/insights' + - '/api/v1/biac' + - '/api/v1/dataProduct' + - '/api/v1/dataproduct' + - '/api/v2/.*' + - '/ext/faster' ``` ## Running Trino Gateway diff --git a/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java b/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java index d3f005650..f9499184f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/baseapp/WebUIStaticResource.java @@ -27,11 +27,11 @@ import static jakarta.ws.rs.core.Response.Status.NOT_FOUND; -@Path("/") +@Path("/trino-gateway") public class WebUIStaticResource { @GET - @Path("/logo.svg") + @Path("logo.svg") public Response getLogo(@Context ServletContext servletContext) throws IOException { @@ -44,7 +44,7 @@ public Response getLogo(@Context ServletContext servletContext) } @GET - @Path("/assets/{path: .*}") + @Path("assets/{path: .*}") public Response getAssetsFile(@PathParam("path") String path, @Context ServletContext servletContext) throws IOException { diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java index d5355ea9d..0a6fa5e19 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/handler/RoutingTargetHandler.java @@ -23,8 +23,10 @@ import java.util.Arrays; import java.util.List; import java.util.Optional; +import java.util.regex.Pattern; import static com.google.common.base.Strings.isNullOrEmpty; +import static com.google.common.collect.ImmutableList.toImmutableList; import static io.trino.gateway.ha.handler.ProxyUtils.buildUriWithNewBackend; import static io.trino.gateway.ha.handler.ProxyUtils.extractQueryIdIfPresent; import static io.trino.gateway.ha.handler.QueryIdCachingProxyHandler.OAUTH_PATH; @@ -42,7 +44,7 @@ public class RoutingTargetHandler private static final Logger log = Logger.get(RoutingTargetHandler.class); private final RoutingManager routingManager; private final RoutingGroupSelector routingGroupSelector; - private final List extraWhitelistPaths; + private final List extraWhitelistPaths; private final boolean cookiesEnabled; public RoutingTargetHandler( @@ -52,7 +54,7 @@ public RoutingTargetHandler( { this.routingManager = requireNonNull(routingManager); this.routingGroupSelector = requireNonNull(routingGroupSelector); - this.extraWhitelistPaths = requireNonNull(extraWhitelistPaths); + this.extraWhitelistPaths = extraWhitelistPaths.stream().map(Pattern::compile).collect(toImmutableList()); cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); } @@ -74,7 +76,7 @@ public boolean isPathWhiteListed(String path) || path.startsWith(V1_NODE_PATH) || path.startsWith(UI_API_STATS_PATH) || path.startsWith(OAUTH_PATH) - || extraWhitelistPaths.stream().anyMatch(s -> path.startsWith(s)); + || extraWhitelistPaths.stream().anyMatch(pattern -> pattern.matcher(path).matches()); } private String getBackendFromRoutingGroup(HttpServletRequest request) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java index 1cac430e4..06d9b12a5 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/GatewayViewResource.java @@ -34,7 +34,7 @@ import static java.util.Objects.requireNonNull; -@Path("/") +@Path("/trino-gateway") public class GatewayViewResource { private final GatewayBackendManager gatewayBackendManager; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java index 4a2a7c633..a5a89cbd4 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/resource/LoginResource.java @@ -38,6 +38,7 @@ import jakarta.ws.rs.core.Response; import jakarta.ws.rs.core.SecurityContext; +import java.net.URI; import java.util.Collections; import java.util.List; import java.util.Map; @@ -63,6 +64,12 @@ public LoginResource(@Nullable LbOAuthManager oauthManager, @Nullable LbFormAuth this.formAuthManager = formAuthManager; } + @GET + public Response getRoot() + { + return Response.seeOther(URI.create("/trino-gateway")).build(); + } + @POST @Path("sso") @Consumes(MediaType.APPLICATION_JSON) diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java index 9b77b1faf..838181ddb 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/RouterPreMatchContainerRequestFilter.java @@ -33,7 +33,7 @@ public class RouterPreMatchContainerRequestFilter implements ContainerRequestFilter { - public static final String ROUTE_TO_BACKEND = "/tgw/internal/route_to_backend"; + public static final String ROUTE_TO_BACKEND = "/trino-gateway/internal/route_to_backend"; private final RoutingTargetHandler routingTargetHandler; diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java index 52b928f26..f4a6b945e 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/security/TestOIDC.java @@ -166,7 +166,7 @@ public void testNormalFlow() try (Response response = httpClient.newCall(oidcRequest).execute()) { assertThat(response.request().url().host()).isEqualTo("localhost"); assertThat(response.request().url().port()).isEqualTo(ROUTER_PORT); - assertThat(response.request().url().encodedPath()).isEqualTo("/"); + assertThat(response.request().url().encodedPath()).isEqualTo("/trino-gateway"); assertThat(response.code()).isEqualTo(200); } } diff --git a/gateway-ha/src/test/resources/auth/auth-test-config.yml b/gateway-ha/src/test/resources/auth/auth-test-config.yml index 0b8c43b59..9d02ad8e9 100644 --- a/gateway-ha/src/test/resources/auth/auth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/auth-test-config.yml @@ -12,7 +12,7 @@ modules: - io.trino.gateway.ha.module.HaGatewayProviderModule extraWhitelistPaths: - - "/v1/custom" + - '/v1/custom.*' authorization: admin: .*FOO.* diff --git a/gateway-ha/src/test/resources/auth/oauth-test-config.yml b/gateway-ha/src/test/resources/auth/oauth-test-config.yml index de03513e7..06e8d0ed9 100644 --- a/gateway-ha/src/test/resources/auth/oauth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/oauth-test-config.yml @@ -16,7 +16,7 @@ modules: - io.trino.gateway.ha.module.HaGatewayProviderModule extraWhitelistPaths: - - "/v1/custom" + - '/v1/custom.*' authorization: admin: .*FOO.* diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index 9d8f4ce31..19d9d07a4 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -12,8 +12,8 @@ modules: - io.trino.gateway.ha.module.HaGatewayProviderModule extraWhitelistPaths: - - "/v1/custom" - - "/custom/logout" + - '/v1/custom.*' + - '/custom/logout.*' gatewayCookieConfiguration: enabled: true diff --git a/webapp/index.html b/webapp/index.html index d52a6870e..77ab1abd7 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -2,7 +2,7 @@ - + Trino Gateway diff --git a/webapp/src/components/layout.tsx b/webapp/src/components/layout.tsx index be74b912a..57d10bd30 100644 --- a/webapp/src/components/layout.tsx +++ b/webapp/src/components/layout.tsx @@ -51,7 +51,7 @@ export const RootLayout = (props: { header={{ logo: ( ), diff --git a/webapp/src/components/login.tsx b/webapp/src/components/login.tsx index 6b65466b9..3499ebca7 100644 --- a/webapp/src/components/login.tsx +++ b/webapp/src/components/login.tsx @@ -41,7 +41,7 @@ export function Login() {
    diff --git a/webapp/src/store/config.ts b/webapp/src/store/config.ts index ad5bc9c3a..165ad1188 100644 --- a/webapp/src/store/config.ts +++ b/webapp/src/store/config.ts @@ -9,7 +9,7 @@ export enum Theme { } export const DEFAULT_CONFIG = { - avatar: "/logo.svg", + avatar: "/trino-gateway/logo.svg", theme: Theme.Auto as Theme, fontSize: 14, diff --git a/webapp/vite.config.ts b/webapp/vite.config.ts index 1fd7adadf..612dc3580 100644 --- a/webapp/vite.config.ts +++ b/webapp/vite.config.ts @@ -10,6 +10,7 @@ export default defineConfig((mode: ConfigEnv) => { const baseUrl = env.VITE_BASE_URL const proxyPath = env.VITE_PROXY_PATH; return { + base: `/trino-gateway/`, plugins: [react(), svgr()], server: { proxy: { From 8c4385639d7a5e86703742b1abfe581a602e1d7a Mon Sep 17 00:00:00 2001 From: Star Poon Date: Fri, 7 Jun 2024 13:13:30 +0900 Subject: [PATCH 142/148] Update documentations for migration to Airlift --- docs/assets/BaseApp-classes.png | Bin 24409 -> 0 bytes docs/assets/ProxyServer-classes.png | Bin 48412 -> 0 bytes docs/assets/TrinoGateway-classes.png | Bin 120216 -> 0 bytes docs/design.md | 48 ++++--- docs/installation.md | 5 +- docs/migration-to-airlift.md | 200 +++++++++++++++++++++++++++ docs/quickstart.md | 10 +- docs/security.md | 46 ++++++ mkdocs.yml | 1 + 9 files changed, 281 insertions(+), 29 deletions(-) delete mode 100644 docs/assets/BaseApp-classes.png delete mode 100644 docs/assets/ProxyServer-classes.png delete mode 100644 docs/assets/TrinoGateway-classes.png create mode 100644 docs/migration-to-airlift.md diff --git a/docs/assets/BaseApp-classes.png b/docs/assets/BaseApp-classes.png deleted file mode 100644 index db84cd3d4fae39c90b0231abf30a1586f74c3f82..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 24409 zcmeFYb8ux_)CU-KY<6sPI!4E~)v-FZZFJPJZQHipv2EMV+;qS9zHer#rfUA4Nu9cN z?>T#Muf6u#>v!@?R$2rO8Vec-2nbG0R8SrW2!tI72v`#m9B>C(ZlDA3S#KgBAS)&y zKp<;tWoTk<00boZD=r@5yTT%Rz_o~9{FE7muRUU1q#vSqC=_33KrpMX z9-m+^8V;(Q_4i;{O5Lt*f=q7@Us#YMR+Y-EE1HWS#`CiKHCGO^_3N@UkGGofw*AsN zV1oBCRLH3xY(P_wnB87kM_bZrpFd$`Iggh5?=5u`t zHn9|1pu41HU+FL*6K776ERQw1XV7!DN*9gnAARG|9(b?6VY*zwVh@Um@qg196ixB8 zD*6hNH!7on$}qrrC;0|T9`Z`OpGbNYoTB$_nnRYI#X@cZhy2nVQ$7t=xEBXT*-z}2 zjVR-S%@Deyf>b)}CbE1)N0iwvnmBu(H3p;3I9#Y`(`VhTHPkm+>C?h%`%+%7*LpbL$M12^Sl^xh-2-}~m_TU)? z_1=~SI){**Hy)|4D^};fR~Ul=-tkZfp2F7#n@XSXB))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de?-r^PWGBxn#g`kA*y#{1zE3gkeUE6Qh3@(Zi94vWGWZOh2Mx^9o?X9@H-y+N*QXHHH$|ha2ea z2Yti2+O*K6%==aD6ReQis7Ykkc7cd>o`*P-9nW=eTfYa3$=2&MR%e~X))E8yE42r9 zgGf18TmhtSqxm|U^QcS8?ck%+g}jdaI9^%e<6O;Ev$7j0wj+D3>Vd5)LN!@QB`l^Mt;oH*o2Y2d(gS>AcBV=+JHBPW zVCu`Jr-NcT_Q~y-mD%_pa|`_az$%%YR#YTdQd&CR5`RlX0DT&T;v#`aaxy8ZO<>R@ zR^NgCBXrx-8k-AjFl160fQMO!XYvn@;vx$|Q^Ry(#rO;r++Tj>7w0nW`?Fpqe~qzw zO+2Ef$5s7wTVw`y!Bw18=RV+j3Us8aJw%#bI655EG@rBX)Cmvyv`UZR&HPtx- zD~}7iTb$g1IBfp%o#uDUAija{f*htOX0eDKq9cLsigzE*wRpkm1kIn-HQf%E4ou!N~=Yw1V<_8)=bGG*55YdGL14u_J zS)Jd6#%^?1c(TvO$WH|f;D3ez%Io~kFu-@*|EI?s2Hcv9ATE`v9mm!aRaMeb{3LJw G{Qm%IFsGpa diff --git a/docs/assets/ProxyServer-classes.png b/docs/assets/ProxyServer-classes.png deleted file mode 100644 index d69fd3f3066726a9e74328e40922c2fbf680a2ff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 48412 zcmeEuRaBfyur97ifZ%Sy3GPmChv4q+8Xz#Z1P`tO0t9z=g1Zjx!QE}JJIUV3-bWtJ zx-a)W9M+n(X8P}HsqU_>ufF>Eq$n@(5(y6p0s`Wtl%(i;2neWJ@J9v#4qS4_Wk(GG zfmCNHBBCfIB0{3*WN&6^V+sKw`6(e0UPXBxD|oDRFA^)%H-0?r^3|j@wZ98$LQEj4 zbOfSsM{pRIzp=1r7$yORl7mXv3tFS^og`Vl-u^G3_PI1FvdorK_bnKjA$BrGgYg>38| znp;oc$1mOcT(k~WpP$Pq$F@T?AcV3Js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J7>YRIZjPhT)HC2mm|udgkVoU&e*vOE*l+*< diff --git a/docs/assets/TrinoGateway-classes.png b/docs/assets/TrinoGateway-classes.png deleted file mode 100644 index b06c2415b72895575359185dc86454da8291c255..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 120216 zcmdqJbySqy*D#C-A|f^+jesCX2}746B8?z1w8YTeEues;bcZ4#3=K0hqJ(sJDcwj7 z4c{5=eBS4If!I-cVT{bj$4hZ z@JR}v+55F!!Od`yC-2y)vxd6Gum`;Zu$hV&KmJg|fWEBPBE)ueXZZLL9*9lKXc>-C zaZtTm<5*+4cDx?PF@H2a7Pk+>kPrRo-@u!738Va@fP|Uq4GvzqD2XMk%U>|?V=qWu zQ(?Ro^zI#&yzj(mq$77KBr@lkjkfUasY>_EM!E*Zdt(1yX9WwEdOwUW3w4_Lov;9X)hPPB{O6!%p}WXvi|h-zECu_H3D#=XhF!6kk2<#Zl{ZjiNdirAk=cNSexXqihjL$ ze0W{s0p7q>HVl!^0MDg^!OXkT$msMYg za@~T$6FH9NiNC*p)5vJf7O1f(uN8|F`5r=2ALi`6XEm#8_9!OpM+S~Hp>{kOZ+%45 z^=mKY-V$tz;rbjEDp+gDucW%C^U%Y(C`_m3-!$*QZXhMMrhOYxb9K!bZA3UzRk2QV z+#39W99++uFCZ_5y~g&waQnNC6prF!!W#%w-|iPy1388t7`WfD+e0a`-e{SH{asm=CY&}VSjBA_X%yX|lL80)*&$>S|(KJ@5e@AtE-zoE;6R)HKe!J_%Et4q65Dg>q{0GWWT!E6sXp&>s3Bp z-PJJocGoj!HkGyL_FcN=@QdHMgdfQlE83Ex?&bIGmdbBRQsxnwmd!T_s805W;!NHY zR@0R#@EL-xU^!5jeqFk7n?D4i6H}08BOt&{!8F$>U!sbgVzwZ@rzp^&BkkP(Nw!~h zTs8&gP=vzsS+ZMUK}LX~j(0JEnE8l~^+-*3)f*-#jZTF_h%vzUQw;x@=LW(SjeP+nl@yN&;prpw9h zR{T3zQM@j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*aB8B%^J!eN)|Y3KPb6dKCfrxuW75)ht}CWD zN4Lg{Hy1$FUmm^+r+sMLVJyA8DD(1mR^s*X))E`h3P9BBKOxnB!|1ua@lRj_$L+o4|w)}am=4wEzF6R zdH=dHfBE)$KTtIlBiyUMeEP3D;(8-sZ$IV!E>rza>i$pqIu*bGi`_I-xq2S|(>|C6 z%s)Kv!KJ_G1^nxa)Kdvm&8WW|z>@#F>-S&2ILuWlXyh~aiQAr(3<%#Rrv23rObt1`~4pOzarWHs)$d({ds)#qv`*+n*k`<4X9dbz9TR` z|C3Ai&p-RO>HOPte*d@W{M&R6|9?H}OmVzk3+(v~_}jB>D}UwY=|`>4cJ1DG=;RfL czrA2xPjgJ-*XH@C#{H3=j`3~uO^4_I2Lid)yZ`_I diff --git a/docs/design.md b/docs/design.md index d1a16ad96..ba154d531 100644 --- a/docs/design.md +++ b/docs/design.md @@ -1,24 +1,28 @@ # Design -Trino Gateway is composed of the following main components: - -1. **BaseApp** provides boilerplate code to add/remove pluggable components - with config and metrics registration module. Located in the - `io.trino.gateway.baseapp` package of the `gateway-ha` module. - -![BaseApp Class Diagram](assets/BaseApp-classes.png) - -2. **ProxyServer** is a library built on top of jetty proxy which provides a - proxy server with a pluggable proxy-handler. Located in the - `io.trino.gateway.proxyserver` package of the `gateway-ha` module. - -![ProxyServer Class Diagram](assets/ProxyServer-classes.png) - -3. **Trino Gateway** acts as container for proxy-server and plugs in - ProxyHandlers to provide proxy, routing and load balancing functionalities. It - also exposes few end points and UI to activate, deactivate backends and view - query history for recently submitted queries. Located in the - `io.trino.gateway` package of the `gateway-ha` module. - -![TrinoGateway Class Diagram](assets/TrinoGateway-classes.png) - +There are two types of requests: one is a request to Trino Gateway, and the +other is a request that needs to be forwarded to Trino. + +## Request forwarding + +Trino Gateway forwards some pre-defined URIs automatically to Trino. You can +configure additional URIs to forward with the `extraWhitelistPaths` +configuration. + +In order to support additional URIs that are only known at runtime, the +`RouterPreMatchContainerRequestFilter` is used to process every request before +the actual resource matching occurs. If the requests URI matches, the request +is forwarded to `RouteToBackendResource`. + +Flow of request forwarding: + +1. Determine to which Trino cluster a query should be routed to. +2. Prepare a request to send to Trino by adding `Via` headers and `X-Forwarded` + headers. Most headers are forwarded to Trino unmodified. +3. Some request URI require special handling. For example, a + request which submit a new query, Trino Gateway retrieves the queryId from the + response from Trino. Some requests to the web UI require setting a session + cookie to ensure OIDC works. These are done by chaining asynchronous + operations using `Future`. +4. The execution of requests to Trino and the response to the client are handled + by `airlift.jaxrs.AsyncResponseHandler`. diff --git a/docs/installation.md b/docs/installation.md index 66103f217..936270ad2 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -116,7 +116,10 @@ By default, Trino Gateway only proxies requests to paths starting with `/oauth`. If you want to proxy additional paths, you can add them by adding the -`extraWhitelistPaths` node to your configuration YAML file: +`extraWhitelistPaths` node to your configuration YAML file. +Trino Gateway takes regexes from `extraWhitelistPaths` and forwards only +those requests with a URI that exactly match. Be sure +to use single-quoted strings so that escaping is not required. ```yaml extraWhitelistPaths: diff --git a/docs/migration-to-airlift.md b/docs/migration-to-airlift.md new file mode 100644 index 000000000..3dea24615 --- /dev/null +++ b/docs/migration-to-airlift.md @@ -0,0 +1,200 @@ +# Migration to Airlift + +The codebase of Trino Gateway has been heavily upgraded to meet the Trino +standards. Dropwizard and Jetty Proxy has been replaced by Airbase and Airlift. +This page documents the incompatible changes and aims to smooth the migration. +The migration is only required for user using Trino Gateway before version 10. + +## Change of endpoints + +You have to make the following adjustments to take the change to using only one +HTTP port into account. + +### Merge of service ports + +Multiple service ports have been merged together. The old version +listens to multiple ports: request service at port 9080, application service +at port 9081, and the Admin service at port 9082. The new version only +listens to one single port at 8080 by default. + +### Merge of request service and application service + +Requests to the Trino Gateway (Web UI and RESTful API) and requests that need to +be forwarded to Trino are both served by the same port. The destination is +determined by the HTTP URI in the request. + +### Removal of the Dropwizard admin service at port 9082 + +The admin console page provided by Dropwizard (port 9082) has been removed. +JMX can be viewed at `/v1/jmx`. There are no plans to support other functions on +the Dropwizard Admin page (metrics, ping, threads, healthcheck, CPU profile, +and CPU contention). + +### Path change for WebUI + +The root path for Trino Gateway WebUI has been changed from `/` to +`/trino-gateway`. By default, access to `/` is redirected to `/trino-gateway`. +This behavior can be changed by adding `/` to `extraWhitelistPaths`, which +results in routing `/` to Trino. + +## Change of configuration + +You must adjust your configuration to the following changes. + +### Change of service ports + +`requestRouter`, `server`, `applicationConnectors`, and `adminConnectors` +are replaced by `httpConfig`. + +Old config: +```yaml +requestRouter: + port: 8080 + name: trinoRouter + historySize: 1000 + requestBufferSize: 8192 +server: + applicationConnectors: + - type: http + port: 8090 + useForwardedHeaders: true + adminConnectors: + - type: http + port: 8091 + useForwardedHeaders: true +``` + +New config: +```yaml +serverConfig: + node.environment: test + http-server.http.port: 8443 + proxy.http-client.request-buffer-size: 8kB +``` + +### TLS configuration + +`ssl`, `keystorePath`, and `keystorePass` are replaced by +`http-server.https.*`. For more details, see [Security](security.md) + +Old config: +```yaml +requestRouter: + ssl: true + port: 8080 + name: trinoRouter + historySize: 1000 + keystorePath: + keystorePass: + +server: + applicationConnectors: + - type: https + port: 8090 + keyStorePath: + keyStorePassword: + useForwardedHeaders: true + adminConnectors: + - type: https + port: 8091 + keyStorePath: + keyStorePassword: + useForwardedHeaders: true +``` + +New config: +```yaml +serverConfig: + http-server.http.enabled: false + http-server.https.enabled: true + http-server.https.port: 8080 + http-server.https.keystore.path: + http-server.https.keystore.key: +``` + +### Logging + +Old config: + +* Set logging to external +```yaml +logging: + type: external +``` +* Also specify the path to the `log.properties` file using the `log.levels-file` + JVM options, such as `-Dlog.levels-file=etc/log.properties`. + +New config: + +* Specify the path to the `log.properties` file in config +```yaml +serverConfig: + log.levels-file: gateway-ha/etc/log.properties +``` +* The `log.levels-file` JVM option is no longer supported. + +### JVM startup arguments + +The first arg `server` has been removed. + +Old config: +```bash +java -jar gateway-ha.jar server gateway-config.yml +``` + +New config: +```bash +java -jar gateway-ha.jar gateway-config.yml +``` + +### Format of `extraWhitelistPaths` + +The path setting in `extraWhitelistPaths` is now a regex that matches the full +URI in the request. The old version forwards requests with a URI prefix that +matches any path in `extraWhitelistPaths`. The new version takes regexes from +`extraWhitelistPaths` and forwards only those requests with a URI that exactly +matches any of the regexes. This change is required because in the old +version, `/` matches and forwards every request. + +Be sure to use single-quoted strings so that escaping is not required. The +following configurations are equivalent. + +Old config: +```yaml +extraWhitelistPaths: + - "/ui" + - "/v1/custom" +``` + +New config: +```yaml +extraWhitelistPaths: + - '/ui.*' + - '/v1/custom.*' +``` + +### JVM options + +The following JVM options are no longer required: +``` +-Dlog.levels-file=XXX +--add-opens=java.base/java.lang=ALL-UNNAMED +--add-opens=java.base/java.net=ALL-UNNAMED +``` + +## Miscellaneous changes + +The following section details a number of other changes. + +### Use port 8080 and 8443 + +Use port 8080 for HTTP and 8443 for HTTPS in all the documentations, Docker +image and example config file. The use of the ports 9080, 9081, 9082 has been +removed. This enhances the consistency throughout the project. + +### Request logging + +`dropwizard-request-logging` has been removed. Airlift provides logging for the +HTTP requests. See +[Logging properties](https://trino.io/docs/current/admin/properties-logging.html#http-server-log-enabled) +for configuration. diff --git a/docs/quickstart.md b/docs/quickstart.md index 4a8268935..22081a52e 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -7,10 +7,8 @@ Gateway server running in the host operating system. ## Start Trino Gateway server The following script starts a Trino Gateway server using the -[Quickstart configuration](quickstart-config.yaml) with the request service -at http://localhost:9080, the application service at http://localhost:9081, -and the Admin service at http://localhost:9082. It also starts a dockerized -PostgreSQL database at localhost:5432. +[Quickstart configuration](quickstart-config.yaml) at http://localhost:8080. +It also starts a dockerized PostgreSQL database at localhost:5432. To start the server, copy the script below to a temporary directory under the project root folder, and run it at the temporary directory. @@ -91,12 +89,12 @@ docker run --name trino1 -d -p 8081:8080 trinodb/trino docker run --name trino2 -d -p 8082:8080 trinodb/trino #Add the trino servers as Gateway backends -curl -H "Content-Type: application/json" -X POST localhost:9080/gateway/backend/modify/add -d '{"name": "trino1", +curl -H "Content-Type: application/json" -X POST localhost:8080/gateway/backend/modify/add -d '{"name": "trino1", "proxyTo": "http://localhost:8081", "active": true, "routingGroup": "adhoc" }' -curl -H "Content-Type: application/json" -X POST localhost:9080/gateway/backend/modify/add -d '{"name": "trino2", +curl -H "Content-Type: application/json" -X POST localhost:8080/gateway/backend/modify/add -d '{"name": "trino2", "proxyTo": "http://localhost:8082", "active": true, "routingGroup": "adhoc" diff --git a/docs/security.md b/docs/security.md index 9ff885fe6..c08b91578 100644 --- a/docs/security.md +++ b/docs/security.md @@ -5,6 +5,33 @@ These features are used only to authenticate and authorize its user interface an the APIs. All Trino-related requests are passed through to the Trino cluster without any authentication or authorization check in Trino Gateway. +## TLS configuration + +All authentication and authorization mechanisms require configuring TLS as the +foundational layer. Your site or cloud environment may already have a load balancer +or proxy server configured and running with a valid, globally trusted TLS certificate. +In this case, you can work with your network administrators to set up your Trino +Gateway behind the load balancer. + +You can also configure an end-to-end TLS connection using Trino Gateway. +This requires you to obtain and install a TLS certificate and configure Trino +Gateway to use it for client connections. The following configuration +enables TLS for Trino Gateway. + +```yaml +httpConfig: + http-server.http.enabled: false + http-server.https.enabled: true + http-server.https.port: 8443 + http-server.https.keystore.path: certificate.pem + http-server.https.keystore.key: changeme +``` + +For advanced configurations, refer to the [Trino +TLS documentation](https://trino.io/docs/current/security/tls.html) +for more details. + + ## Authentication The authentication would happen on https protocol only. Add the @@ -161,3 +188,22 @@ pagePermissions: user: dashboard_history api: ``` + +## Extra: Self-signed certificate in Trino Gateway + +If Trino Gateway is using a self-signed certificate, client should use the +`--insecure` config. + +```bash +java -jar trino-cli-executable.jar --server https://localhost:8443 --insecure +``` + +## Extra: Self signed certificate in Trino + +If Trino is using a self-signed certificate, the following JVM config for +Trino Gateway should be added: + +```properties +-Djavax.net.ssl.trustStore= +-Djavax.net.ssl.trustStorePassword= +``` diff --git a/mkdocs.yml b/mkdocs.yml index 867cbe9d3..9accd430c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -84,6 +84,7 @@ nav: - Gateway API: gateway-api.md - Resource groups API: resource-groups-api.md - Code architecture: design.md + - Migration to Airlift: migration-to-airlift.md - Contribute: - Code: development.md - Documentation: docs.md From af6e4728a4ce71642114bfe2e563082598c8b80b Mon Sep 17 00:00:00 2001 From: Star Poon Date: Tue, 18 Jun 2024 14:09:12 +0900 Subject: [PATCH 143/148] Rename httpConfig to serverConfig --- docs/installation.md | 4 ++-- docs/migration-to-airlift.md | 2 +- docs/quickstart-config.yaml | 2 +- docs/security.md | 2 +- gateway-ha/gateway-ha-config-docker.yml | 2 +- gateway-ha/gateway-ha-config.yml | 2 +- .../java/io/trino/gateway/ha/HaGatewayLauncher.java | 2 +- .../gateway/ha/config/HaGatewayConfiguration.java | 10 +++++----- .../src/test/resources/auth/auth-test-config.yml | 2 +- .../src/test/resources/auth/oauth-test-config.yml | 2 +- gateway-ha/src/test/resources/test-config-template.yml | 2 +- helm/trino-gateway/templates/deployment.yaml | 2 +- helm/trino-gateway/templates/service.yaml | 2 +- helm/trino-gateway/values.yaml | 2 +- 14 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 936270ad2..36e6c4f28 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -103,11 +103,11 @@ Find more information in the [routing rules documentation](routing-rules.md). ### Configure logging To configure the logging level for various classes, specify the path to the -`log.properties` file by setting `log.levels-file` in `httpConfig`. +`log.properties` file by setting `log.levels-file` in `serverConfig`. For additional configurations, use the `log.*` properties from the [Trino logging properties documentation](https://trino.io/docs/current/admin/properties-logging.html) and specify -the properties in `httpConfig`. +the properties in `serverConfig`. ### Proxying additional paths diff --git a/docs/migration-to-airlift.md b/docs/migration-to-airlift.md index 3dea24615..6182652f7 100644 --- a/docs/migration-to-airlift.md +++ b/docs/migration-to-airlift.md @@ -44,7 +44,7 @@ You must adjust your configuration to the following changes. ### Change of service ports `requestRouter`, `server`, `applicationConnectors`, and `adminConnectors` -are replaced by `httpConfig`. +are replaced by `serverConfig`. Old config: ```yaml diff --git a/docs/quickstart-config.yaml b/docs/quickstart-config.yaml index 4367053e7..7654bfad1 100644 --- a/docs/quickstart-config.yaml +++ b/docs/quickstart-config.yaml @@ -1,4 +1,4 @@ -httpConfig: +serverConfig: node.environment: test http-server.http.port: 8080 log.levels-file: gateway-ha/etc/log.properties diff --git a/docs/security.md b/docs/security.md index c08b91578..3254c372d 100644 --- a/docs/security.md +++ b/docs/security.md @@ -19,7 +19,7 @@ Gateway to use it for client connections. The following configuration enables TLS for Trino Gateway. ```yaml -httpConfig: +serverConfig: http-server.http.enabled: false http-server.https.enabled: true http-server.https.port: 8443 diff --git a/gateway-ha/gateway-ha-config-docker.yml b/gateway-ha/gateway-ha-config-docker.yml index f41b42ea4..a57f7d328 100644 --- a/gateway-ha/gateway-ha-config-docker.yml +++ b/gateway-ha/gateway-ha-config-docker.yml @@ -1,4 +1,4 @@ -httpConfig: +serverConfig: node.environment: test http-server.http.port: 8080 diff --git a/gateway-ha/gateway-ha-config.yml b/gateway-ha/gateway-ha-config.yml index 751bb97a9..d9d8c0f78 100644 --- a/gateway-ha/gateway-ha-config.yml +++ b/gateway-ha/gateway-ha-config.yml @@ -1,4 +1,4 @@ -httpConfig: +serverConfig: node.environment: test http-server.http.port: 8080 diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java index b0f68ee02..f2bac8c93 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/HaGatewayLauncher.java @@ -62,7 +62,7 @@ private void start(List additionalModules, HaGatewayConfiguration config modules.addAll(additionalModules); Bootstrap app = new Bootstrap(modules.build()) - .setRequiredConfigurationProperties(configuration.getHttpConfig()); + .setRequiredConfigurationProperties(configuration.getServerConfig()); try { app.initialize(); } diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 798c4e3e2..96313b36f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -20,7 +20,7 @@ public class HaGatewayConfiguration { - private Map httpConfig = new HashMap<>(); + private Map serverConfig = new HashMap<>(); private NotifierConfiguration notifier; private DataStoreConfiguration dataStore; private MonitorConfiguration monitor = new MonitorConfiguration(); @@ -43,14 +43,14 @@ public class HaGatewayConfiguration public HaGatewayConfiguration() {} - public Map getHttpConfig() + public Map getServerConfig() { - return this.httpConfig; + return this.serverConfig; } - public void setHttpConfig(Map httpConfig) + public void setServerConfig(Map serverConfig) { - this.httpConfig = httpConfig; + this.serverConfig = serverConfig; } public NotifierConfiguration getNotifier() diff --git a/gateway-ha/src/test/resources/auth/auth-test-config.yml b/gateway-ha/src/test/resources/auth/auth-test-config.yml index 9d02ad8e9..f5bc2c31a 100644 --- a/gateway-ha/src/test/resources/auth/auth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/auth-test-config.yml @@ -1,4 +1,4 @@ -httpConfig: +serverConfig: node.environment: test http-server.http.port: REQUEST_ROUTER_PORT diff --git a/gateway-ha/src/test/resources/auth/oauth-test-config.yml b/gateway-ha/src/test/resources/auth/oauth-test-config.yml index 06e8d0ed9..638684fa0 100644 --- a/gateway-ha/src/test/resources/auth/oauth-test-config.yml +++ b/gateway-ha/src/test/resources/auth/oauth-test-config.yml @@ -1,4 +1,4 @@ -httpConfig: +serverConfig: node.environment: test http-server.http.port: 8080 http-server.https.enabled: true diff --git a/gateway-ha/src/test/resources/test-config-template.yml b/gateway-ha/src/test/resources/test-config-template.yml index 19d9d07a4..b22e27fe9 100644 --- a/gateway-ha/src/test/resources/test-config-template.yml +++ b/gateway-ha/src/test/resources/test-config-template.yml @@ -1,4 +1,4 @@ -httpConfig: +serverConfig: node.environment: test http-server.http.port: REQUEST_ROUTER_PORT diff --git a/helm/trino-gateway/templates/deployment.yaml b/helm/trino-gateway/templates/deployment.yaml index f4ec1174e..f61d72258 100644 --- a/helm/trino-gateway/templates/deployment.yaml +++ b/helm/trino-gateway/templates/deployment.yaml @@ -50,7 +50,7 @@ spec: - "/etc/gateway/config.yaml" ports: - name: request - containerPort: {{ index .Values "config" "httpConfig" "http-server.http.port" }} + containerPort: {{ index .Values "config" "serverConfig" "http-server.http.port" }} protocol: TCP {{- range $index, $connector := $.Values.config.server.adminConnectors}} - name: {{print "admin-" $index }} diff --git a/helm/trino-gateway/templates/service.yaml b/helm/trino-gateway/templates/service.yaml index cb45b1546..c2145c205 100644 --- a/helm/trino-gateway/templates/service.yaml +++ b/helm/trino-gateway/templates/service.yaml @@ -7,7 +7,7 @@ metadata: spec: type: {{ .Values.service.type }} ports: - - port: {{ index .Values "config" "httpConfig" "http-server.http.port" }} + - port: {{ index .Values "config" "serverConfig" "http-server.http.port" }} protocol: TCP name: request {{- range $index, $connector := $.Values.config.server.applicationConnectors}} diff --git a/helm/trino-gateway/values.yaml b/helm/trino-gateway/values.yaml index 2732c9c47..c738ba291 100644 --- a/helm/trino-gateway/values.yaml +++ b/helm/trino-gateway/values.yaml @@ -34,7 +34,7 @@ authenticationSecret: key: "" config: - httpConfig: + serverConfig: node.environment: test http-server.http.port: 8080 clusterStatsConfiguration: From 4c4f5c10bbfcee2886b8170f8e8649bfc34d60e2 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 24 Jun 2024 12:40:14 +0900 Subject: [PATCH 144/148] Make asyncTimeout configurable --- .../ha/config/HaGatewayConfiguration.java | 11 +++++++ .../ha/config/RoutingConfiguration.java | 33 +++++++++++++++++++ .../proxyserver/ProxyRequestHandler.java | 12 ++++--- 3 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 gateway-ha/src/main/java/io/trino/gateway/ha/config/RoutingConfiguration.java diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java index 96313b36f..8d717ae4f 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/HaGatewayConfiguration.java @@ -24,6 +24,7 @@ public class HaGatewayConfiguration private NotifierConfiguration notifier; private DataStoreConfiguration dataStore; private MonitorConfiguration monitor = new MonitorConfiguration(); + private RoutingConfiguration routing = new RoutingConfiguration(); private RoutingRulesConfiguration routingRules = new RoutingRulesConfiguration(); private AuthenticationConfiguration authentication; private AuthorizationConfiguration authorization; @@ -83,6 +84,16 @@ public void setMonitor(MonitorConfiguration monitor) this.monitor = monitor; } + public RoutingConfiguration getRouting() + { + return routing; + } + + public void setRouting(RoutingConfiguration routing) + { + this.routing = routing; + } + public RoutingRulesConfiguration getRoutingRules() { return this.routingRules; diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/config/RoutingConfiguration.java b/gateway-ha/src/main/java/io/trino/gateway/ha/config/RoutingConfiguration.java new file mode 100644 index 000000000..93136f2c6 --- /dev/null +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/config/RoutingConfiguration.java @@ -0,0 +1,33 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.trino.gateway.ha.config; + +import io.airlift.units.Duration; + +import static java.util.concurrent.TimeUnit.MINUTES; + +public class RoutingConfiguration +{ + private Duration asyncTimeout = new Duration(2, MINUTES); + + public Duration getAsyncTimeout() + { + return asyncTimeout; + } + + public void setAsyncTimeout(Duration asyncTimeout) + { + this.asyncTimeout = asyncTimeout; + } +} diff --git a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java index 2aada9fa6..d65629b59 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java +++ b/gateway-ha/src/main/java/io/trino/gateway/proxyserver/ProxyRequestHandler.java @@ -24,6 +24,7 @@ import io.airlift.log.Logger; import io.airlift.units.Duration; import io.trino.gateway.ha.config.GatewayCookieConfigurationPropertiesProvider; +import io.trino.gateway.ha.config.HaGatewayConfiguration; import io.trino.gateway.ha.router.GatewayCookie; import io.trino.gateway.ha.router.OAuth2GatewayCookie; import io.trino.gateway.ha.router.QueryHistoryManager; @@ -70,14 +71,13 @@ import static java.util.Collections.list; import static java.util.Objects.requireNonNull; import static java.util.concurrent.Executors.newCachedThreadPool; -import static java.util.concurrent.TimeUnit.MINUTES; public class ProxyRequestHandler { private static final Logger log = Logger.get(ProxyRequestHandler.class); - private static final Duration ASYNC_TIMEOUT = new Duration(2, MINUTES); private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper(); + private final Duration asyncTimeout; private final ExecutorService executor = newCachedThreadPool(daemonThreadsNamed("proxy-%s")); private final HttpClient httpClient; private final RoutingManager routingManager; @@ -88,12 +88,14 @@ public class ProxyRequestHandler public ProxyRequestHandler( @ForProxy HttpClient httpClient, RoutingManager routingManager, - QueryHistoryManager queryHistoryManager) + QueryHistoryManager queryHistoryManager, + HaGatewayConfiguration haGatewayConfiguration) { this.httpClient = requireNonNull(httpClient, "httpClient is null"); this.routingManager = requireNonNull(routingManager, "routingManager is null"); this.queryHistoryManager = requireNonNull(queryHistoryManager, "queryHistoryManager is null"); cookiesEnabled = GatewayCookieConfigurationPropertiesProvider.getInstance().isEnabled(); + asyncTimeout = haGatewayConfiguration.getRouting().getAsyncTimeout(); } @PreDestroy @@ -198,10 +200,10 @@ private Response buildResponse(ProxyResponse response, ImmutableList private void setupAsyncResponse(AsyncResponse asyncResponse, ListenableFuture future) { bindAsyncResponse(asyncResponse, future, executor) - .withTimeout(ASYNC_TIMEOUT, () -> Response + .withTimeout(asyncTimeout, () -> Response .status(BAD_GATEWAY) .type(TEXT_PLAIN_TYPE) - .entity("Request to remote Trino server timed out after" + ASYNC_TIMEOUT) + .entity("Request to remote Trino server timed out after" + asyncTimeout) .build()); } From 1760be3988d27968b99dd90410d1a7d3b8f3481d Mon Sep 17 00:00:00 2001 From: oneonestar Date: Sun, 30 Jun 2024 13:16:41 +0900 Subject: [PATCH 145/148] Fix creating a new resource group --- .../ha/persistence/dao/ResourceGroupsDao.java | 30 ++++++++ .../ha/router/HaResourceGroupsManager.java | 4 +- .../trino/gateway/ha/TestTrinoResource.java | 27 ++++---- .../ha/router/TestResourceGroupsManager.java | 69 +++++++++++-------- .../TestSpecificDbResourceGroupsManager.java | 8 +-- 5 files changed, 90 insertions(+), 48 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java index 21add0f8f..c1618132e 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/persistence/dao/ResourceGroupsDao.java @@ -38,6 +38,36 @@ public interface ResourceGroupsDao """) ResourceGroups findFirstById(long resourceGroupId); + @SqlUpdate(""" + INSERT INTO resource_groups ( + name, + parent, + jmx_export, + scheduling_policy, + scheduling_weight, + soft_memory_limit, + max_queued, + hard_concurrency_limit, + soft_concurrency_limit, + soft_cpu_limit, + hard_cpu_limit, + environment) + VALUES ( + :name, + :parent, + :jmxExport, + :schedulingPolicy, + :schedulingWeight, + :softMemoryLimit, + :maxQueued, + :hardConcurrencyLimit, + :softConcurrencyLimit, + :softCpuLimit, + :hardCpuLimit, + :environment) + """) + void create(@BindBean ResourceGroupsManager.ResourceGroupsDetail resourceGroupsDetail); + @SqlUpdate(""" INSERT INTO resource_groups ( resource_group_id, diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java index ff92d6410..7bbc83b35 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/router/HaResourceGroupsManager.java @@ -51,7 +51,7 @@ public HaResourceGroupsManager(JdbcConnectionManager connectionManager) public ResourceGroupsDetail createResourceGroup(ResourceGroupsDetail resourceGroup, @Nullable String routingGroupDatabase) { - getResourceGroupsDao(routingGroupDatabase).insert(resourceGroup); + getResourceGroupsDao(routingGroupDatabase).create(resourceGroup); return resourceGroup; } @@ -92,7 +92,7 @@ public ResourceGroupsDetail updateResourceGroup(ResourceGroupsDetail resourceGro ResourceGroupsDao dao = getResourceGroupsDao(routingGroupDatabase); ResourceGroups model = dao.findFirstById(resourceGroup.getResourceGroupId()); if (model == null) { - dao.insert(resourceGroup); + dao.create(resourceGroup); } else { dao.update(resourceGroup); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java index 40b84fa73..76086cd85 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestTrinoResource.java @@ -78,7 +78,6 @@ public void prepareData() { // First resource group and selector(s) ResourceGroupsDetail firstResourceGroup = new ResourceGroupsDetail(); - firstResourceGroup.setResourceGroupId(1234); firstResourceGroup.setName("admins"); firstResourceGroup.setHardConcurrencyLimit(1); firstResourceGroup.setSoftMemoryLimit("2%"); @@ -87,14 +86,13 @@ public void prepareData() resourceGroupManager.createResourceGroup(firstResourceGroup, null); SelectorsDetail firstGroupSelector = new SelectorsDetail(); - firstGroupSelector.setResourceGroupId(1234); + firstGroupSelector.setResourceGroupId(1); firstGroupSelector.setPriority(5L); resourceGroupManager.createSelector(firstGroupSelector, null); // Second resource group and selector(s) ResourceGroupsDetail secondResourceGroup = new ResourceGroupsDetail(); - secondResourceGroup.setResourceGroupId(3456); secondResourceGroup.setName("services"); secondResourceGroup.setHardConcurrencyLimit(34); secondResourceGroup.setSoftMemoryLimit("5GB"); @@ -103,14 +101,13 @@ public void prepareData() resourceGroupManager.createResourceGroup(secondResourceGroup, null); SelectorsDetail secondGroupSelector = new SelectorsDetail(); - secondGroupSelector.setResourceGroupId(3456); + secondGroupSelector.setResourceGroupId(2); secondGroupSelector.setPriority(9L); resourceGroupManager.createSelector(secondGroupSelector, null); // Third resource group (no selectors) ResourceGroupsDetail thirdResourceGroup = new ResourceGroupsDetail(); - thirdResourceGroup.setResourceGroupId(5678); thirdResourceGroup.setName("users"); thirdResourceGroup.setHardConcurrencyLimit(5); thirdResourceGroup.setSoftMemoryLimit("67%"); @@ -144,9 +141,9 @@ public void testReadResourceGroupsAll() assertThat(groups.length).isEqualTo(3); Arrays.sort(groups, (x, y) -> Long.compare(x.getResourceGroupId(), y.getResourceGroupId())); - assertThat(groups[0].getResourceGroupId()).isEqualTo(1234); - assertThat(groups[1].getResourceGroupId()).isEqualTo(3456); - assertThat(groups[2].getResourceGroupId()).isEqualTo(5678); + assertThat(groups[0].getResourceGroupId()).isEqualTo(1); + assertThat(groups[1].getResourceGroupId()).isEqualTo(2); + assertThat(groups[2].getResourceGroupId()).isEqualTo(3); } @Test @@ -156,7 +153,7 @@ public void testReadResourceGroupsByGroupId() { Request request = new Request.Builder() - .url("http://localhost:" + routerPort + "/trino/resourcegroup/read/1234") + .url("http://localhost:" + routerPort + "/trino/resourcegroup/read/1") .get() .build(); Response response = httpClient.newCall(request).execute(); @@ -166,7 +163,7 @@ public void testReadResourceGroupsByGroupId() objectMapper.readValue(response.body().string(), ResourceGroupsDetail[].class); assertThat(resourceGroups.length).isEqualTo(1); - assertThat(resourceGroups[0].getResourceGroupId()).isEqualTo(1234); + assertThat(resourceGroups[0].getResourceGroupId()).isEqualTo(1); } @Test @@ -187,8 +184,8 @@ public void testReadSelectorsAll() assertThat(selectors.length).isEqualTo(2); Arrays.sort(selectors, (x, y) -> Long.compare(x.getResourceGroupId(), y.getResourceGroupId())); - assertThat(selectors[0].getResourceGroupId()).isEqualTo(1234); - assertThat(selectors[1].getResourceGroupId()).isEqualTo(3456); + assertThat(selectors[0].getResourceGroupId()).isEqualTo(1); + assertThat(selectors[1].getResourceGroupId()).isEqualTo(2); } @Test @@ -198,7 +195,7 @@ public void testReadSelectorsByGroupId() { Request request = new Request.Builder() - .url("http://localhost:" + routerPort + "/trino/selector/read/3456") + .url("http://localhost:" + routerPort + "/trino/selector/read/2") .get() .build(); Response response = httpClient.newCall(request).execute(); @@ -208,7 +205,7 @@ public void testReadSelectorsByGroupId() objectMapper.readValue(response.body().string(), SelectorsDetail[].class); assertThat(selectors.length).isEqualTo(1); - assertThat(selectors[0].getResourceGroupId()).isEqualTo(3456); + assertThat(selectors[0].getResourceGroupId()).isEqualTo(2); } @Test @@ -220,7 +217,7 @@ public void testDeleteResourceGroupOk() RequestBody.create(MediaType.parse("application/json; charset=utf-8"), ""); Request request = new Request.Builder() - .url("http://localhost:" + routerPort + "/trino/resourcegroup/delete/5678") + .url("http://localhost:" + routerPort + "/trino/resourcegroup/delete/3") .post(requestBody) .build(); Response response = httpClient.newCall(request).execute(); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestResourceGroupsManager.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestResourceGroupsManager.java index 1fab74d6a..5d6cca76d 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestResourceGroupsManager.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestResourceGroupsManager.java @@ -50,17 +50,23 @@ public void testCreateResourceGroup() { ResourceGroupsDetail resourceGroup = new ResourceGroupsDetail(); - resourceGroup.setResourceGroupId(0L); resourceGroup.setName("admin"); resourceGroup.setHardConcurrencyLimit(20); resourceGroup.setMaxQueued(200); resourceGroup.setJmxExport(true); resourceGroup.setSoftMemoryLimit("80%"); - - ResourceGroupsDetail newResourceGroup = resourceGroupManager.createResourceGroup(resourceGroup, + ResourceGroupsDetail adminResourceGroup = resourceGroupManager.createResourceGroup(resourceGroup, null); + assertThat(adminResourceGroup).isEqualTo(resourceGroup); - assertThat(newResourceGroup).isEqualTo(resourceGroup); + resourceGroup.setName("user"); + resourceGroup.setHardConcurrencyLimit(10); + resourceGroup.setMaxQueued(100); + resourceGroup.setJmxExport(true); + resourceGroup.setSoftMemoryLimit("50%"); + ResourceGroupsDetail userResourceGroup = resourceGroupManager.createResourceGroup(resourceGroup, + null); + assertThat(userResourceGroup).isEqualTo(resourceGroup); } @Test @@ -68,9 +74,9 @@ public void testCreateResourceGroup() public void testReadResourceGroup() { List resourceGroups = resourceGroupManager.readAllResourceGroups(null); - assertThat(resourceGroups).hasSize(1); + assertThat(resourceGroups).hasSize(2); - assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(0L); + assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(1L); assertThat(resourceGroups.get(0).getName()).isEqualTo("admin"); assertThat(resourceGroups.get(0).getHardConcurrencyLimit()).isEqualTo(20); assertThat(resourceGroups.get(0).getMaxQueued()).isEqualTo(200); @@ -83,7 +89,7 @@ public void testReadResourceGroup() public void testUpdateResourceGroup() { ResourceGroupsDetail resourceGroup = new ResourceGroupsDetail(); - resourceGroup.setResourceGroupId(0L); + resourceGroup.setResourceGroupId(1L); resourceGroup.setName("admin"); resourceGroup.setHardConcurrencyLimit(50); resourceGroup.setMaxQueued(50); @@ -92,11 +98,11 @@ public void testUpdateResourceGroup() ResourceGroupsDetail updated = resourceGroupManager.updateResourceGroup(resourceGroup, null); List resourceGroups = resourceGroupManager.readAllResourceGroups(null); - assertThat(resourceGroups).containsExactly(updated); + assertThat(resourceGroups).contains(updated); /* Update resourceGroups that do not exist yet. * In this case, new resourceGroups should be created. */ - resourceGroup.setResourceGroupId(1L); + resourceGroup.setResourceGroupId(3L); resourceGroup.setName("localization-eng"); resourceGroup.setHardConcurrencyLimit(50); resourceGroup.setMaxQueued(70); @@ -105,7 +111,7 @@ public void testUpdateResourceGroup() resourceGroup.setSoftConcurrencyLimit(20); resourceGroupManager.updateResourceGroup(resourceGroup, null); - resourceGroup.setResourceGroupId(3L); + resourceGroup.setResourceGroupId(4L); resourceGroup.setName("resource_group_3"); resourceGroup.setHardConcurrencyLimit(10); resourceGroup.setMaxQueued(150); @@ -116,22 +122,29 @@ public void testUpdateResourceGroup() resourceGroups = resourceGroupManager.readAllResourceGroups(null); - assertThat(resourceGroups).hasSize(3); // updated 2 non-existing groups, so count should be 3 + assertThat(resourceGroups).hasSize(4); // updated 2 non-existing groups, so count should be 4 - assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(0L); + assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(1L); assertThat(resourceGroups.get(0).getName()).isEqualTo("admin"); assertThat(resourceGroups.get(0).getHardConcurrencyLimit()).isEqualTo(50); assertThat(resourceGroups.get(0).getMaxQueued()).isEqualTo(50); assertThat(resourceGroups.get(0).getJmxExport()).isEqualTo(Boolean.FALSE); assertThat(resourceGroups.get(0).getSoftMemoryLimit()).isEqualTo("20%"); - assertThat(resourceGroups.get(1).getResourceGroupId()).isEqualTo(1L); - assertThat(resourceGroups.get(1).getName()).isEqualTo("localization-eng"); - assertThat(resourceGroups.get(1).getHardConcurrencyLimit()).isEqualTo(50); - assertThat(resourceGroups.get(1).getMaxQueued()).isEqualTo(70); + assertThat(resourceGroups.get(1).getResourceGroupId()).isEqualTo(2L); + assertThat(resourceGroups.get(1).getName()).isEqualTo("user"); + assertThat(resourceGroups.get(1).getHardConcurrencyLimit()).isEqualTo(10); + assertThat(resourceGroups.get(1).getMaxQueued()).isEqualTo(100); assertThat(resourceGroups.get(1).getJmxExport()).isEqualTo(Boolean.TRUE); - assertThat(resourceGroups.get(1).getSoftMemoryLimit()).isEqualTo("20%"); - assertThat(resourceGroups.get(1).getSoftConcurrencyLimit()).isEqualTo(Integer.valueOf(20)); + assertThat(resourceGroups.get(1).getSoftMemoryLimit()).isEqualTo("50%"); + + assertThat(resourceGroups.get(2).getResourceGroupId()).isEqualTo(3L); + assertThat(resourceGroups.get(2).getName()).isEqualTo("localization-eng"); + assertThat(resourceGroups.get(2).getHardConcurrencyLimit()).isEqualTo(50); + assertThat(resourceGroups.get(2).getMaxQueued()).isEqualTo(70); + assertThat(resourceGroups.get(2).getJmxExport()).isEqualTo(Boolean.TRUE); + assertThat(resourceGroups.get(2).getSoftMemoryLimit()).isEqualTo("20%"); + assertThat(resourceGroups.get(2).getSoftConcurrencyLimit()).isEqualTo(Integer.valueOf(20)); } @Test @@ -139,18 +152,20 @@ public void testUpdateResourceGroup() public void testDeleteResourceGroup() { List resourceGroups = resourceGroupManager.readAllResourceGroups(null); - assertThat(resourceGroups).hasSize(3); + assertThat(resourceGroups).hasSize(4); - assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(0L); - assertThat(resourceGroups.get(1).getResourceGroupId()).isEqualTo(1L); + assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(1L); + assertThat(resourceGroups.get(1).getResourceGroupId()).isEqualTo(2L); assertThat(resourceGroups.get(2).getResourceGroupId()).isEqualTo(3L); + assertThat(resourceGroups.get(3).getResourceGroupId()).isEqualTo(4L); resourceGroupManager.deleteResourceGroup(resourceGroups.get(1).getResourceGroupId(), null); resourceGroups = resourceGroupManager.readAllResourceGroups(null); - assertThat(resourceGroups).hasSize(2); - assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(0L); + assertThat(resourceGroups).hasSize(3); + assertThat(resourceGroups.get(0).getResourceGroupId()).isEqualTo(1L); assertThat(resourceGroups.get(1).getResourceGroupId()).isEqualTo(3L); + assertThat(resourceGroups.get(2).getResourceGroupId()).isEqualTo(4L); } @Test @@ -158,7 +173,7 @@ public void testDeleteResourceGroup() public void testCreateSelector() { SelectorsDetail selector = new SelectorsDetail(); - selector.setResourceGroupId(0L); + selector.setResourceGroupId(1L); selector.setPriority(0L); selector.setUserRegex("data-platform-admin"); selector.setSourceRegex("admin"); @@ -178,7 +193,7 @@ public void testReadSelector() List selectors = resourceGroupManager.readAllSelectors(null); assertThat(selectors).hasSize(1); - assertThat(selectors.get(0).getResourceGroupId()).isEqualTo(0L); + assertThat(selectors.get(0).getResourceGroupId()).isEqualTo(1L); assertThat(selectors.get(0).getPriority()).isEqualTo(0L); assertThat(selectors.get(0).getUserRegex()).isEqualTo("data-platform-admin"); assertThat(selectors.get(0).getSourceRegex()).isEqualTo("admin"); @@ -193,7 +208,7 @@ public void testUpdateSelector() { SelectorsDetail selector = new SelectorsDetail(); - selector.setResourceGroupId(0L); + selector.setResourceGroupId(1L); selector.setPriority(0L); selector.setUserRegex("data-platform-admin_updated"); selector.setSourceRegex("admin_updated"); @@ -246,7 +261,7 @@ public void testDeleteSelector() { List selectors = resourceGroupManager.readAllSelectors(null); assertThat(selectors).hasSize(3); - assertThat(selectors.get(0).getResourceGroupId()).isEqualTo(0L); + assertThat(selectors.get(0).getResourceGroupId()).isEqualTo(1L); resourceGroupManager.deleteSelector(selectors.get(0), null); selectors = resourceGroupManager.readAllSelectors(null); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java index 04bef86c9..84e741d83 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/router/TestSpecificDbResourceGroupsManager.java @@ -53,12 +53,12 @@ public void setUp() super.resourceGroupManager = new HaResourceGroupsManager(connectionManager); } - private void createResourceGroup() + private void createResourceGroup(String groupName) { ResourceGroupsDetail resourceGroup = new ResourceGroupsDetail(); resourceGroup.setResourceGroupId(1L); - resourceGroup.setName("admin2"); + resourceGroup.setName(groupName); resourceGroup.setHardConcurrencyLimit(20); resourceGroup.setMaxQueued(200); resourceGroup.setJmxExport(true); @@ -77,7 +77,7 @@ public void testReadSpecificDbResourceGroupCauseException() @Test public void testReadSpecificDbResourceGroup() { - this.createResourceGroup(); + this.createResourceGroup("admin2"); List resourceGroups = resourceGroupManager .readAllResourceGroups(specificDb); assertThat(resourceGroups).isNotNull(); @@ -87,7 +87,7 @@ public void testReadSpecificDbResourceGroup() @Test public void testReadSpecificDbSelector() { - this.createResourceGroup(); + this.createResourceGroup("admin3"); ResourceGroupsManager.SelectorsDetail selector = new ResourceGroupsManager.SelectorsDetail(); selector.setResourceGroupId(1L); selector.setPriority(0L); From 2f39f31783b1758fb93e14660961fa8f92615676 Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 1 Jul 2024 09:54:39 +0900 Subject: [PATCH 146/148] Add http-server.process-forwarded to Trino test container --- .../trino/gateway/ha/TestGatewayHaMultipleBackend.java | 7 +++++-- .../io/trino/gateway/ha/TestGatewayHaSingleBackend.java | 2 ++ .../ha/clustermonitor/TestClusterStatsMonitor.java | 2 ++ gateway-ha/src/test/resources/trino-config.properties | 9 +++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 gateway-ha/src/test/resources/trino-config.properties diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java index 23981b0be..3f061752f 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaMultipleBackend.java @@ -39,6 +39,7 @@ import java.util.concurrent.TimeUnit; import static org.assertj.core.api.Assertions.assertThat; +import static org.testcontainers.utility.MountableFile.forClasspathResource; @TestInstance(Lifecycle.PER_CLASS) public class TestGatewayHaMultipleBackend @@ -66,8 +67,10 @@ public void setup() throws Exception { adhocTrino = new TrinoContainer("trinodb/trino"); + adhocTrino.withCopyFileToContainer(forClasspathResource("trino-config.properties"), "/etc/trino/config.properties"); adhocTrino.start(); scheduledTrino = new TrinoContainer("trinodb/trino"); + scheduledTrino.withCopyFileToContainer(forClasspathResource("trino-config.properties"), "/etc/trino/config.properties"); scheduledTrino.start(); int backend1Port = adhocTrino.getMappedPort(8080); @@ -136,7 +139,7 @@ public void testQueryDeliveryToMultipleRoutingGroups() .post(requestBody) .build(); Response response1 = httpClient.newCall(request1).execute(); - assertThat(response1.body().string()).contains("http://localhost:" + adhocTrino.getMappedPort(8080)); + assertThat(response1.body().string()).contains("http://localhost:" + routerPort); // When X-Trino-Routing-Group is set in header, query should be routed to cluster under the // routing group Request request4 = @@ -147,7 +150,7 @@ public void testQueryDeliveryToMultipleRoutingGroups() .addHeader("X-Trino-Routing-Group", "scheduled") .build(); Response response4 = httpClient.newCall(request4).execute(); - assertThat(response4.body().string()).contains("http://localhost:" + scheduledTrino.getMappedPort(8080)); + assertThat(response4.body().string()).contains("http://localhost:" + routerPort); } @Test diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java index d55683c8f..2a7b7282c 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/TestGatewayHaSingleBackend.java @@ -28,6 +28,7 @@ import org.testcontainers.containers.TrinoContainer; import static org.assertj.core.api.Assertions.assertThat; +import static org.testcontainers.utility.MountableFile.forClasspathResource; @TestInstance(Lifecycle.PER_CLASS) public class TestGatewayHaSingleBackend @@ -41,6 +42,7 @@ public void setup() throws Exception { trino = new TrinoContainer("trinodb/trino"); + trino.withCopyFileToContainer(forClasspathResource("trino-config.properties"), "/etc/trino/config.properties"); trino.start(); int backendPort = trino.getMappedPort(8080); diff --git a/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java b/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java index 9b89728e3..2c3ede9b0 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java +++ b/gateway-ha/src/test/java/io/trino/gateway/ha/clustermonitor/TestClusterStatsMonitor.java @@ -25,6 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS; +import static org.testcontainers.utility.MountableFile.forClasspathResource; @TestInstance(PER_CLASS) public class TestClusterStatsMonitor @@ -35,6 +36,7 @@ public class TestClusterStatsMonitor public void setUp() { trino = new TrinoContainer("trinodb/trino"); + trino.withCopyFileToContainer(forClasspathResource("trino-config.properties"), "/etc/trino/config.properties"); trino.start(); } diff --git a/gateway-ha/src/test/resources/trino-config.properties b/gateway-ha/src/test/resources/trino-config.properties new file mode 100644 index 000000000..624e3e298 --- /dev/null +++ b/gateway-ha/src/test/resources/trino-config.properties @@ -0,0 +1,9 @@ +# COPY from https://github.com/trinodb/trino/blob/master/core/docker/default/etc/config.properties +coordinator=true +node-scheduler.include-coordinator=true +http-server.http.port=8080 +discovery.uri=http://localhost:8080 +catalog.management=${ENV:CATALOG_MANAGEMENT} + +# Customize +http-server.process-forwarded=true From b8f4e34c7f61d03466aa44c1a1ed95b239a7b62d Mon Sep 17 00:00:00 2001 From: Star Poon Date: Mon, 1 Jul 2024 13:15:29 +0900 Subject: [PATCH 147/148] Update airlift to 249 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 896594b59..62770cbf1 100644 --- a/pom.xml +++ b/pom.xml @@ -51,7 +51,7 @@ io.airlift bom - 248 + 249 pom import @@ -81,7 +81,7 @@ org.glassfish.jersey.core jersey-server - 3.1.6 + 3.1.7 From 7dbaf82e8bb3a1076e3225ad2f16d074de1be8ea Mon Sep 17 00:00:00 2001 From: prakharsapre Date: Tue, 2 Jul 2024 22:31:59 -0500 Subject: [PATCH 148/148] fix errors --- .../gateway/ha/module/ClusterStateListenerModule.java | 7 ++++--- .../gateway/module/TestClusterStateListenerModule.java | 3 +-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java index 0e518c3b8..49355fa86 100644 --- a/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java +++ b/gateway-ha/src/main/java/io/trino/gateway/ha/module/ClusterStateListenerModule.java @@ -35,10 +35,12 @@ public class ClusterStateListenerModule extends AbstractModule { MonitorConfiguration monitorConfig; + NotifierConfiguration notifierConfig; public ClusterStateListenerModule(HaGatewayConfiguration config) { monitorConfig = config.getMonitor(); + notifierConfig = config.getNotifier(); } /** @@ -51,12 +53,11 @@ public List getClusterStatsObservers( RoutingManager mgr, BackendStateManager backendStateManager) { - NotifierConfiguration notifierConfiguration = getConfiguration().getNotifier(); ImmutableList.Builder observerBuilder = ImmutableList.builder(); observerBuilder.add(new HealthCheckObserver(mgr)); observerBuilder.add(new ClusterStatsObserver(backendStateManager)); - if (notifierConfiguration.isEnabled()) { - observerBuilder.add(new HealthChecker(new EmailNotifier(notifierConfiguration))); + if (notifierConfig.isEnabled()) { + observerBuilder.add(new HealthChecker(new EmailNotifier(notifierConfig))); } return observerBuilder.build(); } diff --git a/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java b/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java index a8feeaf4a..1fc44ecf0 100644 --- a/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java +++ b/gateway-ha/src/test/java/io/trino/gateway/module/TestClusterStateListenerModule.java @@ -13,7 +13,6 @@ */ package io.trino.gateway.module; -import io.dropwizard.core.setup.Environment; import io.trino.gateway.ha.clustermonitor.HealthChecker; import io.trino.gateway.ha.clustermonitor.TrinoClusterStatsObserver; import io.trino.gateway.ha.config.HaGatewayConfiguration; @@ -47,7 +46,7 @@ public void testClusterStateListenerModule() RoutingManager routingManager = mock(RoutingManager.class); BackendStateManager backendStateManager = mock(BackendStateManager.class); - ClusterStateListenerModule module = new ClusterStateListenerModule(config, mock(Environment.class)); + ClusterStateListenerModule module = new ClusterStateListenerModule(config); List observers = module.getClusterStatsObservers(routingManager, backendStateManager);

    pl6n3X?Ql+R02abn*$p{29i# z^fx9vN?8S1UPRRiZ{FC&87S~|juG?zoqh3TRfkY5nu&i0jdZ3pvYEkQ6}kzn7LVy3 zvYy#3DuR<8Y=H*Udz`eW*_2C-T^b5= ztCa_fxsaVRZV}*#C&yWFi-eEbIYeC5;|MX{*P^XWR3E!*`Vj7cJlId3?!B zoWInP0CXCBf`#7SG-hIEF*Sja!xv)F9OX#)pQ1Ra`-cq}0(U~F{9JOx9V2?W`)6~| z^~krxH$~-V*M#ZLp4C&2P5>8wNFy~-X8Pw^C3r!~kKJ9?pDKMd=K5RqEl69$U<55m zT#rywsFL4kIV^|3WMSmZ(hwerA-<=lu7&gw57al?&O!1=Ix9S@`5x$zTEG!E+%uUW z^OXpj)s(lX$9Kv~oxs@Q2XCs(>bE&4+z{tIo>AfEKMFdi+>g0m*00P@(*hFqX=zEN zT|9X98>CyT#EDr_o^pKtcErHsqO@7JazHT`v{|Ga)xq}7fdV3*Vb(O_)Ir%xWEHPq zPOzkwq*9@JT``>B^JJL!89d7#e9Vw}|H9H{>DJZI>E z$VKLyf)*;7H~AeR`4cbx=d@>;z~2qB?Be}6ptV#r$-O5ACse#JN^y^21l0{n_ zr_XfhB)ZvwgUd?(Nfk*AFP)xh!?rb2(tu+LbFav^-uv+~xGTthM@!c7`0h5XxN)dc zsb~e>@TBB6r5Z*XxvpHrOfH&BdQh6Eu@ekfNdDkgI{+!JGFo8o?4Bnf^GZ;g;s|lC zxBvU{Q|XM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